#ai-chatbot-root,
#ai-chatbot-root * {
  box-sizing: border-box;
}

#ai-chatbot-root {
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
}

/* Floating sparkle icon */
#ai-search-icon {
  position: fixed;
  z-index: 1002;
  right: 26px;
  bottom: 26px;
  width: 70px;
  height: 70px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

#ai-search-icon::before {
  position: absolute;
  z-index: -1;
  inset: -6px;
  border-radius: 50%;
  background: rgba(87, 207, 170, .35);
  content: "";
  animation: ai-pulse-ring 2.8s ease-out infinite;
}

#ai-search-icon img {
  display: block;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  filter: drop-shadow(0 10px 20px rgba(32, 137, 215, .28));
  animation: ai-pulse-icon 2.8s ease-in-out infinite;
}

#ai-search-icon:hover img {
  animation-play-state: paused;
  transform: scale(1.08);
}

.chat-content {
  display: flex;
  flex-direction: column;
}

.chat-suggested-questions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
}

.chat-suggested-questions button {
  max-width: 100%;
  padding: 11px 16px;
  border: 1px solid #dce5ed;
  border-radius: 11px;
  background: #fff;
  color: #526d8b;
  cursor: pointer;
  font: 400 14px/20px "Montserrat", sans-serif;
  text-align: right;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.chat-suggested-questions button:hover {
  border-color: #499ed7;
  background: #f2f8fc;
  color: #238bd7;
}

@keyframes ai-pulse-icon {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.08); }
  28% { transform: scale(.98); }
  42% { transform: scale(1.04); }
  56% { transform: scale(1); }
}

@keyframes ai-pulse-ring {
  0% { opacity: 0; transform: scale(.82); }
  20% { opacity: .7; }
  65%, 100% { opacity: 0; transform: scale(1.35); }
}

/* Popup */
#ai-search-popup {
  position: fixed;
  z-index: 1001;
  right: 26px;
  bottom: 106px;
  display: none;
  width: 515px;
  height: min(700px, calc(100vh - 132px));
}

#ai-search-popup.is-open {
  display: block;
}

.chatbot-container {
  display: flex;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(21, 45, 73, .22);
}

/* Header */
.chat-header {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(100deg, #8be27a 0%, #41c4bb 48%, #238bd7 100%);
}

.chat-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
}

.chat-header-sparkle {
  font-size: 25px;
  line-height: 1;
}

.chat-header-close {
  padding: 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .75);
  cursor: pointer;
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
}

/* Messages */
.chat-content {
  flex: 1;
  overflow-y: auto;
  padding: 22px 34px;
  color: #152d49;
}

.chat-welcome__bubble {
  display: inline-block;
  max-width: 220px;
  padding: 14px 20px;
  border: 1px solid #d4dce5;
  border-radius: 25px;
  background: #fff;
  color: #152d49;
  font-size: 14px;
  line-height: 20px;
}

.chat-welcome__meta {
  margin: 7px 0 20px 22px;
  color: #a6b3c2;
  font-size: 11px;
}

.chat-welcome__meta span {
  color: #499ed7;
}

.chat-message {
  display: flex;
  margin: 16px 0;
}

.chat-message--question {
  justify-content: flex-end;
}

.chat-question {
  max-width: 82%;
  padding: 13px 18px;
  border-radius: 24px 24px 3px 24px;
  background: linear-gradient(100deg, #8be27a 0%, #41c4bb 48%, #238bd7 100%);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}

.chat-answer {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #cfe7f6;
  border-radius: 20px;
  background: #f2f8fc;
  color: #526d8b;
  font-size: 14px;
  line-height: 22px;
}

.chat-answer p {
  margin: 0 0 12px;
}

.chat-answer p:last-child {
  margin-bottom: 0;
}

.chat-answer strong {
  color: #152d49;
  font-weight: 700;
}

/* Source links */
.chat-citations {
  margin: 16px 0;
}

.chat-citations__title {
  margin: 0 0 10px;
  color: #152d49;
  font-size: 14px;
}

.chat-citations__link {
  display: block;
  margin: 8px 0;
  padding: 13px 16px;
  border: 1px solid #dce5ed;
  border-radius: 10px;
  color: #526d8b;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.chat-citations__link:hover {
  border-color: #499ed7;
  color: #238bd7;
}

.chat-citations__more {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #499ed7;
  cursor: pointer;
  font: 600 13px "Montserrat", sans-serif;
}

/* Feedback */
.chat-feedback {
  display: flex;
  gap: 16px;
  margin: 12px 0 4px;
  padding-top: 14px;
  border-top: 1px solid #e3eaf0;
}

.chat-feedback button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #8295aa;
  cursor: pointer;
  font-size: 22px;
}

.chat-feedback button:hover,
.chat-feedback button.is-active {
  color: #238bd7;
}

/* Footer form */
.chat-form {
  display: flex;
  min-height: 94px;
  align-items: center;
  gap: 10px;
  padding: 16px 22px 18px;
  border-top: 1px solid #e8eef3;
  background: #fff;
}

.search-icon {
  width: 21px;
  height: 21px;
  margin-left: 16px;
}

.search-input {
  flex: 1;
  height: 54px;
  min-width: 0;
  padding: 15px 0;
  resize: none;
  border: 0px solid transparent;
  border-right: 0;
  border-left: 0;
  outline: 0;
  background: transparent;
  color: #152d49;
  font: 400 14px/25px "Montserrat", sans-serif;
}
.filter-select, .search-input{
border:0px !important;
background:none !important;
}
.search-input::placeholder {
  color: #9caaba;
}

.chat-form {
  border-radius: 0 0 28px 28px;
}

.chat-form::before {
  position: absolute;
  right: 136px;
  left: 22px;
  height: 58px;
  border: 2px solid transparent;
  border-radius: 30px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(100deg, #d9f86a 0%, #50d7c7 48%, #238bd7 100%) border-box;
  content: "";
  pointer-events: none;
}

.chat-form > * {
  position: relative;
  z-index: 1;
}

.search-btn {
  min-width: 104px;
  height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(100deg, #8be27a 0%, #41c4bb 48%, #238bd7 100%);
  color: #fff;
  cursor: pointer;
  font: 700 16px "Montserrat", sans-serif;
}

.search-btn:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 640px) {
  #ai-search-popup {
    right: 12px;
    bottom: 92px;
    width: calc(100% - 24px);
    height: min(700px, calc(100vh - 116px));
  }

  #ai-search-icon {
    right: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
  }

  #ai-search-icon img {
    width: 60px;
    height: 60px;
  }

  .chat-content {
    padding: 18px;
  }

  .chat-form {
    min-height: 84px;
    padding: 14px 16px;
  }

  .chat-form::before {
    right: 112px;
    left: 16px;
  }

  .search-btn {
    min-width: 88px;
    padding: 0 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ai-search-icon::before,
  #ai-search-icon img {
    animation: none;
  }
}
.filter-select:focus, .search-input:focus{
  box-shadow:none !Important;