/* Balão de atendimento (js/chat-atendimento.js). Usa as variáveis de cor do site.css. */
.gechat { position: fixed; right: 20px; bottom: 20px; z-index: 9000; font-family: var(--corpo, system-ui, sans-serif); }
.gechat-botao {
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--marca, #0369a1); color: #fff; font: 600 15px/1 var(--corpo, system-ui, sans-serif);
  box-shadow: 0 10px 30px rgba(3, 105, 161, .35); transition: transform .2s var(--saida, ease), background .2s;
}
.gechat-botao:hover { background: var(--acento, #0284c7); transform: translateY(-2px); }
.gechat-botao:focus-visible, .gechat button:focus-visible, .gechat-campo:focus-visible { outline: 3px solid var(--acento-2, #0ea5e9); outline-offset: 2px; }
.gechat-botao svg { width: 20px; height: 20px; fill: currentColor; }
.gechat-aberto .gechat-botao { display: none; }

.gechat-painel {
  display: flex; flex-direction: column; width: 380px; height: min(600px, calc(100vh - 40px));
  background: var(--fundo-2, #fff); color: var(--texto, #0b1a2e); border: 1px solid var(--linha-forte, rgba(11, 26, 46, .14));
  border-radius: 20px; box-shadow: 0 24px 60px rgba(11, 26, 46, .18); overflow: hidden;
}
.gechat-painel[hidden] { display: none; }
.gechat-topo { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--marca, #0369a1); color: #fff; }
.gechat-titulo { display: flex; flex-direction: column; line-height: 1.3; }
.gechat-titulo strong { font: 600 16px/1.3 var(--display, system-ui, sans-serif); }
.gechat-titulo span { font-size: 13px; opacity: .85; }
.gechat-fechar { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.gechat-fechar:hover { background: rgba(255, 255, 255, .28); }

.gechat-lista { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--fundo, #f5f8fc); }
.gechat-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.gechat-bot { align-self: flex-start; background: var(--fundo-2, #fff); border: 1px solid var(--linha, rgba(11, 26, 46, .08)); border-bottom-left-radius: 4px; }
.gechat-voce { align-self: flex-end; background: var(--marca, #0369a1); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.gechat-bot a { color: var(--marca, #0369a1); }
.gechat-digitando { display: flex; gap: 4px; padding: 14px; }
.gechat-digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--apagado, #7a8aa0); animation: gechat-pulo 1s infinite ease-in-out; }
.gechat-digitando i:nth-child(2) { animation-delay: .15s; }
.gechat-digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes gechat-pulo { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

.gechat-sugestoes { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; background: var(--fundo, #f5f8fc); }
.gechat-sugestoes:empty { display: none; }
.gechat-sugestao {
  padding: 7px 12px; border: 1px solid var(--linha-forte, rgba(11, 26, 46, .14)); border-radius: 999px; cursor: pointer;
  background: var(--fundo-2, #fff); color: var(--marca, #0369a1); font: 500 14px/1.2 var(--corpo, system-ui, sans-serif);
}
.gechat-sugestao:hover { border-color: var(--marca, #0369a1); }

.gechat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--linha, rgba(11, 26, 46, .08)); }
.gechat-campo {
  flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 12px; border: 1px solid var(--linha-forte, rgba(11, 26, 46, .14));
  border-radius: 12px; font: 400 16px/1.4 var(--corpo, system-ui, sans-serif); color: var(--texto, #0b1a2e); background: #fff;
}
.gechat-enviar { padding: 0 16px; border: 0; border-radius: 12px; background: var(--marca, #0369a1); color: #fff; font: 600 15px/1 var(--corpo, system-ui, sans-serif); cursor: pointer; }
.gechat-enviar:disabled { opacity: .55; cursor: wait; }
.gechat-rodape { margin: 0; padding: 0 12px 12px; font-size: 13px; color: var(--suave, #4a5b72); text-align: center; }
.gechat-rodape a { color: var(--marca, #0369a1); }

@media (max-width: 480px) {
  .gechat { right: 12px; bottom: 12px; left: 12px; display: flex; justify-content: flex-end; }
  .gechat-aberto { top: 12px; }
  .gechat-painel { width: 100%; height: 100%; }
}
@media (prefers-reduced-motion: reduce) { .gechat-botao, .gechat-digitando i { transition: none; animation: none; } }

/* Celular: o balão vira um botão redondo só com o ícone, ao lado da doca "Ver demonstração" (antes os dois se sobrepunham) */
@media (max-width: 760px) {
  .gechat { right: 16px; bottom: 16px; }
  .gechat-botao { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .gechat-botao span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gechat-botao svg { width: 24px; height: 24px; }
}

