/* Cardápio digital (página pública da loja). Leve: sem fontes externas, sem framework. A cor da loja vem em --brand. */
:root {
  --brand: #1a7f5a;
  --on-brand: #fff;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --brand-ink: color-mix(in srgb, var(--brand) 78%, #000);
  --bg: #f5f4f1;
  --surface: #fff;
  --sunken: #f3f2ee;
  --text: #17191a;
  --soft: #62676a;
  --line: #e7e5df;
  --danger: #b42318;
  --ok: #15803d;
  --warn-bg: #fff7e6;
  --warn-ink: #7a4b00;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(20, 18, 14, 0.06);
  --shadow: 0 1px 2px rgba(20, 18, 14, 0.05), 0 10px 30px -12px rgba(20, 18, 14, 0.18);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 128px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }

/* ----- Topo da loja ----- */
.cover {
  position: relative;
  height: 200px;
  background: var(--brand) center / cover no-repeat;
}
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35)); }
.cover.is-empty {
  height: 150px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand) 70%, #fff) 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--brand) 60%, #000) 0%, transparent 60%),
    var(--brand);
}
.cover.is-empty::after { background: none; }
.store {
  position: relative;
  margin-top: -64px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 16px;
  align-items: end;
}
.store-logo {
  grid-row: span 2;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  object-fit: cover;
  background: var(--sunken);
  border: 4px solid var(--surface);
  margin-top: -46px;
  box-shadow: var(--shadow);
}
.store-logo.is-letter { display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--on-brand); background: var(--brand); }
.store h1 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.store-state { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13px; color: var(--soft); }
.open-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 10%, #fff);
  border-radius: 999px;
  padding: 2px 10px 2px 8px;
}
.open-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.open-dot.is-closed { color: var(--danger); background: #fdf0ee; }
.store-about { grid-column: 1 / -1; margin: 12px 0 0; color: var(--soft); font-size: 14px; }
.store-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.fact { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); }
.fact svg { color: var(--brand); }
.fact strong { color: var(--text); font-weight: 650; }

.closed-banner {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 14px;
}

/* ----- Meus pedidos e Pedir de novo ----- */
.my-orders {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13.5px;
  font-weight: 650;
}
.my-orders svg { color: var(--brand); }
.again {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
}
.again-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.again-label { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-ink); }
.again-text strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.again-text small { color: var(--soft); font-size: 12.5px; }
.pill-btn {
  flex: none;
  border: 1px solid var(--brand);
  background: var(--surface);
  color: var(--brand-ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13.5px;
}
.pill-btn.is-solid { background: var(--brand); color: var(--on-brand); }
.past-order { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.past-order:first-child { padding-top: 4px; }
.past-order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.past-status { font-size: 12.5px; font-weight: 650; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 2px 9px; }
.past-status.is-done { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, #fff); }
.past-status.is-off { color: var(--soft); background: var(--sunken); }
.past-items { margin: 0; color: var(--soft); font-size: 14px; }
.past-order-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--soft); flex-wrap: wrap; }
.past-actions { display: inline-flex; align-items: center; gap: 12px; }

/* ----- Busca e categorias (grudam no topo) ----- */
.cats {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 14px -16px 0;
  padding: 10px 16px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--soft);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 0; font-size: 16px; outline: none; color: var(--text); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.cats-row { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.cats-row::-webkit-scrollbar { display: none; }
.cats > :last-child:not(.cats-row) { margin-bottom: 10px; }
.cat-chip {
  flex: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--soft);
  transition: background 0.15s, color 0.15s;
}
.cat-chip:hover { color: var(--text); }
.cat-chip.is-active { background: var(--text); color: #fff; }

/* ----- Produtos ----- */
.cat { padding-top: 18px; }
.cat h2 { font-size: 19px; margin: 4px 2px 12px; letter-spacing: -0.015em; font-weight: 800; }
.products { display: grid; gap: 10px; }
@media (min-width: 700px) { .products { grid-template-columns: 1fr 1fr; } }
.product {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  width: 100%;
  min-height: 112px;
  text-align: left;
  border: 1px solid transparent;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s;
}
.product:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.product:active { transform: scale(0.99); }
.product[disabled] { cursor: default; opacity: 0.55; transform: none; box-shadow: var(--shadow-sm); }
.product-text { display: flex; flex-direction: column; min-width: 0; }
.product-name { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.3; margin: 0 0 4px; }
.product-desc {
  display: -webkit-box;
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 13.5px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price { margin-top: auto; font-weight: 750; color: var(--brand-ink); }
.product-price small { font-weight: 500; color: var(--soft); font-size: 12.5px; }
.product-media { position: relative; align-self: start; }
.product-img { width: 112px; height: 112px; border-radius: 14px; object-fit: cover; background: var(--sunken); }
.product-add {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(20, 18, 14, 0.16);
  transition: background 0.15s, color 0.15s;
}
.product:not(.has-img) { min-height: 0; }
.product:not(.has-img) .product-media { align-self: end; }
.product:not(.has-img) .product-add { position: static; background: var(--brand-soft); box-shadow: none; }
.product:hover .product-add { background: var(--brand); color: var(--on-brand); }
.product-add svg { width: 18px; height: 18px; stroke-width: 2.4; }
.tag-out { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--danger); background: #fdf0ee; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.empty-search { text-align: center; color: var(--soft); padding: 40px 0; }

.footer { color: var(--soft); font-size: 13px; padding: 36px 0 128px; text-align: center; }
.footer a { color: var(--soft); }
.hours-list { margin: 8px auto 14px; display: inline-grid; grid-template-columns: auto auto; gap: 2px 16px; text-align: left; }

/* ----- Barra da sacola ----- */
.bag-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
  animation: bar-in 0.3s var(--ease);
}
@keyframes bar-in { from { transform: translateY(100%); } }
.bag-btn {
  pointer-events: auto;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  padding: 10px 22px 10px 10px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--brand) 60%, transparent), 0 2px 6px rgba(0, 0, 0, 0.12);
}
.bag-btn.is-bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.04); } }
.bag-count {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 0 8px;
  background: color-mix(in srgb, var(--on-brand) 20%, transparent);
  font-size: 15px;
}
.bag-label { flex: 1; text-align: left; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 11;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 9px 16px;
  max-width: calc(100% - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ----- Folha (produto, sacola) ----- */
.sheet {
  border: 0;
  padding: 0;
  margin: auto auto 0;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
  /* clip: a folha não vira área rolável (com hidden, o foco num campo ainda podia rolar a folha inteira). */
  overflow: clip;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
}
.sheet::backdrop { background: rgba(14, 12, 10, 0.5); backdrop-filter: blur(2px); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in 0.28s var(--ease); }
@keyframes sheet-in { from { transform: translateY(48px); opacity: 0; } }
@media (min-width: 720px) {
  .sheet { margin: auto; border-radius: 24px; max-height: 88vh; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet[open], .bag-bar, .bag-btn.is-bump { animation: none; }
  .product, .toast { transition: none; }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.sheet-head h2 { font-size: 18px; margin: 0; letter-spacing: -0.01em; }
.sheet-close { border: 0; background: var(--sunken); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--soft); flex: none; }
.sheet-body { overflow-y: auto; padding: 4px 18px 18px; flex: 1; overscroll-behavior: contain; counter-reset: step; }
.sheet-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; background: var(--surface); }

.p-hero { width: calc(100% + 36px); max-width: none; margin: -4px -18px 16px; max-height: 280px; object-fit: cover; }
.p-desc { color: var(--soft); margin: 0 0 8px; }
.p-price { font-weight: 800; font-size: 19px; margin: 0 0 8px; color: var(--brand-ink); }

.group { margin: 20px -18px 0; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--sunken); padding: 11px 18px; }
.group-head h3 { font-size: 15px; margin: 0; }
.group-rule { font-size: 12.5px; color: var(--soft); }
.req { font-size: 11.5px; font-weight: 700; background: var(--text); color: #fff; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.req.is-done { background: var(--ok); }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt-text { flex: 1; min-width: 0; }
.opt-name { font-weight: 550; }
.opt-desc { display: block; color: var(--soft); font-size: 13px; }
.opt-price { color: var(--soft); font-size: 14px; white-space: nowrap; }
.opt input[type="radio"], .opt input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.opt.is-out { opacity: 0.5; cursor: default; }

.stepper { display: inline-flex; align-items: center; background: var(--sunken); border-radius: 12px; overflow: hidden; flex: none; }
.stepper button { border: 0; background: transparent; width: 40px; height: 44px; font-size: 20px; color: var(--brand); font-weight: 700; }
.stepper button:disabled { color: #c9c6be; cursor: default; }
.stepper span { min-width: 24px; text-align: center; font-weight: 700; }
.stepper.is-small { border-radius: 10px; }
.stepper.is-small button { width: 32px; height: 32px; font-size: 18px; }

.field { display: grid; gap: 6px; margin: 12px 0 0; }
.field > span { font-size: 13px; font-weight: 650; color: var(--soft); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: var(--surface);
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field select {
  appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362676a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
  padding-right: 38px;
}
.field textarea { resize: vertical; min-height: 68px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-street { display: grid; grid-template-columns: 1fr 104px; gap: 10px; }
.hint { font-size: 12.5px; color: var(--soft); margin: 6px 0 0; }
.hint.is-warn { color: var(--warn-ink); background: var(--warn-bg); border-radius: 10px; padding: 8px 10px; }
.hint-link { justify-self: start; font-size: 12.5px; color: var(--soft); text-underline-offset: 3px; }
.note { font-size: 14px; background: var(--brand-soft); color: var(--brand-ink); border-radius: 12px; padding: 10px 12px; margin: 12px 0 0; }
.cep-row { position: relative; }
.cep-status { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--soft); background: var(--surface); padding-left: 6px; }
.cep-status.is-error { color: var(--danger); }

.btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 750;
  font-size: 15.5px;
  background: var(--brand);
  color: var(--on-brand);
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: filter 0.15s, transform 0.1s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.99); }
.btn.is-center { justify-content: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: var(--sunken); color: var(--text); }
.link-btn { border: 0; background: none; color: var(--brand-ink); font-weight: 650; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* Etapas da finalização: 1, 2, 3 */
.section-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin: 26px 0 4px; }
.section-title:first-child { margin-top: 4px; }
.section-title.is-step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 13px;
  font-weight: 800;
}
.bag-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bag-line-name { font-weight: 650; }
.bag-line-opts { color: var(--soft); font-size: 13px; }
.bag-line-side { display: grid; justify-items: end; gap: 6px; }

.choices { display: grid; gap: 8px; margin-top: 10px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.choice input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice-text { display: grid; }
.choice-text > span { font-weight: 650; }
.choice-text small { color: var(--soft); font-size: 12.5px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--sunken); border-radius: 14px; padding: 4px; margin-top: 10px; }
.field .seg { margin-top: 0; }
.seg label { position: relative; display: grid; place-items: center; text-align: center; padding: 10px 6px; border-radius: 11px; font-weight: 650; cursor: pointer; color: var(--soft); transition: background 0.15s, color 0.15s; }
/* O rádio fica escondido dentro do próprio botão: ao focar, o navegador não rola nada para "mostrar" o rádio. */
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.seg label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); }

.totals { margin-top: 20px; display: grid; gap: 6px; font-size: 14px; background: var(--sunken); border-radius: 14px; padding: 14px; }
.totals div { display: flex; justify-content: space-between; color: var(--soft); }
.totals .total { font-size: 18px; font-weight: 800; margin-top: 4px; color: var(--text); }
.problems { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: #fdf0ee; color: #7a1d14; font-size: 14px; }
.problems p { margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13.5px; color: var(--soft); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.privacy { font-size: 12.5px; color: var(--soft); margin: 14px 0 0; }
.error { color: var(--danger); font-size: 14px; margin: 10px 0 0; }
.error:empty { display: none; }
#card-brick { margin-top: 12px; }

/* ----- Acompanhamento ----- */
/* Página de privacidade do cardápio */
.legal { padding: 20px 16px 64px; max-width: 680px; line-height: 1.6; font-size: 15px; }
.legal-back { display: inline-block; color: var(--soft); font-size: 14px; text-decoration: none; margin-bottom: 18px; }
.legal-back:hover { color: var(--text); }
.legal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.legal-head img, .legal-head .store-logo { width: 52px; height: 52px; margin: 0; border-width: 0; box-shadow: none; border-radius: 14px; }
.legal-head .store-logo.is-letter { font-size: 22px; }
.legal-head h1 { font-size: 22px; margin: 0; }
.legal-head p { margin: 0; color: var(--soft); font-size: 14px; }
.legal h2 { font-size: 16px; margin: 28px 0 8px; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: inherit; }
.legal-note { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.legal .btn { flex: none; display: inline-flex; font-size: 14.5px; padding: 11px 16px; }
.legal-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; }
.privacy a { color: inherit; }

.track { padding: 20px 16px 60px; }
.track-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.track-head img, .track-head .store-logo { width: 52px; height: 52px; margin: 0; border-width: 0; box-shadow: none; border-radius: 14px; }
.track-head .store-logo.is-letter { font-size: 22px; }
.track-head h1 { font-size: 18px; margin: 0; }
.track-head p { margin: 0; color: var(--soft); font-size: 13px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 12px; }
.status-big { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 4px; }
.status-sub { color: var(--soft); margin: 0; }
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 22px 1fr; gap: 12px; position: relative; padding-bottom: 18px; color: var(--soft); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; width: 12px; height: 12px; margin: 5px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); box-sizing: border-box; z-index: 1; }
.step::after { content: ""; position: absolute; left: 10px; top: 17px; bottom: -5px; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step.is-done { color: var(--text); }
.step.is-done::before { background: var(--brand); border-color: var(--brand); }
.step.is-done::after { background: var(--brand); }
.step.is-now { color: var(--text); font-weight: 750; }
.step.is-now::before { border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--brand) 6%, transparent); } }
@media (prefers-reduced-motion: reduce) { .step.is-now::before { animation: none; } }
.pix { display: grid; justify-items: center; text-align: center; gap: 10px; }
.pix img { width: 220px; height: 220px; image-rendering: pixelated; border-radius: 12px; border: 1px solid var(--line); padding: 8px; background: #fff; }
.pix-code { width: 100%; display: flex; gap: 8px; }
.pix-code input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: var(--sunken); }
.pix-code .btn { flex: none; }
.timer { font-weight: 750; font-variant-numeric: tabular-nums; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.summary-line small { display: block; color: var(--soft); }
.contact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.contact a { text-decoration: none; }
.notfound { padding: 80px 16px; text-align: center; color: var(--soft); }
.notfound h1 { color: var(--text); }
