/* Chat do site da Especitá. Paleta do cartão de Natal (marfim, dourado, marrom escuro) e tipografia limpa (Inter). */
.sc-root { --sc-cor: #9A6B2B; --sc-cor2: #C39350; --sc-escuro: #3b2a1a; --sc-texto: #3b2a1a; --sc-suave: #8a7760; --sc-fundo: #FBF3E3; --sc-linha: #ecdcbc; --sc-online: #22c55e;
  --sc-ouro: linear-gradient(135deg, #C9A05B 0%, #9A6B2B 100%);
  font: 400 15px/1.5 "Inter Variable", "Inter", "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.005em; color: var(--sc-texto); }
.sc-root *, .sc-root *::before, .sc-root *::after { box-sizing: border-box; }
.sc-root [hidden] { display: none !important; }
.sc-root :where(button, input, textarea) { font: inherit; color: inherit; }

/* Botão redondo com foto + bolinha "online" piscando */
.sc-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 2147483000; width: 64px; height: 64px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--sc-ouro); color: #fff; cursor: pointer; box-shadow: 0 8px 26px rgba(120, 80, 30, .35); transition: transform .25s; }
.sc-launcher:hover { transform: scale(1.05); }
.sc-launcher img, .sc-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%; display: block; }
.sc-inicial { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 700; font-size: 22px; }
.sc-online { position: absolute; right: -1px; bottom: -1px; width: 16px; height: 16px; border-radius: 50%; background: var(--sc-online); border: 2.5px solid #fff; }
.sc-online::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--sc-online); animation: sc-pulso 1.8s ease-out infinite; }
@keyframes sc-pulso { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.sc-badge { position: absolute; top: -6px; left: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }

/* Balãozinho de convite */
.sc-convite { position: fixed; right: 96px; bottom: 26px; z-index: 2147483000; width: 270px; cursor: pointer; font-size: 14.5px; font-weight: 500; line-height: 1.4; color: #3b2a1a; }
.sc-convite-msgs { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sc-bolha { background: #fff; border-radius: 16px 16px 4px 16px; padding: 11px 14px; box-shadow: 0 8px 24px rgba(120, 80, 30, .2); animation: sc-entra .45s cubic-bezier(.2, .8, .2, 1); max-width: 100%; }
.sc-bolha .sc-pontos { margin-top: 0; height: 16px; }
.sc-bolha-texto b { font-weight: 700; }
.sc-convite-x { position: absolute; top: -10px; left: -10px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); font-size: 15px; line-height: 1; color: var(--sc-suave); cursor: pointer; z-index: 1; }
@keyframes sc-entra { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* Janela */
.sc-janela { position: fixed; right: 20px; bottom: 96px; z-index: 2147483000; width: min(390px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 120px)); background: linear-gradient(180deg, #FFFBF3 0%, #F9ECD2 100%); border-radius: 22px; box-shadow: 0 24px 70px -12px rgba(90, 55, 15, .4); display: flex; flex-direction: column; overflow: hidden; animation: sc-entra .35s cubic-bezier(.2, .8, .2, 1); }
.sc-janela header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sc-ouro); color: #fff; }
.sc-av { position: relative; width: 40px; height: 40px; flex: none; }
.sc-av .sc-online { width: 12px; height: 12px; border-width: 2px; border-color: #B58340; }
.sc-quem { flex: 1; min-width: 0; line-height: 1.2; }
.sc-quem strong { display: block; font-weight: 650; letter-spacing: -0.01em; }
.sc-quem small { font-size: 12px; opacity: .9; }
.sc-voltar, .sc-fechar { border: 0; background: rgba(255, 255, 255, .2); color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; }
.sc-fechar { font-size: 22px; }
.sc-voltar:hover, .sc-fechar:hover { background: rgba(255, 255, 255, .32); }
.sc-progresso { height: 3px; background: var(--sc-linha); }
.sc-progresso i { display: block; height: 100%; width: 0; background: var(--sc-ouro); transition: width .5s cubic-bezier(.2, .8, .2, 1); }

/* Guia (um passo por vez) */
.sc-guia { flex: 1; overflow-y: auto; padding: 24px 20px 20px; }
.sc-passo { animation: sc-sobe .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes sc-sobe { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sc-fala { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.sc-fav { flex: none; width: 28px; margin-top: 3px; }
.sc-fav img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: center 20%; display: block; }
.sc-fala-t { font-size: 21px; line-height: 1.25; font-weight: 400; letter-spacing: -0.02em; color: var(--sc-escuro); min-width: 40px; }
.sc-fala-t b { font-weight: 700; }
.sc-controles { padding-left: 38px; animation: sc-sobe .45s cubic-bezier(.2, .8, .2, 1); }
.sc-pontos, .sc-digitando b { display: inline-flex; gap: 4px; align-items: center; height: 14px; margin-top: 7px; }
.sc-pontos i, .sc-digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-cor); opacity: .35; animation: sc-ponto 1.1s infinite; }
.sc-pontos i:nth-child(2), .sc-digitando i:nth-child(2) { animation-delay: .15s; }
.sc-pontos i:nth-child(3), .sc-digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes sc-ponto { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }

.sc-linha { display: flex; gap: 8px; align-items: center; }
.sc-linha input { flex: 1; min-width: 0; border: 0; border-bottom: 2px solid var(--sc-cor2); background: transparent; padding: 8px 2px; font-size: 19px; font-weight: 500; outline: none; }
.sc-linha input::placeholder { color: #c4b49a; font-weight: 400; }
.sc-linha button, .sc-primario { border: 0; background: var(--sc-ouro); color: #fff; border-radius: 12px; padding: 12px 16px; font-weight: 650; cursor: pointer; white-space: nowrap; transition: filter .2s, transform .15s; }
.sc-linha button:hover, .sc-primario:hover { filter: brightness(.92); }
.sc-linha button:disabled { opacity: .6; cursor: default; }
.sc-dica { margin: 10px 0 0; font-size: 12.5px; color: var(--sc-suave); }
.sc-erro { margin: 8px 0 0; color: #b91c1c; font-size: 13px; min-height: 1em; }
.sc-vazio { margin: 0 0 12px; color: var(--sc-suave); }

/* Opções em formato de lista de marcar (círculo com a letra) */
.sc-lista { display: flex; flex-direction: column; gap: 7px; }
.sc-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; text-decoration: none; padding: 11px 13px; border: 1.5px solid var(--sc-linha); border-radius: 14px; background: rgba(255, 255, 255, .75); cursor: pointer; transition: border-color .2s, background .2s; color: var(--sc-texto); font-weight: 500; }
.sc-opt:hover { border-color: var(--sc-cor2); background: #fff; }
.sc-opt kbd { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--sc-cor2); border-radius: 50%; font: 600 11px "Inter Variable", Arial, sans-serif; color: var(--sc-cor); background: transparent; transition: background .2s, color .2s; }
.sc-opt.sc-sel { border-color: var(--sc-cor); background: var(--sc-ouro); color: #fff; }
.sc-opt.sc-sel kbd { background: #fff; border-color: #fff; color: var(--sc-cor); }

/* Dias e horários */
.sc-dias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sc-horas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-tile { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px; border: 1.5px solid var(--sc-linha); border-radius: 14px; background: rgba(255, 255, 255, .75); cursor: pointer; transition: border-color .2s, background .2s; }
.sc-tile small { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--sc-suave); }
.sc-tile b { font-size: 22px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; color: var(--sc-escuro); }
.sc-tile-h { flex-direction: row; justify-content: center; padding: 13px 4px; font-weight: 650; font-size: 16px; color: var(--sc-escuro); }
.sc-tile:hover { border-color: var(--sc-cor2); background: #fff; }
.sc-tile.sc-sel { background: var(--sc-ouro); border-color: var(--sc-cor); }
.sc-tile.sc-sel small, .sc-tile.sc-sel b, .sc-tile-h.sc-sel { color: #fff; }

/* Tela final */
.sc-final { text-align: center; padding-top: 14px; }
.sc-check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--sc-ouro); color: #fff; animation: sc-pop .55s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes sc-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.sc-final h3 { margin: 16px 0 14px; font: 700 26px/1.15 "Inter Variable", Arial, sans-serif; letter-spacing: -0.03em; color: var(--sc-escuro); }
.sc-resumo { display: inline-flex; flex-direction: column; gap: 2px; padding: 11px 20px; margin-bottom: 14px; background: rgba(255, 255, 255, .8); border: 1.5px solid var(--sc-linha); border-radius: 14px; }
.sc-resumo span { color: var(--sc-suave); font-size: 13px; }
.sc-resumo b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--sc-escuro); }
.sc-final p { margin: 0 0 18px; color: var(--sc-suave); font-size: 14px; }
.sc-primario { display: block; width: 100%; padding: 14px; }
.sc-sec { display: inline-block; margin-top: 14px; color: var(--sc-cor); font-size: 14px; font-weight: 500; }

/* Conversa */
.sc-conversa { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sc-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sc-msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; word-wrap: break-word; animation: sc-sobe .3s ease; }
.sc-eles { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; box-shadow: 0 1px 0 var(--sc-linha); }
.sc-eu { align-self: flex-end; background: var(--sc-ouro); color: #fff; border-bottom-right-radius: 5px; }
.sc-aviso { align-self: center; font-size: 12px; color: #b91c1c; }
.sc-digitando { display: flex; gap: 8px; align-items: flex-end; align-self: flex-start; }
.sc-digitando span img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: center 20%; display: block; }
.sc-digitando b { background: #fff; border-radius: 18px 18px 18px 5px; padding: 12px 14px; height: auto; margin: 0; box-shadow: 0 1px 0 var(--sc-linha); }
.sc-opcoes { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; }
.sc-opcoes:not(:empty) { padding-bottom: 10px; }
.sc-opcoes button { border: 1.5px solid var(--sc-cor2); background: #fff; color: var(--sc-cor); font-weight: 600; border-radius: 18px; padding: 7px 14px; cursor: pointer; }
.sc-opcoes button:hover { background: var(--sc-ouro); color: #fff; }
.sc-atalhos { display: flex; gap: 8px; padding: 6px 12px 8px; }
.sc-atalhos button, .sc-atalhos a { border: 1px solid var(--sc-linha); background: rgba(255, 255, 255, .8); border-radius: 16px; padding: 5px 12px; font-size: 13px; font-weight: 500; color: var(--sc-cor); text-decoration: none; cursor: pointer; }
.sc-atalhos button:hover, .sc-atalhos a:hover { border-color: var(--sc-cor2); }
.sc-enviar { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--sc-linha); background: rgba(255, 255, 255, .7); }
.sc-enviar textarea { flex: 1; resize: none; max-height: 96px; border: 1px solid var(--sc-linha); border-radius: 12px; padding: 10px 12px; background: #fff; outline: none; }
.sc-enviar textarea:focus { border-color: var(--sc-cor2); }
.sc-enviar button { width: 44px; border: 0; border-radius: 12px; background: var(--sc-ouro); color: #fff; font-size: 18px; cursor: pointer; }

/* Com a barra de WhatsApp do celular visível, o chat sobe */
body.tem-barra-wa .sc-launcher { bottom: 84px; }
body.tem-barra-wa .sc-convite { bottom: 94px; }
body.tem-barra-wa .sc-janela { bottom: 160px; height: min(640px, calc(100dvh - 184px)); }

@media (max-width: 480px) {
  .sc-janela { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100dvh - 16px); border-radius: 20px; }
  body.tem-barra-wa .sc-janela { bottom: 8px; height: calc(100dvh - 16px); }
  .sc-convite { right: 90px; max-width: calc(100vw - 120px); }
  .sc-fala-t { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .sc-root * { animation: none !important; transition: none !important; } }

/* Página de urgência: respostas do visitante no fluxo fora do horário e textos longos do fluxo */
.sc-resp { width: fit-content; max-width: 86%; margin: 0 0 18px auto; padding: 9px 14px; background: var(--sc-ouro); color: #fff; border-radius: 16px 16px 4px 16px; font-size: 15px; font-weight: 500; line-height: 1.3; animation: sc-sobe .35s cubic-bezier(.2, .8, .2, 1); }
.sc-fala-t.sc-longa { font-size: 16px; line-height: 1.5; letter-spacing: -0.005em; font-weight: 400; }
.sc-online[hidden] { display: none; }

a.sc-primario { text-align: center; text-decoration: none; box-sizing: border-box; }
.sc-dica a { color: inherit; text-decoration: underline; }
