.ftb-faq-widget {
  --ftb-faq-accent: #164f9c;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  color: #152238;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
.ftb-faq-launcher {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 19px 10px 11px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ftb-faq-accent);
  box-shadow: 0 12px 34px rgba(10, 39, 82, .28);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.ftb-faq-launcher > span:first-child {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ftb-faq-accent);
  background: #fff;
  font-size: 22px;
  font-weight: 900;
}
.ftb-faq-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(390px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(10, 39, 82, .25);
}
.ftb-faq-panel[hidden] { display: none; }
.ftb-faq-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  color: #fff;
  background: var(--ftb-faq-accent);
}
.ftb-faq-panel header strong, .ftb-faq-panel header small { display: block; }
.ftb-faq-panel header small { margin-top: 2px; opacity: .82; font-size: 11px; }
.ftb-faq-close {
  width: 36px;
  height: 36px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 27px;
}
.ftb-faq-messages {
  height: 390px;
  overflow-y: auto;
  padding: 17px;
  background: #f7faff;
}
.ftb-faq-message {
  max-width: 88%;
  padding: 11px 13px;
  margin-bottom: 11px;
  border-radius: 15px 15px 15px 4px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(21, 34, 56, .07);
}
.ftb-faq-message p { margin: 0; }
.ftb-faq-message a { display: block; margin-top: 8px; color: var(--ftb-faq-accent); font-weight: 800; text-decoration: none; }
.ftb-faq-message.visitor {
  margin-left: auto;
  color: #fff;
  border-radius: 15px 15px 4px 15px;
  background: var(--ftb-faq-accent);
}
.ftb-faq-message.privacy {
  max-width: 100%;
  color: #654e00;
  border: 1px solid #f0d77c;
  background: #fff8df;
  font-size: 12px;
}
.ftb-faq-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 14px; }
.ftb-faq-suggestions button {
  padding: 7px 10px;
  border: 1px solid var(--ftb-faq-accent);
  border-radius: 999px;
  color: var(--ftb-faq-accent);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.ftb-faq-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid #dce5ef; background: #fff; }
.ftb-faq-form input { min-width: 0; padding: 11px 12px; border: 1px solid #bac8d8; border-radius: 10px; font: inherit; }
.ftb-faq-form button { padding: 10px 14px; border: 0; border-radius: 10px; color: #fff; background: var(--ftb-faq-accent); cursor: pointer; font: inherit; font-weight: 800; }
.ftb-faq-widget button:focus-visible, .ftb-faq-widget input:focus-visible, .ftb-faq-widget a:focus-visible { outline: 3px solid #f6bd3a; outline-offset: 2px; }

@media (max-width: 520px) {
  .ftb-faq-widget { right: 14px; bottom: 14px; }
  .ftb-faq-panel { position: fixed; inset: 12px; width: auto; display: flex; flex-direction: column; }
  .ftb-faq-messages { height: auto; flex: 1; }
  .ftb-faq-launcher-text { display: none; }
  .ftb-faq-launcher { padding-right: 11px; }
}
