/* chatbot-cards.css — Winair */

.chat-msgs { background: linear-gradient(180deg,#eef4fc 0%,#f4f8fd 100%); }
.msg-bot { border: none; border-radius: 20px 20px 20px 5px; }
.msg-user { border-radius: 20px 20px 5px 20px; }
.quick-options { gap: 8px; }
.opt-btn { border: none; border-radius: 18px; padding: 11px 26px 11px 11px; gap: 10px; font-size: 13px; line-height: 1.25; box-shadow: 0 3px 10px rgba(20,30,60,.07); }
.opt-btn::after { right: 10px; font-size: 16px; }
.opt-icon { width: 32px; height: 32px; }

.msg-bot:has(> .cc) { background: none; border: none; box-shadow: none; padding: 0; width: 100%; max-width: 100%; animation: none; }
.cc { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cc > * { animation: msgPop .35s var(--wa-ease-bounce) both; }
.cc > .cc-wait { display: none; }

.cc-say { align-self: flex-start; max-width: 88%; background: #fff; border-radius: 20px 20px 20px 5px; padding: 12px 16px; font-size: 13px; line-height: 1.5; box-shadow: 0 3px 12px rgba(20,30,60,.07); overflow-wrap: anywhere; }
.cc-say b { color: var(--wa-navy); white-space: nowrap; }
.cc-card { background: #fff; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 8px 24px rgba(20,30,60,.1); }
.cc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding-bottom: 12px; border-bottom: 1.5px dashed #DDE2EC; }
.cc-title { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--wa-navy); }
.cc-title svg { width: 18px; height: 18px; color: var(--wa-red); }
.cc-sub { margin-top: 5px; font-size: 12.5px; color: var(--wa-muted); }
.cc-tag { flex-shrink: 0; padding: 5px 10px; border-radius: 14px; background: rgba(204,0,0,.09); color: var(--wa-red); font-size: 9.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }

.msg .cc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.msg .cc-steps li { display: flex; align-items: flex-start; gap: 11px; margin: 0; padding: 0; position: static; list-style: none; background: none; font-size: 13px; line-height: 1.45; counter-increment: step; }
.msg .cc-steps li::before { all: initial; content: counter(step); flex: 0 0 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--wa-grad-brand); color: #fff; font-family: var(--font-body); font-size: 11.5px; font-weight: 800; line-height: 1; box-shadow: 0 3px 8px rgba(204,0,0,.28); }
.msg .cc-steps li span { padding-top: 2px; min-width: 0; }
.cc-note { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border-radius: 14px; background: #F8E9EA; font-size: 12.5px; line-height: 1.45; }
.cc-note svg { flex-shrink: 0; margin-top: 1px; color: var(--wa-red); }

#chat-window a.cc-cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px; border-radius: 30px; background: var(--wa-grad-btn); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; word-break: normal; box-shadow: var(--wa-glow-red); transition: transform .2s, box-shadow .2s; }
#chat-window a.cc-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--wa-glow-red-lg); }
#chat-window a.cc-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: #fff; color: var(--wa-text); text-decoration: none; word-break: normal; box-shadow: 0 3px 12px rgba(20,30,60,.07); transition: transform .2s, box-shadow .2s; }
#chat-window a.cc-link:hover { color: var(--wa-text); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(204,0,0,.14); }
.cc-link-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-link-txt b { font-size: 13.5px; color: var(--wa-navy); }
.cc-link-ico { flex-shrink: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(204,0,0,.09); color: var(--wa-red); }
.cc-link-txt small { font-weight: 400; font-size: 12px; color: var(--wa-muted); overflow-wrap: anywhere; }
.cc-chev { font-size: 22px; line-height: 1; color: #B9BCC9; }

.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-chip { padding: 10px 16px; border: none; border-radius: 22px; background: #fff; color: var(--wa-red); font-family: var(--font-body); font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(20,30,60,.07); transition: background .2s, transform .2s; }
.cc-chip:hover { background: #fdeeee; transform: translateY(-1px); }
#chat-window a.cc-chip { text-decoration: none; font-weight: 700; }
#chat-window a.cc-chip:hover { color: var(--wa-red); }
.cc-chip.done::before { content: '✓ '; }

.opt-btn:focus-visible, .see-all-btn:focus-visible, .chat-back:focus-visible, .fb-btn:focus-visible, .cc-chip:focus-visible, #chat-window a.cc-cta:focus-visible, #chat-window a.cc-link:focus-visible { outline: 3px solid rgba(204,0,0,.55); outline-offset: 2px; }

@media (max-width: 380px) { .cc-title { font-size: 19px; } .cc-say { max-width: 100%; } .cc-head { flex-direction: column; } }

.msg-bot:has(> .af) { background: none; border: none; box-shadow: none; padding: 0; width: 100%; max-width: 100%; animation: none; }
.af { background: #fff; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 8px 24px rgba(20,30,60,.1); }
.af-title { font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--wa-navy); }
.af-sub { margin-top: -6px; font-size: 12.5px; color: var(--wa-muted); }
.af-field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--wa-navy); }
.af input:not([type=checkbox]), .af select, .af textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--wa-border); border-radius: 12px; background: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--wa-text); }
.af textarea { min-height: 80px; resize: vertical; }
.af input:focus-visible, .af select:focus-visible, .af textarea:focus-visible { outline: 2px solid rgba(204,0,0,.55); outline-offset: 1px; }
.af-check { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; line-height: 1.4; color: var(--wa-text); }
.af-check input { margin-top: 2px; accent-color: var(--wa-red); }
.af-send { padding: 13px 16px; border: none; border-radius: 30px; background: var(--wa-grad-btn); color: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: var(--wa-glow-red); }
.af-send:disabled { opacity: .6; cursor: default; }
.af-err { font-size: 12.5px; color: var(--wa-red); }
.af-err[hidden] { display: none; }
.af-hint { font-size: 12px; font-weight: 600; color: var(--wa-red); }
.af-hint:empty { display: none; }
.af input.af-invalid, .af textarea.af-invalid { border-color: var(--wa-red); }