/* Chat do site novo (A/B de 29/10/2026, novo.js). Tudo sob html.novo: a variante atual nao muda. Tema claro, cores da Quero Abada. */
html.novo { --qa-blue: #1a62bf; --qa-blue-d: #154f9c; --qa-ink: #0f1d33; --qa-muted: #64748b; --qa-line: #e3e8f0; --qa-soft: #f3f6fb; }
html.novo body { background: #fff; color: var(--qa-ink); font-size: 15px; }
html.novo .chat-widget, html.novo.embed .chat-widget { padding: 0; gap: 0; max-width: none; }
html.novo .chat-header { border: 0; border-bottom: 1px solid var(--qa-line); border-radius: 0; padding: 8px 8px 8px 12px; background: #fff; }
html.novo .chat-header .left { gap: 10px; min-width: 0; }
html.novo .chat-header .avatar { width: 38px; height: 38px; flex: 0 0 38px; font-size: 16px; }
html.novo .chat-header .title h1 { font-size: 15px; font-weight: 700; }
html.novo .chat-header .title small.online { display: inline-flex; align-items: center; gap: 5px; color: #16a34a; font-size: 12px; font-weight: 600; }
html.novo .chat-header .title small.online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
html.novo .chat-header .right { gap: 2px; }
html.novo .chat-header .icon { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--qa-muted); display: grid; place-items: center; font-size: 16px; }
html.novo .chat-header .icon:hover { background: #f1f5f9; color: var(--qa-ink); }
html.novo .chat-header .icon svg { width: 19px; height: 19px; }
html.novo .chat-header .icon:focus-visible, html.novo .qa-pill:focus-visible, html.novo .input-bar .send:focus-visible { outline: 2px solid var(--qa-blue); outline-offset: 2px; }

/* Avatar da FantasIA (imagem recortada em circulo; sem imagem, o "F" azul) */
html.novo .avatar.assistant { background: linear-gradient(135deg, #2f7ae0, var(--qa-blue)); color: #fff; }
html.novo .avatar.has-img { background: #fff; overflow: hidden; }
html.novo .avatar.has-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* Mensagens */
html.novo .messages { border: 0; border-radius: 0; padding: 12px 12px var(--msgs-pad, 12px); background: #fff; }
html.novo .message { gap: 8px; margin: 6px 0; }
html.novo .message .avatar { width: 28px; height: 28px; flex: 0 0 28px; font-size: 12px; }
html.novo .message.user { flex-direction: row-reverse; }
html.novo .message.user .avatar { display: none; }
html.novo .bubble { border: 0; border-radius: 16px; padding: 9px 12px; max-width: 86%; }
html.novo .message.assistant .bubble { background: var(--qa-soft); border-top-left-radius: 4px; }
html.novo .message.user .bubble { background: var(--qa-blue); color: #fff; border-top-right-radius: 4px; }
html.novo .message.user .bubble a { color: #fff; }
html.novo .bubble .meta { margin-top: 3px; font-size: 11px; }
html.novo .message.user .bubble .meta { color: rgba(255,255,255,.8); justify-content: flex-end; }
html.novo .bubble .content p { margin: 0; }
html.novo .bubble a, html.novo .bubble a:visited { color: var(--qa-blue); }

/* Perguntas sugeridas e botoes do convite: pilulas pequenas */
html.novo .qa-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px 36px; }
html.novo .qa-pill,
html.novo .proactive-actions .checkout-action {
    appearance: none; min-height: 0; width: auto; padding: 7px 12px; border: 1px solid #c9d8ee; border-radius: 999px;
    background: #fff; color: var(--qa-blue); box-shadow: none; font: 600 13px/1.3 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
html.novo .qa-pill:hover, html.novo .proactive-actions .checkout-action:hover:not(:disabled) { background: #e8f0fb; border-color: var(--qa-blue); color: var(--qa-blue-d); box-shadow: none; }
html.novo .proactive-actions { gap: 6px; margin: 10px 0 2px; }

/* Botoes de pagamento e links de compra: azul do site, menores */
html.novo .content .checkout-action:not(.proactive-actions .checkout-action) {
    min-height: 44px; padding: 10px 18px; border-color: var(--qa-blue-d); border-radius: 12px; background: var(--qa-blue);
    box-shadow: 0 2px 0 var(--qa-blue-d); font-size: 15px;
}
html.novo .content .checkout-action:not(.proactive-actions .checkout-action):hover:not(:disabled) { background: var(--qa-blue-d); box-shadow: 0 2px 0 #0f3b75; }
html.novo .checkout-actions { gap: 8px; margin: 12px 0 4px; }

/* Campo de 1 linha que cresce e enviar em icone */
html.novo .input-bar, html.novo.embed .input-bar { border: 0; border-top: 1px solid var(--qa-line); border-radius: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; align-items: flex-end; background: #fff; }
html.novo .input-bar textarea { min-height: 40px; height: 40px; max-height: 120px; padding: 9px 14px; border: 1px solid transparent; border-radius: 20px; background: #f1f4f9; font-family: inherit; font-size: 16px; line-height: 1.35; overflow-y: auto; }
html.novo .input-bar textarea:focus { border-color: var(--qa-blue); background: #fff; box-shadow: 0 0 0 3px rgba(26,98,191,.14); }
html.novo .input-bar .send { width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--qa-blue); color: #fff; display: grid; place-items: center; }
html.novo .input-bar .send:hover { background: var(--qa-blue-d); filter: none; }
html.novo .input-bar .send:disabled { background: #cbd5e1; }
html.novo .input-bar .send svg { width: 19px; height: 19px; margin-left: 2px; }
@media (max-width: 520px) { html.novo .chat-header, html.novo .messages, html.novo .input-bar { border-radius: 0; } html.novo .bubble { max-width: 90%; } }
