/* Scripted FAQ widget — self-contained styling, no dependency on page-local tokens
   that vary per page (e.g. --teal2). Uses --navy from tokens.css (present on every
   page that loads this) with hardcoded fallbacks. */

.faq-bot-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  font-family: inherit;
}

.faq-bot-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--navy, #003087);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.faq-bot-toggle:hover,
.faq-bot-toggle:focus-visible {
  filter: brightness(1.1);
}

.faq-bot-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(320px, calc(100vw - 40px));
  max-height: min(420px, calc(100vh - 120px));
  overflow-y: auto;
  background: #fff;
  color: #1e293b;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid #e2e8f0;
}

.faq-bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
}

.faq-bot-close {
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  color: #1e293b;
}

.faq-bot-list,
.faq-bot-answer {
  padding: 8px;
}

.faq-bot-q {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #1e293b;
}

.faq-bot-q:hover,
.faq-bot-q:focus-visible {
  background: #f0fdfb;
}

.faq-bot-answer p {
  padding: 4px 12px;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.faq-bot-link {
  display: inline-block;
  margin: 0 12px 10px;
  font-size: 14px;
  color: var(--navy, #003087);
  font-weight: 600;
}

.faq-bot-back {
  display: block;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 13px;
  padding: 8px 12px;
  color: #5b6b7f;
}

@media (max-width: 480px) {
  .faq-bot-root {
    right: 12px;
    bottom: 12px;
  }
}
