/* ==========================================================================
   Order pickup page (order.html). Builds on the tokens in styles.css.
   ========================================================================== */

.order-body .action-bar,
.order-body .action-sheet { display: none; }
@media (max-width: 999px) {
  .order-body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.cart-locked, .cart-locked body { overflow: hidden; }

/* ---------- Hero ---------- */
.order-hero { background: var(--blush); padding-block: clamp(1.75rem, 4vw, 3rem); }
.order-hero__inner { display: grid; gap: var(--s-5); align-items: end; }
@media (min-width: 860px) { .order-hero__inner { grid-template-columns: 1fr auto; } }
.order-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 18ch; }
.order-hero .eyebrow { margin-bottom: var(--s-3); }
.order-hero__lede { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-lg); max-width: 48ch; }
.order-alts { display: grid; gap: var(--s-2); list-style: none; }
.order-alts a {
  display: block; padding: var(--s-3) var(--s-4);
  border-radius: var(--r); background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--teal-ink); text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.order-alts a:hover { background: var(--paper); border-color: var(--teal); }
.order-alts strong { font-family: var(--font-display); font-weight: 600; margin-right: var(--s-1); }

.test-banner {
  margin: 0; padding: var(--s-3) var(--gutter);
  background: #fff3cf; color: #5c4300; border-block: 1px solid #ecd48a;
  text-align: center; font-size: var(--fs-sm);
}

/* ---------- Layout ---------- */
.order-layout { display: grid; gap: var(--s-6); padding-block: var(--s-6) var(--s-9); align-items: start; }
@media (min-width: 1000px) { .order-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-6); } }
@media (min-width: 1200px) { .order-layout { grid-template-columns: minmax(0, 1fr) 390px; } }
.order-main { min-width: 0; }
.order-loading { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-7) 0; color: var(--muted); }
.order-page [hidden] { display: none !important; }
.order-fail { padding: var(--s-6); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.order-fail p { margin-top: var(--s-3); color: var(--muted); }

.spinner {
  display: inline-block; width: 18px; height: 18px; flex: none;
  border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.linkish {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--teal); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em;
}
.linkish:hover { color: var(--teal-deep); }
.optional { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); margin-left: var(--s-1); }

/* ---------- Steps ---------- */
.o-step {
  padding: var(--s-5);
  border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line);
}
.o-step + .o-step { margin-top: var(--s-4); }
@media (min-width: 700px) { .o-step { padding: var(--s-5) var(--s-6); } }
.o-step__head { display: flex; align-items: center; gap: var(--s-3); }
.o-step__num {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--teal); color: var(--blush);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
}
.o-step.is-done .o-step__num { background: var(--mint); color: var(--teal-deep); font-size: 0; }
.o-step.is-done .o-step__num::before { content: "✓"; font-size: 1rem; }
.o-step.is-muted .o-step__num { background: var(--blush-deep); color: var(--muted); }
.o-step.is-muted .o-step__title { color: var(--muted); }
.o-step__title { font-size: clamp(1.25rem, 2vw, 1.5rem); flex: 1; }
.o-step__title:focus { outline: none; }
.o-step__edit {
  min-height: 40px; padding: 0 var(--s-4);
  border: 1.5px solid var(--line); border-radius: var(--r-pill); background: transparent;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.03em;
  color: var(--teal); cursor: pointer;
}
.o-step__edit:hover { border-color: var(--teal); }
.o-step__summary { margin-top: var(--s-3); padding-left: calc(32px + var(--s-3)); font-size: var(--fs-sm); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.o-step__summary strong { font-family: var(--font-display); font-weight: 600; color: var(--teal-ink); font-size: var(--fs-md); }
.o-step__summary .status { font-size: var(--fs-xs); }
.o-step__body { margin-top: var(--s-5); }
.o-step__foot { margin-top: var(--s-5); display: flex; justify-content: flex-end; }
.o-label { display: block; margin: var(--s-4) 0 var(--s-2); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

/* Radio cards: native radios kept for keyboard and screen readers */
.shop-opt input, .seg__opt input, .day-chip input, .tip-chip input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.shop-pick__grid { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .shop-pick__grid { grid-template-columns: 1fr 1fr; } }
.shop-opt {
  position: relative; display: block; cursor: pointer;
  padding: var(--s-4) var(--s-5);
  border: 2px solid var(--line); border-radius: var(--r);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.shop-opt:hover { border-color: var(--teal-soft); }
.shop-opt:has(input:checked) { border-color: var(--teal); background: #f4faf9; box-shadow: var(--shadow-sm); }
.shop-opt:has(input:focus-visible), .seg__opt:has(input:focus-visible), .day-chip:has(input:focus-visible), .tip-chip:has(input:focus-visible) {
  outline: 3px solid var(--mint); outline-offset: 2px;
}
.shop-opt.is-disabled { cursor: not-allowed; opacity: 0.7; }
.shop-opt__body { display: grid; gap: var(--s-1); }
.shop-opt__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-1); }
.shop-opt__name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.shop-opt .status { font-size: var(--fs-xs); }
.shop-opt__addr { font-size: var(--fs-sm); }
.shop-opt__blurb, .shop-opt__hours { font-size: var(--fs-xs); color: var(--muted); }

.o-closed {
  margin-bottom: var(--s-4); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); background: #fbeceb; color: #7a2f29; font-size: var(--fs-sm);
  border-left: 4px solid #b5524a;
}
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.seg__opt, .day-chip, .tip-chip { position: relative; cursor: pointer; }
.seg__opt > span, .day-chip > span, .tip-chip > span {
  display: grid; gap: 2px; height: 100%;
  border: 2px solid var(--line); border-radius: var(--r);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.seg__opt > span { padding: var(--s-3) var(--s-4); }
.seg__opt strong, .day-chip strong, .tip-chip strong { font-family: var(--font-display); font-weight: 600; }
.seg__opt small, .day-chip small, .tip-chip small { font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
.seg__opt:hover > span, .day-chip:hover > span, .tip-chip:hover > span { border-color: var(--teal-soft); }
.seg__opt input:checked + span, .day-chip input:checked + span, .tip-chip input:checked + span { border-color: var(--teal); background: var(--teal); color: var(--blush); }
.seg__opt input:checked + span small, .day-chip input:checked + span small, .tip-chip input:checked + span small { color: var(--muted-on-teal); }
.seg__opt.is-disabled, .day-chip.is-disabled { cursor: not-allowed; }
.seg__opt.is-disabled > span, .day-chip.is-disabled > span { background: var(--cream); color: #8a9a9b; border-style: dashed; }
.sched { margin-top: var(--s-2); }
.day-pick__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: var(--s-2); }
.day-chip > span { padding: var(--s-2) var(--s-3); }
.o-select {
  width: 100%; max-width: 280px; min-height: 48px; padding: 0 var(--s-6) 0 var(--s-4);
  border: 1.5px solid rgba(14, 76, 76, 0.32); border-radius: 12px; background-color: var(--paper);
  font: inherit; color: var(--teal-ink);
}

/* ---------- Menu ---------- */
.menu-tools {
  position: sticky; top: 64px; z-index: 15;
  margin: 0 calc(-1 * var(--s-5)); padding: var(--s-3) var(--s-5);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) { .menu-tools { margin: 0 calc(-1 * var(--s-6)); padding: var(--s-3) var(--s-6); } }
@media (max-width: 1099px) { .menu-tools { top: 60px; } }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input {
  width: 100%; min-height: 46px; padding: 0 var(--s-4) 0 42px;
  border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--cream);
  font: inherit; font-size: 16px; color: var(--teal-ink);
}
.search input:focus { outline: none; border-color: var(--teal); background: var(--paper); box-shadow: 0 0 0 3px rgba(80, 192, 164, 0.35); }
.cat-tabs { display: flex; gap: var(--s-2); overflow-x: auto; margin-top: var(--s-3); padding-bottom: 2px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs .filter { min-height: 38px; font-size: var(--fs-xs); }

.o-cat { margin-top: var(--s-6); scroll-margin-top: 180px; }
.o-cat__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-4); margin-bottom: var(--s-3); }
.o-cat__head h3 { font-size: 1.3rem; }
.o-cat__head p { font-size: var(--fs-xs); color: var(--muted); max-width: 46ch; }
.o-empty { margin-top: var(--s-6); color: var(--muted); }
.o-notice { margin-top: var(--s-6); padding: var(--s-4); border-radius: var(--r); background: var(--blush); font-size: var(--fs-sm); }

.o-grid { display: grid; gap: var(--s-3); list-style: none; }
@media (min-width: 600px) { .o-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.o-item {
  --thumb: 96px;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--thumb); grid-template-areas: "body media" "act media";
  gap: var(--s-2) var(--s-3);
  padding: var(--s-3);
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
@media (min-width: 480px) { .o-item { --thumb: 112px; padding: var(--s-4); } }
.o-item:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.o-item__body { grid-area: body; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.o-item__badge { align-self: flex-start; padding: 1px 8px; border-radius: var(--r-pill); background: var(--blush); color: var(--teal); font-family: var(--font-display); font-weight: 500; font-size: 0.75rem; }
.o-item__name { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-md); line-height: 1.25; }
.o-item__open {
  padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; color: inherit;
}
.o-item .o-item__open::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.o-item__open:focus-visible { outline: none; }
.o-item:has(.o-item__open:focus-visible) { outline: 3px solid var(--mint); outline-offset: 2px; }
.o-item__desc { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.o-item__foot { display: flex; align-items: baseline; gap: var(--s-2); margin-top: 2px; }
.o-item__price { font-family: var(--font-display); font-weight: 600; color: var(--teal); }
.o-item__size { font-size: var(--fs-xs); color: var(--muted); }
.o-item__media { grid-area: media; width: var(--thumb); height: var(--thumb); align-self: center; border-radius: calc(var(--r) - 6px); overflow: hidden; background: var(--blush); }
.o-item__media img { width: 100%; height: 100%; object-fit: cover; }
.o-item__media--blank { display: grid; place-items: center; }
.o-item__media--blank img { width: 46%; height: auto; opacity: 0.5; }
.o-item__act { grid-area: act; position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); align-self: end; }
.o-item__count { font-size: var(--fs-xs); font-weight: 700; color: var(--teal); }

.add-btn {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 40px; padding: 0 var(--s-4);
  border: 1.5px solid var(--teal); border-radius: var(--r-pill); background: var(--paper); color: var(--teal);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.03em;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.add-btn span { font-size: 1.1rem; line-height: 1; }
.add-btn:hover { background: var(--teal); color: var(--blush); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--teal); border-radius: var(--r-pill); background: var(--paper); }
.stepper button {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--teal);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.stepper button:hover:not(:disabled) { background: var(--blush); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stepper output { min-width: 2ch; text-align: center; font-family: var(--font-display); font-weight: 600; }
.stepper--lg button { width: 48px; height: 48px; }

.o-list { list-style: none; column-gap: var(--s-6); }
@media (min-width: 640px) { .o-list { columns: 2; } }
.o-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--s-3);
  break-inside: avoid; padding: var(--s-2) 0; border-bottom: 1px dashed var(--line);
}
.o-row__name { font-size: var(--fs-sm); min-width: 0; }
.o-row__name small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.o-row__name .o-item__open:hover { text-decoration: underline; }
.o-row__price { font-family: var(--font-display); font-weight: 600; color: var(--teal); font-size: var(--fs-sm); }
.o-row .add-btn { min-height: 36px; padding: 0 var(--s-3); }
.o-row .stepper button { width: 36px; height: 36px; }

/* ---------- Cart ---------- */
.cart {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line);
}
.cart[hidden] { display: none; }
@media (min-width: 1000px) {
  .cart { position: sticky; top: 84px; max-height: calc(100vh - 100px); box-shadow: var(--shadow-sm); }
  .cart__close { display: none; }
}
.cart__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--s-5) 0; }
.cart__title { font-size: 1.4rem; }
.cart__title:focus { outline: none; }
.cart__close {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--blush); color: var(--teal-deep); font-size: 1.4rem; cursor: pointer;
}
.cart__meta { padding: var(--s-2) var(--s-5) 0; font-size: var(--fs-xs); color: var(--muted); }
.cart__scroll { overflow-y: auto; padding: var(--s-3) var(--s-5); overscroll-behavior: contain; }
.cart__empty { padding: var(--s-5) 0; color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.cart__lines { list-style: none; }
.cart-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-3);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line);
}
.cart-line__info { min-width: 0; }
.cart-line__name { font-family: var(--font-display); font-weight: 500; line-height: 1.3; }
.cart-line__sub { font-size: var(--fs-xs); color: var(--muted); }
.cart-line__msg { margin-top: 2px; font-size: var(--fs-xs); color: var(--teal); font-style: italic; overflow-wrap: anywhere; }
.cart-line__price { font-family: var(--font-display); font-weight: 600; text-align: right; }
.cart-line .stepper { grid-column: 1; justify-self: start; }
.cart-line .stepper button { width: 34px; height: 34px; font-size: 1.1rem; }

.tip { margin-top: var(--s-4); }
.tip legend { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s-2); }
.tip__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tip-chip > span { padding: var(--s-2) 2px; text-align: center; font-size: var(--fs-xs); }
.tip-chip strong { font-size: var(--fs-xs); }
.tip-chip small { font-size: 0.7rem; }
.tip__custom { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3); font-size: var(--fs-sm); }
.tip__dollar { display: inline-flex; align-items: center; gap: 4px; padding: 0 var(--s-3); border: 1.5px solid rgba(14, 76, 76, 0.32); border-radius: 10px; }
.tip__dollar input { width: 90px; min-height: 40px; border: 0; background: transparent; font: inherit; font-size: 16px; }
.tip__dollar input:focus { outline: none; }
.tip__dollar:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(80, 192, 164, 0.35); }
.tip__note { margin-top: var(--s-2); font-size: 0.75rem; color: var(--muted); }

.totals { margin: var(--s-4) 0 0; }
.totals__row { display: flex; justify-content: space-between; gap: var(--s-3); padding: 3px 0; font-size: var(--fs-sm); }
.totals__row dt { color: var(--muted); }
.totals__row dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals__row--total { margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-md); }
.totals__row--total dt, .totals__row--total dd { color: var(--teal-ink); font-family: var(--font-display); font-weight: 600; }
.cart__foot { padding: var(--s-3) var(--s-5) var(--s-5); border-top: 1px solid var(--line); }
.cart__err { margin-bottom: var(--s-2); font-size: var(--fs-xs); color: #8c3a33; }
.cart__go { width: 100%; }
.cart__go:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Phones and tablets: the cart becomes a bottom sheet */
.cart-backdrop { position: fixed; inset: 0; z-index: 79; background: rgba(6, 30, 31, 0.5); }
.cart-backdrop[hidden] { display: none; }
@media (max-width: 999px) {
  .cart {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    max-height: 88vh; border-radius: var(--r-lg) var(--r-lg) 0 0; border: 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(105%); visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .cart.is-open { transform: none; visibility: visible; transition: transform 0.3s var(--ease); }
  .cart__head::before {
    content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px;
    border-radius: 2px; background: var(--line);
  }
}

.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--teal-deep); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}
.cart-bar[hidden] { display: none; }
.cart-bar__btn {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 56px; padding: 0 var(--s-4);
  border: 0; border-radius: var(--r); background: var(--blush); color: var(--teal-deep);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); cursor: pointer;
}
.cart-bar__btn strong { margin-left: auto; font-weight: 600; }
.cart-bar__count { min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--teal); color: var(--blush); font-size: var(--fs-sm); }
.cart-bar.is-bump .cart-bar__btn { animation: bump 0.35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.03); } }

/* ---------- Item sheet ---------- */
.sheet {
  width: min(100%, 520px); max-height: 92vh; padding: 0; border: 0;
  border-radius: var(--r-lg); background: var(--paper); color: var(--teal-ink);
  box-shadow: var(--shadow); overflow: hidden;
}
.sheet::backdrop { background: rgba(6, 30, 31, 0.55); }
@media (max-width: 599px) {
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 90vh; }
  .sheet[open] { animation: rise 0.28s var(--ease); }
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.sheet__inner { position: relative; display: flex; flex-direction: column; max-height: 92vh; overflow-y: auto; }
.sheet__close {
  position: absolute; right: var(--s-3); top: var(--s-3); z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--teal-deep);
  font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow-sm);
}
.sheet__media { aspect-ratio: 16 / 10; background: var(--blush); }
.sheet__media[hidden] { display: none; }
.sheet__media img { width: 100%; height: 100%; object-fit: cover; }
.sheet__body { padding: var(--s-5); padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); }
.sheet__media[hidden] + .sheet__body { padding-top: var(--s-7); }
.sheet__badge { display: inline-block; margin-bottom: var(--s-2); padding: 1px 9px; border-radius: var(--r-pill); background: var(--blush); color: var(--teal); font-family: var(--font-display); font-size: var(--fs-xs); }
.sheet__badge[hidden] { display: none; }
.sheet__title { font-size: 1.6rem; padding-right: var(--s-7); }
.sheet__meta { margin-top: var(--s-1); font-family: var(--font-display); font-weight: 600; color: var(--teal); }
.sheet__desc { margin-top: var(--s-3); color: var(--muted); font-size: var(--fs-sm); }
.sheet .field { margin-top: var(--s-5); }
.sheet__foot { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.sheet__add { flex: 1; }

/* ---------- Forms ---------- */
.checkout { padding: var(--s-5); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
@media (min-width: 700px) { .checkout { padding: var(--s-6); } }
.back-link {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--teal);
}
.back-link::before { content: "←"; }
.checkout__title { margin-top: var(--s-4); font-size: clamp(1.6rem, 3vw, 2.1rem); }
.checkout__title:focus { outline: none; }
.checkout__pickup { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.co-pick, .co-items {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5);
  padding: var(--s-3) var(--s-4); border-radius: var(--r); background: var(--cream); font-size: var(--fs-sm);
}
.co-pick p { display: grid; }
.co-pick__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-family: var(--font-display); font-weight: 600; }
.co-pick strong { font-family: var(--font-display); font-weight: 600; }
.co-pick .linkish, .co-items__edit { margin-left: auto; font-size: var(--fs-xs); }
@media (min-width: 1000px) { .co-items { display: none; } }

.o-fieldset { margin-top: var(--s-6); }
.o-fieldset legend { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: var(--s-2); }
.field { margin-top: var(--s-4); }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: var(--fs-sm); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4);
  border: 1.5px solid rgba(14, 76, 76, 0.32); border-radius: 12px; background: var(--paper);
  font: inherit; font-size: 16px; color: var(--teal-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(80, 192, 164, 0.35); }
.field input[aria-invalid="true"] { border-color: #b5524a; box-shadow: 0 0 0 3px rgba(181, 82, 74, 0.15); }
.field__hint { margin-top: 4px; font-size: var(--fs-xs); color: var(--muted); }
.field__err { margin-top: 6px; font-size: var(--fs-xs); font-weight: 500; color: #9b3b33; }
.field__err::before { content: "! "; font-weight: 700; }
.field-row { display: grid; gap: 0 var(--s-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.pay-test {
  margin: var(--s-2) 0 var(--s-3); padding: var(--s-3) var(--s-4);
  border: 2px dashed #e0c46f; border-radius: var(--r); background: #fffaeb; color: #5c4300; font-size: var(--fs-sm);
}
.pay-test p + p { margin-top: var(--s-2); }
.pay-test .linkish { color: #5c4300; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--s-3); }
.card-fields__number { grid-column: 1 / -1; }
.card-box {
  height: 48px; border: 1.5px solid rgba(14, 76, 76, 0.32); border-radius: 12px; background: var(--paper); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card-box:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(80, 192, 164, 0.35); }
.card-box iframe { width: 100% !important; height: 100% !important; border: 0; }
.card-input { width: 100%; height: 100%; padding: 0 var(--s-4); border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.card-input:focus { outline: none; }
.pay-note { display: flex; gap: var(--s-2); align-items: flex-start; margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--muted); }
.pay-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; }
.form-err {
  margin-top: var(--s-5); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm); background: #fbeceb; color: #7a2f29; border-left: 4px solid #b5524a; font-size: var(--fs-sm);
}
.pay-bar { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-6); }
@media (max-width: 999px) {
  .pay-bar {
    position: sticky; bottom: 0; z-index: 5;
    margin: var(--s-6) calc(-1 * var(--s-5)) 0; padding: var(--s-3) var(--s-5) calc(var(--s-3) + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  }
  .order-body[data-order-view="checkout"] { padding-bottom: 0; }
}
.pay-bar__total { display: grid; line-height: 1.2; }
.pay-bar__total span { font-size: var(--fs-xs); color: var(--muted); }
.pay-bar__total strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-btn { flex: 1; min-height: 54px; font-size: var(--fs-md); }
.pay-btn .spinner { display: none; }
.pay-btn.is-busy .spinner { display: inline-block; }
.pay-btn:disabled { cursor: progress; transform: none; opacity: 0.85; }
.pay-fine { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Confirmation ---------- */
.done { padding: var(--s-5); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
@media (min-width: 700px) { .done { padding: var(--s-7); } }
.done__head { display: flex; align-items: center; gap: var(--s-4); }
.done__head .eyebrow { margin-bottom: var(--s-1); }
.done__head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.done__head h2:focus { outline: none; }
.done__check { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--mint); }
.done__check svg { width: 28px; height: 28px; fill: none; stroke: var(--teal-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ticket {
  margin-top: var(--s-6); padding: var(--s-5);
  border: 2px dashed var(--teal); border-radius: var(--r-lg); background: #f4faf9; text-align: center;
}
.ticket__label { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-soft); }
.ticket__number { margin-top: var(--s-1); font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 9vw, 3.8rem); letter-spacing: 0.06em; color: var(--teal); line-height: 1.05; }
.ticket__show { margin-top: var(--s-1); font-weight: 700; }
.ticket__facts { display: grid; gap: var(--s-3); margin: var(--s-5) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--line); text-align: left; }
@media (min-width: 600px) { .ticket__facts { grid-template-columns: 1fr 1fr; } }
.ticket__facts dt { font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ticket__facts dd { margin: 2px 0 0; font-size: var(--fs-sm); }
.done__body { margin-top: var(--s-6); }
.done__sub { font-size: 1.2rem; }
.done__items { list-style: none; margin-top: var(--s-3); }
.done__items li { display: grid; grid-template-columns: 2.5ch minmax(0, 1fr) auto; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.done__qty { color: var(--muted); }
.done__name small { display: block; color: var(--teal); font-style: italic; }
.done__price { font-variant-numeric: tabular-nums; }
.done__paid { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--muted); }
.done__help { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--muted); }
.done .actions { margin-top: var(--s-5); }
.done .actions .btn { white-space: normal; text-align: center; }
.done [data-new-order] { margin-top: var(--s-4); }
@media (max-width: 599px) { .done .actions .btn { flex: 1 1 100%; } }

/* ---------- Sold out ---------- */
.o-item__badge--soldout { background: #f3dcd4; color: #8a3b24; }
.is-soldout .o-item__media img { filter: grayscale(0.85); opacity: 0.6; }
.is-soldout .o-item__name, .is-soldout .o-item__price, .is-soldout .o-row__price { color: var(--muted); }
.o-row__name small.o-row__soldout { color: #8a3b24; font-weight: 500; }
.soldout-tag { display: inline-block; padding: 6px 12px; border-radius: var(--r-pill); border: 1px dashed currentColor; color: #8a3b24; font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.soon-tag { display: inline-block; padding: 6px 12px; border-radius: var(--r-pill); background: var(--blush, #f6e3dc); color: var(--ink, #1d3b3b); font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.cart-line__warn { margin-top: 2px; font-size: var(--fs-xs); color: #8a3b24; font-weight: 500; }

/* ---------- Recent orders and sign-in ---------- */
.recent { margin-bottom: var(--s-5); padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: 18px; background: var(--blush); }
.recent__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.recent__title { font-family: var(--font-display); font-size: var(--fs-md, 1.1rem); color: var(--teal); }
.recent__who { font-size: var(--fs-sm); color: var(--muted); }
.recent__link { padding: 0; border: 0; background: none; color: var(--teal); font: inherit; font-size: var(--fs-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.recent__list { display: grid; gap: 10px; margin-top: var(--s-3); padding: 0; list-style: none; }
@media (min-width: 700px) { .recent__list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.recent__card { display: grid; gap: 6px; align-content: start; padding: 12px 14px; border-radius: 14px; background: #fff; }
.recent__card .btn { justify-self: start; margin-top: 4px; }
.recent__date { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.recent__items { font-size: var(--fs-sm); color: #1d3333; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.recent__empty { margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--muted); }

.acct { max-width: 440px; }
.acct .sheet__body { padding-top: var(--s-7); }
.acct__lede { margin: var(--s-2) 0 var(--s-2); color: var(--muted); }
.acct input { width: 100%; padding: 12px 14px; border: 1px solid rgba(14, 76, 76, 0.25); border-radius: 12px; background: var(--cream); font: inherit; }
.acct input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 76, 76, 0.15); background: #fff; }
.acct__code { font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; }
.acct__btn { width: 100%; margin-top: var(--s-4); }
.acct__link { display: block; margin: var(--s-3) auto 0; padding: 0; border: 0; background: none; color: var(--teal); font: inherit; font-size: var(--fs-sm); text-decoration: underline; cursor: pointer; }
.acct__test { padding: 8px 12px; border-radius: 10px; background: #fff4cc; font-size: var(--fs-sm); }
.acct [hidden] { display: none !important; }
