/* Chat de suporte (botão flutuante e janela). Cores vêm das variáveis do tema quando existem. */
.chat-oculto { display: none !important; }
#chat-suporte { position: fixed; right: 16px; bottom: 16px; z-index: 60; font-family: inherit; }
.chat-botao { background: #0f2540; color: #f1e3b8; border: 1px solid #b9965a; border-radius: 999px; padding: 12px 20px; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.chat-botao:hover, .chat-botao:focus-visible { background: #16345a; }
.chat-janela { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px)); background: #fff; color: #1b2430; border: 1px solid #c9ced6; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.chat-topo { background: #0f2540; color: #f1e3b8; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.chat-fechar { background: transparent; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-aviso { margin: 0; padding: 6px 14px; font-size: 12px; background: #f6f1e4; color: #5a4a22; }
.chat-lista { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f5f7fa; }
.chat-msg { max-width: 86%; padding: 8px 10px; border-radius: 10px; font-size: 14px; line-height: 1.4; }
.chat-msg p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-quem { font-size: 11px; font-weight: 700; opacity: .7; }
.chat-msg-voce { align-self: flex-end; background: #dbe8f8; }
.chat-msg-bot { align-self: flex-start; background: #fff; border: 1px solid #d9dee6; }
.chat-msg-equipe { align-self: flex-start; background: #f1e3b8; border: 1px solid #b9965a; }
.chat-situacao { margin: 0; padding: 8px 14px; font-size: 13px; background: #fff7e0; color: #5a4a22; }
.chat-erro { margin: 0; padding: 8px 14px; font-size: 13px; background: #fde8e8; color: #8a1c1c; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #d9dee6; background: #fff; }
.chat-campo { flex: 1; resize: none; font: inherit; font-size: 14px; padding: 8px; border: 1px solid #b8c0cc; border-radius: 8px; color: inherit; background: #fff; }
.chat-enviar { background: #0f2540; color: #f1e3b8; border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.chat-enviar:disabled { opacity: .6; cursor: wait; }
.chat-ident { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-top: 1px solid #d9dee6; }
.chat-ident p { margin: 0 0 4px; font-size: 14px; }
.chat-ident input { font: inherit; font-size: 14px; padding: 8px; border: 1px solid #b8c0cc; border-radius: 8px; }
@media (max-width: 480px) { #chat-suporte { right: 8px; bottom: 8px; } .chat-janela { height: calc(100vh - 16px); width: calc(100vw - 16px); } }
/* painel do administrador */
.chat-fio { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #f5f7fa; border-radius: 8px; max-height: 60vh; overflow-y: auto; }
.chat-selo { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chat-selo-humano { background: #fde8c8; color: #7a4300; }
.chat-selo-bot { background: #dbe8f8; color: #12417a; }
.chat-selo-resolvida { background: #e2efe2; color: #1f5a1f; }
.chat-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chat-resposta { width: 100%; font: inherit; padding: 8px; border: 1px solid #b8c0cc; border-radius: 8px; }
.chat-ticket { font-size: 12px; opacity: .8; margin-left: 8px; }
.chat-barra { display: flex; justify-content: space-between; gap: 8px; padding: 4px 14px; background: #fff; border-top: 1px solid #eef0f4; }
.chat-link { background: transparent; border: 0; color: #12417a; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px 0; }
.chat-confirmar { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-top: 1px solid #d9dee6; background: #fff; }
.chat-confirmar p { margin: 0; font-size: 14px; }
.chat-busca { display: flex; gap: 8px; margin: 8px 0 12px; }
.chat-busca input { flex: 1; font: inherit; padding: 6px 8px; border: 1px solid #b8c0cc; border-radius: 8px; }
