#my-chatbot-widget.chatbot-widget {
  font-family: "Lato", Arial, Helvetica, sans-serif;
  color: #3b3b3b;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  --chatbot-primary: #23b1ec;
  --chatbot-primary-soft: rgba(35, 177, 236, 0.16);
  --chatbot-icon: #ffffff;
  font-size: 0.9rem;
}

#my-chatbot-widget .chatbot-widget__panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(540px, calc(100vw - 32px));
  display: none;
}

#my-chatbot-widget.chatbot-widget--open .chatbot-widget__panel {
  display: block;
}

#my-chatbot-widget .chatbot-widget__card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  padding: 20px 20px 14px;
}

#my-chatbot-widget .chatbot-widget__header {
  margin-bottom: 16px;
}

#my-chatbot-widget .chatbot-widget__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
}

#my-chatbot-widget .chatbot-widget__subtitle {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #475569;
}

#my-chatbot-widget .chatbot-widget__messages {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

#my-chatbot-widget .chatbot-widget__message {
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1.4;
  font-size: 0.9rem;
  word-break: break-word;
}

#my-chatbot-widget .chatbot-widget__message--question {
  align-self: flex-end;
  background: var(--chatbot-primary-soft);
  color: #0f172a;
  font-weight: 600;
}

#my-chatbot-widget .chatbot-widget__message--answer {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

#my-chatbot-widget .chatbot-widget__message--sources {
  align-self: flex-start;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.85rem;
}

#my-chatbot-widget .chatbot-widget__message--answer {
  line-height: 1.4 !important;
}

#my-chatbot-widget .chatbot-widget__message--answer p {
  margin: 0 0 0.35rem !important;
}

#my-chatbot-widget .chatbot-widget__message--answer p:last-child {
  margin-bottom: 0 !important;
}

#my-chatbot-widget .chatbot-widget__message--answer ul,
#my-chatbot-widget .chatbot-widget__message--answer ol {
  margin: 0.25rem 0 0.45rem 1rem !important;
  padding-left: 0.5rem !important;
  list-style: disc !important;
}

#my-chatbot-widget .chatbot-widget__message--answer ol {
  list-style: decimal !important;
}

#my-chatbot-widget .chatbot-widget__message--answer li {
  margin: 0.15rem 0 !important;
}

#my-chatbot-widget .chatbot-widget__message--answer strong {
  font-weight: 700 !important;
}

#my-chatbot-widget .chatbot-widget__message--answer h1,
#my-chatbot-widget .chatbot-widget__message--answer h2,
#my-chatbot-widget .chatbot-widget__message--answer h3,
#my-chatbot-widget .chatbot-widget__message--answer h4 {
  margin: 0.5rem 0 0.35rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

#my-chatbot-widget .chatbot-widget__form {
  margin-top: 10px;
  margin-bottom: 0 !important;
  display: flex;
  gap: 8px;
  align-items: center;
}

#my-chatbot-widget .chatbot-widget__disclaimer {
  margin-top: 4px;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
}

#my-chatbot-widget .chatbot-widget__toggle {
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  width: 54px !important;
  height: 54px !important;
  padding: 0 !important;
  background: var(--chatbot-primary) !important;
  color: var(--chatbot-icon) !important;
  cursor: pointer !important;
  box-shadow: 0 14px 26px rgba(35, 177, 236, 0.35) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#my-chatbot-widget .chatbot-widget__toggle:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 36px rgba(35, 177, 236, 0.4) !important;
}

#my-chatbot-widget.chatbot-widget--open .chatbot-widget__toggle {
  background: var(--chatbot-primary) !important;
}

#my-chatbot-widget .chatbot-widget__toggle-icon {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#my-chatbot-widget .chatbot-widget__toggle-icon--open {
  display: none !important;
}

#my-chatbot-widget.chatbot-widget--open .chatbot-widget__toggle-icon--open {
  display: block !important;
}

#my-chatbot-widget.chatbot-widget--open .chatbot-widget__toggle-icon--closed {
  display: none !important;
}

#my-chatbot-widget .chatbot-widget__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#my-chatbot-widget .chatbot-widget__input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: #0f172a;
  background: #ffffff;
}

#my-chatbot-widget .chatbot-widget__input:focus {
  outline: none;
  border-color: var(--chatbot-primary);
  box-shadow: 0 0 0 3px var(--chatbot-primary-soft);
}

#my-chatbot-widget .chatbot-widget__button {
  border: none !important;
  border-radius: 12px !important;
  padding: 10px 18px !important;
  background: var(--chatbot-primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#my-chatbot-widget .chatbot-widget__button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 18px rgba(35, 177, 236, 0.25) !important;
}

#my-chatbot-widget .chatbot-widget__button:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

@media screen and (max-width: 480px) {
  #my-chatbot-widget .chatbot-widget__card {
    padding: 16px;
  }

  #my-chatbot-widget .chatbot-widget__form {
    flex-direction: column;
  }

  #my-chatbot-widget .chatbot-widget__button {
    width: 100%;
  }

  #my-chatbot-widget {
    right: 16px;
    bottom: 16px;
  }

  #my-chatbot-widget .chatbot-widget__panel {
    bottom: 60px;
  }
}
