main {
  background-color: #f1f4f7;
}

.chatbot h1,
.chatbot h2,
.chatbot h3,
.chatbot h4,
.chatbot h5,
.chatbot h6 {
  margin-top: 0;
  margin-bottom: 0;
}

.chatbot__wrapper {
  display: grid;
  grid-template-columns: 28rem 1fr;
  gap: 2.4rem;
  height: calc(100vh - 16rem);
  max-height: 85rem;
  max-width: 140rem;
  margin: 0 auto;
}

.chatbot__sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.chatbot__category-nav {
  flex: 1;
  overflow-y: auto;
}

.chatbot__main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.chatbot__sidebar-header,
.chatbot__header {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(12, 12, 13, 0.08);
}

.chatbot__messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.chatbot__message-content {
  max-width: 70%;
}

.chatbot__message-bubble-bot {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.chatbot__sidebar-footer {
  flex-shrink: 0;
  border-top: 1px solid rgba(12, 12, 13, 0.08);
}

.chatbot__category-btn {
  transition: background-color 0.15s ease, color 0.15s ease;
  border: none;
  background-color: transparent;
}
.chatbot__category-btn:hover {
  background-color: rgba(12, 12, 13, 0.04);
}
.chatbot__category-btn:focus-visible {
  outline: 2px solid #0089eb;
  outline-offset: -2px;
}
.chatbot__category-btn[data-active=true] {
  background-color: rgba(0, 137, 235, 0.08);
  color: #0077cc;
  font-weight: 700;
}
.chatbot__category-btn[data-active=true] i {
  color: #0089eb;
}
.chatbot__category-btn[data-active=true]:hover {
  background-color: rgba(0, 137, 235, 0.12);
}

#quickQuestions .chatbot__category-btn {
  background-color: transparent;
  border: none;
  color: #0077cc;
  font-weight: 500;
}
#quickQuestions .chatbot__category-btn:hover {
  background-color: rgba(0, 137, 235, 0.06);
}
#quickQuestions .chatbot__category-btn[data-active=true] {
  background-color: rgba(0, 137, 235, 0.08);
  color: #0077cc;
  box-shadow: none;
  font-weight: 700;
}
#quickQuestions .chatbot__category-btn[data-active=true]:hover {
  background-color: rgba(0, 137, 235, 0.12);
}

.chatbot__contact-btn {
  transition: background-color 0.15s ease;
}
.chatbot__contact-btn:hover {
  background-color: #0092fa;
}
.chatbot__contact-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

[data-faq-id] {
  transition: background-color 0.15s ease, color 0.15s ease;
}
[data-faq-id]:hover {
  background-color: rgba(0, 137, 235, 0.1);
}
[data-faq-id]:active {
  transform: scale(0.98);
}
[data-faq-id]:focus-visible {
  outline: 2px solid #0089eb;
  outline-offset: 2px;
}

.chatbot__modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}
.chatbot__modal[data-visible=true] {
  display: flex;
}

.chatbot__modal-content {
  max-width: 60rem;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.chatbot__modal-close {
  background: rgba(255, 255, 255, 0.2);
}
.chatbot__modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

@-webkit-keyframes chatbot-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes chatbot-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@-webkit-keyframes chatbot-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes chatbot-slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@-webkit-keyframes chatbot-modal-in {
  from {
    opacity: 0;
    transform: translateY(-5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes chatbot-modal-in {
  from {
    opacity: 0;
    transform: translateY(-5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@-webkit-keyframes chatbot-typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-1rem);
  }
}
@keyframes chatbot-typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-1rem);
  }
}
.chatbot__status-dot {
  -webkit-animation: chatbot-pulse 2s infinite;
          animation: chatbot-pulse 2s infinite;
}

.chatbot__message {
  -webkit-animation: chatbot-slide-in 0.3s ease;
          animation: chatbot-slide-in 0.3s ease;
}

.chatbot__modal-content {
  -webkit-animation: chatbot-modal-in 0.3s ease;
          animation: chatbot-modal-in 0.3s ease;
}

.chatbot__typing-dot {
  -webkit-animation: chatbot-typing 1.4s infinite;
          animation: chatbot-typing 1.4s infinite;
}
.chatbot__typing-dot:nth-child(2) {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
}
.chatbot__typing-dot:nth-child(3) {
  -webkit-animation-delay: 0.4s;
          animation-delay: 0.4s;
}

.chatbot__messages::-webkit-scrollbar,
.chatbot__category-nav::-webkit-scrollbar,
.chatbot__modal-content::-webkit-scrollbar {
  width: 6px;
}
.chatbot__messages::-webkit-scrollbar-track,
.chatbot__category-nav::-webkit-scrollbar-track,
.chatbot__modal-content::-webkit-scrollbar-track {
  background: transparent;
}
.chatbot__messages::-webkit-scrollbar-thumb,
.chatbot__category-nav::-webkit-scrollbar-thumb,
.chatbot__modal-content::-webkit-scrollbar-thumb {
  background: rgba(12, 12, 13, 0.15);
  border-radius: 1rem;
}
.chatbot__messages::-webkit-scrollbar-thumb:hover,
.chatbot__category-nav::-webkit-scrollbar-thumb:hover,
.chatbot__modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(12, 12, 13, 0.25);
}

@media screen and (max-width: 599px) {
  .chatbot {
    padding: 0;
  }
  .chatbot__wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - var(--sp-header-height, 6rem));
    height: calc(90vh - var(--sp-header-height, 6rem));
    max-height: none;
    padding: 0;
    gap: 0;
  }
  .chatbot__main {
    order: 1;
    flex: 1;
    min-height: 0;
    border-radius: 0 !important;
  }
  .chatbot__messages {
    padding: 1.6rem;
  }
  .chatbot__message-content {
    max-width: 85%;
  }
  .chatbot__sidebar {
    order: 2;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0 !important;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.06);
  }
  .chatbot__sidebar-header {
    display: none;
  }
  .chatbot__header {
    border-bottom: 1px solid rgba(12, 12, 13, 0.08);
  }
  .chatbot__category-nav {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: visible;
  }
  .chatbot__category-row,
.chatbot__quick-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .chatbot__category-row > p,
.chatbot__quick-row > p {
    display: none;
  }
  .chatbot__category-row::-webkit-scrollbar,
.chatbot__quick-row::-webkit-scrollbar {
    display: none;
  }
  #categoryButtons,
.chatbot__quick-questions {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .chatbot__category-btn {
    flex-shrink: 0;
    white-space: nowrap;
    width: auto !important;
    margin-bottom: 0 !important;
  }
  .chatbot__category-btn[data-active=true] {
    box-shadow: none;
    border-bottom: 2px solid #0089eb;
    border-radius: 0;
  }
  .chatbot__quick-questions {
    display: none;
  }
  .chatbot__sidebar-footer {
    border-top: 1px solid rgba(12, 12, 13, 0.08);
  }
  .chatbot__modal[data-visible=true] {
    align-items: flex-end;
  }
  .chatbot__modal-content {
    width: 100%;
    max-height: 90dvh;
    max-height: 90vh;
    border-radius: 1.2rem 1.2rem 0 0 !important;
  }
}