/*! Autoria: CML. (c) 2026 CML - Todos os direitos reservados. Certidao 24 Horas (certidao24horas.com.br). Proibida a copia, reproducao, modificacao ou engenharia reversa (Lei 9.610/98 e Lei 9.609/98). Registro OpenTimestamps, SHA-256 do manifesto: 6422c1cf359c2dcf6d3d03a4fc4c43c90b419dda3152e1de6562d6389447cc19 */
/* Assistente de certidões — aparência do chat. Cores principais nas variáveis do .cb (azul do site: royal e marinho) */

.cb, .cb * { box-sizing: border-box; }

.cb {
  --cb-cor: #1E4FD8;
  --cb-cor-escura: #0B2A6B;
  --cb-fundo: #F2F7FD;
  --cb-texto: #1F2A44;
  --cb-suave: #55607A;
  --cb-borda: #CFD9EA;

  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  width: 400px;
  height: min(660px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  background: var(--cb-fundo);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(11, 42, 107, .28);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--cb-texto);
  animation: cb-entra .28s ease-out;
}

@keyframes cb-entra { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes cb-surge { from { opacity: 0; transform: translateY(5px); } }
@keyframes cb-pula { 0%, 70%, 100% { transform: translateY(0); opacity: .35; } 35% { transform: translateY(-2.5px); opacity: .9; } }
@keyframes cb-brilho { 50% { box-shadow: 0 0 0 5px rgba(251, 191, 36, .35); } }

/* Topo */
.cb-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 12px 16px;
  background: var(--cb-cor);
  color: #fff;
}
.cb-avatar {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--cb-cor);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
}
.cb-avatar::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4ade80;
  border: 2px solid var(--cb-cor);
}
.cb-id { flex: 1; min-width: 0; }
.cb-nome { font-weight: 650; font-size: 16px; }
.cb-status { font-size: 12.5px; opacity: .85; }
.cb-acao {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.cb-acao:hover, .cb-acao:focus-visible { background: rgba(255, 255, 255, .18); outline: none; }
.cb-acao svg { width: 20px; height: 20px; }

/* Conversa */
.cb-corpo {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cb-msg {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 16px;
  white-space: pre-line;
  overflow-wrap: anywhere;
  animation: cb-surge .2s ease-out;
}
.cb-bot {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .07);
}
.cb-eu {
  align-self: flex-end;
  margin: 6px 0;
  background: var(--cb-cor);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.cb-cartao { max-width: 94%; padding: 10px; white-space: normal; }

.cb-digitando {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 13px 14px;
  background: #fff;
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .07);
}
.cb-digitando i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #93A0B8;
  animation: cb-pula 1.5s ease-in-out infinite;
}
.cb-digitando i:nth-child(2) { animation-delay: .2s; }
.cb-digitando i:nth-child(3) { animation-delay: .4s; }

/* Documentos de exemplo (RG, certidão) */
.cb-doc {
  background: #fbf7ec;
  border: 1px solid #e6dcc3;
  border-radius: 10px;
  padding: 10px 12px;
  font: 11.5px/1.55 ui-monospace, Consolas, "Courier New", monospace;
  color: #4a4335;
}
.cb-doc-tit {
  margin-bottom: 7px;
  font: 600 11px/1.3 system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a7a55;
}
.cb-doc-linha { display: flex; gap: 8px; }
.cb-doc-linha > span { flex: none; width: 92px; color: #9a8b68; }
.cb-centro { text-align: center; margin-bottom: 6px; }
.cb-forte { font-weight: 700; letter-spacing: .04em; }
.cb-marca {
  background: #fde68a;
  color: inherit;
  border-radius: 4px;
  padding: 0 3px;
  box-shadow: 0 0 0 2px #fbbf24;
  animation: cb-brilho 1.6s ease-in-out 2;
}
.cb-legenda { margin: 8px 2px 0; font-size: 12.5px; color: var(--cb-suave); }

/* Resumo do pedido */
.cb-resumo dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  margin: 0;
  font-size: 14px;
}
.cb-resumo dt { color: var(--cb-suave); }
.cb-resumo dd { margin: 0; font-weight: 600; }

/* Botões de resposta */
.cb-respostas {
  max-height: 42%;
  overflow-y: auto;
  padding: 4px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cb-respostas:empty { display: none; }
/* Opções lado a lado, quebrando linha só quando não cabem: ocupam pouco espaço e não escondem o texto */
.cb-opcoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.cb-opcao {
  max-width: 100%;
  padding: 6px 13px;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  background: #fff;
  color: var(--cb-cor-escura);
  border: 1.5px solid var(--cb-cor);
  border-radius: 20px;
  cursor: pointer;
  transition: background .15s, color .15s;
  animation: cb-surge .25s ease-out both;
}
.cb-opcao:hover, .cb-opcao:focus-visible { background: var(--cb-cor); color: #fff; outline: none; }
.cb-opcao-destaque { background: var(--cb-cor); color: #fff; }
.cb-ico { display: inline-block; vertical-align: -3px; margin-right: 7px; line-height: 0; }
.cb-ico svg { width: 21px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.cb-opcao-destaque:hover, .cb-opcao-destaque:focus-visible { background: var(--cb-cor-escura); }

/* Lista com filtro */
.cb-busca {
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  animation: cb-surge .25s ease-out;
}
.cb-busca input {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  border: 1.5px solid var(--cb-borda);
  border-radius: 10px;
  outline: none;
}
.cb-busca input:focus { border-color: var(--cb-cor); }
.cb-lista { display: flex; flex-direction: column; max-height: 200px; overflow-y: auto; margin-top: 6px; }
.cb-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  color: var(--cb-texto);
}
.cb-item:hover, .cb-item:focus-visible { background: #E6EEFC; outline: none; }
.cb-item-local { flex-direction: column; justify-content: flex-start; gap: 1px; }
.cb-item-local small { font-size: 12.5px; }
.cb-item small { color: var(--cb-suave); }
.cb-dica { padding: 6px 10px; font-size: 12.5px; color: var(--cb-suave); }

/* Campo de digitação */
.cb-aviso { padding: 6px 16px; font-size: 12.5px; color: #b45309; background: #fff7ed; }
.cb-entrada {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid #DFE6F2;
}
.cb-entrada input {
  flex: 1;
  min-width: 0;
  padding: 9px 14px;
  font: inherit;
  border: 1.5px solid var(--cb-borda);
  border-radius: 22px;
  outline: none;
}
.cb-entrada input:focus { border-color: var(--cb-cor); }
.cb-entrada button {
  flex: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--cb-cor);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.cb-entrada button svg { width: 18px; height: 18px; }
.cb [hidden] { display: none !important; }

.cb-rodape { padding: 5px 0 8px; text-align: center; font-size: 11px; color: var(--cb-suave); }

@media (max-width: 520px) {
  .cb { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cb, .cb * { animation: none !important; transition: none !important; }
}

/* Acompanhamento de pedido */
.cb-equipe { border-left: 3px solid var(--cb-cor); }
.cb-equipe.cb-nova { animation: cb-surge .2s ease-out, cb-brilho 1.6s ease-in-out 2; }
.cb-quem { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 600; color: var(--cb-cor); }
.cb-via { display: block; margin-top: 3px; font-size: 11px; opacity: .8; text-align: right; }
.cb-sistema {
  align-self: center;
  max-width: 92%;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--cb-suave);
  background: #E4EAF4;
  box-shadow: none;
  border-radius: 10px;
}
.cb-pedido { font-size: 13.5px; }
.cb-ped-topo { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cb-ped-topo span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--cb-suave); }
.cb-ped-topo strong { font-size: 15px; color: var(--cb-cor); }
.cb-ped-cert { padding: 6px 0; border-top: 1px solid #E4EAF4; line-height: 1.35; }
.cb-ped-cert small { color: var(--cb-suave); }
.cb-passos { list-style: none; margin: 8px 0 2px; padding: 0; border-top: 1px solid #E4EAF4; }
.cb-passos li { position: relative; padding: 5px 0 5px 24px; color: #98A3B8; }
.cb-passos li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #C3CDE0;
  background: #fff;
}
.cb-passos li:not(:last-child)::after { content: ''; position: absolute; left: 9px; top: 21px; bottom: -7px; width: 2px; background: #DCE3F0; }
.cb-passos li.feito { color: var(--cb-texto); }
.cb-passos li.feito::before { background: var(--cb-cor); border-color: var(--cb-cor); }
.cb-passos li.feito::after { background: var(--cb-cor); }
.cb-passos li.atual { color: var(--cb-cor); font-weight: 650; }
.cb-passos li.atual::before { border-color: var(--cb-cor); box-shadow: 0 0 0 3px rgba(30, 79, 216, .2); }
.cb-ped-alerta { margin-top: 6px; padding: 6px 10px; font-weight: 600; color: #8a5300; background: #fff3c4; border-radius: 8px; }

/* Site: cartão com o modelo de RG do site e botão Enviar chamando atenção depois do chat */
.cb-doc-img img { display: block; width: 100%; height: auto; margin-top: 6px; }
@keyframes c24-chamando { 0%, 100% { box-shadow: 0 0 0 0 rgba(30, 79, 216, .55); } 50% { box-shadow: 0 0 0 10px rgba(30, 79, 216, 0); } }
.c24-chamando { animation: c24-chamando 1s ease-in-out 4; }

/* Site: botão fixo da Regí, em todas as páginas (o chat aberto fica por cima dele) */
.c24-regi-botao {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147482000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: #1E4FD8;
  color: #fff;
  font: 600 15px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 8px 24px rgba(30, 79, 216, .4);
  cursor: pointer;
}
.c24-regi-botao:hover, .c24-regi-botao:focus-visible { background: #0B2A6B; outline: none; }
.c24-regi-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #1E4FD8;
  font-size: 18px;
  font-weight: 700;
}
.c24-regi-avatar::after {
  z-index: 1;
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #1E4FD8;
}
@media (max-width: 520px) {
  .c24-regi-botao { right: 12px; bottom: 12px; padding: 6px 14px 6px 6px; font-size: 14px; }
  .c24-regi-avatar { width: 42px; height: 42px; font-size: 16px; }
}
@media print { .c24-regi-botao { display: none; } }

/* Regí animada: rosto (img/regi/regi_rosto.webp) e corpo inteiro (img/regi/regi_corpo.webp), 26 quadros alinhados
   0 normal · 1-4 piscada · 5-9 dúvida (mão no queixo) · 10-14 joinha · 15-19 triste · 20-25 sorriso abrindo.
   Cada expressão entra quadro a quadro e, ao acabar, sai pelo caminho inverso (estado "-sai", controlado no chatbot.js). */
.regi-av, .regi-corpo {
  display: block;
  width: 100%;
  height: 100%;
  background: url("../../img/regi/regi_rosto.webp?v=20261113f") 0 0 / 4000% 100% no-repeat;
  animation: regi-pisca 4.5s steps(1, end) infinite;
}
.regi-av { border-radius: 50%; background-color: #fff; background-size: 500% 100%; animation-name: regi-pisca-rosto; }
.regi-corpo { background-image: url("../../img/regi/regi_corpo.webp?v=20261113f"); }
.cb-avatar { padding: 0; overflow: visible; }
.cb-avatar .regi-av { box-shadow: 0 0 0 2px #fff; }
:is(.regi-av, .regi-corpo)[data-humor="fala"] { animation: regi-fala 1.3s steps(1, end) infinite; }
:is(.regi-av, .regi-corpo)[data-humor="pensa"] { animation: regi-pensa 1s steps(1, end) forwards; }
:is(.regi-av, .regi-corpo)[data-humor="pensa-sai"] { animation: regi-pensa-sai .9s steps(1, end) forwards; }
:is(.regi-av, .regi-corpo)[data-humor="joinha"] { animation: regi-joinha .9s steps(1, end) forwards; }
:is(.regi-av, .regi-corpo)[data-humor="joinha-sai"] { animation: regi-joinha-sai .8s steps(1, end) forwards; }
:is(.regi-av, .regi-corpo)[data-humor="triste"] { animation: regi-triste .7s steps(1, end) forwards; }
:is(.regi-av, .regi-corpo)[data-humor="triste-sai"] { animation: regi-triste-sai .5s steps(1, end) forwards; }
:is(.regi-av, .regi-corpo)[data-humor="sorri"] { animation: regi-sorri 1.1s steps(1, end) forwards; }
:is(.regi-av, .regi-corpo)[data-humor="sorri-sai"] { animation: regi-sorri-sai .7s steps(1, end) forwards; }
/* Surpresa (brasileiro no exterior) e admiração (estrangeiro): por enquanto o sorriso; trocar quando vierem os quadros */
:is(.regi-av, .regi-corpo):is([data-humor="surpresa"], [data-humor="admiracao"]) { animation: regi-sorri 1.1s steps(1, end) forwards; }
:is(.regi-av, .regi-corpo):is([data-humor="surpresa-sai"], [data-humor="admiracao-sai"]) { animation: regi-sorri-sai .7s steps(1, end) forwards; }
/* Piscada em etapas: pálpebra desce, fecha e sobe (sem o tranco de abrir e fechar de uma vez) */
@keyframes regi-pisca {
  0%, 92% { background-position: 0 0; }
  93% { background-position: calc(100% * 1 / 39) 0; }
  94% { background-position: calc(100% * 2 / 39) 0; }
  95%, 96% { background-position: calc(100% * 3 / 39) 0; }
  97% { background-position: calc(100% * 4 / 39) 0; }
  98% { background-position: calc(100% * 1 / 39) 0; }
  99%, 100% { background-position: 0 0; }
}
/* Rosto (tira só com normal e piscada, 5 quadros) */
@keyframes regi-pisca-rosto {
  0%, 92% { background-position: 0 0; }
  93% { background-position: 25% 0; }
  94% { background-position: 50% 0; }
  95%, 96% { background-position: 75% 0; }
  97% { background-position: 100% 0; }
  98% { background-position: 25% 0; }
  99%, 100% { background-position: 0 0; }
}
/* Fala: boca abre e fecha aos poucos, em ritmo irregular (quadros do sorriso) */
@keyframes regi-fala {
  0% { background-position: calc(100% * 21 / 39) 0; }
  12% { background-position: calc(100% * 23 / 39) 0; }
  22% { background-position: calc(100% * 22 / 39) 0; }
  34% { background-position: calc(100% * 24 / 39) 0; }
  46% { background-position: calc(100% * 22 / 39) 0; }
  55% { background-position: calc(100% * 20 / 39) 0; }
  64% { background-position: calc(100% * 23 / 39) 0; }
  78% { background-position: calc(100% * 21 / 39) 0; }
  88% { background-position: calc(100% * 24 / 39) 0; }
  100% { background-position: calc(100% * 21 / 39) 0; }
}
@keyframes regi-pensa {
  0% { background-position: calc(100% * 5 / 39) 0; }
  25% { background-position: calc(100% * 6 / 39) 0; }
  50% { background-position: calc(100% * 7 / 39) 0; }
  75% { background-position: calc(100% * 8 / 39) 0; }
  100% { background-position: calc(100% * 9 / 39) 0; }
}
@keyframes regi-pensa-sai {
  0% { background-position: calc(100% * 9 / 39) 0; }
  20% { background-position: calc(100% * 8 / 39) 0; }
  40% { background-position: calc(100% * 7 / 39) 0; }
  60% { background-position: calc(100% * 6 / 39) 0; }
  80% { background-position: calc(100% * 5 / 39) 0; }
  100% { background-position: 0 0; }
}
/* Sorriso para no quadro 24 e joinha no 13: os últimos quadros dessas séries têm cara estranha (usuário 12/11) */
/* Joinha para no quadro 13: o 14 vira os olhos de lado (cara estranha, usuário 12/11) */
@keyframes regi-joinha {
  0% { background-position: calc(100% * 10 / 39) 0; }
  33% { background-position: calc(100% * 11 / 39) 0; }
  67% { background-position: calc(100% * 12 / 39) 0; }
  100% { background-position: calc(100% * 13 / 39) 0; }
}
@keyframes regi-joinha-sai {
  0% { background-position: calc(100% * 13 / 39) 0; }
  25% { background-position: calc(100% * 12 / 39) 0; }
  50% { background-position: calc(100% * 11 / 39) 0; }
  75% { background-position: calc(100% * 10 / 39) 0; }
  100% { background-position: 0 0; }
}
@keyframes regi-triste {
  0% { background-position: calc(100% * 15 / 39) 0; }
  25% { background-position: calc(100% * 16 / 39) 0; }
  50% { background-position: calc(100% * 17 / 39) 0; }
  75% { background-position: calc(100% * 18 / 39) 0; }
  100% { background-position: calc(100% * 19 / 39) 0; }
}
@keyframes regi-triste-sai {
  0% { background-position: calc(100% * 19 / 39) 0; }
  20% { background-position: calc(100% * 18 / 39) 0; }
  40% { background-position: calc(100% * 17 / 39) 0; }
  60% { background-position: calc(100% * 16 / 39) 0; }
  80% { background-position: calc(100% * 15 / 39) 0; }
  100% { background-position: 0 0; }
}
@keyframes regi-sorri {
  0% { background-position: calc(100% * 20 / 39) 0; }
  25% { background-position: calc(100% * 21 / 39) 0; }
  50% { background-position: calc(100% * 22 / 39) 0; }
  75% { background-position: calc(100% * 23 / 39) 0; }
  100% { background-position: calc(100% * 24 / 39) 0; }
}
@keyframes regi-sorri-sai {
  0% { background-position: calc(100% * 24 / 39) 0; }
  20% { background-position: calc(100% * 23 / 39) 0; }
  40% { background-position: calc(100% * 22 / 39) 0; }
  60% { background-position: calc(100% * 21 / 39) 0; }
  80% { background-position: calc(100% * 20 / 39) 0; }
  100% { background-position: 0 0; }
}
/* Regí de corpo inteiro, em pé ao lado do chat (fora da janela, à esquerda), só onde há espaço */
.cb-regi-fora {
  position: fixed;
  right: 400px;
  bottom: 18px;
  z-index: 2147483001;
  width: 190px;
  height: 190px;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(11, 42, 107, .25));
  animation: regi-chega-lado .5s ease-out;
}
.cb-regi-fora .regi-fantasma { position: absolute; inset: 0; animation: regi-dissolve .5s ease-in-out forwards; }
@keyframes regi-dissolve { from { opacity: 1; } to { opacity: 0; } }
@keyframes regi-chega-lado { from { opacity: 0; transform: translateX(40px) scale(.9); } }
/* Ao lado do chat sempre; só no celular (chat em tela cheia) ela fica dentro da conversa */
@media (max-width: 520px) { .cb-regi-fora { display: none; } }
@media (min-width: 521px) { .cb .cb-boasvindas { display: none; } }
@media (max-width: 760px) and (min-width: 521px) { .cb-regi-fora { width: 140px; height: 140px; right: 392px; } }
@media (max-width: 520px) { .cb-avatar { width: 48px; height: 48px; } }
/* Boas-vindas: a Regí inteira no começo da conversa */
.cb-boasvindas { display: flex; justify-content: center; padding: 4px 0 2px; }
.cb-boasvindas img { width: 112px; height: auto; animation: regi-chega .6s ease-out; }
@keyframes regi-chega { from { opacity: 0; transform: translateY(14px) scale(.92); } }
@media (prefers-reduced-motion: reduce) {
  .regi-av, .regi-av[data-humor], .c24-regi-avatar .regi-av, .cb-boasvindas img { animation: none; }
  /* Regí de fora sem movimento: mostra direto a expressão final */
  .regi-corpo, .regi-corpo[data-humor] { animation: none; }
  .regi-corpo[data-humor="pensa"] { background-position: calc(100% * 9 / 39) 0; }
  .regi-corpo[data-humor="joinha"] { background-position: calc(100% * 13 / 39) 0; }
  .regi-corpo[data-humor="triste"] { background-position: calc(100% * 19 / 39) 0; }
  .regi-corpo:is([data-humor="sorri"], [data-humor="surpresa"], [data-humor="admiracao"]) { background-position: calc(100% * 24 / 39) 0; }
}
/* Cada palavra surge suave enquanto a Regí escreve */
.cb-palavra { animation: cb-palavra .32s ease-out both; }
@keyframes cb-palavra { from { opacity: 0; filter: blur(1.5px); } }
@media (prefers-reduced-motion: reduce) { .cb-palavra, .cb-regi-fora { animation: none; } }
/* Rosto no topo do chat: imagem parada (a Regí animada fica ao lado da janela) */
.cb-avatar .regi-av, .cb-avatar .regi-av[data-humor] { animation: none; background-position: 0 0; }
/* Botão "Fale com a Regí": só pisca (pedido do usuário: sem sorriso nem outras expressões) */
.c24-regi-avatar .regi-av { animation: regi-pisca-rosto 5s steps(1, end) infinite; }

/* Acompanhar pedido: botão do topo e andamento no chat */
.cb-acao[hidden] { display: none; }
.cb-andamento { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.cb-andamento li { color: #98A3B8; padding-left: 2px; }
.cb-andamento li.feito { color: var(--cb-cor-escura); }
.cb-andamento li.agora { color: var(--cb-cor); font-weight: 700; }
.cb-citacao { white-space: pre-line; border-left: 3px solid var(--cb-cor); padding: 2px 0 2px 10px; color: var(--cb-texto); }

/* Interação: inclinação para o lado do mouse (computador), área de toque só no corpo e pulinho ao clicar/tocar.
   O pulinho mexe a posição (translate); a expressão continua trocando os quadros normalmente. */
.cb-regi-fora { transition: transform .45s ease-out; transform-origin: 50% 95%; }
.regi-alvo { position: absolute; left: 24%; right: 24%; top: 3%; bottom: 3%; pointer-events: auto; cursor: pointer; }
.cb-regi-fora.regi-pulo, .cb-avatar.regi-pulo { animation: regi-pulinho .5s ease-out; }
.cb-avatar.regi-pulo .regi-av, .cb-avatar.regi-pulo .regi-av[data-humor] { animation: regi-piscadinha .4s steps(1, end); }
@keyframes regi-pulinho { 40% { translate: 0 -8px; } }
@keyframes regi-piscadinha {
  0% { background-position: 25% 0; }
  20% { background-position: 50% 0; }
  40% { background-position: 75% 0; }
  70% { background-position: 25% 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .cb-regi-fora { transition: none; } .regi-pulo, .regi-pulo .regi-av { animation: none !important; } }

/* Digitando no teclado (26-31): só na pausa dramática de procurar um pedido e de enviar o pedido */
:is(.regi-av, .regi-corpo)[data-humor="teclando"] { animation: regi-teclando .9s steps(1, end) infinite; }
@keyframes regi-teclando {
  0% { background-position: calc(100% * 26 / 39) 0; }
  17% { background-position: calc(100% * 27 / 39) 0; }
  33% { background-position: calc(100% * 28 / 39) 0; }
  50% { background-position: calc(100% * 29 / 39) 0; }
  67% { background-position: calc(100% * 30 / 39) 0; }
  83% { background-position: calc(100% * 31 / 39) 0; }
  100% { background-position: calc(100% * 26 / 39) 0; }
}
/* Olhar seguindo o mouse (32-35), só parada no normal; volta ao centro (e a piscar) quando o mouse para */
.regi-corpo[data-humor="normal"][data-olhar] { animation: none; }
.regi-corpo[data-humor="normal"][data-olhar="esq"] { background-position: calc(100% * 32 / 39) 0; }
.regi-corpo[data-humor="normal"][data-olhar="dir"] { background-position: calc(100% * 33 / 39) 0; }
.regi-corpo[data-humor="normal"][data-olhar="cima"] { background-position: calc(100% * 34 / 39) 0; }
.regi-corpo[data-humor="normal"][data-olhar="baixo"] { background-position: calc(100% * 35 / 39) 0; }
.regi-corpo[data-humor="normal"][data-olhar="cima-esq"] { background-position: calc(100% * 36 / 39) 0; }
.regi-corpo[data-humor="normal"][data-olhar="cima-dir"] { background-position: calc(100% * 37 / 39) 0; }
.regi-corpo[data-humor="normal"][data-olhar="baixo-esq"] { background-position: calc(100% * 38 / 39) 0; }
.regi-corpo[data-humor="normal"][data-olhar="baixo-dir"] { background-position: calc(100% * 39 / 39) 0; }
@media (prefers-reduced-motion: reduce) { .regi-corpo[data-humor="teclando"] { background-position: calc(100% * 26 / 39) 0; } }

/* "Não sou um robô" dentro da conversa (regi.js): a caixa do Google (304 px) cabe inteira na bolha */
.cb-msg.cb-robo { max-width: 100%; padding: 8px; white-space: normal; }
.cb-robo-outro {
  display: block;
  margin: 8px 2px 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cb-cor);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
/* Quadro de imagens do reCAPTCHA (o Google o cria no fim da página com z-index 2000000000): acima do chat */
body > div[style*="2000000000"] { z-index: 2147483600 !important; }
:root{--c24m:"QXV0b3JpYTogQ01MLiAoYykgMjAyNiBDTUwgLSBUb2RvcyBvcyBkaXJlaXRvcyByZXNlcnZhZG9zLiBDZXJ0aWRhbyAyNCBIb3JhcyAoY2VydGlkYW8yNGhvcmFzLmNvbS5icikuIFByb2liaWRhIGEgY29waWEsIHJlcHJvZHVjYW8sIG1vZGlmaWNhY2FvIG91IGVuZ2VuaGFyaWEgcmV2ZXJzYSAoTGVpIDkuNjEwLzk4IGUgTGVpIDkuNjA5Lzk4KS4gUmVnaXN0cm8gT3BlblRpbWVzdGFtcHMsIFNIQS0yNTYgZG8gbWFuaWZlc3RvOiA2NDIyYzFjZjM1OWMyZGNmNmQzZDAzYTRmYzRjNDNjOTBiNDE5ZGRhMzE1MmUxZGU2NTYyZDYzODk0NDdjYzE5"}

/* Celular (3.0): a Regí animada fica numa faixa fixa no topo do chat (a conversa rola por baixo dela),
   no lugar da imagem parada das boas-vindas; é a mesma Regí de fora do computador, com as mesmas expressões */
.cb-palco { display: none; }
@media (max-width: 520px) {
  .cb-palco { display: flex; flex: none; justify-content: center; align-items: flex-end; height: clamp(92px, 17dvh, 132px); padding-top: 6px; background: var(--cb-fundo); border-bottom: 1px solid var(--cb-borda); }
  .cb-palco:empty { display: none; }
  .cb-palco .cb-regi-fora { display: block; position: relative; right: auto; bottom: auto; z-index: auto; width: auto; height: 100%; aspect-ratio: 1; filter: drop-shadow(0 6px 8px rgba(11, 42, 107, .2)); }
  .cb.cb-com-palco .cb-boasvindas { display: none; }
}

/* Troca de quadro suave (3.0, chatbot.js suavizarQuadros): o quadro anterior some por cima do novo */
.cb-regi-fora .regi-fantasma.regi-quadro { position: absolute; inset: 0; animation: regi-dissolve .16s linear forwards; }
