/* Tema conversa — chat de atendimento estilo app de mensagens. */
.t-conversa {
  --accent-cor: var(--accent, #0f766e);
  --cinza-fundo: #e6ebf1;
  --bolha-recebida: #e6ebf1;
  --bolha-enviada: var(--accent-cor);
  --texto: #1a1a1a;
  --cinza-texto: #666;
  margin: 0;
  background: var(--cinza-fundo);
  color: var(--texto);
  font: 400 1rem/1.5 "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.t-conversa *, .t-conversa *::before, .t-conversa *::after { box-sizing: border-box; }
.t-conversa [hidden] { display: none !important; }
.t-conversa a { color: var(--accent-cor); text-decoration: none; }
.t-conversa a:hover { text-decoration: underline; }
.t-conversa :focus-visible { outline: 2px solid var(--accent-cor); outline-offset: 2px; }

/* Cabeçalho fixo */
.cv-cabecalho {
  position: sticky; top: 0;
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  padding: 12px 16px;
  border-bottom: 1px solid #d0d8e0;
  z-index: 100;
}

.cv-avatar {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-cor);
  color: #fff;
  font: 600 .9rem/1 "Manrope", sans-serif;
  flex-shrink: 0;
}

.cv-info { flex: 1; }
.cv-marca {
  margin: 0;
  font: 600 1.1rem/1 "Manrope", sans-serif;
  color: var(--texto);
}
.cv-status {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--cinza-texto);
}

/* Área de conversa */
.cv-conversa {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px;
  gap: 8px;
}

.cv-tela {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cv-tela.is-feita .cv-chips {
  display: none !important;
}

/* Bolhas */
.cv-bolha {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 85%;
  word-wrap: break-word;
  font-size: 0.95rem;
  line-height: 1.4;
}

.cv-recebida {
  background: var(--bolha-recebida);
  color: var(--texto);
  align-self: flex-start;
  border-radius: 4px 18px 18px 18px;
}

.cv-subtitulo {
  background: #d8dfe8;
  color: var(--cinza-texto);
  align-self: flex-start;
  border-radius: 4px 18px 18px 18px;
  font-size: 0.85rem;
}

.cv-enviada {
  background: var(--bolha-enviada);
  color: #fff;
  align-self: flex-end;
  border-radius: 18px 4px 18px 18px;
}

.cv-hero {
  margin-right: 6px;
  font-size: 1.2em;
}

/* Chips de resposta */
.cv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  align-self: flex-start;
}

.cv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #d0d8e0;
  border-radius: 20px;
  color: var(--texto);
  font: 600 0.85rem/1 "Manrope", sans-serif;
  cursor: pointer;
  transition: all .2s;
}

.cv-chip:hover {
  border-color: var(--accent-cor);
  background: #f5f9fb;
}

.cv-chip.is-marcada {
  background: var(--bolha-enviada);
  color: #fff;
  border-color: var(--bolha-enviada);
}

.cv-emoji {
  font-size: 1.2rem;
  line-height: 1;
}

/* Tela final */
.cv-fim {
  justify-content: flex-start;
}

.cv-captcha-container {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.funil-cta.is-travado { opacity: .45; pointer-events: none; }
.funil-captcha {
  display: flex;
  justify-content: center;
}

.cv-fim .cv-botao {
  align-self: flex-start;
  margin-top: 12px;
}

.cv-botao {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent-cor);
  color: #fff;
  border: none;
  border-radius: 24px;
  font: 600 1rem/1 "Manrope", sans-serif;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.cv-botao:hover:not(:disabled) {
  opacity: 0.9;
  transform: scale(1.02);
}

.cv-botao:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Rodapé */
.cv-rodape {
  padding: 16px;
  border-top: 1px solid #d0d8e0;
  background: #fff;
  font-size: 0.85rem;
  text-align: center;
  color: var(--cinza-texto);
}

.cv-horario {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--accent-cor);
}

.cv-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  margin: 8px 0;
}

.cv-links a {
  color: var(--accent-cor);
  text-decoration: none;
  font-weight: 500;
}

.cv-legal {
  margin: 8px 0 4px;
  font-size: 0.8rem;
}

.cv-18 {
  margin: 6px 0 0;
  font-weight: 600;
}

/* Páginas legais */
.t-conversa.doc-corpo {
  background: var(--cinza-fundo);
}

.t-conversa .doc {
  width: min(720px, 100% - 32px);
  margin: 0 auto;
  padding: 28px 0 56px;
  background: #fff;
}

.t-conversa .doc-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #d0d8e0;
}

.t-conversa .doc-marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--texto);
  text-decoration: none;
  font: 600 1.2rem/1 "Manrope", sans-serif;
}

.t-conversa .doc-selo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-cor);
  color: #fff;
  font: 600 .8rem/1 "Manrope", sans-serif;
}

.t-conversa .doc-voltar {
  font-weight: 600;
  color: var(--accent-cor);
}

.t-conversa .doc-texto {
  padding: 0 24px;
}

.t-conversa .doc-texto h1 {
  font: 600 2rem/1.15 "Manrope", sans-serif;
  margin: 28px 0 8px;
}

.t-conversa .doc-texto h2 {
  font-size: 1.1rem;
  margin: 26px 0 6px;
  font-weight: 600;
}

.t-conversa .doc-texto p {
  margin: 0 0 10px;
  max-width: 68ch;
}

.t-conversa .doc-lide {
  color: var(--cinza-texto);
  font-size: 1.1rem;
  font-weight: 600;
}

.t-conversa .doc-nota {
  margin-top: 24px;
  color: var(--cinza-texto);
  font-size: .92rem;
}

.t-conversa .doc-botao {
  display: inline-block;
  background: var(--accent-cor);
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 24px;
}

.t-conversa .doc-rodape {
  margin-top: 40px;
  padding: 16px 24px;
  border-top: 1px solid #d0d8e0;
  font-size: .9rem;
  color: var(--cinza-texto);
}

.t-conversa .doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

@media (prefers-reduced-motion: reduce) {
  .t-conversa * { transition: none !important; }
}

/* CTA final — legível acima da cor de link (adicionado 15/09/2026) */
.t-conversa a.funil-cta{display:block;width:100%;box-sizing:border-box;text-align:center;text-decoration:none;padding:15px 20px;font-weight:800;cursor:pointer;line-height:1.2;background:var(--accent-cor,#0f766e);color:#fff !important;border:0;border-radius:999px;}
.t-conversa a.funil-cta:hover{filter:brightness(.95);}
.t-conversa a.funil-cta.is-travado{opacity:.45;pointer-events:none;}
