:root{--brand:#b42318;--ink:#241b18;--paper:#fffaf6;--line:#eaded6;--muted:#73655f;--shadow:0 20px 55px rgba(61,30,17,.14)}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}.hidden{display:none!important}.menu-shell{max-width:1120px;margin:0 auto;padding:20px 18px 70px}.loading-state,.setup-card,.empty-menu{max-width:620px;margin:12vh auto;padding:32px;border-radius:20px;background:#fff;box-shadow:var(--shadow);text-align:center}.hero{position:relative;overflow:hidden;padding:26px;border-radius:25px;background:linear-gradient(125deg,var(--brand),#692318);color:#fff;box-shadow:var(--shadow)}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 55%,rgba(255,255,255,.09));pointer-events:none}.hero-top,.store-details{position:relative;z-index:1;display:flex;gap:14px;align-items:center}.store-heading{flex:1}.eyebrow{margin:0 0 5px;font-size:.7rem;font-weight:800;letter-spacing:.13em;opacity:.76}.hero h1{font-size:clamp(1.5rem,4vw,2.3rem);margin:0}.hero p:not(.eyebrow){margin:6px 0 0;opacity:.9}.store-logo{height:62px;width:62px;object-fit:cover;border-radius:18px;background:#fff}.cart-button{border:0;border-radius:999px;background:#fff;color:var(--brand);font-weight:800;padding:12px 15px;white-space:nowrap;cursor:pointer}.cart-button span{display:inline-grid;place-items:center;margin-left:6px;width:20px;height:20px;border-radius:50%;background:var(--brand);color:#fff;font-size:.75rem}.store-details{margin-top:21px;flex-wrap:wrap;font-size:.9rem}.store-details span:not(:empty){padding:7px 10px;border:1px solid rgba(255,255,255,.26);border-radius:999px}.store-status.is-open{background:#d8f6df;color:#135d27;border-color:#d8f6df}.store-status.is-closed{background:#ffe1dc;color:#8f241b;border-color:#ffe1dc}.notice{margin:18px 0;padding:13px 16px;border-radius:14px;background:#fff2d9;color:#6b4700}.menu-toolbar{position:sticky;top:0;z-index:3;margin:20px -6px;padding:10px 6px;background:rgba(255,250,246,.94);backdrop-filter:blur(8px)}.search-box input,.field-label input,.field-label textarea,.field-label select{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff;color:var(--ink);font:inherit}.search-box input:focus,.field-label input:focus,.field-label textarea:focus,.field-label select:focus{outline:2px solid color-mix(in srgb,var(--brand) 35%,transparent);border-color:var(--brand)}.category-nav{display:flex;gap:8px;overflow:auto;margin-top:10px;padding-bottom:2px}.category-nav button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 12px;white-space:nowrap;color:var(--ink);cursor:pointer}.menu-section{scroll-margin-top:112px;margin-top:30px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:13px}.section-heading h2{margin:0;font-size:1.45rem}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:14px}.product-card{display:flex;flex-direction:column;min-height:225px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 5px 20px rgba(50,29,18,.04)}.product-image{height:118px;width:100%;border-radius:12px;object-fit:cover;background:#f4e8e1;margin-bottom:12px}.product-card h3{margin:0;font-size:1rem}.product-card p{margin:7px 0;color:var(--muted);font-size:.86rem;line-height:1.38}.card-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:12px}.price{font-weight:850}.old-price{font-size:.78rem;color:var(--muted);text-decoration:line-through}.add-button,.mini-quantity button{border:0;border-radius:10px;background:#f8dfd9;color:var(--brand);font-weight:800;padding:9px 11px;cursor:pointer}.drawer{position:fixed;z-index:10;right:0;top:0;bottom:0;width:min(450px,100vw);display:flex;flex-direction:column;padding:22px;background:#fff;box-shadow:var(--shadow)}.drawer-header{display:flex;justify-content:space-between;gap:16px;align-items:center}.drawer-header h2{margin:0}.icon-close{border:0;background:transparent;font-size:2rem;line-height:1;color:var(--ink);cursor:pointer}.cart-items{flex:1;overflow:auto;margin:18px 0}.cart-line{display:grid;grid-template-columns:1fr auto;gap:9px;padding:14px 0;border-bottom:1px solid var(--line)}.cart-line strong,.cart-line small{display:block}.cart-line small{color:var(--muted);margin-top:3px}.mini-quantity{display:flex;align-items:center;justify-content:flex-end;gap:8px}.mini-quantity button{padding:3px 8px}.remove-link{margin-top:7px;border:0;padding:0;background:none;color:var(--brand);font:inherit;cursor:pointer}.cart-summary{border-top:1px solid var(--line);padding:16px 0}.cart-summary>div{display:flex;justify-content:space-between}.cart-summary small{display:block;margin-top:7px;color:var(--muted)}.primary-action{width:100%;border:0;border-radius:13px;padding:14px;background:var(--brand);color:#fff;font:800 1rem inherit;cursor:pointer}.primary-action:disabled{opacity:.5;cursor:not-allowed}.backdrop{position:fixed;z-index:9;inset:0;background:rgba(26,15,10,.48)}.modal{position:fixed;z-index:12;inset:0;display:grid;place-items:center;padding:16px;background:rgba(26,15,10,.48);overflow:auto}.modal-card{width:min(560px,100%);max-height:calc(100vh - 32px);overflow:auto;padding:24px;border-radius:22px;background:#fff;box-shadow:var(--shadow)}.modal-help{color:var(--muted);line-height:1.45}.pizza-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:17px 0}.flavor-option{border:1px solid var(--line);border-radius:12px;padding:11px;background:#fff;text-align:left;cursor:pointer}.flavor-option.is-selected{border-color:var(--brand);background:#fff3f0}.flavor-option strong,.flavor-option span{display:block}.flavor-option span{margin-top:4px;color:var(--muted);font-size:.86rem}.field-label{display:block;margin:13px 0 0;font-size:.86rem;font-weight:700}.field-label input,.field-label textarea,.field-label select{margin-top:6px;font-weight:400}.choice-row{display:flex;gap:8px;margin:17px 0}.choice-row button{flex:1;border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff;font:700 .9rem inherit;cursor:pointer}.choice-row button.is-selected{border-color:var(--brand);color:var(--brand);background:#fff3f0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.full-width{grid-column:1/-1}.checkout-total{margin:20px 0;padding:14px;border-radius:12px;background:#fcf2ed;line-height:1.7}.checkout-total div{display:flex;justify-content:space-between}.form-feedback{min-height:1.2em;margin:10px 0 0;color:#9d2418;font-size:.9rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:560px){.menu-shell{padding:12px 12px 50px}.hero{padding:19px}.hero-top{align-items:flex-start}.store-logo{width:48px;height:48px;border-radius:14px}.cart-button{padding:10px}.pizza-choices{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.modal-card{padding:19px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card{min-height:205px;padding:10px}.product-image{height:94px}.product-card p{font-size:.78rem}.card-bottom{align-items:flex-end;flex-direction:column}.drawer{padding:18px}}
/* Fluxos de pagamento, rastreio e confirmação de endereço. */
.hero-actions{display:flex;align-items:center;gap:.65rem}.tracking-button,.outline-action,.outline-map{border:1px solid rgba(255,255,255,.75);background:transparent;color:inherit;border-radius:.75rem;padding:.72rem .9rem;font:inherit;cursor:pointer}.outline-action{color:var(--brand);border-color:var(--brand);width:100%;margin-top:.6rem}.map-confirmation{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;padding:.85rem;border:1px solid #eadbd4;border-radius:.75rem}.map-confirmation .outline-map{color:var(--brand);border-color:#dcbab0;text-decoration:none}.map-confirmation label,.consent-field{font-size:.88rem;line-height:1.35}.consent-field{display:flex;gap:.45rem;align-items:flex-start}.payment-card{max-width:520px}.payment-alert{line-height:1.55;background:#fff6e9;border:1px solid #f0d4a9;padding:1rem;border-radius:.75rem}.pix-qr{display:block;width:220px;height:220px;margin:1rem auto;border-radius:.75rem}.tracking-result{margin-top:1rem;min-height:3rem;padding:.9rem;border-radius:.75rem;background:#f8f3f0;display:grid;gap:.35rem}.tracking-status{font-weight:800;color:var(--brand)}.tracking-result p,.tracking-result small{margin:0}@media(max-width:640px){.hero-actions{gap:.35rem}.tracking-button{padding:.6rem;font-size:.82rem}.map-confirmation{align-items:flex-start;flex-direction:column}}
/* Pagamento Pix simplificado: somente aviso, chave e acoes. */
.payment-card{width:min(440px,100%);max-width:440px}.pix-payment-summary{display:grid;gap:12px}.pix-payment-summary .payment-alert{display:block;margin:14px 0 2px}.pix-payment-summary .payment-alert span{display:block;margin-top:7px;color:var(--muted);font-size:.9rem}.pix-key-field{display:grid;gap:6px;font-size:.78rem;font-weight:800}.pix-key-field input{width:100%;min-height:44px;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);font:600 .95rem inherit}.pix-payment-summary .outline-action,.pix-payment-summary .primary-action{min-height:44px;margin:0}.pix-payment-summary .form-feedback{margin:0}@media(max-width:520px){.payment-card{padding:18px}.pix-payment-summary{gap:10px}}

/* Montagem guiada da pizza. */
.pizza-modal-card {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
}

.pizza-modal-header {
  flex: 0 0 auto;
  padding: 21px 23px 15px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.pizza-modal-header .modal-help { margin: 10px 0 0; }

.pizza-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 23px 26px;
  background: #fffdfb;
}

.pizza-modal-footer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 23px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(61, 30, 17, .08);
}

.pizza-modal-footer .primary-action { width: 100%; margin: 0; }
.pizza-total-preview { display: grid; gap: 2px; min-width: 112px; }
.pizza-total-preview span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pizza-total-preview strong { font-size: 1.25rem; }
.pizza-selection-panel,
.pizza-customization-panel { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pizza-customization-panel { margin-top: 20px; }
.pizza-section-heading > div { display: flex; align-items: center; gap: 10px; }
.pizza-section-heading strong,
.pizza-section-heading small { display: block; }
.pizza-section-heading small { margin-top: 2px; color: var(--muted); font-size: .78rem; }
.pizza-step-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .82rem; font-weight: 900; }
.pizza-flavor-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }

.pizza-flavor-slot {
  min-width: 0;
  min-height: 92px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font: inherit;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.pizza-flavor-slot[data-pizza-slot] { cursor: pointer; }
.pizza-flavor-slot.is-active { border-color: var(--brand); background: #fff5f2; box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 12%, transparent); }
.pizza-flavor-slot.is-locked { border-style: dashed; background: #fbf7f4; color: var(--muted); }
.pizza-slot-index { display: block; margin-bottom: 7px; color: var(--brand); font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pizza-slot-content { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pizza-slot-content strong,
.pizza-slot-content small { display: block; min-width: 0; }
.pizza-slot-content strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.pizza-slot-content small { margin-top: 3px; color: var(--muted); font-size: .73rem; }
.pizza-slot-thumb { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border-radius: 10px; background: #f4e8e1; font-size: 1.25rem; }
.pizza-slot-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pizza-second-toggle {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #d9afa5;
  border-radius: 11px;
  background: #fff;
  color: var(--brand);
  font: 800 .83rem inherit;
  cursor: pointer;
}

.pizza-second-toggle.is-active { border-style: solid; background: #fff3f0; }
.pizza-price-formula { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; border-radius: 11px; background: #f7eee9; color: var(--muted); font-size: .78rem; }
.pizza-price-formula strong { color: var(--ink); text-align: right; }
.pizza-price-formula b { display: block; margin-top: 3px; color: var(--brand); }
.pizza-choices { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 22px 0; }
.pizza-flavor-group { display: grid; gap: 9px; }
.pizza-flavor-group-title { display: flex; align-items: center; gap: 7px; padding: 0 2px; }
.pizza-flavor-group-title strong { font-size: .93rem; }
.pizza-flavor-group-title small { display: grid; place-items: center; min-width: 22px; height: 22px; margin-left: auto; border-radius: 999px; background: #f2e9e4; color: var(--muted); font-size: .7rem; font-weight: 800; }
.pizza-flavor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }

.flavor-option {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 82px;
  padding: 9px;
  text-align: left;
}

.flavor-option.is-selected { box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 10%, transparent); }
.flavor-thumb { display: grid !important; place-items: center; width: 58px; height: 58px; overflow: hidden; border-radius: 10px; background: #f4e8e1; font-size: 1.4rem; }
.flavor-thumb img { width: 100%; height: 100%; object-fit: cover; }
.flavor-copy { display: block !important; min-width: 0; padding-right: 24px; }
.flavor-copy strong,
.flavor-copy small,
.flavor-copy > span { display: block; }
.flavor-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.flavor-copy small { display: -webkit-box; margin: 3px 0; color: var(--muted); overflow: hidden; font-size: .7rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.flavor-copy > span { margin: 0; color: var(--brand); font-size: .78rem; font-weight: 850; }
.flavor-selected-badge { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .65rem; }
.pizza-quick-notes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.pizza-note-chip { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 750 .75rem inherit; cursor: pointer; }
.pizza-note-chip.is-selected { border-color: #d9afa5; background: #fff3f0; color: var(--brand); }
.pizza-notes-field { margin-top: 13px; }
.pizza-quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.pizza-quantity-row strong,
.pizza-quantity-row small { display: block; }
.pizza-quantity-row small { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.pizza-quantity-stepper { display: grid; grid-template-columns: 38px 42px 38px; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.pizza-quantity-stepper button { height: 38px; border: 0; background: #f8eee9; color: var(--brand); font: 900 1.1rem inherit; cursor: pointer; }
.pizza-quantity-stepper button:disabled { color: #b9aaa3; cursor: not-allowed; }
.pizza-quantity-stepper output { text-align: center; font-weight: 900; }
.pizza-modal-card .primary-action:disabled { opacity: .62; }

/* Acompanhamento completo do pedido. */
.tracking-card {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
}

.tracking-header { flex: 0 0 auto; padding: 21px 23px 15px; border-bottom: 1px solid var(--line); }
.tracking-result { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: block; margin: 0; padding: 18px 23px 24px; border-radius: 0; background: #fffdfb; }
.tracking-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 23px; background: #fff; border-top: 1px solid var(--line); }
.tracking-auto-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .75rem; font-weight: 750; }
.tracking-auto-status > span { width: 8px; height: 8px; border-radius: 50%; background: #d7c9c2; }
.tracking-auto-status.is-active > span { background: #2d9a4d; box-shadow: 0 0 0 4px #e0f5e6; }
.tracking-refresh-button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--brand); font: 800 .75rem inherit; cursor: pointer; }

.tracking-order-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px;
  border-radius: 16px;
  background: linear-gradient(125deg, var(--brand), #732319);
  color: #fff;
}

.tracking-order-summary.is-canceled { background: linear-gradient(125deg, #6d625d, #3e3734); }
.tracking-order-code { display: block; margin-bottom: 5px; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; opacity: .82; }
.tracking-order-summary .tracking-status { display: block; color: #fff; font-size: 1.25rem; }
.tracking-order-summary p { max-width: 470px; margin-top: 7px !important; font-size: .8rem; line-height: 1.45; opacity: .88; }
.tracking-order-total { display: grid; justify-items: end; flex: 0 0 auto; }
.tracking-order-total span { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .78; }
.tracking-order-total strong { margin-top: 3px; font-size: 1.35rem; }

.tracking-section { margin-top: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tracking-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tracking-section-title span,
.tracking-section-title strong { display: block; }
.tracking-section-title > div > span { color: var(--muted); font-size: .67rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.tracking-section-title > div > strong { margin-top: 2px; font-size: .93rem; }
.tracking-eta { padding: 6px 8px; border-radius: 999px; background: #fff0d7; color: #7a5000; font-size: .7rem; font-weight: 850; }

.tracking-timeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 5px 0 0; padding: 0; list-style: none; }
.tracking-timeline li { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.tracking-timeline li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 14px; left: calc(50% + 17px); width: calc(100% - 34px); height: 2px; background: #eadfd9; }
.tracking-timeline li.is-complete:not(:last-child)::after { background: var(--brand); }
.tracking-step-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #e2d5cf; border-radius: 50%; background: #fff; color: #9b8c85; font-size: .72rem; font-weight: 900; }
.tracking-timeline li.is-complete .tracking-step-marker,
.tracking-timeline li.is-current .tracking-step-marker { border-color: var(--brand); background: var(--brand); color: #fff; }
.tracking-timeline li.is-current .tracking-step-marker { box-shadow: 0 0 0 5px #fae7e2; }
.tracking-step-copy { min-width: 0; }
.tracking-step-copy strong { display: block; font-size: .66rem; line-height: 1.25; }
.tracking-step-copy small { display: block; margin-top: 3px !important; color: var(--muted); font-size: .62rem; }

.tracking-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 13px; }
.tracking-items-section { grid-column: 1 / -1; }
.tracking-item-list { display: grid; }
.tracking-item-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.tracking-item-row:first-child { padding-top: 0; border-top: 0; }
.tracking-item-row:last-child { padding-bottom: 0; }
.tracking-item-row > div { min-width: 0; }
.tracking-item-row strong { font-size: .8rem; }
.tracking-item-row small { display: block; margin-top: 3px !important; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.tracking-item-row .tracking-item-note { color: #8a4b1c; }
.tracking-totals { display: grid; gap: 8px; }
.tracking-totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; }
.tracking-grand-total { margin-top: 3px; padding-top: 9px; border-top: 1px solid var(--line); font-size: .9rem !important; }
.tracking-delivery-section p { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.tracking-delivery-section > small { display: block; margin-top: 5px !important; color: var(--muted); font-size: .7rem; }
.tracking-map-link,
.tracking-support-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 10px; padding: 8px 10px; border: 1px solid #e4b8af; border-radius: 9px; color: var(--brand); font-size: .74rem; font-weight: 850; text-decoration: none; }
.tracking-payment-badge { display: inline-flex; padding: 7px 9px; border-radius: 999px; background: #fff0d7; color: #7a5000; font-size: .72rem; font-weight: 850; }
.tracking-payment-badge[data-payment-status="pago"] { background: #dff4e5; color: #176c32; }
.tracking-payment-badge[data-payment-status="cancelado"] { background: #ffe3df; color: #8f241b; }
.tracking-support-link { display: flex; width: 100%; margin-top: 13px; background: #effaf2; border-color: #bfe0c8; color: #176c32; }

.tracking-history { margin-top: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tracking-history summary { padding: 11px 13px; color: var(--brand); font-size: .76rem; font-weight: 850; cursor: pointer; }
.tracking-history ol { display: grid; gap: 8px; margin: 0; padding: 0 13px 13px; list-style: none; }
.tracking-history li { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .72rem; }
.tracking-history time { color: var(--muted); }
.tracking-last-update { display: block; margin-top: 12px !important; color: var(--muted); text-align: center; font-size: .68rem; }
.tracking-loading,
.tracking-empty-state { display: grid; place-items: center; min-height: 220px; padding: 28px; text-align: center; }
.tracking-empty-state p { max-width: 360px; margin-top: 7px !important; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.tracking-empty-detail { color: var(--muted); font-size: .78rem; }

@media (max-width: 640px) {
  .modal:has(.pizza-modal-card),
  .modal:has(.tracking-card) { padding: 8px; }
  .pizza-modal-card,
  .tracking-card { max-height: calc(100dvh - 16px); border-radius: 18px; }
  .pizza-modal-header,
  .tracking-header { padding: 17px 16px 12px; }
  .pizza-modal-body,
  .tracking-result { padding: 14px 16px 20px; }
  .pizza-modal-footer { grid-template-columns: 1fr; gap: 9px; padding: 11px 16px; }
  .pizza-total-preview { display: flex; align-items: center; justify-content: space-between; }
  .pizza-total-preview strong { font-size: 1.1rem; }
  .pizza-flavor-slots,
  .pizza-flavor-grid { grid-template-columns: 1fr; }
  .pizza-flavor-slot { min-height: 82px; }
  .flavor-option { grid-template-columns: 64px minmax(0, 1fr); min-height: 88px; }
  .flavor-thumb { width: 64px; height: 64px; }
  .pizza-price-formula { align-items: flex-start; flex-direction: column; }
  .pizza-price-formula strong { text-align: left; }
  .tracking-order-summary { align-items: stretch; flex-direction: column; gap: 10px; }
  .tracking-order-total { justify-items: start; }
  .tracking-order-total strong { font-size: 1.2rem; }
  .tracking-section-title { align-items: flex-start; flex-direction: column; }
  .tracking-timeline { grid-template-columns: 1fr; }
  .tracking-timeline li { grid-template-columns: 32px minmax(0, 1fr); justify-items: start; gap: 10px; min-height: 52px; text-align: left; }
  .tracking-timeline li:not(:last-child)::after { top: 30px; left: 15px; width: 2px; height: calc(100% - 4px); }
  .tracking-step-copy { padding-top: 3px; }
  .tracking-step-copy strong { font-size: .75rem; }
  .tracking-detail-grid { grid-template-columns: 1fr; }
  .tracking-items-section { grid-column: auto; }
  .tracking-footer { align-items: flex-start; flex-direction: column; padding: 10px 16px; }
  .tracking-refresh-button { width: 100%; }
}

/* Cabeçalho do cardápio: no celular, texto e ações ocupam linhas próprias. */
@media (max-width: 640px) {
  .menu-shell {
    width: 100%;
    max-width: 100%;
    padding: 12px 12px 50px;
  }

  .hero {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }

  .store-logo {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .store-heading {
    flex: 1 1 calc(100% - 64px);
    min-width: 0;
  }

  .store-heading h1 {
    font-size: clamp(1.65rem, 8vw, 2rem);
    line-height: 1.08;
  }

  .hero p:not(.eyebrow) {
    overflow-wrap: anywhere;
    font-size: .92rem;
    line-height: 1.46;
  }

  .hero-actions {
    order: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    flex: 1 0 100%;
    width: 100%;
    gap: 8px;
  }

  .tracking-button,
  .cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  .tracking-button {
    width: 100%;
    min-width: 0;
    padding: .7rem .8rem;
    font-size: .86rem;
    line-height: 1.2;
  }

  .cart-button {
    min-width: max-content;
    padding: 10px 13px;
  }

  .store-details {
    gap: 8px;
    margin-top: 16px;
    font-size: .78rem;
    line-height: 1.25;
  }

  .store-details span:not(:empty) {
    max-width: 100%;
  }
}

@media (max-width: 350px) {
  .hero-actions { grid-template-columns: 1fr; }
  .cart-button { width: 100%; }
}

.store-description-toggle { display: none; }

/* Hero compacto: apresenta o cardápio mais cedo sem esconder a descrição completa. */
@media (max-width: 640px) {
  .hero { padding: 14px; }
  .hero-top { gap: 10px; }

  .store-logo {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .store-heading { flex-basis: calc(100% - 58px); }
  .store-heading h1 { font-size: clamp(1.5rem, 7.3vw, 1.85rem); }

  .store-description {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 5px !important;
    font-size: .86rem !important;
    line-height: 1.38 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .store-description.is-expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: initial;
  }

  .store-description-toggle:not(.hidden) {
    display: inline-flex;
    margin-top: 4px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: 800 .76rem inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }

  .hero-actions { gap: 6px; }
  .tracking-button,
  .cart-button { min-height: 40px; }
  .tracking-button { padding: .55rem .7rem; }
  .cart-button { padding: 8px 11px; }

  .store-details {
    gap: 6px;
    margin-top: 12px;
    font-size: .74rem;
  }

  .store-details span:not(:empty) { padding: 5px 8px; }
  .menu-toolbar { margin: 14px -6px 10px; }
  .menu-section { margin-top: 22px; }
}

/* Carrinho e verificacao antiabuso. */
.cart-actions {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 10px;
}

.cart-actions .outline-action,
.cart-actions .primary-action {
  min-height: 48px;
  margin: 0;
}

.cart-secondary-action {
  background: #fff;
  font-weight: 800;
}

.turnstile-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdfb;
}

.turnstile-panel p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  text-align: center;
}

#turnstileWidget { min-height: 65px; }

@media (max-width: 360px) {
  .cart-actions { grid-template-columns: 1fr; }
  .cart-actions .outline-action,
  .cart-actions .primary-action { min-height: 46px; }
}
