/* Conversa (hallo1, A576 F2 · forma A607): estilos do formulário-conversa flutuante. Prefixo h1c-.
   Cores vêm do JS (vestir): --h1c-anel e --h1c-botao já com contraste AA, e as triplas
   r, g, b (--h1c-*-rgb) para véus, vidro e sombras na tinta da página. */
.h1c-raiz { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 2147483000; font-family: var(--font-app, system-ui, sans-serif); font-size: 15px; line-height: 1.45; color: var(--marca-primaria, #2b2b2b); display: flex; flex-direction: column; align-items: flex-end; -webkit-font-smoothing: antialiased;
  --h1c-anel: #2b2b2b; --h1c-botao: #3c6b97; --h1c-anel-rgb: 43, 43, 43; --h1c-botao-rgb: 60, 107, 151; --h1c-fundo-rgb: 255, 255, 255;
  --h1c-mola: cubic-bezier(.34, 1.2, .64, 1); --h1c-suave: cubic-bezier(.2, .8, .2, 1); }
.h1c-raiz *, .h1c-raiz *::before, .h1c-raiz *::after { box-sizing: border-box; }

/* lançador: o olho do hallo1 com o anel na tinta da página; some com escala ao abrir */
.h1c-lancador { position: absolute; right: 0; bottom: 0; width: 60px; height: 60px; border: 0; border-radius: 50%; padding: 0; background: var(--h1c-anel); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 12px 28px -10px rgba(var(--h1c-anel-rgb), .6), 0 0 0 6px rgba(var(--h1c-anel-rgb), .08); transition: transform .3s var(--h1c-mola), box-shadow .3s ease, opacity .2s ease, visibility 0s linear 0s; }
.h1c-lancador:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 2px 4px rgba(0,0,0,.14), 0 18px 34px -10px rgba(var(--h1c-anel-rgb), .65), 0 0 0 8px rgba(var(--h1c-anel-rgb), .1); }
.h1c-lancador:active { transform: scale(.94); }
.h1c-aberto .h1c-lancador { opacity: 0; transform: scale(.5); visibility: hidden; pointer-events: none; transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s; }
.h1c-lancador .h1c-olho { width: 48px; height: 48px; display: block; }

/* saudação: balão de vidro ao lado do olho */
.h1c-saudacao { position: absolute; right: 70px; bottom: 8px; width: max-content; max-width: min(268px, calc(100vw - 110px)); display: flex; align-items: flex-start; background: rgba(var(--h1c-fundo-rgb), .9); border: 1px solid rgba(var(--h1c-anel-rgb), .1); border-radius: 18px 18px 6px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 16px 40px -14px rgba(var(--h1c-anel-rgb), .45); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); transform-origin: 100% 100%; }
.h1c-saud-texto { flex: 1; border: 0; background: none; text-align: left; font: inherit; font-size: 14px; line-height: 1.4; color: inherit; padding: 11px 4px 11px 14px; cursor: pointer; }
.h1c-saud-x { flex: none; width: 30px; height: 30px; margin: 5px 5px 0 0; border: 0; border-radius: 50%; background: none; color: inherit; opacity: .55; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: opacity .18s ease, background .18s ease; }
.h1c-saud-x svg { width: 12px; height: 12px; }
.h1c-saud-x:hover { opacity: 1; background: rgba(var(--h1c-anel-rgb), .06); }

/* painel: vidro na cor de fundo da página, altura fixa, conversa ancorada embaixo */
.h1c-painel { display: none; width: 372px; max-width: calc(100vw - 40px); height: min(500px, 78vh); flex-direction: column; background: rgba(var(--h1c-fundo-rgb), .88); border: 1px solid rgba(var(--h1c-anel-rgb), .1); border-radius: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 30px 70px -20px rgba(var(--h1c-anel-rgb), .45); overflow: hidden; transform-origin: 100% 100%; -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); }
.h1c-aberto .h1c-painel, .h1c-fechando .h1c-painel { display: flex; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .h1c-painel, .h1c-saudacao { background: var(--fundo, #fff); }
}

.h1c-cab { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; background: linear-gradient(120deg, rgba(var(--h1c-anel-rgb), 1), rgba(var(--h1c-anel-rgb), .88)); color: #fff; }
.h1c-marca { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.h1c-marca .h1c-olho { width: 26px; height: 26px; flex: none; filter: drop-shadow(0 0 6px rgba(43, 212, 111, .35)); }
.h1c-titulo { font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h1c-fechar { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .18s ease, transform .18s ease; }
.h1c-fechar svg { width: 16px; height: 16px; }
.h1c-fechar:hover { background: rgba(255,255,255,.14); }
.h1c-fechar:active { transform: scale(.92); }

.h1c-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(var(--h1c-anel-rgb), .18) transparent; }
.h1c-msgs > :first-child { margin-top: auto; }
.h1c-msgs::-webkit-scrollbar { width: 6px; }
.h1c-msgs::-webkit-scrollbar-track { background: transparent; }
.h1c-msgs::-webkit-scrollbar-thumb { background: rgba(var(--h1c-anel-rgb), .18); border-radius: 3px; }
.h1c-msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; overflow-wrap: anywhere; white-space: pre-line; }
.h1c-robo { align-self: flex-start; background: rgba(var(--h1c-anel-rgb), .06); box-shadow: inset 0 0 0 1px rgba(var(--h1c-anel-rgb), .05); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.h1c-eu { align-self: flex-end; background-color: var(--h1c-botao); background-image: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0)); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 8px 18px -10px rgba(var(--h1c-botao-rgb), .7); transform-origin: 100% 100%; }
.h1c-digitando { align-self: flex-start; display: flex; gap: 5px; align-items: center; height: 40px; padding: 0 16px; border-radius: 18px 18px 18px 6px; background: rgba(var(--h1c-anel-rgb), .06); transform-origin: 0 100%; }
.h1c-digitando i { display: block; width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--h1c-anel-rgb), .45); }

/* respostas da pessoa: fichas à direita, do lado dela */
.h1c-opcoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-self: stretch; padding: 4px 0 2px 24px; }
.h1c-opcao { border: 1px solid rgba(var(--h1c-botao-rgb), .5); background: rgba(var(--h1c-fundo-rgb), .55); color: var(--h1c-botao); font: inherit; font-weight: 500; padding: 9px 16px; border-radius: 999px; cursor: pointer; text-align: center; transition: transform .18s var(--h1c-suave), background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.h1c-opcao:hover { background: rgba(var(--h1c-botao-rgb), .1); border-color: rgba(var(--h1c-botao-rgb), .9); transform: translateY(-1px); box-shadow: 0 8px 16px -10px rgba(var(--h1c-botao-rgb), .6); }
.h1c-opcao:active { transform: scale(.96); }

.h1c-form { display: flex; flex-direction: column; gap: 8px; align-self: stretch; padding-left: 24px; }
.h1c-linha { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 16px; border-radius: 999px; background: rgba(var(--h1c-fundo-rgb), .9); border: 1px solid rgba(var(--h1c-anel-rgb), .14); transition: border-color .18s ease, box-shadow .18s ease; }
.h1c-linha:focus-within { border-color: rgba(var(--h1c-botao-rgb), .75); box-shadow: 0 0 0 4px rgba(var(--h1c-botao-rgb), .14); }
.h1c-campo { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; padding: 8px 0; color: inherit; outline: 0; }
.h1c-campo::placeholder { color: rgba(var(--h1c-anel-rgb), .4); }
.h1c-enviar { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--h1c-botao); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: transform .18s var(--h1c-suave), filter .18s ease; }
.h1c-enviar svg { width: 18px; height: 18px; }
.h1c-enviar:hover { filter: brightness(1.08); transform: scale(1.05); }
.h1c-enviar:active { transform: scale(.94); }
.h1c-enviar:disabled, .h1c-campo:disabled { opacity: .55; cursor: default; }
.h1c-erro { color: #b3261e; font-size: 13px; padding-left: 16px; }
.h1c-erro:empty { display: none; }
.h1c-link { border: 1px solid rgba(var(--h1c-anel-rgb), .12); background: none; font: inherit; font-size: 13px; color: rgba(var(--h1c-anel-rgb), .72); padding: 6px 12px; border-radius: 999px; cursor: pointer; align-self: flex-end; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.h1c-link:hover { color: var(--h1c-anel); border-color: rgba(var(--h1c-anel-rgb), .3); background: rgba(var(--h1c-anel-rgb), .04); }

.h1c-fim { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; align-self: stretch; padding-left: 24px; }
.h1c-wa { display: flex; align-items: center; justify-content: center; gap: 8px; align-self: stretch; padding: 13px 18px; border: 0; border-radius: 999px; background-color: var(--h1c-botao); background-image: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,0)); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 12px 26px -12px rgba(var(--h1c-botao-rgb), .8); transition: transform .2s var(--h1c-suave), box-shadow .2s ease; }
.h1c-wa svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--h1c-suave); }
.h1c-wa:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(var(--h1c-botao-rgb), .85); }
.h1c-wa:hover svg { transform: translateX(3px); }
.h1c-wa:active { transform: scale(.98); }
.h1c-aviso { margin: 0; font-size: 13px; color: rgba(var(--h1c-anel-rgb), .75); text-align: right; }
.h1c-aviso:empty { display: none; }
/* A464.7.2: passo do assunto — botões e, embaixo, o aviso de que a resposta não fica no site */
.h1c-demanda { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; align-self: stretch; }
.h1c-politica { display: block; max-width: 30ch; text-decoration: underline; text-underline-offset: 2px; }
.h1c-rodape { flex: none; padding: 4px 16px 12px; font-size: 11.5px; letter-spacing: .01em; text-align: center; color: rgba(var(--h1c-anel-rgb), .55); }

.h1c-lancador:focus-visible, .h1c-opcao:focus-visible, .h1c-enviar:focus-visible, .h1c-wa:focus-visible, .h1c-link:focus-visible, .h1c-saud-texto:focus-visible, .h1c-saud-x:focus-visible { outline: 2px solid var(--h1c-botao); outline-offset: 2px; }
.h1c-fechar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 479px) {
  .h1c-raiz { right: 0; left: 0; bottom: 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .h1c-lancador { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .h1c-saudacao { right: 86px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .h1c-aberto.h1c-raiz, .h1c-fechando.h1c-raiz { padding: 0; align-items: stretch; }
  .h1c-aberto .h1c-painel, .h1c-fechando .h1c-painel { width: 100%; max-width: 100%; height: min(80vh, 640px); border-radius: 24px 24px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); transform-origin: 50% 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .h1c-aberto .h1c-painel { animation: h1c-abre .34s var(--h1c-mola) both; }
  .h1c-fechando .h1c-painel { animation: h1c-fecha .2s ease-in both; }
  @keyframes h1c-abre { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
  @keyframes h1c-fecha { to { opacity: 0; transform: translateY(10px) scale(.96); } }
  .h1c-saudacao { animation: h1c-abre .4s var(--h1c-mola) both; }
  .h1c-msg, .h1c-digitando, .h1c-opcao, .h1c-form, .h1c-fim, .h1c-politica { animation: h1c-entra .3s var(--h1c-suave) both; }
  @keyframes h1c-entra { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
  .h1c-digitando i { animation: h1c-pontos 1.1s ease-in-out infinite; }
  .h1c-digitando i:nth-child(2) { animation-delay: .14s; }
  .h1c-digitando i:nth-child(3) { animation-delay: .28s; }
  @keyframes h1c-pontos { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
  /* o olho acende: 2 vezes quando chama; sem parar enquanto o robô digita */
  .h1c-chamando .h1c-lancador .h1c-iris { animation: h1c-acende 1.6s ease-in-out 2; transform-origin: 24px 24px; }
  .h1c-chamando .h1c-lancador { animation: h1c-onda 1.6s ease-out 2; }
  .h1c-digitando-olho .h1c-cab .h1c-iris { animation: h1c-acende 1.1s ease-in-out infinite; transform-origin: 24px 24px; }
  @keyframes h1c-acende { 50% { filter: brightness(1.35); transform: scale(1.06); } }
  @keyframes h1c-onda { from { box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 12px 28px -10px rgba(var(--h1c-anel-rgb), .6), 0 0 0 0 rgba(var(--h1c-anel-rgb), .35); } to { box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 12px 28px -10px rgba(var(--h1c-anel-rgb), .6), 0 0 0 22px rgba(var(--h1c-anel-rgb), 0); } }
  @media (max-width: 479px) {
    .h1c-aberto .h1c-painel { animation-name: h1c-sobe; }
    @keyframes h1c-sobe { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}
