/* Main chatbot styles */
.ai-chatbot-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  max-width: 100%;
  box-sizing: border-box;
}

/* Floating chatbot styles */
.ai-chatbot-floating {
  position: fixed;
  z-index: 9999;
  width: 450px;
  max-width: 90%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.ai-chatbot-floating.bottom-right {
  bottom: 20px;
  right: 20px;
}

.ai-chatbot-floating.bottom-left {
  bottom: 20px;
  left: 20px;
}

.ai-chatbot-floating.top-right {
  top: 20px;
  right: 20px;
}

.ai-chatbot-floating.top-left {
  top: 20px;
  left: 20px;
}

/* New Chatbot styles */
.ai-assistant h2 {
  font-size: 30px;
  font-weight: 600;
  color: #000000;
}

.ai-assistant h2 span {
  background: linear-gradient(95.88deg, #007DFE 15.4%, rgba(76, 215, 167, 0.95) 89.03%);
  font-weight: 800;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.ai-assistant p {
  font-size: 14px;
  font-weight: 500;
  color: #3A3A3A;
  font-family: 'Montserrat', sans-serif !important;
  margin-bottom: 0;
}

.ai-tag {
  border: 0.5px solid #FA8005;
  background: #FFBC2721;
  color: #D66102;
  margin-bottom: 12px;
}

.ai-tag div {
  color: #D66102;
  font-size: 12px;
}

.ai-tag img {
  width: 24px;
}

.chat-box {
  background-color: white;
  border-radius: 16px;
  /* padding: 30px; */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.chat-box .chat-title {
  font-weight: 700;
  color: #0E165D;
}

.chat-box hr {
  border: 1px solid #E6E6E6;
}

.chat-icon {
  color: #D66102;
  border: 0.5px solid #FA8005;
  background: #FFBC2721;
  padding: 6px 8px;
  width: fit-content;
}

.chat-icon img {
  width: 20px;
}

.chat-box h3 {
  background: linear-gradient(90.39deg, #007DFE 0.34%, #004B98 119.78%);
  font-weight: 700;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: 30px;
}

.chat-description {
  color: #8A8A8A !important;
  font-size: 14px !important;
  text-align: center !important;
  font-weight: 500 !important;
  margin-top: 30px !important;
  margin-bottom: 30px !important;
}

.chat-input {
  border-radius: 30px !important;
  border: 0.5px solid #696969 !important;
  padding: 20px 50px 20px 20px !important;
  /* height: 60px !important; */
}

.chat-submit {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.chat-submit i {
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  padding: 12px;
}

@media (max-width: 768px) {
  .ai-tag img {
    width: 18px;
  }

  .ai-chatbot-messages {
    padding: 15px !important;
    height: 300px !important;
  }

  .ai-assistant h2 {
    font-size: 30px;
  }

  .ai-assistant p {
    font-size: 14px;
  }

  .chat-description {
    margin-top: 15px !important;
  }

  .chat-input {
    font-size: 13px !important;
    padding: 10px 50px 10px 20px !important;
  }

  .chat-submit i {
    width: 30px;
    padding: 8px;
  }
}

#ai-chatbot-toggle-button {
  position: fixed; 
  z-index: 9999;
  color: white; 
  border: none; 
  padding: 15px; 
  border-radius: 5px; 
  cursor: pointer;
}

.ai-chatbot-message p {
  margin-bottom: 0 !important;
}

.chatbot-input {
  border-radius: 30px !important;
  border: 0.5px solid #696969 !important;
  padding: 10px 50px 10px 20px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
}

.chatbot-submit {
  position: absolute;
  right: 30px;
  bottom: 4.5px;
  transform: translateY(-50%);
}

.chat-submit-inner {
  background-color: #007bff;
  border-radius: 50%;
}

.chatbot-submit i {
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  padding: 9px;
}

.chatbot-close {
  cursor: pointer;
}

.chatbot-attribution {
  display: none !important;
}

/* Embedded chatbot styles */
.ai-chatbot-embedded {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}

/* Common header styles */
.ai-chatbot-header {
  padding: 15px;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

/* Chat area styles */
.ai-chatbot-messages {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
}

.ai-chatbot-message {
  margin-bottom: 15px;
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
  line-height: 1.4;
  font-size: 14px;
  width: fit-content;
}

.ai-chatbot-message.user {
  margin-left: auto;
  background-color: #3a86ff;
  color: white;
  border-bottom-right-radius: 4px;
  text-align: start;
  width: fit-content;
}

.ai-chatbot-message.assistant {
  margin-right: auto;
  background-color: #f0f0f0;
  color: #333;
  border-bottom-left-radius: 4px;
  text-align: start;
}

/* Input area styles */
.ai-chatbot-input-area {
  padding: 15px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.ai-chatbot-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.ai-chatbot-input:focus {
  border-color: #3a86ff;
}

/* Button styles */
.ai-chatbot-button {
  background-color: transparent;
  color: white;
  border: none;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  margin-top: 0;
  transition: background-color 0.3s;
}

.ai-chatbot-button:hover {
  background-color: #2667cc;
}

/* Welcome message styles */
/* .ai-chatbot-welcome {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
} */

/* Loading indicator */
.ai-chatbot-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}