/**
 * estilo.css — a tela que o cliente do restaurante vê.
 *
 * Princípios:
 *  • Cara de aplicativo, não de site: barra de vidro ao rolar, capa com foto,
 *    cartões com foto grande, sublinhado que desliza nas categorias e
 *    microinterações curtas. Tudo em CSS — nada de framework, porque o cliente
 *    abre isto no 4G da calçada e cada 100 KB custa pedido.
 *  • Funciona SEM FOTO. O restaurante começa com 10 fotos, não 130 — sem
 *    imagem, o produto ganha um quadrado com o emoji da categoria.
 *  • O primeiro quadro já tem a forma do cardápio (esqueleto), então nada
 *    "pula" quando o conteúdo chega.
 *  • Alvos de toque de 44px: é um celular, na mão, muitas vezes em pé.
 *  • A cor principal vem do restaurante (`corPrimaria`), aplicada pelo
 *    app.js em --cor/--cor-escura/--cor-suave. Sem ela, fica esta.
 */

:root {
  --cor: #E8412C;
  --cor-escura: #B52C1B;
  --cor-suave: #FDECE9;
  --verde: #12A150;
  --verde-suave: #E6F6EC;
  /* Neutros com um respingo da cor da comida — cinza puro parece software. */
  --tinta: #121113;
  --tinta-2: #6B6560;
  /* 4,93:1 no branco e 4,52:1 no fundo — WCAG AA para texto pequeno.
     Era #9C948E (2,98:1): ilegivel em 12px num celular, a noite, dentro
     do restaurante. Mesmo matiz, so mais escuro. */
  --tinta-3: #776F69;
  --fundo: #F6F5F3;
  /* Um respiro da cor da marca no fundo: é o que dá o ar de aplicativo, em
     vez de página branca. Navegador sem color-mix fica com o tom acima. */
  --fundo-tom: color-mix(in srgb, var(--cor) 3%, #F6F5F3);
  --superficie: #FFFFFF;
  --superficie-2: #FBFAF9;
  --linha: rgba(18, 17, 19, .07);
  --linha-2: rgba(18, 17, 19, .14);
  --vidro: rgba(255, 255, 255, .72);
  --erro: #B3261E;
  --alerta: #8A5200;
  --raio: 18px;
  --raio-g: 22px;
  /* Sombra em camadas: a de perto define a borda, a de longe dá o relevo. */
  --sombra: 0 1px 2px rgba(18, 17, 19, .04), 0 6px 16px -6px rgba(18, 17, 19, .10);
  --sombra-alta: 0 2px 4px rgba(18, 17, 19, .06), 0 18px 36px -12px rgba(18, 17, 19, .22);
  --topo: 58px;
  --mola: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

/* ESCURO por dois caminhos: o do sistema (a menos que o cliente tenha
   pedido claro) e o forcado pelo cliente. Os dois blocos de variaveis
   sao IGUAIS de proposito — mexeu num, mexa no outro. CSS puro nao
   deixa compartilhar sem pre-processador. */
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --cor-suave: #3A1F1A;
    --verde: #34D07F;
    --verde-suave: #10291C;
    --tinta: #FAFAFA;
    --tinta-2: #9CA3AF;
    /* 4,53:1 na superficie escura. Era #71717A (3,67:1). */
    --tinta-3: #808089;
    --fundo: #0B0B0D;
    --fundo-tom: color-mix(in srgb, var(--cor) 6%, #0B0B0D);
    --superficie: #18181B;
    --superficie-2: #1C1C20;
    --linha: #27272A;
    --linha-2: #3F3F46;
    --vidro: rgba(16, 16, 18, .72);
    --erro: #F2B8B5;
    --alerta: #F5C26B;
    --sombra: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 24px -10px rgba(0, 0, 0, .6);
    --sombra-alta: 0 2px 6px rgba(0, 0, 0, .6), 0 24px 48px -16px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-tema="escuro"] {
--cor-suave: #3A1F1A;
  --verde: #34D07F;
  --verde-suave: #10291C;
  --tinta: #FAFAFA;
  --tinta-2: #9CA3AF;
  /* 4,53:1 na superficie escura. Era #71717A (3,67:1). */
  --tinta-3: #808089;
  --fundo: #0B0B0D;
  --fundo-tom: color-mix(in srgb, var(--cor) 6%, #0B0B0D);
  --superficie: #18181B;
  --superficie-2: #1C1C20;
  --linha: #27272A;
  --linha-2: #3F3F46;
  --vidro: rgba(16, 16, 18, .72);
  --erro: #F2B8B5;
  --alerta: #F5C26B;
  --sombra: 0 1px 2px rgba(0, 0, 0, .5), 0 10px 24px -10px rgba(0, 0, 0, .6);
  --sombra-alta: 0 2px 6px rgba(0, 0, 0, .6), 0 24px 48px -16px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* O navegador aplica `display: none` em [hidden] pelo stylesheet dele, que
   tem especificidade MENOR que qualquer classe nossa. Qualquer regra como
   `.faixa-repetir { display: flex }` vencia esse none e o elemento aparecia
   mesmo escondido — foi assim que a faixa "Pedir de novo?" ficou visível e
   vazia, com o X parecendo não funcionar (ele escondia, o CSS reexibia). */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--fundo);
  background: var(--fundo-tom);
  color: var(--tinta);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--cor); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.coluna { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ── barra do topo ─────────────────────────────────────────────────── */
/* Sobre a capa ela é transparente; ao rolar vira vidro fosco. O
   `backdrop-filter` é o efeito; a cor com alpha é o que segura a leitura
   quando o navegador não suporta o filtro. */
.topo {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--vidro);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  transition: box-shadow .25s ease;
}
.topo.solido { box-shadow: 0 1px 0 var(--linha), 0 8px 24px -18px rgba(0, 0, 0, .5); }
.topo-conteudo {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  height: var(--topo);
  padding: 0 12px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topo-nome {
  flex: 1;
  min-width: 0;
  font-weight: 750;
  font-size: 16.5px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--tinta);
}

.btn-sacola {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--cor);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 18px -10px var(--cor);
  position: relative;
  transition: transform .18s var(--mola), box-shadow .18s ease;
}
.btn-sacola:active { transform: scale(.96); }
.ico-sacola { width: 21px; height: 21px; }
.sacola-qtd {
  position: absolute;
  top: -5px;
  left: 24px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cor);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--superficie);
}
.sacola-total { font-variant-numeric: tabular-nums; }
.btn-sacola.vazia {
  background: var(--superficie);
  color: var(--tinta-2);
  font-weight: 650;
  box-shadow: inset 0 0 0 1px var(--linha-2);
}
.btn-sacola.vazia .sacola-qtd { display: none; }
.btn-sacola.pulo { animation: pulo .5s var(--mola); }
@keyframes pulo {
  30% { transform: scale(1.14); }
  60% { transform: scale(.97); }
}

/* ── saudação ──────────────────────────────────────────────────────── */
.saudacao {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 14px;
}
.marca {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--cor), var(--cor-escura));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 8px 18px -10px var(--cor);
  background-size: cover;
  background-position: center;
}
.saudacao-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.saudacao-texto strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.saudacao-texto span { font-size: 13.5px; color: var(--tinta-2); }
.chip-local {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 44%;
  padding: 8px 12px;
  border: 1px solid var(--linha);
  border-radius: 999px;
  background: var(--superficie);
  color: var(--tinta-2);
  font-size: 13px;
  font-weight: 650;
  box-shadow: var(--sombra);
}
.chip-local span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-icone { flex: none; }

.esqueleto-texto {
  display: inline-block;
  width: 62%;
  border-radius: 10px;
  background: var(--linha-2);
  animation: piscar 1.4s ease-in-out infinite;
}
@keyframes piscar { 50% { opacity: .5; } }

/* ── banner ────────────────────────────────────────────────────────── */
/* A foto do restaurante num cartão arredondado, com véu escuro em diagonal:
   o texto lê sobre qualquer imagem e a comida continua aparecendo. */
.banner {
  position: relative;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--raio-g);
  overflow: hidden;
  box-shadow: var(--sombra-alta);
  isolation: isolate;
}
.banner-foto {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(150deg, var(--cor), var(--cor-escura));
  background-size: cover;
  background-position: center 45%;
  animation: aproximar 1.1s var(--mola) both;
}
@keyframes aproximar { from { transform: scale(1.1); opacity: .4; } }
.banner-veu {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(10, 8, 8, .88) 0%, rgba(10, 8, 8, .66) 42%, rgba(10, 8, 8, .12) 78%),
    linear-gradient(0deg, rgba(10, 8, 8, .45), transparent 55%);
}
.banner-frente { padding: 18px; max-width: 74%; }
.banner-selo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.banner-selo .ponto { color: #4ADE80; }
.banner-selo.fechado .ponto { color: #FCA5A5; }
.banner-selo.fechado .ponto::after { animation: none; }
.banner h1 {
  margin-top: 12px;
  font-size: clamp(24px, 6.6vw, 30px);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
.banner-sub {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}
.btn-pilula {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #121113;
  font-weight: 750;
  font-size: 14.5px;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .8);
  transition: transform .18s var(--mola);
}
.btn-pilula:active { transform: scale(.96); }

/* ponto que pulsa (status) */
.ponto {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.ponto::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: pulsar 1.8s ease-out infinite;
}
@keyframes pulsar {
  0% { transform: scale(1); opacity: .6; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

/* ── painel de entrega ─────────────────────────────────────────────── */
.painel {
  margin: 12px 0 14px;
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 4px 8px 10px;
  text-align: center;
}
.painel-dados { display: flex; }
.dado {
  flex: 1;
  min-width: 0;
  padding: 12px 6px;
  text-align: center;
  border-left: 1px solid var(--linha);
}
.dado:first-child { border-left: 0; }
.dado b {
  display: block;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  /* Quebra em vez de vazar para a célula do lado: "A partir de R$ 5,00"
     (taxa por km) e "R$ 5,00 a R$ 12,00" (por bairro) não cabem numa linha
     de celular. `balance` reparte as linhas por igual. */
  text-wrap: balance;
  line-height: 1.25;
}
.dado span {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--tinta-3);
  margin-bottom: 3px;
}
.link-info {
  border: 0;
  background: none;
  color: var(--cor);
  font-weight: 700;
  font-size: 13.5px;
  padding: 6px 8px 4px;
}

/* ── categorias em círculo ─────────────────────────────────────────── */
.circulos {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px max(16px, calc((100vw - 720px) / 2 + 16px)) 18px;
}
.circulos::-webkit-scrollbar { display: none; }
.circulo {
  flex: none;
  width: 80px;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
}
.bolha {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--superficie);
  border: 1px solid var(--linha);
  box-shadow: var(--sombra);
  display: grid;
  place-items: center;
  font-size: 28px;
  transition: transform .18s var(--mola), border-color .18s ease, box-shadow .18s ease;
}
.circulo:active .bolha { transform: scale(.94); }
.circulo-rotulo {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--tinta-2);
  text-align: center;
  line-height: 1.25;
  /* "Acompanhamentos" e uma palavra so: nao quebra sozinha e vazava por
     cima da categoria vizinha. Corta com reticencias em vez de invadir —
     o nome inteiro continua logo abaixo, na barra de abas. */
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.circulo[aria-current="true"] .bolha {
  border-color: var(--cor);
  box-shadow: 0 0 0 3px var(--cor-suave), var(--sombra);
}
.circulo[aria-current="true"] .circulo-rotulo { color: var(--cor); font-weight: 750; }

/* ── destaques (carrossel) ─────────────────────────────────────────── */
.secao-titulo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.secao-titulo h2 { font-size: 20px; font-weight: 800; }
.secao-nota { font-size: 13px; color: var(--tinta-3); font-weight: 650; }
.destaques { margin-bottom: 8px; }
.carrossel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  /* o cartão não fica colado na borda ao rolar até o fim */
  padding: 2px 16px 14px;
  margin: 0 -16px;
}
.carrossel::-webkit-scrollbar { display: none; }
.cartao-destaque {
  position: relative;
  flex: none;
  width: 208px;
  scroll-snap-align: start;
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  overflow: hidden;
  text-align: left;
  padding: 0;
  transition: transform .18s var(--mola), box-shadow .18s ease;
}
@media (hover: hover) {
  .cartao-destaque:hover { transform: translateY(-3px); box-shadow: var(--sombra-alta); }
}
.cartao-destaque:active { transform: scale(.985); }
.cd-foto {
  position: relative;
  height: 124px;
  background: var(--tile, var(--cor-suave));
  display: grid;
  place-items: center;
  font-size: 46px;
  overflow: hidden;
}
/* Presa na caixa: como item de grade, a foto quadrada esticava para 206px de
   altura e cobria o nome do prato. */
.cd-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cd-corpo { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.cd-nome {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
/* Duas linhas no máximo: com altura fixa, os cards da fileira continuam
   alinhados mesmo quando um prato tem descrição longa e o vizinho não tem. */
.cd-desc {
  font-size: 12px;
  line-height: 1.35;
  color: var(--tinta-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.cd-rodape { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.cd-preco { font-weight: 800; font-size: 15px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cd-add {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--cor);
  color: #fff;
  box-shadow: 0 6px 14px -8px var(--cor);
}
.cd-add svg { width: 18px; height: 18px; }
.cd-selo {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(10, 8, 8, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}

/* ── pedido em andamento ───────────────────────────────────────────── */
.cartao-pedido {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  border-radius: var(--raio);
  padding: 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--cor), var(--cor-escura));
  color: #fff;
  box-shadow: var(--sombra);
}
.cartao-pedido.pronto { background: linear-gradient(135deg, #17A45E, #0B7A43); }
.cartao-pedido.problema { background: linear-gradient(135deg, #6B6560, #4A4541); }
.cp-icone {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  font-size: 24px;
}
.cp-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cp-texto strong { font-size: 16px; }
.cp-texto > span:not(.cp-barra) { font-size: 13.5px; opacity: .92; }
.cp-barra { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: 6px; }
.cp-barra i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.cp-barra i.feito { background: #fff; }
.cp-seta { font-size: 28px; line-height: 1; opacity: .9; }

/* ── ações da mesa ─────────────────────────────────────────────────── */
.acoes-mesa { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.btn-acao {
  min-height: 48px;
  border: 1px solid var(--linha);
  border-radius: 14px;
  background: var(--superficie);
  box-shadow: var(--sombra);
  font-weight: 650;
  font-size: 15px;
  padding: 10px;
  transition: transform .15s var(--mola);
}
.btn-acao:active { transform: scale(.98); }
.btn-acao.feito { background: var(--verde-suave); color: var(--verde); border-color: transparent; }

/* ── repetir ───────────────────────────────────────────────────────── */
.faixa-repetir {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 12px 8px 12px 12px;
  margin-bottom: 12px;
}
.fr-icone {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--cor-suave);
  color: var(--cor);
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 700;
}
.repetir-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.repetir-texto span {
  color: var(--tinta-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-mini {
  border: 0;
  border-radius: 999px;
  background: var(--cor);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 15px;
  min-height: 36px;
  box-shadow: 0 6px 14px -6px var(--cor);
}
.limpar {
  width: 36px; height: 36px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tinta-3);
  font-size: 22px;
  line-height: 1;
}

/* ── busca ─────────────────────────────────────────────────────────── */
.campo-busca {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 6px 0 14px;
  margin-bottom: 6px;
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: 16px;
  box-shadow: var(--sombra);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.campo-busca:focus-within {
  border-color: var(--cor);
  box-shadow: 0 0 0 4px var(--cor-suave);
}
.lupa { width: 19px; height: 19px; color: var(--tinta-3); flex: none; }
.campo-busca input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tinta);
  font: inherit;
  font-size: 16px; /* 16px evita o zoom automático do iPhone */
}
.campo-busca input::-webkit-search-cancel-button { display: none; }

/* ── categorias ────────────────────────────────────────────────────── */
/* Texto com um sublinhado que DESLIZA para a categoria ativa — em vez de
   pílulas grandes, que competem com as fotos dos pratos. */
.abas {
  position: sticky;
  top: calc(var(--topo) + env(safe-area-inset-top, 0px));
  z-index: 18;
  background: var(--vidro);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--linha);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}
.abas::-webkit-scrollbar { display: none; }
.abas-trilho {
  position: relative;
  display: flex;
  gap: 2px;
  width: max-content;
  min-width: 100%;
  padding: 0 max(16px, calc((100vw - 720px) / 2 + 16px));
}
.aba {
  flex: none;
  border: 0;
  background: none;
  color: var(--tinta-2);
  font-weight: 650;
  font-size: 14.5px;
  letter-spacing: -.01em;
  padding: 14px 10px 13px;
  white-space: nowrap;
  transition: color .2s ease;
}
.aba[aria-current="true"] { color: var(--tinta); font-weight: 750; }
.abas-indicador {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  border-radius: 3px 3px 0 0;
  background: var(--cor);
  transform: translateX(0);
  transition: transform .35s var(--mola), width .35s var(--mola);
  pointer-events: none;
}

/* ── lista de produtos ─────────────────────────────────────────────── */
.categoria-titulo {
  font-size: 20px;
  font-weight: 800;
  margin: 26px 2px 12px;
  /* A barra e as categorias fixas não cobrem o título ao pular para ele. */
  scroll-margin-top: calc(var(--topo) + 62px);
}
.grupo { display: grid; gap: 12px; }

/* Entrada: os cartões sobem de leve quando aparecem. Só no primeiro encontro,
   e com atraso escalonado dentro do grupo. */
.item {
  position: relative;
  opacity: 0;
  transform: translateY(10px);
}
.item.visivel {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--mola), transform .5s var(--mola);
}
.item-abrir {
  width: 100%;
  display: flex;
  gap: 14px;
  text-align: left;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: var(--superficie);
  box-shadow: var(--sombra);
  padding: 14px;
  min-height: 132px;
  transition: transform .18s var(--mola), box-shadow .18s ease, border-color .18s ease;
}
@media (hover: hover) {
  .item-abrir:hover { transform: translateY(-2px); box-shadow: var(--sombra-alta); border-color: var(--linha-2); }
}
.item-abrir:active { transform: scale(.995); }
.item-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-nome { font-weight: 700; font-size: 16.5px; line-height: 1.25; letter-spacing: -.01em; }
.item-desc {
  margin: 6px 0 0;
  color: var(--tinta-2);
  font-size: 13.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-preco {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 750;
  font-size: 17px;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.item-tile {
  position: relative;
  width: 120px;
  height: 120px;
  flex: none;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 52px;
  background: var(--tile, var(--cor-suave));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.item-tile img { width: 100%; height: 100%; object-fit: cover; }
.item-na-sacola {
  position: absolute;
  bottom: 7px;
  left: 7px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(10, 8, 8, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}
/* Selo do restaurante ("Mais pedido") sobre a foto, no canto de cima. Sem
   foto, ele fica sobre o quadrado colorido e continua legível. */
.selo {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cor), var(--cor-escura));
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .01em;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .6);
}
.selo-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cor-suave);
  color: var(--cor);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 8px;
}
.btn-add {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--cor);
  color: #fff;
  /* Anel na cor do cartão: separa o botão da foto que está atrás. */
  box-shadow: 0 0 0 4px var(--superficie), 0 8px 18px -8px var(--cor);
  transition: transform .18s var(--mola), box-shadow .18s ease, filter .18s ease;
}
.btn-add svg { width: 20px; height: 20px; }
@media (hover: hover) {
  .btn-add:hover { transform: translateY(-2px) scale(1.04); filter: brightness(1.06); box-shadow: 0 0 0 4px var(--superficie), 0 12px 26px -8px var(--cor); }
}
.btn-add:active { transform: scale(.9); }

/* Tons dos quadrados sem foto, um por categoria. */
.tom-0 { --tile: #FFEBD8; } .tom-1 { --tile: #E6F1FF; } .tom-2 { --tile: #E7F6EC; }
.tom-3 { --tile: #FFF5CE; } .tom-4 { --tile: #F1E9FF; } .tom-5 { --tile: #FFE6EE; }
@media (prefers-color-scheme: dark) {
  .tom-0 { --tile: #2A2018; } .tom-1 { --tile: #171F2A; } .tom-2 { --tile: #16261C; }
  .tom-3 { --tile: #292418; } .tom-4 { --tile: #201A2A; } .tom-5 { --tile: #291820; }
}

.vazio { text-align: center; color: var(--tinta-2); padding: 48px 16px; }
.vazio .btn-mini { margin-top: 12px; }
.icone-grande { font-size: 54px; line-height: 1; margin-bottom: 10px; }

/* Esqueleto com brilho passando — diz "está carregando", não "travou". */
.esqueleto { display: grid; gap: 12px; padding-top: 16px; }
.esq-item {
  height: 148px;
  border-radius: var(--raio);
  background: var(--superficie);
  border: 1px solid var(--linha);
  position: relative;
  overflow: hidden;
}
.esq-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(150, 150, 160, .14), transparent);
  transform: translateX(-100%);
  animation: brilho 1.4s ease-in-out infinite;
}
@keyframes brilho { to { transform: translateX(100%); } }

/* ── aviso rápido ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 40;
  max-width: calc(100vw - 32px);
  background: rgba(18, 17, 19, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 650;
  font-size: 14.5px;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--sombra-alta);
  animation: surgir .24s var(--mola);
}
@keyframes surgir { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ── folhas (dialog) ───────────────────────────────────────────────── */
/* O <dialog> nativo vem com `width/height: fit-content` e `max-height`
   limitado pelo navegador. Com o conteudo em `position: absolute`, ele saia
   do fluxo e o dialog ficava com ALTURA ZERO: aparecia o fundo cinza e nada
   dentro, sem como fechar. Por isso aqui e flex, e o conteudo fica no fluxo.

   `display` precisa ser qualificado por [open]: sem isso a folha ficaria
   visivel o tempo todo, porque estariamos sobrescrevendo o `display: none`
   que o navegador aplica ao dialog fechado. */
.folha {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  position: fixed;
  inset: 0;
  overflow: hidden;
  color: var(--tinta);
}
.folha:not([open]) { display: none; }
.folha[open] {
  display: flex;
  align-items: flex-end;   /* a folha sobe de baixo */
  justify-content: center;
}
.folha::backdrop {
  background: rgba(8, 6, 6, .5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.folha-conteudo {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 92dvh;
  overflow-y: auto;
  /* rolar dentro da folha nao arrasta a pagina atras */
  overscroll-behavior: contain;
  background: var(--superficie);
  border-radius: 26px 26px 0 0;
  border-top: 1px solid var(--linha);
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--sombra-alta);
  animation: subir .3s var(--mola);
}
.folha-conteudo.sem-respiro { padding: 0; }
@keyframes subir { from { transform: translateY(26px); opacity: .5; } }
.puxador {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--linha-2);
}
.folha-conteudo h2 { font-size: 21px; font-weight: 800; margin-bottom: 2px; padding-right: 44px; }
.folha-conteudo .sub { color: var(--tinta-2); font-size: 14px; margin: 2px 0 16px; }

.folha-fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--fundo);
  color: var(--tinta-2);
  font-size: 23px;
  line-height: 1;
}
.folha-fechar.sobre {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #121113;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

/* Tela cheia (acompanhamento): ocupa tudo, como uma página. */
.folha.tela[open] { align-items: stretch; }
.folha.tela .folha-conteudo {
  max-height: none;
  height: 100dvh;
  border-radius: 0;
  border-top: 0;
  background: var(--fundo);
  animation: surgir-tela .25s ease-out;
}
@keyframes surgir-tela { from { opacity: 0; } }

/* ── item ──────────────────────────────────────────────────────────── */
.item-capa {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 36dvh;
  width: 100%;
  display: grid;
  place-items: center;
  font-size: 84px;
  background: var(--tile, var(--cor-suave));
  border-radius: 26px 26px 0 0;
  overflow: hidden;
}
.item-capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-credito {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-corpo { padding: 18px 18px 4px; }
.item-corpo h2 { padding-right: 0; font-size: 23px; }
.item-corpo .item-desc { -webkit-line-clamp: unset; font-size: 14.5px; margin-top: 8px; }
.item-preco-grande { font-size: 21px; font-weight: 800; margin: 12px 0 16px; color: var(--cor); letter-spacing: -.02em; }

.folha-rodape {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--superficie);
  border-top: 1px solid var(--linha);
}

.contador {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--linha-2);
  border-radius: 14px;
  height: 50px;
  flex: none;
}
.contador button {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--cor);
  font-size: 24px;
  font-weight: 600;
}
.contador span { min-width: 26px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
.contador.pequeno { height: 38px; border-radius: 12px; }
.contador.pequeno button { width: 36px; font-size: 20px; }

.btn-principal {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--cor);
  color: #fff;
  font-weight: 750;
  font-size: 16px;
  letter-spacing: -.01em;
  padding: 0 16px;
  box-shadow: 0 10px 22px -12px var(--cor);
  transition: transform .18s var(--mola), box-shadow .18s ease, filter .18s ease;
}
@media (hover: hover) {
  .btn-principal:hover:not(:disabled) { filter: brightness(1.05); box-shadow: 0 14px 28px -12px var(--cor); transform: translateY(-1px); }
}
.btn-principal:active:not(:disabled) { transform: scale(.985); }
.btn-principal:disabled { background: var(--linha-2); color: var(--tinta-2); cursor: not-allowed; box-shadow: none; }
.btn-principal.grande { width: 100%; min-height: 54px; font-size: 17px; margin-top: 16px; }
#item-adicionar { justify-content: space-between; }
#item-valor { font-variant-numeric: tabular-nums; }

.btn-secundario {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  border: 1px solid var(--linha-2);
  border-radius: 14px;
  background: var(--superficie);
  font-weight: 700;
  font-size: 16px;
}

/* Lugares atendidos por preço, na tela de informações. */
.info-lugares { margin: 2px 0 10px; color: var(--tinta-2); font-size: 13px; line-height: 1.45; }

/* ── fim de categoria: ir para a próxima ────────────────────────────── */
.btn-proxima-cat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 52px;
  margin: 18px 0 8px;
  border: 1px solid var(--linha-2);
  border-radius: 14px;
  background: var(--superficie);
  color: var(--tinta);
  font-size: 15.5px;
}
.btn-proxima-cat b { color: var(--cor); }

/* ── localização (taxa por km) ─────────────────────────────────────── */
.bloco-local { margin: 0 0 14px; }
.bloco-local .btn-secundario { margin-top: 0; color: var(--tinta); }
.local-status { margin: 6px 2px 0; font-size: 13px; color: var(--tinta-3); }
.local-status:empty { display: none; }
.local-status.ok { color: var(--verde); font-weight: 650; }
.local-status.erro { color: var(--erro); font-weight: 650; }
.local-status.obrigatorio { color: var(--cor); font-weight: 650; }
.link-mapa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--cor);
  font-weight: 700;
  font-size: 14.5px;
}
.link-sem-local { margin-top: 2px; font-size: 13.5px; font-weight: 650; text-decoration: none; }

/* ── marcar no mapa ─────────────────────────────────────────────────── */
.mapa-conteudo { display: flex; flex-direction: column; overflow: hidden; }
.mapa-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: var(--superficie);
  border-bottom: 1px solid var(--linha);
}
.mapa-topo .ap-voltar { color: var(--cor); }
.mapa-titulo { font-weight: 800; font-size: 16px; }
.mapa-area { position: relative; flex: 1; min-height: 0; }
.mapa { position: absolute; inset: 0; background: #e8e6e1; }
/* A ponta do pino fica no centro exato do mapa. */
.mapa-pino {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 500;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35));
}
.mapa-gps {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 500;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #121113;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.mapa-rodape {
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--superficie);
  border-top: 1px solid var(--linha);
}
.mapa-dica { margin: 0; font-size: 13.5px; color: var(--tinta-2); }
.mapa-rodape .btn-principal.grande { margin-top: 10px; }

/* ── campos ────────────────────────────────────────────────────────── */
.campo { display: block; margin: 0 0 14px; border: 0; padding: 0; }
.campo > span, .campo > legend {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  margin-bottom: 6px;
  color: var(--tinta);
}
.campo input, .campo textarea, .campo select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--linha-2);
  border-radius: 14px;
  background: var(--superficie-2);
  color: var(--tinta);
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  resize: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.campo input:focus, .campo textarea:focus, .campo select:focus {
  border-color: var(--cor);
  background: var(--superficie);
  box-shadow: 0 0 0 4px var(--cor-suave);
  outline: none;
}
.campo input[aria-invalid="true"], .campo select[aria-invalid="true"] { border-color: var(--erro); }
.campo small { display: block; color: var(--tinta-3); font-size: 12.5px; margin-top: 5px; }
.linha-campos { display: flex; gap: 10px; }
.cresce { flex: 1; min-width: 0; }
.estreito { width: 104px; flex: none; }

/* ── sacola ────────────────────────────────────────────────────────── */
.lista-carrinho { border-top: 1px solid var(--linha); }
.linha-carrinho {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--linha);
}
.lc-tile {
  width: 56px; height: 56px;
  flex: none;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  overflow: hidden;
  background: var(--tile, var(--cor-suave));
}
.lc-tile img { width: 100%; height: 100%; object-fit: cover; }
.lc-texto { flex: 1; min-width: 0; }
.lc-nome { font-weight: 650; font-size: 15px; line-height: 1.3; }
.lc-obs { color: var(--tinta-2); font-size: 13px; }
.lc-valor { font-weight: 750; font-size: 14.5px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.link-mais {
  border: 0;
  background: none;
  color: var(--cor);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 0 6px;
}

.minimo {
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--cor-suave);
  font-size: 14px;
  font-weight: 650;
  color: var(--cor-escura);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) .minimo { color: #F7B8AE; }
}
:root[data-tema="escuro"] .minimo { color: #F7B8AE; }
.minimo-barra {
  display: block;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .08);
  overflow: hidden;
}
.minimo-barra i { display: block; height: 100%; background: var(--cor); border-radius: 999px; transition: width .35s var(--mola); }

.resumo { margin-top: 14px; }
.resumo .linha {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 15px;
  color: var(--tinta-2);
  font-variant-numeric: tabular-nums;
}
.resumo .linha.total {
  color: var(--tinta);
  font-weight: 800;
  font-size: 18px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--linha);
  letter-spacing: -.01em;
}
.nota-rodape { text-align: center; color: var(--tinta-3); font-size: 13px; margin: 10px 0 0; }

/* ── finalizar ─────────────────────────────────────────────────────── */
.bloco {
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: var(--superficie-2);
  padding: 16px 14px 2px;
  margin-bottom: 12px;
}
.bloco h3 { font-size: 15.5px; font-weight: 750; margin-bottom: 12px; }
.pagamentos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.pag {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 13px 6px;
  border: 1.5px solid var(--linha-2);
  border-radius: 14px;
  background: var(--superficie);
  cursor: pointer;
  text-align: center;
  transition: border-color .18s ease, background .18s ease, transform .18s var(--mola);
}
.pag:active { transform: scale(.97); }
.pag input { position: absolute; opacity: 0; pointer-events: none; }
.pag-icone { font-size: 22px; line-height: 1; color: #32BCAD; }
.pag-nome { font-weight: 700; font-size: 14.5px; }
/* "-3%" no canto do Pix: o desconto aparece onde a escolha acontece. */
.pag-selo {
  position: absolute;
  top: -8px;
  right: -6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--verde);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.convite-pix {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--verde-suave);
  color: var(--verde);
  font-size: 13.5px;
  font-weight: 650;
}
.linha.desconto span:last-child { color: var(--verde); font-weight: 700; }
.pag.escolhido,
.pag:has(input:checked) { border-color: var(--cor); background: var(--cor-suave); }
.pag:has(input:focus-visible) { outline: 2px solid var(--cor); outline-offset: 2px; }
/* Atalhos dos endereços salvos. O chip é uma CASCA com dois botões irmãos
   (escolher / apagar) em vez de um botão com um X clicável dentro: botão
   dentro de botão é HTML inválido e o X ficaria fora do alcance do teclado. */
.enderecos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.endereco-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1.5px solid var(--linha-2);
  border-radius: 999px;
  background: var(--superficie);
  transition: border-color .18s ease, background .18s ease;
}
.endereco-chip[data-escolhido="true"] { border-color: var(--cor); background: var(--cor-suave); }
.endereco-chip button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tinta);
  padding: 9px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.endereco-chip button:focus-visible { outline: 2px solid var(--cor); outline-offset: 2px; }
.endereco-chip .escolher {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform .18s var(--mola);
}
.endereco-chip .escolher:active { transform: scale(.97); }
.endereco-chip .apagar {
  flex: none;
  padding: 9px 12px 9px 3px;
  color: var(--tinta-3);
  font-size: 17px;
  line-height: 1;
}
.endereco-chip .apagar:hover { color: var(--erro); }
.endereco-chip.novo { border-style: dashed; }
.endereco-chip.novo button { color: var(--tinta-2); font-weight: 650; }

.lembrar { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--tinta-2); margin: 4px 0 0; }
.lembrar input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cor); flex: none; }
.aviso-confirmacao {
  font-size: 13.5px;
  color: var(--alerta);
  background: #FFF7E6;
  border: 1px solid rgba(138, 82, 0, .14);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 14px 0 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) .aviso-confirmacao {
    background: #2A2112; border-color: rgba(245, 194, 107, .18);
  }
}
:root[data-tema="escuro"] .aviso-confirmacao {
  background: #2A2112; border-color: rgba(245, 194, 107, .18);
}
.erro {
  background: #FDECEA;
  color: #7F1D17;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin: 12px 0 0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) .erro { background: #331512; color: #F6C6C2; }
}
:root[data-tema="escuro"] .erro { background: #331512; color: #F6C6C2; }

/* ── acompanhamento ────────────────────────────────────────────────── */
.ap-topo {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--topo) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 12px 0 6px;
  background: var(--cor);
  color: #fff;
}
.ap-topo.pronto { background: #12A150; }
.ap-topo.problema { background: #6B6560; }
.ap-voltar { border: 0; background: none; color: #fff; font-weight: 700; font-size: 16px; padding: 10px; }
.ap-codigo { font-weight: 700; font-size: 14px; opacity: .9; letter-spacing: .04em; }

.ap-destaque {
  background: linear-gradient(170deg, var(--cor), var(--cor-escura));
  color: #fff;
  text-align: center;
  padding: 10px 20px 58px;
}
.ap-destaque.pronto { background: linear-gradient(170deg, #17A45E, #0B7A43); }
.ap-destaque.problema { background: linear-gradient(170deg, #6B6560, #4A4541); }
.ap-icone {
  width: 96px; height: 96px;
  margin: 8px auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  font-size: 50px;
  animation: respirar 2s ease-in-out infinite;
}
.ap-destaque.parado .ap-icone { animation: none; }
@keyframes respirar {
  50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, .10); }
}
.ap-destaque h2 { font-size: 24px; font-weight: 800; padding: 0; }
.ap-destaque p { margin: 8px auto 0; max-width: 34ch; font-size: 15.5px; opacity: .95; }
.ap-previsao {
  display: inline-flex;
  flex-direction: column;
  margin-top: 16px;
  padding: 10px 22px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ap-previsao span { font-size: 12px; opacity: .9; text-transform: uppercase; letter-spacing: .08em; }
.ap-previsao strong { font-size: 22px; font-variant-numeric: tabular-nums; }

.ap-corpo {
  position: relative;
  max-width: 720px;
  margin: -40px auto 0;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
}
.passos {
  display: grid;
  /* Uma coluna por barra VISÍVEL: o pedido sem cozinha tem duas etapas, e
     com o template fixo em três as duas barras ocupavam 2/3 da largura. */
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-bottom: 0;
  border-radius: var(--raio) var(--raio) 0 0;
  padding: 16px 16px 0;
  box-shadow: var(--sombra);
}
.passo-barra { height: 6px; border-radius: 999px; background: var(--linha); overflow: hidden; }
.passo-barra.feito { background: var(--verde); }
.passo-barra.atual { background: var(--verde); animation: pulsando 1.4s ease-in-out infinite; }
@keyframes pulsando { 50% { opacity: .3; } }

.linha-tempo {
  list-style: none;
  margin: 0 0 12px;
  padding: 12px 16px 6px;
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-top: 0;
  border-radius: 0 0 var(--raio) var(--raio);
  box-shadow: var(--sombra);
}
.linha-tempo li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--tinta-3);
}
.linha-tempo li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 38px;
  bottom: -10px;
  width: 2px;
  background: var(--linha);
}
.linha-tempo li.feito:not(:last-child)::after { background: var(--verde); }
.lt-bolinha {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  background: var(--fundo);
  border: 2px solid var(--linha-2);
}
.linha-tempo li.feito .lt-bolinha { background: var(--verde); border-color: var(--verde); color: #fff; }
.linha-tempo li.atual .lt-bolinha { border-color: var(--verde); color: var(--verde); }
.linha-tempo li.feito, .linha-tempo li.atual { color: var(--tinta); }
.lt-rotulo { flex: 1; font-weight: 650; font-size: 15px; }
.linha-tempo li.atual .lt-rotulo { font-weight: 800; }
.lt-hora { font-size: 13.5px; color: var(--tinta-2); font-variant-numeric: tabular-nums; }

.aviso-leve {
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-left: 4px solid var(--alerta);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--tinta-2);
  margin: 0 0 12px;
}
.confirmar {
  background: var(--superficie);
  border: 1px solid var(--cor-suave);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 14px 16px 16px;
  margin-bottom: 12px;
}
.confirmar-texto {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.45;
}
.confirmar-icone { font-size: 22px; line-height: 1.1; flex: none; }
.confirmar .btn-principal.grande { margin-top: 0; }
/* Pronto: o aviso ganha o verde da etapa e o botão vira o principal. */
.confirmar.pronto { background: var(--verde-suave); border-color: var(--verde); }
.confirmar.pronto .btn-principal { background: var(--verde); box-shadow: 0 10px 22px -12px var(--verde); }
.btn-principal.contorno { background: transparent; color: var(--cor); border: 2px solid var(--cor); box-shadow: none; }

.cartao {
  background: var(--superficie);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 16px;
  margin-bottom: 12px;
}
.cartao h3 { font-size: 15.5px; font-weight: 750; margin-bottom: 10px; }
.ap-itens .linha-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 15px;
}
.ap-itens .qtd { color: var(--cor); font-weight: 800; margin-right: 6px; }
.ap-pagamento { margin: 10px 0 0; font-size: 14px; color: var(--tinta-2); }
.ap-endereco { margin: 0; font-size: 15px; color: var(--tinta-2); }
.ap-botoes { margin-top: 4px; }

/* ── assinatura da Vexto Soft ──────────────────────────────────────── */
/* Discreta (tons da página, letra pequena) mas com o V dourado e o número em
   verde de WhatsApp — o olho pára ali sem o rodapé brigar com o cardápio. */
.assinatura {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--linha);
}
.ass-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--raio);
  color: var(--tinta-2);
  text-decoration: none;
  transition: background .15s;
}
.ass-link:hover, .ass-link:active { background: var(--superficie); }
.ass-marca {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.ass-texto { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.ass-linha1 b { color: var(--tinta); }
.ass-fone { margin-top: 2px; font-weight: 700; color: var(--verde); white-space: nowrap; }

.ass-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--tinta-3);
  text-decoration: none;
}
.ass-mini img { width: 18px; height: 18px; border-radius: 6px; }
.ass-mini b { color: var(--tinta-2); }

/* ── informações ───────────────────────────────────────────────────── */
.info-bloco { margin-top: 12px; }
.info-bloco h3 { font-size: 15px; font-weight: 750; margin-bottom: 6px; }
.info-linha {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--linha);
  font-size: 14.5px;
}
.info-linha .dia { color: var(--tinta-2); }
.info-linha.hoje { font-weight: 700; }
.info-linha.hoje .dia { color: var(--tinta); }
.info-fechado { color: var(--tinta-3); }

/* ── telas largas ──────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .grupo { grid-template-columns: 1fr 1fr; }
  .capa { min-height: 320px; }
}

/* ── LGPD ──────────────────────────────────────────────────────────────
   O aviso fica JUNTO do formulario, nao escondido num link de rodape que
   ninguem abre: a lei pede informacao no momento da coleta. */
.aviso-dados {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--tinta-2);
  background: var(--fundo);
  border: 1px solid var(--linha-2);
  border-radius: 12px;
  padding: 11px 13px;
  margin: 14px 0 0;
}

/* Botao que se comporta como link: e um <button> porque a acao abre um
   dialogo, nao navega — leitor de tela precisa anunciar o papel certo. */
.link-inline {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--cor);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.link-inline:focus-visible { outline: 2px solid var(--cor); outline-offset: 3px; }

.rodape-legal {
  text-align: center;
  padding: 0 16px 26px;
}
.rodape-legal .link-inline {
  font-size: 13px;
  font-weight: 650;
  color: var(--tinta-2);
}

.priv-p { font-size: 14px; line-height: 1.6; color: var(--tinta-2); margin: 0 0 10px; }
.priv-lista { margin: 0 0 10px; padding-left: 20px; }
.priv-lista li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tinta-2);
  margin-bottom: 7px;
}
.priv-lista li b, .priv-p b { color: var(--tinta); }
.priv-rodape {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--tinta-3);
  margin: 4px 0 16px;
}

/* ── Oferta do aviso com a pagina fechada ──────────────────────────────
   Aparece so depois do pedido enviado, e so onde o aviso de fato chega. */
.caixa-aviso {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--cor-suave);
  border: 1px solid var(--cor);
  border-radius: var(--raio);
  padding: 13px 15px;
  margin: 14px 0 0;
}
.caixa-aviso-texto { flex: 1 1 200px; min-width: 0; }
.caixa-aviso-texto b {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--tinta);
}
.caixa-aviso-texto span {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--tinta-2);
  margin-top: 2px;
}
.caixa-aviso .btn-secundario { flex: none; min-height: 42px; padding: 0 16px; }

/* ── Seletor de tema ───────────────────────────────────────────────────
   Tres estados. O "automatico" segue o celular; os outros dois mandam. */
.temas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tema {
  padding: 11px 6px;
  border: 1.5px solid var(--linha-2);
  border-radius: 12px;
  background: var(--superficie);
  color: var(--tinta);
  font: inherit;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s var(--mola);
}
.tema:active { transform: scale(.97); }
.tema[aria-pressed="true"] {
  border-color: var(--cor);
  background: var(--cor-suave);
  font-weight: 750;
}
.tema:focus-visible { outline: 2px solid var(--cor); outline-offset: 2px; }
.tema-nota {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--tinta-2);
  margin: 9px 0 2px;
}

/* ── Modo consulta ─────────────────────────────────────────────────────
   O cardapio vira vitrine: mostra prato, foto, descricao e preco, e quem
   anota continua sendo o garcom. Existe porque cliente que pede sozinho
   argumenta que nao teve servico e quer tirar os 10%.

   Esconder pelo <html> em vez de elemento por elemento: a lista e
   redesenhada a cada busca e a cada troca de categoria, e um seletor
   central nao deixa sobrar botao numa dessas passagens. */
:root[data-consulta] .cd-add,
:root[data-consulta] .item-add,
:root[data-consulta] #btn-sacola,
:root[data-consulta] .barra-sacola,
:root[data-consulta] .faixa-repetir,
:root[data-consulta] #item-adicionar { display: none !important; }

/* O chamar-garcom ganha o peso que era do botao de pedir. */
:root[data-consulta] .acoes-mesa .btn-acao {
  border-color: var(--cor);
  background: var(--cor-suave);
  font-weight: 750;
}

/* ── Falar com o restaurante ───────────────────────────────────────────
   Discreto de proposito: nao compete com "confirmar recebimento", que e a
   acao principal. Quem precisa dele, procura. */
.ajuda-pedido {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 13px 16px;
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  background: var(--superficie);
  color: var(--tinta);
  text-decoration: none;
  box-shadow: var(--sombra);
  transition: border-color .18s ease, transform .18s var(--mola);
}
button.ajuda-pedido { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.ajuda-pedido:active { transform: scale(.99); }
.ajuda-pedido:focus-visible { outline: 2px solid var(--cor); outline-offset: 2px; }
.ajuda-icone { font-size: 20px; line-height: 1; }
.ajuda-texto { display: flex; flex-direction: column; gap: 2px; }
.ajuda-texto b { font-size: 14.5px; font-weight: 700; }
.ajuda-texto span { font-size: 12.5px; color: var(--tinta-2); }
/* Mesmo cartão, dentro do carrinho, quando o delivery está pausado. */
#zap-pausado { margin: 14px 0 0; }

/* ── Aviso do restaurante ──────────────────────────────────────────────
   Tom de recado, nao de erro: informa sem assustar quem ia pedir. */
.aviso-topo {
  position: relative;
  /* `margin: 0` matava o `auto` da .coluna e o aviso grudava na esquerda
     em tela larga. O respiro lateral vem da .coluna; aqui so o de baixo. */
  margin: 0 auto 14px;
  padding: 13px 40px 13px 14px;
  border: 1px solid var(--linha-2);
  border-left: 3px solid var(--cor);
  border-radius: var(--raio);
  background: var(--cor-suave);
}
.aviso-topo-corpo { display: flex; gap: 10px; align-items: flex-start; }
.aviso-topo-icone { font-size: 17px; line-height: 1.35; }
.aviso-topo-texto {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--tinta);
}
.aviso-topo-contato {
  display: inline-block;
  margin: 9px 0 0 27px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cor);
  text-decoration: underline;
}
.aviso-topo-fechar {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tinta-2);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.aviso-topo-fechar:hover { background: var(--linha); }
.aviso-topo-fechar:focus-visible { outline: 2px solid var(--cor); outline-offset: 1px; }

/* ── Avaliação no Google ───────────────────────────────────────────────
   Depois do "Confirmar recebimento" e pelo QR da sacola. As duas respostas
   têm o mesmo peso visual: a pergunta não é filtro (ver app.js). */
.av-ok { margin: 0 0 6px; color: var(--verde); font-size: 14px; font-weight: 750; }
.av-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.av-opcao {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  border: 1px solid var(--linha-2);
  border-radius: var(--raio);
  background: var(--superficie);
  color: var(--tinta);
  font-weight: 750;
  font-size: 15px;
  box-shadow: var(--sombra);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s var(--mola);
}
.av-opcao span { font-size: 34px; line-height: 1; }
.av-opcao:active { transform: scale(.98); }
@media (hover: hover) { .av-opcao:hover { border-color: var(--cor); } }
.av-passo .btn-principal.grande { margin-top: 6px; }
/* Os botões daqui são links (Google e WhatsApp abrem fora da página). */
a.btn-principal, a.btn-secundario { text-decoration: none; }
a.btn-secundario { display: flex; align-items: center; justify-content: center; color: var(--tinta); }
#av-depois { margin-top: 16px; }

/* ── Opções do prato ("monte sua marmita") ─────────────────────────────
   Grupos de escolha na folha do item. Rádio (escolha 1), caixa (várias) e
   contador (a mesma opção mais de uma vez). Em falta fica visível, apagado. */
.item-opcoes { margin: 0 -18px 14px; }
.grupo-opcao { border-top: 1px solid var(--linha); }
.grupo-opcao:last-child { border-bottom: 1px solid var(--linha); }
.go-cabeca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--superficie-2);
}
.go-titulo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.go-titulo b { font-size: 15px; font-weight: 750; line-height: 1.3; }
.go-regra { font-size: 12.5px; color: var(--tinta-2); }
.go-status { display: flex; align-items: center; gap: 6px; flex: none; }
.go-conta {
  font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums;
  padding: 3px 7px; border-radius: 6px; background: var(--linha); color: var(--tinta-2);
}
.go-obrigatorio {
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px; background: var(--tinta); color: var(--superficie);
}
.go-ok {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--verde); color: #fff; font-size: 13px; font-weight: 800;
}
.go-opcao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 10px 18px;
  border: 0;
  border-top: 1px solid var(--linha);
  background: transparent;
  color: var(--tinta);
  text-align: left;
  font: inherit;
}
button.go-opcao { cursor: pointer; }
.go-textos { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.go-nome { font-size: 15px; line-height: 1.3; }
.go-preco { font-size: 13px; font-weight: 700; color: var(--tinta-2); }
.go-opcao.em-falta .go-nome { color: var(--tinta-2); text-decoration: line-through; }
.go-falta { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #B7791F; flex: none; }
.go-marca {
  flex: none; width: 22px; height: 22px;
  border: 2px solid var(--linha-2); background: var(--superficie);
  transition: background .15s ease, border-color .15s ease;
}
.go-marca-radio { border-radius: 50%; }
.go-marca-caixa { border-radius: 6px; }
.go-opcao.marcada .go-marca { border-color: var(--cor); background: var(--cor); box-shadow: inset 0 0 0 4px var(--superficie); }
.go-opcao.marcada .go-marca-caixa { box-shadow: none; }
.go-opcao.marcada .go-marca-caixa::after {
  content: "✓"; display: grid; place-items: center; height: 100%; color: #fff; font-size: 13px; font-weight: 800;
}
.go-contador { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.go-contador button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--linha-2); background: var(--superficie);
  color: var(--cor); font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer;
}
.go-qtd { min-width: 22px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
/* "Faltou escolher": o grupo pisca para o cliente achar. */
.grupo-opcao.falta .go-cabeca { animation: go-falta .9s ease 2; }
@keyframes go-falta { 50% { background: var(--cor-suave); } }
@media (prefers-reduced-motion: reduce) { .grupo-opcao.falta .go-cabeca { animation: none; background: var(--cor-suave); } }

/* Na sacola: as escolhas embaixo do nome e o "Editar". */
.lc-opcoes { color: var(--tinta-2); font-size: 13px; line-height: 1.35; }
.lc-editar {
  margin-top: 4px; padding: 0; border: 0; background: none;
  color: var(--cor); font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer;
}

/* ── "Peça também" ─────────────────────────────────────────────────── */
.sugestoes { margin: 6px 0 14px; }
.sugestoes h3 { font-size: 15px; font-weight: 800; margin: 0 0 10px; }
.sugestoes-lista {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.sugestao {
  position: relative; flex: none; width: 118px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 4px; padding: 8px;
  border: 1px solid var(--linha); border-radius: 14px; background: var(--superficie);
  box-shadow: var(--sombra); color: var(--tinta); text-align: left; font: inherit; cursor: pointer;
}
.sg-tile {
  width: 100%; height: 72px; border-radius: 10px; display: grid; place-items: center;
  font-size: 30px; overflow: hidden; background: var(--tile, var(--cor-suave));
}
.sg-tile img { width: 100%; height: 100%; object-fit: cover; }
.sg-nome {
  font-size: 13px; font-weight: 650; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sg-preco { font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.sg-mais {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cor); color: #fff; font-weight: 800;
  box-shadow: 0 4px 10px -4px var(--cor);
}
.go-opcao.toca { cursor: pointer; }


/* ── Entrega ou retirada (sacola) ─────────────────────────────────────── */
.modo-receber { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; padding: 4px;
  border-radius: 14px; background: var(--linha); }
.modo-receber button { min-height: 44px; border: 0; border-radius: 11px; background: transparent;
  color: var(--tinta-2); font-weight: 750; font-size: 14.5px; cursor: pointer; }
.modo-receber button[aria-checked="true"] { background: var(--superficie); color: var(--tinta); box-shadow: var(--sombra); }
.retirada-texto { margin: 0 0 8px; color: var(--tinta); font-size: 14.5px; line-height: 1.5; }

/* Condomínio/prédio: Sim / Não lado a lado, o detalhe abre no "Sim". */
.sim-nao { display: flex; gap: 20px; margin-top: 6px; }
.sim-nao label { display: flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }

/* ── Pix pago pelo site ─────────────────────────────────────────────────
   QR com o valor, "copia e cola" e o comprovante no WhatsApp. */
.pix-dica {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: var(--raio);
  background: var(--superficie);
  border: 1px dashed var(--linha-2);
  font-size: 13.5px;
  color: var(--tinta-2);
}
.pix-pagar { text-align: center; }
.pix-pagar h3 { margin-bottom: 10px; }
.pix-pagar.pago h3 { color: #1b7f3b; margin-bottom: 0; }
.pix-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 4px auto 12px;
  image-rendering: pixelated;
  border-radius: 8px;
  background: #fff;
}
#ap-pix-copiar { width: 100%; }
.pix-chave { margin: 10px 0; font-size: 14px; color: var(--tinta-2); }
.pix-zap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}
.pix-nota { margin: 8px 0 0; font-size: 12.5px; color: var(--tinta-2); }

/* Item só pelo WhatsApp (peixe limpo por kg): o "+" vira um botão verde. */
.btn-add.btn-zap {
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
  background: #1f9d55;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

/* Pix pelo site: o comprovante é OBRIGATÓRIO — aviso em destaque (12/10/2026). */
.pix-dica {
  border: 1px solid #d97706;
  border-left-width: 4px;
  background: color-mix(in srgb, #f59e0b 10%, var(--superficie));
  color: var(--tinta);
}
.pix-nota b { color: var(--tinta); }


/* "Enviar pedido pelo WhatsApp" no acompanhamento (14/10/2026). */
.zap-pedido-texto { margin: 0 0 12px; font-size: 14px; color: var(--tinta-2); }
.zap-pedido-texto b { display: block; margin-bottom: 2px; font-size: 15px; color: var(--tinta); }
.btn-zap-pedido {
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  background: #1f9d55;
  box-shadow: 0 10px 22px -12px #1f9d55;
}
