/* Atendimento: botão flutuante (chat do site + WhatsApp do SAC) e ícones das redes sociais. */
.atd-botao { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 20px 0 16px;
  border: 0; border-radius: 999px; background: var(--amarelo, #f5c400); color: #111; font: 700 15px/1 Inter, system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .15s; }
.atd-botao:hover { transform: translateY(-2px); }
.atd-botao svg { width: 26px; height: 26px; }
.atd-botao .atd-ponto { position: absolute; top: 4px; right: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e5484d; color: #fff;
  font-size: 12px; display: grid; place-items: center; border: 2px solid #fff; }
.atd-caixa { position: fixed; right: 18px; bottom: 88px; z-index: 55; width: min(370px, calc(100vw - 24px)); max-height: min(600px, calc(100vh - 110px));
  display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.3); font-family: Inter, system-ui, sans-serif; color: #1d1d1d; }
.atd-topo { background: var(--preto, #0e0e0e); color: #fff; padding: 16px 18px; display: flex; align-items: flex-start; gap: 10px; }
.atd-topo b { display: block; font-size: 16px; }
.atd-topo small { color: #bbb; font-size: 12.5px; }
.atd-topo button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; padding: 2px 4px; }
.atd-topo .atd-voltar { margin-left: 0; font-size: 22px; }
.atd-corpo { padding: 16px; overflow-y: auto; flex: 1; }
.atd-opcao { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; margin-bottom: 10px; border: 1px solid var(--borda, #e3e3df); border-radius: 12px;
  background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.atd-opcao:hover { border-color: #bbb; background: #fafaf8; }
.atd-opcao svg { width: 34px; height: 34px; flex: none; }
.atd-opcao b { display: block; font-size: 15px; }
.atd-opcao small { color: var(--texto-2, #5c5c58); font-size: 13px; }
.atd-opcao.zap svg { color: #25d366; }
.atd-redes { display: flex; gap: 10px; justify-content: center; padding: 12px 16px 16px; border-top: 1px solid var(--borda, #e3e3df); }
.atd-redes a, .redes-rodape a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #f0f0ec; color: #222; }
.atd-redes a:hover { background: #e4e4de; }
.atd-redes svg, .redes-rodape svg { width: 20px; height: 20px; }
.redes-rodape { display: flex; gap: 10px; margin-top: 14px; }
.redes-rodape a { background: rgba(255,255,255,.1); color: #fff; }
.redes-rodape a:hover { background: rgba(255,255,255,.2); }
.atd-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.atd-form input, .atd-form textarea, .atd-escrever textarea { width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--borda, #e3e3df);
  border-radius: 10px; font: 400 14px/1.4 Inter, system-ui, sans-serif; resize: none; }
.atd-enviar { width: 100%; height: 46px; border: 0; border-radius: 10px; background: var(--preto, #0e0e0e); color: #fff; font: 700 15px Inter, system-ui, sans-serif; cursor: pointer; }
.atd-enviar:disabled { opacity: .5; }
.atd-erro { color: #c62828; font-size: 13px; margin: 0 0 10px; }
.atd-msgs { display: flex; flex-direction: column; gap: 8px; }
.atd-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; }
.atd-msg small { display: block; font-size: 11px; opacity: .6; margin-top: 3px; }
.atd-msg.cliente { align-self: flex-end; background: var(--amarelo, #f5c400); border-bottom-right-radius: 4px; }
.atd-msg.loja { align-self: flex-start; background: #f0f0ec; border-bottom-left-radius: 4px; }
.atd-msg.sistema { align-self: center; background: none; color: var(--texto-2, #5c5c58); font-size: 12.5px; text-align: center; max-width: 95%; }
.atd-escrever { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--borda, #e3e3df); align-items: flex-end; }
.atd-escrever textarea { margin: 0; min-height: 42px; max-height: 120px; }
.atd-escrever button { flex: none; width: 46px; height: 42px; border: 0; border-radius: 10px; background: var(--preto, #0e0e0e); color: #fff; font-size: 18px; cursor: pointer; }
.atd-rodape-chat { font-size: 12px; color: var(--texto-2, #5c5c58); text-align: center; padding: 0 12px 10px; }
.atd-rodape-chat a { color: #128c4b; font-weight: 600; }
body.previa .atd-botao, body.previa .atd-caixa { display: none; }
/* categorias: no cabeçalho cada uma é um menu (os itens entram no espaçamento do menu); no corpo, um bloco por categoria */
#menu-categorias { display: contents; }
.bloco-categoria + .bloco-categoria { margin-top: 44px; }
.bloco-categoria-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--borda, #e3e3df); }
.bloco-categoria-cab h3 { margin: 0; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; padding-left: 12px; border-left: 4px solid var(--laranja, #ff6a13); line-height: 1.1; }
.escuro .bloco-categoria-cab { border-color: rgba(255,255,255,.15); }
/* aviso de cookies (só quando a loja usa Pixel/Google): canto esquerdo, longe do botão de atendimento */
.aviso-cookies { position: fixed; left: 18px; bottom: 18px; z-index: 52; max-width: 420px; background: #fff; color: #1d1d1d; border-radius: 12px;
  padding: 14px 16px; box-shadow: 0 10px 34px rgba(0,0,0,.25); font: 400 13.5px/1.45 Inter, system-ui, sans-serif; display: flex; gap: 12px; align-items: center; }
.aviso-cookies p { margin: 0; }
.aviso-cookies a { color: inherit; font-weight: 600; }
.aviso-cookies div { display: flex; gap: 6px; flex: none; }
.aviso-cookies button { border: 1px solid var(--borda, #e3e3df); background: #fff; border-radius: 8px; padding: 8px 12px; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }
.aviso-cookies button[data-cookies="sim"] { background: var(--preto, #0e0e0e); color: #fff; border-color: var(--preto, #0e0e0e); }
@media (max-width: 600px) { .aviso-cookies { left: 12px; right: 78px; bottom: 12px; flex-direction: column; align-items: stretch; } .aviso-cookies div button { flex: 1; } }
@media (max-width: 600px) {
  .atd-botao { right: 12px; bottom: 12px; height: 54px; padding: 0 15px; }
  .atd-botao span.atd-rotulo { display: none; }
  .atd-caixa { right: 12px; bottom: 76px; }
}
