/* Group pre-order page — builds on site.css tokens */
.preorder-page .mbar { display: none; }               /* the page has its own sticky bar */
@media (max-width: 759px) { .preorder-page { padding-bottom: 0; } }

.po-head .mhead__text { max-width: 900px; }
.po-facts { list-style: none; padding: 0; display: grid; gap: 6px; }
.po-facts li::before { content: '— '; color: var(--accent); }
.po { margin-top: clamp(32px, 4vw, 56px) !important; }
.po-loading, .po-noscript { color: var(--muted); }

/* progress */
.po-progress { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: none; }
.po-progress li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); color: var(--muted); font-weight: 500; min-width: 0; }
.po-progress li.is-now { background: var(--field); color: var(--ink); }
.po-progress li.is-done { color: var(--ink); }
.po-progress__n { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--bg); font-weight: 600; font-size: .9rem; }
.po-progress li.is-now .po-progress__n { background: var(--accent); color: var(--accent-ink); }
.po-progress li.is-done .po-progress__n { background: var(--teal); color: var(--accent-ink); }
.po-progress__l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .po-progress li { padding: 10px 8px; justify-content: center; } .po-progress li:not(.is-now) .po-progress__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .po-progress { display: flex; } .po-progress li { flex: 1; } .po-progress li.is-now { flex: 3.2; } }

.po-panel { display: grid; gap: 22px; }
.po-intro { max-width: 62ch; }
.po-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
@media (max-width: 640px) { .po-grid { grid-template-columns: 1fr; } }
.po-field label { font-weight: 600; }
.po-hint { color: var(--muted); font-size: .95rem; }
.po-small-note { background: var(--field); padding: 16px 18px; }
.po-small-note a, .po-panel a { color: var(--teal); }
.po-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.po-error, .err { color: #ffb4a5; font-size: .95rem; font-weight: 600; }
.po-status:empty { display: none; }
.po-status { padding: 14px 16px; font-weight: 600; }
.po-status.is-err { background: #3d1a17; color: #ffcfc6; }
.po-status.is-busy { background: var(--surface); }

.po-chip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; background: var(--surface); padding: 10px 16px; font-size: .95rem; }
.po-chip p { margin: 0; }
.po-chip .linkish { min-height: 44px; }

/* menu choice */
.po-menus { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.po-menu { position: relative; display: grid; gap: 6px; padding: 20px 20px 20px 54px; background: var(--surface); cursor: pointer; transition: background-color .15s; }
.po-menu input { position: absolute; left: 20px; top: 24px; width: 20px; height: 20px; accent-color: var(--accent); }
.po-menu:hover { background: #18322f; }
.po-menu.is-on { background: var(--field); }
.po-menu.is-off { opacity: .55; cursor: not-allowed; }
.po-menu__t { font-family: var(--f-display); font-size: 1.4rem; line-height: 1.15; }
.po-menu__p { color: var(--accent); font-weight: 600; font-size: .95rem; }
.po-menu__n { color: var(--muted); font-size: .95rem; }
.po-menu__why { color: #ffcfc6; font-size: .92rem; font-weight: 600; }
.po-menu:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

/* dishes */
.po-dishes { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.po-dishes__main { display: grid; gap: 18px; min-width: 0; }
.po-allergy { font-weight: 600; font-size: .95rem; }
.po-coursenav { position: sticky; top: var(--hdr-h); z-index: 5; background: var(--bg); padding: 8px 0; }
.po-coursenav ul { list-style: none; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.po-coursenav a { display: flex; align-items: center; min-height: 40px; padding: 0 14px; background: var(--surface); text-decoration: none; white-space: nowrap; font-size: .95rem; font-weight: 500; }
.po-coursenav a:hover { background: var(--field); }
.po-course { scroll-margin-top: calc(var(--hdr-h) + 70px); }
.po-course__h { font-family: var(--f-display); font-size: 1.6rem; font-weight: 400; margin-bottom: 8px; }
.po-items { list-style: none; padding: 0; display: grid; gap: 4px; }
.po-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; padding: 14px 16px; background: var(--surface); transition: background-color .15s; }
.po-item.has-qty { background: var(--field); }
.po-item__n { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; letter-spacing: .01em; line-height: 1.25; }
.po-item__d { color: var(--muted); font-size: .95rem; line-height: 1.45; margin-top: 2px; }
.po-item__note { color: var(--accent); font-size: .9rem; font-weight: 600; margin-top: 2px; }
.po-item__m { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.po-price { font-weight: 600; }
.po-supp { color: var(--accent); font-weight: 600; font-size: .92rem; }
.po-tag { font-size: .85rem; font-weight: 600; padding: 2px 8px; background: var(--bg); }
.po-tag--veg { color: #a7e3c5; }
.po-qty { display: inline-flex; align-items: stretch; }
.po-qty__b { width: 44px; height: 44px; border: 0; background: var(--bg); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background-color .15s; }
.po-qty__b:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); }
.po-qty__b:disabled { opacity: .35; cursor: default; }
.po-qty input { width: 54px; height: 44px; border: 0; text-align: center; font: 600 1.1rem var(--f-text); background: var(--paper); color: var(--paper-ink); -moz-appearance: textfield; }
.po-qty input::-webkit-outer-spin-button, .po-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.po-qty input:focus { outline: 3px solid var(--accent); outline-offset: 0; }
@media (max-width: 480px) { .po-item { padding: 12px; gap: 10px 12px; } .po-qty__b { width: 42px; } .po-qty input { width: 44px; } }

.po-side { position: sticky; top: calc(var(--hdr-h) + 16px); background: var(--surface); padding: 22px; display: grid; gap: 12px; }
.po-side__h { font-family: var(--f-display); font-size: 1.4rem; font-weight: 400; }
.po-side__k strong { font-size: 1.6rem; font-family: var(--f-display); font-weight: 400; color: var(--accent); }
.po-side__est strong { display: block; font-size: 1.2rem; }
.po-sum { list-style: none; padding: 0; display: grid; gap: 4px; max-height: 40vh; overflow: auto; }
.po-sum span { display: inline-block; min-width: 2.6em; font-weight: 600; color: var(--accent); }
.po-sum__c { margin-top: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.po-side__go { width: 100%; }
.po-side__go:disabled, .po-bar .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.po-warn { background: #3a2e14; color: #f6dfae; padding: 12px 14px; display: grid; gap: 6px; font-size: .95rem; }
.po-bar { display: none; }
@media (max-width: 899px) {
  .po-dishes { grid-template-columns: 1fr; }
  .po-side { position: static; }
  .po-bar { display: flex; position: sticky; bottom: 0; z-index: 20; justify-content: space-between; align-items: center; gap: 12px; padding: 10px var(--m) calc(10px + env(safe-area-inset-bottom)); margin: 0 calc(-1 * var(--m)); background: var(--field); }
  .po-bar p { margin: 0; font-size: .95rem; }
  .po-bar strong { font-size: 1.2rem; color: var(--accent); }
}

/* review */
.po-review { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; align-items: start; }
.po-review__b { background: var(--surface); padding: 22px; display: grid; gap: 12px; }
@media (max-width: 899px) { .po-review { grid-template-columns: 1fr; } }
.po-dl { display: grid; gap: 6px; margin: 0; }
.po-dl div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; }
.po-dl dt { color: var(--muted); }
.po-dl dd { margin: 0; overflow-wrap: anywhere; }
.po-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.po-table th, .po-table td { text-align: left; padding: 7px 6px; vertical-align: top; }
.po-table thead th { color: var(--muted); font-weight: 600; font-size: .9rem; }
.po-table tbody th { padding-top: 14px; color: var(--accent); font-weight: 600; }
.po-table tfoot td { border-top: 1px solid #2c4743; font-weight: 600; }
.po-rq { width: 3.2em; font-weight: 600; font-variant-numeric: tabular-nums; }
.po-rp { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.po-declare { background: var(--field); padding: 16px 18px; }
.po-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 600; }
.po-check input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.po-submit { min-width: 260px; }

/* confirmation */
.po-done { max-width: 820px; }
.po-done:focus { outline: none; }
.po-ref { font-size: 1.2rem; }
.po-ref strong { font-family: var(--f-display); font-size: 2rem; font-weight: 400; color: var(--accent); letter-spacing: .04em; margin-left: 6px; }

@media print {
  .po-progress, .po-nav, .po-bar, .po-side__go, .po-head .po-facts { display: none !important; }
  .po-panel, .po-review__b, .po-item, .po-side { background: #fff !important; color: #000 !important; }
}
