.faq-chat { position: fixed; right: 24px; bottom: 24px; z-index: 180; font-family: var(--font); }
.faq-chat-launcher { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 7px 17px 7px 8px; border: 0; border-radius: 999px; background: #111820; color: #fff; box-shadow: 0 14px 38px rgba(9, 14, 20, .22); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.faq-chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 46px rgba(9, 14, 20, .28); }
.faq-chat-launcher:focus-visible { outline: 3px solid rgba(216,31,42,.38); outline-offset: 3px; }
.faq-chat-launcher-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); font-size: 21px; font-weight: 900; }
.faq-chat-launcher-copy { display: grid; text-align: left; line-height: 1.15; }
.faq-chat-launcher-copy strong { font-size: 12px; }
.faq-chat-launcher-copy small { margin-top: 4px; color: rgba(255,255,255,.62); font-size: 9px; font-weight: 600; }
.faq-chat-panel { position: absolute; right: 0; bottom: 72px; width: min(390px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 120px)); overflow: hidden; border: 1px solid rgba(16,22,29,.1); border-radius: 22px; background: #fff; box-shadow: 0 26px 72px rgba(10, 15, 22, .24); }
.faq-chat-panel[hidden] { display: none !important; }
.faq-chat-header { min-height: 72px; padding: 13px 14px 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #111820; color: #fff; }
.faq-chat-brand { display: flex; align-items: center; gap: 10px; }
.faq-chat-brand img { width: 38px; height: 38px; object-fit: contain; }
.faq-chat-brand > div { display: grid; line-height: 1.15; }
.faq-chat-brand strong { font-size: 12px; }
.faq-chat-brand span { margin-top: 4px; color: rgba(255,255,255,.58); font-size: 9px; font-weight: 600; }
.faq-chat-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 24px; line-height: 1; }
.faq-chat-close:hover { background: rgba(255,255,255,.15); }
.faq-chat-body { max-height: min(480px, calc(100vh - 230px)); overflow-y: auto; padding: 16px; background: #f5f7f9; scrollbar-width: thin; }
.faq-chat-message { max-width: 88%; padding: 11px 13px; border-radius: 14px; font-size: 11px; line-height: 1.6; }
.faq-chat-message-bot { margin-right: auto; border-bottom-left-radius: 4px; background: #fff; color: #2c3742; box-shadow: 0 1px 2px rgba(16,22,29,.06); }
.faq-chat-message-user { margin: 10px 0 12px auto; border-bottom-right-radius: 4px; background: var(--brand); color: #fff; }
.faq-chat-question-list { display: grid; gap: 8px; margin-top: 14px; }
.faq-chat-question { width: 100%; min-height: 46px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #e0e5ea; border-radius: 11px; background: #fff; color: #27323d; text-align: left; cursor: pointer; font-size: 10.5px; font-weight: 700; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.faq-chat-question:hover { border-color: #c8d0d8; background: #fbfcfd; transform: translateX(2px); }
.faq-chat-question span:last-child { color: var(--brand); font-size: 20px; font-weight: 500; }
.faq-chat-answer[hidden] { display: none !important; }
.faq-chat-back { padding: 0; border: 0; background: transparent; color: #5d6976; cursor: pointer; font-size: 9px; font-weight: 700; }
.faq-chat-back:hover { color: var(--brand-dark); }
.faq-chat-action { width: fit-content; min-height: 38px; margin-top: 12px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #111820; color: #fff; font-size: 9px; font-weight: 800; }
.faq-chat-action:hover { background: var(--brand); color: #fff; }
.faq-chat-footer { padding: 9px 14px; border-top: 1px solid #e9edf1; background: #fff; color: #8a949f; text-align: center; font-size: 8px; font-weight: 600; }

@media (max-width: 640px) {
    .faq-chat { right: 14px; bottom: 14px; }
    .faq-chat-launcher { min-height: 54px; padding-right: 8px; }
    .faq-chat-launcher-icon { width: 40px; height: 40px; }
    .faq-chat-launcher-copy { display: none; }
    .faq-chat-panel { position: fixed; inset: auto 10px 78px 10px; width: auto; max-height: calc(100vh - 100px); border-radius: 18px; }
    .faq-chat-body { max-height: calc(100vh - 230px); }
}

@media (prefers-reduced-motion: reduce) {
    .faq-chat-launcher, .faq-chat-question { transition: none; }
}
