#ai-faq-widget {
  position: fixed;
  bottom: 90px;
  right: 20px;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

#chat-toggle {
  background: #5b2cff;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 14px 20px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

#chat-toggle:hover {
  background: #4a22d4;
}

#chat-box {
  width: 340px;
  height: 460px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.hidden {
  display: none !important;
}

#chat-header {
  background: #111111;
  color: #ffffff;
  padding: 14px;
  font-weight: bold;
}

#chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #ffffff;
}

.message {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 85%;
  clear: both;
}

.message.user {
  background: #eeeeee;
  color: #111111;
  margin-left: auto;
  text-align: right;
}

.message.bot {
  background: #f4efff;
  color: #111111;
  margin-right: auto;
}

#chat-input-area {
  display: flex;
  border-top: 1px solid #dddddd;
  background: #ffffff;
}

#chat-input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

#send-btn {
  border: none;
  background: #5b2cff;
  color: #ffffff;
  padding: 0 16px;
  cursor: pointer;
  font-weight: bold;
}

#send-btn:hover {
  background: #4a22d4;
}

/* Mobile layout */
@media (max-width: 768px) {
  #ai-faq-widget {
    bottom: 100px;
    right: 16px;
  }

  #chat-box {
    width: calc(100vw - 32px);
    height: 70vh;
    max-height: 560px;
  }

  #chat-toggle {
    padding: 13px 18px;
    font-size: 14px;
  }
}

.chat-link {
  color: #5b2cff;
  font-weight: bold;
  text-decoration: underline;
}