:root {
  color-scheme: light;
  --fundo: #ececec;
  --papel: #ffffff;
  --tinta: #1a1a1a;
  --suave: #6d6d6d;
  --linha: #ececec;
  --cor-loja: #111111;
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.05);
  --app: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  background: var(--fundo);
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
  max-width: 100%;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
  background: var(--fundo);
  color: var(--tinta);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.35;
  -webkit-tap-highlight-color: transparent;
}

body.com-sacola {
  padding-bottom: 0;
}

button, input, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--cor-loja);
  outline-offset: 2px;
}

.app {
  width: min(var(--app), 100%);
  max-width: 100%;
  min-width: 0;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #f6f6f6;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.app > * {
  min-width: 0;
  max-width: 100%;
}

.capa {
  position: relative;
  overflow: hidden;
  min-height: 135px;
  max-height: 155px;
  background-color: var(--cor-loja);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.capa--marca {
  background-image:
    radial-gradient(90% 80% at 12% 20%, color-mix(in srgb, var(--cor-loja) 55%, #fff) 0%, transparent 58%),
    linear-gradient(155deg, color-mix(in srgb, var(--cor-loja) 82%, #000) 0%, #120814 78%);
}

.capa--marca::before {
  content: "";
  position: absolute;
  width: 14rem;
  height: 14rem;
  right: -3rem;
  top: -4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cor-loja) 70%, #fff);
  filter: blur(28px);
  opacity: 0.85;
  pointer-events: none;
}

.capa-velo {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.65rem;
  min-height: 135px;
  max-height: 155px;
  padding: 0.4rem 0.75rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.38) 46%, rgba(0, 0, 0, 0.78) 78%, rgba(0, 0, 0, 0.88) 100%);
}

.perfil {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  min-width: 0;
  padding: 0;
}

.perfil-logo {
  width: 3.15rem;
  height: 3.15rem;
  flex: none;
  border: 2px solid #fff;
  border-radius: 0.8rem;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.perfil-logo--letra {
  display: grid;
  place-items: center;
  color: var(--cor-loja);
  font-size: 1.15rem;
  font-weight: 800;
}

.capa .perfil-texto {
  max-width: none;
  padding: 0.18rem 0.5rem 0.22rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.58);
}

.perfil h1 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.selo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.08rem 0 0;
  color: var(--suave);
  font-size: 0.75rem;
  font-weight: 700;
}

.selo::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #b5b5b5;
}

.selo[data-aberta="1"] { color: #067a32; }
.selo[data-aberta="1"]::before { background: #12a150; }
.selo[data-aberta="0"] { color: #b42318; }
.selo[data-aberta="0"]::before { background: #d92d20; }

.capa h1,
.capa .selo {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.capa .selo::before { background: #fff; }
.capa .selo[data-aberta="1"] { color: #e7fff0; }
.capa .selo[data-aberta="1"]::before { background: #3ddc84; }
.capa .selo[data-aberta="0"] { color: #ffe4e1; }
.capa .selo[data-aberta="0"]::before { background: #ff8d84; }

.acoes-loja {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0;
}

.acao {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  padding: 0.28rem 0.65rem;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.topo-cardapio {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #fff;
}

.busca { padding: 0.7rem 0.85rem 0; }

.busca input {
  width: 100%;
  max-width: 100%;
  height: 2.6rem;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #f6f6f6;
  padding: 0 0.95rem;
  font-size: 16px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chips {
  display: flex;
  gap: 0.5rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid var(--linha);
  scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  height: 2.25rem;
  padding: 0 0.85rem;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.chip.is-ativa {
  border-color: transparent;
  background: var(--cor-loja);
  color: #fff;
}

.chip-icone {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  flex: none;
}

.cardapio {
  flex: 1 0 auto;
  padding-bottom: 1.25rem;
}

.produto.is-oculto,
.secao.is-oculta,
.chip.is-oculto { display: none; }

.secao { scroll-margin-top: 8rem; }

.busca-vazia {
  margin: 1rem;
  color: var(--suave);
  font-weight: 700;
}

.secao-topo {
  padding: 1.05rem 1rem 0.55rem;
}

.secao-topo h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.secao-topo p,
.secao-vazio {
  margin: 0.2rem 0 0;
  color: var(--suave);
  font-size: 0.82rem;
}

.secao-vazio { margin: 0 1rem 1rem; }

.secao-destaque .trilho-caixa {
  position: relative;
}

.secao-destaque .trilho {
  display: flex;
  gap: 0.75rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0 2.4rem 0.85rem;
  scroll-padding-inline: 2.4rem;
  scrollbar-width: none;
}

.secao-destaque .trilho::-webkit-scrollbar { display: none; }

.secao-destaque .produto {
  flex: 0 0 min(17.5rem, 82%);
  width: min(17.5rem, 82%);
  margin: 0;
  scroll-snap-align: start;
}

.trilho-seta {
  position: absolute;
  top: 38%;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--linha);
  border-radius: 999px;
  background: #fff;
  font-size: 1.2rem;
  line-height: 1;
}

.trilho-seta[data-trilho="antes"] { left: 0.35rem; }
.trilho-seta[data-trilho="depois"] { right: 0.35rem; }

@media (max-width: 767px) {
  .trilho-seta { display: none; }

  .secao-destaque .trilho {
    padding-inline: 0.85rem;
    scroll-padding-inline: 0.85rem;
  }
}

.selo-destaque {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.72rem;
  font-weight: 800;
}

.combo-nav {
  margin: 0 0 0.75rem;
}

.combo-passo-titulo {
  margin: 0 0 0.45rem;
  font-weight: 800;
}

.combo-passo-acoes {
  display: flex;
  gap: 0.45rem;
}

.combo-passo-acoes .acao {
  height: 2.25rem;
  padding: 0 0.85rem;
  border: 1px solid #e4e4e4;
}

.grupo.passo-fora { display: none; }

.produto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  gap: 0.75rem;
  align-items: center;
  width: calc(100% - 1.5rem);
  margin: 0 0.75rem 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--linha);
  border-radius: 1rem;
  background: var(--papel);
  box-shadow: var(--sombra);
  text-align: left;
  cursor: pointer;
}

.produto:active { transform: scale(0.985); }

.produto-nome {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.produto-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.25rem;
  color: var(--suave);
  font-size: 0.8rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.produto-preco {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.produto-foto {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 0.8rem;
  background: #f1f1f1;
  object-fit: cover;
}

.produto-foto--vazio {
  display: grid;
  place-items: center;
  color: var(--cor-loja);
  font-size: 1.35rem;
  font-weight: 800;
}

.vazio {
  margin: 0;
  padding: 1.5rem 1rem;
  color: var(--suave);
  text-align: center;
}

.barra {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(32rem, calc(100% - 1.5rem));
  height: 3.5rem;
  padding: 0 0.9rem 0 0.7rem;
  border: 0;
  border-radius: 1rem;
  background: var(--cor-loja);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
}

.barra[hidden] { display: none; }

.barra-qtd {
  display: grid;
  place-items: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.35rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
}

.barra-acao {
  flex: 1;
  text-align: left;
  letter-spacing: -0.01em;
}

.barra-total { font-variant-numeric: tabular-nums; }

.barra.pulso { animation: pulso 0.35s ease; }

@keyframes pulso {
  50% { transform: translateX(-50%) scale(1.025); }
}

dialog.folha {
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(var(--app), 100%);
  max-width: 100%;
  box-sizing: border-box;
  height: fit-content;
  max-height: min(92dvh, 44rem);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 1.25rem 1.25rem 0 0;
  overflow: hidden;
  background: #fff;
  color: inherit;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.2);
  scroll-padding: 0;
}

dialog.folha::backdrop { background: rgba(17, 17, 17, 0.5); }

dialog.folha[open] {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.folha-form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  flex: 0 1 auto;
  width: 100%;
  max-height: min(92dvh, 44rem);
  overflow: hidden;
}

.folha-midia,
.folha-cabeca {
  flex: 0 0 auto;
}

.folha-midia img {
  display: block;
  width: 100%;
  height: 13.5rem;
  background: #f1f1f1;
  object-fit: cover;
}

.folha-fechar {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
  font-size: 1.35rem;
  line-height: 1;
}

.folha-cabeca {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3.4rem 0.35rem 1rem;
}

.folha-cabeca h2,
.folha-corpo h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.folha-corpo {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  scroll-padding: 0;
  padding: 0.9rem 1rem 0.4rem;
}

.folha-desc {
  margin: 0.45rem 0 0;
  color: #4d4d4d;
  font-size: 0.92rem;
}

.folha-desc:empty { display: none; }

.folha-preco {
  margin: 0.55rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.passo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--linha);
  font-weight: 700;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.stepper button {
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  background: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}

.stepper output,
.stepper span {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 800;
}

.acordeao {
  border-top: 1px solid var(--linha);
}

.acordeao summary {
  padding: 0.9rem 0;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.acordeao summary::-webkit-details-marker { display: none; }

.acordeao summary::after {
  content: "+";
  float: right;
  color: var(--suave);
  font-weight: 700;
}

.acordeao[open] summary::after { content: "–"; }

.grupo {
  margin: 0.85rem 0 0;
  padding: 0 0 0.35rem;
  border: 0;
  border-top: 1px solid var(--linha);
}

.grupo legend {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.8rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 800;
}

.grupo legend span {
  color: var(--suave);
  font-size: 0.75rem;
  font-weight: 700;
}

.opcao {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f3f3f3;
  font-size: 0.9rem;
}

.opcao input {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  accent-color: var(--cor-loja);
}

.opcao span { flex: 1; }

.opcao strong {
  color: #333;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.opcao.tremer {
  animation: tremer 0.42s ease;
}

@keyframes tremer {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-5px); }
  30% { transform: translateX(5px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .opcao.tremer { animation: none; }
}

.acordeao label {
  display: block;
  margin-bottom: 0.75rem;
  color: #555;
  font-size: 0.8rem;
  font-weight: 700;
}

.acordeao input,
.acordeao textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid #e4e4e4;
  border-radius: 0.75rem;
  background: #fafafa;
  font-size: 16px;
}

.acordeao textarea {
  min-height: 5.25rem;
  resize: vertical;
}

.folha-rodape {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.75rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.04);
}

.cta {
  width: 100%;
  height: 3.2rem;
  border: 0;
  border-radius: 0.9rem;
  background: var(--cor-loja);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.cta:disabled {
  background: #cfcfcf;
  color: #fff;
  cursor: not-allowed;
}

.sacola-soma {
  display: flex;
  justify-content: space-between;
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.sacola-soma strong { font-size: 1.05rem; }

.link {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.45rem 0;
  border: 0;
  background: transparent;
  color: #b42318;
  font-weight: 700;
}

.linha .link {
  width: auto;
  margin-top: 0.15rem;
  padding: 0.15rem 0;
  font-size: 0.78rem;
  text-align: right;
}

.aviso {
  margin: 0.55rem 0 0;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.linha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.linha h3 {
  margin: 0;
  font-size: 0.95rem;
}

.linha p {
  margin: 0.15rem 0 0;
  color: var(--suave);
  font-size: 0.8rem;
}

.extra-grupo {
  margin-top: 0.45rem;
}

.extra-grupo h4 {
  margin: 0;
  color: #222;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.extra-grupo p {
  margin: 0.05rem 0 0;
}

.linha .linha-obs {
  margin-top: 0.45rem;
}

.linha-total {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.revisao-titulo {
  margin: 0.4rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.revisao-total {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.revisao-nota {
  margin: 0.55rem 0 0.4rem;
  color: var(--suave);
}

@media (min-width: 720px) {
  dialog.folha {
    top: 0;
    bottom: 0;
    width: min(28rem, calc(100% - 2rem));
    height: fit-content;
    max-height: min(85dvh, 44rem);
    margin: auto;
    border-radius: 1.25rem;
  }

  .folha-form { max-height: min(85dvh, 44rem); }
}

.obs-bloco {
  display: block;
}

.obs-bloco textarea,
.obs-bloco .opcao {
  margin-top: 0.45rem;
}

.obs-bloco textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 4.5rem;
  margin-top: 0.65rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid #e4e4e4;
  border-radius: 0.8rem;
  background: #fafafa;
  font-size: 16px;
  resize: vertical;
}

.teto-nota,
.meio-nota {
  margin: 0.35rem 0 0.15rem;
  color: #7a4b00;
  font-size: 0.78rem;
  font-weight: 700;
}

.meio-nota { color: #b42318; }

a.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.55rem;
  text-decoration: none;
}

.cta-sec {
  background: #128c7e;
}

.share-link {
  margin: 0 0 0.8rem;
  color: var(--suave);
  font-size: 0.82rem;
  word-break: break-all;
}

.info-bloco h3 {
  margin: 0.95rem 0 0.3rem;
  font-size: 0.92rem;
}

.info-bloco p,
.info-lista {
  margin: 0;
  color: #333;
  font-size: 0.86rem;
}

.info-lista { padding-left: 1.1rem; }

.info-lista li { margin: 0.2rem 0; }

.info-loja {
  margin: 1rem 0 0;
  color: var(--suave);
  font-size: 0.78rem;
}

.rodape-loja {
  margin-top: auto;
  padding: 1.15rem 1rem calc(1.15rem + env(safe-area-inset-bottom));
  background: #fff;
  color: #3a3a3a;
  border-top: 1px solid var(--linha);
  font-size: 0.84rem;
}

.rodape-nome {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.rodape-nome span {
  color: var(--suave);
  font-size: 0.78rem;
  font-weight: 700;
}

.whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  margin-top: 0.8rem;
  border-radius: 999px;
  background: #128c7e;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.rodape-redes,
.rodape-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin-top: 0.75rem;
}

.rodape-redes a,
.rodape-legal button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--suave);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.rodape-assinatura {
  margin: 0.9rem 0 0;
  color: #9a9a9a;
  font-size: 0.72rem;
}

.pwa {
  margin-top: 0.9rem;
  padding: 0.85rem;
  border: 1px solid var(--linha);
  border-radius: 0.95rem;
  background: #f7f7f7;
  color: #1a1a1a;
}

.cookies {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  width: min(34rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  overflow: auto;
  padding: 0.9rem 0.95rem 0.85rem;
  border-radius: 1rem;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
}

body.com-sacola .cookies {
  bottom: calc(5.15rem + env(safe-area-inset-bottom));
}

body.com-cookies {
  padding-bottom: calc(11rem + env(safe-area-inset-bottom));
}

body.com-cookies.cookies-abertas {
  padding-bottom: calc(18rem + env(safe-area-inset-bottom));
}

body.com-sacola.com-cookies {
  padding-bottom: calc(14.25rem + env(safe-area-inset-bottom));
}

.cookies p {
  margin: 0 0 0.7rem;
  font-size: 0.86rem;
}

.cookies-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookies-acoes .cta {
  width: auto;
  flex: 1 1 8.5rem;
  min-width: 0;
  height: 2.6rem;
  padding: 0 0.85rem;
}

.cookies-config,
.cookies-essencial {
  flex: 1 1 8.5rem;
  min-width: 0;
  height: 2.6rem;
  border: 1px solid #e4e4e4;
  border-radius: 0.9rem;
  background: #fff;
  color: #1a1a1a;
  font-weight: 800;
  padding: 0 0.9rem;
  white-space: nowrap;
}

.cookies-legal {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--cor-loja);
  font-weight: 800;
  text-decoration: underline;
  padding: 0.2rem 0.15rem;
  cursor: pointer;
}

.cookies-painel {
  margin: 0 0 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--linha);
}

.cookies-painel label {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin: 0.4rem 0;
  font-size: 0.82rem;
}

.legal-data {
  margin: 0;
  color: var(--suave);
  font-size: 0.78rem;
}

.legal-corpo h3 {
  margin: 1rem 0 0.35rem;
  font-size: 0.98rem;
}

.legal-corpo p {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
}

.legal-corpo a { color: var(--cor-loja); }

.pwa-titulo {
  margin: 0;
  font-weight: 800;
}

.pwa ol {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
}

.pwa-acoes {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.pwa .link { color: #555; }

.fechamento label {
  display: block;
  margin-top: 0.85rem;
  color: #555;
  font-size: 0.78rem;
  font-weight: 800;
}

.fechamento input,
.fechamento select {
  display: block;
  width: 100%;
  height: 2.9rem;
  margin-top: 0.35rem;
  padding: 0 0.8rem;
  border: 1px solid #e4e4e4;
  border-radius: 0.75rem;
  background: #fafafa;
  font-size: 1rem;
}

.fechamento .grupo { margin-top: 1rem; }

.fechamento .abas-pagamento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.7rem;
}

.fechamento .abas-pagamento.abas-uma { grid-template-columns: 1fr; }

.fechamento .aba-pagamento {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #fafafa;
  color: #222;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.fechamento .aba-pagamento[aria-selected="true"] {
  border-color: var(--cor-loja, #111);
  box-shadow: inset 0 0 0 1px var(--cor-loja, #111);
  background: #fff;
}

.fechamento .grupo-pagamento[hidden] { display: none; }

.fechamento .checkout-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.45rem;
}

.fechamento label.checkout-card-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 3.25rem;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.fechamento .checkout-card-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
  appearance: none;
  outline: none;
}

.fechamento .checkout-card-text {
  flex: 1;
  min-width: 0;
}

.fechamento .checkout-card-mark {
  box-sizing: border-box;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  border: 2px solid #d0d0d0;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}

.fechamento .checkout-card-mark::after {
  content: "";
  width: 0.28rem;
  height: 0.52rem;
  margin-top: -2px;
  border: solid transparent;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.fechamento label.checkout-card-option:has(input:checked),
.fechamento label.checkout-card-option.selected {
  border-color: var(--cor-loja, #111);
  background: color-mix(in srgb, var(--cor-loja, #111) 8%, #fff);
}

.fechamento label.checkout-card-option:has(input:checked) .checkout-card-mark,
.fechamento label.checkout-card-option.selected .checkout-card-mark {
  border-color: var(--cor-loja, #111);
  background: var(--cor-loja, #111);
}

.fechamento label.checkout-card-option:has(input:checked) .checkout-card-mark::after,
.fechamento label.checkout-card-option.selected .checkout-card-mark::after {
  border-color: #fff;
}

.fechamento label.checkout-card-option:focus-within {
  outline: 2px solid var(--cor-loja, #111);
  outline-offset: 2px;
}

.fechamento .nota {
  min-height: 1.1rem;
  margin: 0.35rem 0 0;
  color: #067647;
  font-size: 0.8rem;
  font-weight: 700;
}

.totais-sacola {
  margin: 0.9rem 0 0;
}

.totais-sacola div {
  display: flex;
  justify-content: space-between;
  padding: 0.28rem 0;
  font-size: 0.88rem;
}

.totais-sacola dt { color: #666; font-weight: 700; }

.totais-sacola dd { margin: 0; font-weight: 800; }

.confirmado-codigo {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

#sacola-pix-qr {
  display: block;
  width: min(220px, 72%);
  height: auto;
  margin: 0.8rem auto;
}

.aviso.copiado { color: #067647; }

.produto-cabeca {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-right: 2.4rem;
}

.produto-cabeca h2 { flex: 1; }

.produto-cabeca .acao {
  flex: 0 0 auto;
  box-shadow: none;
  border: 1px solid #e6e6e6;
}

.selo-hora {
  display: inline-block;
  margin: 0.45rem 0 0;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #fff4d6;
  color: #8a5a00;
  font-size: 0.78rem;
  font-weight: 800;
}

.produto-texto .selo-hora,
.produto-texto .preco-de,
.produto-texto .selo-estoque { display: block; }

.selo-estoque {
  display: inline-block;
  margin: 0.45rem 0 0;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #fde8e8;
  color: #8d2a2a;
  font-size: 0.78rem;
  font-weight: 800;
}

.produto--indisponivel { opacity: 0.72; }

.opcao--indisponivel { opacity: 0.65; }

.preco-de {
  margin: 0.28rem 0 0;
  color: #8a8a8a;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: line-through;
}

.cta-linha {
  margin-top: 0.45rem;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #d0d0d0;
}

.nota-ok {
  margin: 0 0 0.45rem;
  color: #067647;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.nota-ok:empty {
  display: none;
  margin: 0;
  padding: 0;
}

.etiqueta-bloco { display: block; }

.etiqueta-bloco input,
.clonar-painel input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid #e4e4e4;
  border-radius: 0.75rem;
  background: #fafafa;
  font: inherit;
  font-size: 16px;
}

.linha-etiqueta {
  margin: 0.3rem 0 0;
  font-weight: 800;
}

.linha-acoes {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

.clonar-painel {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.clonar-painel input { margin-top: 0; }

.clonar-painel button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: var(--cor-loja);
  color: #fff;
  font-weight: 800;
  padding: 0.45rem 0.7rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 5.6rem;
  z-index: 40;
  max-width: min(28rem, calc(100% - 1.5rem));
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 0.9rem;
  background: #1c1915;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  transform: translateX(-50%);
}

.prazo-loja {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  font-weight: 650;
}

.prazo-loja[data-demanda="1"] {
  color: #9a3412;
}

.prazo-loja strong {
  font-weight: 800;
}

.capa .prazo-loja {
  margin: 0.04rem 0 0;
  color: #fff;
  font-size: 0.75rem;
}

.capa .selos-hero {
  margin: 0.12rem 0 0;
  gap: 0.2rem;
}

.capa .selo-regra {
  min-height: 1.05rem;
  padding: 0.02rem 0.4rem;
  font-size: 0.66rem;
}

.capa .prazo-loja[data-demanda="1"] {
  color: #ffe08a;
}

.selo-hora[hidden],
.preco-de[hidden],
.cta-linha[hidden],
.nota-ok[hidden],
.toast[hidden],
.clonar-painel[hidden] { display: none !important; }

.selos-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0 0;
}

.selo-regra {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.45rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.banner-promo {
  margin: 0.75rem 0.85rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.banner-promo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 11rem;
  object-fit: cover;
}

.cupom-capturado {
  box-sizing: border-box;
  width: auto;
  max-width: calc(100% - 1.7rem);
  margin: 0.65rem 0.85rem 0;
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  background: #ecfdf3;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: break-word;
}

.cupom-capturado.is-pendente {
  background: #fff7ed;
  color: #9a3412;
}

.cupom-capturado.is-recusado {
  background: #fef2f2;
  color: #991b1b;
}

.cupom-destaque {
  display: block;
  width: calc(100% - 1.7rem);
  margin: 0.75rem 0.85rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid #f5d28a;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8e8 0%, #fff 100%);
  color: #7a4b08;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.cupom-destaque.is-aplicado {
  border-color: #86efac;
  background: #ecfdf3;
  color: #166534;
}

body.com-sacola .app {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

@media (min-width: 960px) {
  .capa,
  .capa-velo {
    min-height: 148px;
    max-height: 176px;
  }

  .perfil-logo,
  .perfil-logo--letra {
    width: 3.5rem;
    height: 3.5rem;
  }

  :root { --app: min(1120px, calc(100% - 3rem)); }

  .cardapio > .secao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    align-items: stretch;
    padding: 0 0.85rem 0.35rem;
  }

  .cardapio > .secao > .secao-topo,
  .cardapio > .secao > .secao-vazio { grid-column: 1 / -1; }

  .secao-destaque > .trilho-caixa { grid-column: 1 / -1; }

  .cardapio > .secao > .produto {
    width: auto;
    margin: 0;
  }

  #barra-carrinho {
    width: min(var(--app), calc(100% - 2rem));
  }
}

.secao-destaque .trilho .produto {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  flex: 0 0 180px;
  width: 180px;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
}

.secao-destaque .trilho .produto-foto,
.secao-destaque .trilho .produto-foto--vazio {
  order: -1;
  width: 100%;
  height: 118px;
  border-radius: 0;
  object-fit: cover;
}

.secao-destaque .trilho .produto-texto {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.55rem 0.65rem 0.7rem;
}

.secao-destaque .trilho .produto-nome {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.secao-destaque .trilho .produto-desc {
  display: none;
}

.secao-destaque .trilho .selo-destaque {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin-top: 0.2rem;
  white-space: nowrap;
  word-break: keep-all;
}

.secao-destaque .trilho .selo-hot {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.secao-destaque .trilho .selo-hot svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.secao-destaque .trilho .produto-preco,
.secao-destaque .trilho .preco-de,
.secao-destaque .trilho .selo-hora {
  margin-top: auto;
}

.secao-destaque .trilho .preco-de + .produto-preco,
.secao-destaque .trilho .selo-hora ~ .preco-de,
.secao-destaque .trilho .selo-hora ~ .produto-preco {
  margin-top: 0.15rem;
}

@media (min-width: 768px) {
  .secao-destaque .trilho .produto {
    flex-basis: 210px;
    width: 210px;
  }

  .secao-destaque .trilho .produto-foto,
  .secao-destaque .trilho .produto-foto--vazio {
    height: 130px;
  }
}

@media (max-width: 480px) {
  .folha-midia img {
    height: 142px;
    max-height: 150px;
    object-fit: cover;
  }

  .acao { white-space: normal; }
}

@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

@supports (-webkit-touch-callout: none) {
  input, select, textarea {
    font-size: 16px !important;
  }
}
