/* Xcellent Soul Food — black and gold, matching the restaurant's logo.
   Type: Playfair Display italic (from the logo's script feel) + Bricolage Grotesque. */
:root {
  --night: #0c0b0a;
  --panel: #17130f;
  --panel-2: #211b15;
  --gold: #e9b743;
  --gold-soft: #f3d589;
  --ribbon: #a3191f;
  --ribbon-2: #c1222a;
  --cream: #f5ead0;
  --muted: #c5b9a5;
  --line: #3a3026;
  --display: "Playfair Display", Georgia, serif;
  --body: "Bricolage Grotesque", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.375rem;
  --step-2: 1.875rem;
  --step-3: 2.75rem;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1320px; /* widest the content gets; header, hero and sections all line up to it */
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-soft); outline-offset: 3px;
}
h1, h2, h3 { margin: 0; line-height: 1.12; }
h2 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: var(--step-3); color: var(--gold); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.fine { font-size: var(--step--1); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 800 var(--step-0)/1 var(--body);
  padding: 15px 22px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-small { padding: 10px 18px; font-size: var(--step--1); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-red { background: var(--ribbon); color: #fff; }
.btn-red:hover { background: var(--ribbon-2); }
.btn-line { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-line:hover { background: var(--gold); color: var(--night); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 10px var(--edge);
  background: rgba(12, 11, 10, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.brand img { display: block; height: 56px; width: auto; }
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); margin-left: auto; }
.top nav a { text-decoration: none; font-weight: 600; color: var(--cream); }
.top nav a:hover { color: var(--gold); }

/* ---------- Hero (the one loud thing) ---------- */
.hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: flex; align-items: flex-end;
  padding: clamp(48px, 8vw, 96px) var(--edge);
  background:
    linear-gradient(90deg, rgba(12,11,10,0.94) 0%, rgba(12,11,10,0.72) 48%, rgba(12,11,10,0.15) 100%),
    linear-gradient(0deg, rgba(12,11,10,1) 0%, rgba(12,11,10,0) 35%),
    url("img/steam-table.jpg") center / cover no-repeat;
}
.hero-text { max-width: 640px; }
.hero h1 {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1.02;
  color: var(--gold);
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--cream); margin: 20px 0 0; max-width: 34ch; }
.status {
  display: inline-block; margin: 24px 0 0; padding: 7px 16px;
  border: 1px solid var(--gold); border-radius: 999px; font-weight: 600; color: var(--gold);
}
.status.is-open { background: var(--gold); color: var(--night); }
.status.is-open::before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: #2f8f4e; margin-right: 9px; vertical-align: 1px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Favorites ---------- */
.favorites { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 0; }
.favorites h2 { margin-bottom: 24px; }
.fav-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.fav-grid li { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.fav-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.fav-grid span {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  font-weight: 700; font-size: var(--step--1);
  background: rgba(12,11,10,0.8); color: var(--cream); border-radius: 8px; padding: 4px 8px;
}
.favorites .fine { margin: 12px 0 0; }

/* ---------- Menu ---------- */
.menu { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.menu-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.menu-note { margin: 0; color: var(--muted); max-width: 52ch; }
.tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px;
  position: sticky; top: 77px; z-index: 5; background: var(--night); padding-top: 8px;
  scrollbar-width: thin;
}
.tab {
  flex: none; font: 600 var(--step--1)/1 var(--body); color: var(--cream);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer;
}
.tab:hover { border-color: var(--gold); }
.tab[aria-selected="true"] { background: var(--gold); color: var(--night); border-color: var(--gold); }
.menu-board { columns: 2 380px; column-gap: 24px; }
.menu-board.single { columns: 1; }
.menu-board.single .pan ul { columns: 2 340px; column-gap: 48px; }
.menu-board.single .pan li { break-inside: avoid; }
.menu-board.single .pan li + li { border-top: 0; }
.menu-board.single .pan li { border-bottom: 1px solid var(--line); }
.pan {
  break-inside: avoid; margin: 0 0 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 12px;
}
.pan h3 { font-family: var(--display); font-style: italic; font-size: var(--step-2); color: var(--gold); margin-bottom: 8px; }
.pan ul { list-style: none; margin: 0; padding: 0; }
.pan li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 8px; padding: 10px 0; }
.pan li + li { border-top: 1px solid var(--line); }
.pan li::after { content: ""; grid-column: 2; grid-row: 1; border-bottom: 1px dotted #6a5a44; transform: translateY(-4px); }
.dish { grid-column: 1; grid-row: 1; font-weight: 600; }
.price { grid-column: 3; grid-row: 1; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.note { grid-column: 1 / -1; font-size: var(--step--1); color: var(--muted); }
.pan li.has-photo { grid-template-columns: 60px auto 1fr auto; }
.pan li.has-photo .dish { grid-column: 2; }
.pan li.has-photo::after { grid-column: 3; }
.pan li.has-photo .price { grid-column: 4; }
.pan li.has-photo .note { grid-column: 2 / -1; }
.thumb { grid-column: 1; grid-row: 1 / span 2; width: 60px; height: 60px; object-fit: cover; border-radius: 10px; align-self: center; }

/* ---------- Catering ---------- */
.catering {
  background: var(--panel-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 88px) var(--edge);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 64px);
}
.catering h2 { margin-bottom: 16px; }
.catering-copy p { max-width: 46ch; }
.catering-form { background: var(--night); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); border-radius: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 600; font-size: var(--step--1); }
.opt { font-weight: 400; color: var(--muted); }
input, textarea {
  font: inherit; color: var(--cream); background: var(--panel);
  padding: 12px 14px; border: 1px solid #4a3e31; border-radius: 10px;
}
input::placeholder, textarea::placeholder { color: #8f8372; }
input:focus, textarea:focus { border-color: var(--gold); }
input[type="date"] { color-scheme: dark; }
input[aria-invalid="true"] { border-color: var(--ribbon-2); }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 4px 0 18px; line-height: 1.4; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--gold); }
.form-msg { margin: 14px 0 0; min-height: 1.5em; font-weight: 600; }
.form-msg.ok { color: var(--gold); }
.form-msg.err { color: #ff8a8f; }

/* ---------- Visit ---------- */
.visit {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter);
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.visit h2 { margin-bottom: 16px; }
address { font-style: normal; font-size: var(--step-1); line-height: 1.4; margin-bottom: 24px; }
.hours { border-collapse: collapse; width: 100%; max-width: 340px; margin-bottom: 28px; }
.hours th { text-align: left; font-weight: 600; padding: 7px 0; }
.hours td { text-align: right; padding: 7px 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.hours tr + tr { border-top: 1px solid var(--line); }
.hours tr.today th, .hours tr.today td { color: var(--gold); font-weight: 800; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); filter: grayscale(0.2); }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); }
.foot img { width: 180px; height: auto; display: block; margin: 0 auto 12px; }
.foot p { margin: 4px 0; }

@media (max-width: 900px) {
  .fav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .top nav { display: none; }
  .brand img { height: 46px; }
  .top .btn-small { margin-left: auto; }
  .hero { min-height: 0; padding-top: 220px; background-position: center top; }
  .catering, .visit { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  .fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { top: 66px; }
}
.hero h1 .x { color: var(--gold-soft); }
.pan li.sold-out .dish { text-decoration: line-through; color: var(--muted); }
.pan li.sold-out .price { color: #ff8a8f; font-weight: 700; }
.staff-link { margin-top: 14px; }
.staff-link a { color: var(--muted); font-size: 0.8rem; }

/* ---------- Multi-page additions (Nov 4, 2026) ---------- */
.top nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* Smaller photo banner at the top of inner pages */
.hero-sm { min-height: 0; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(32px, 5vw, 56px); }
.hero-sm h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.menu-page { padding-top: clamp(32px, 5vw, 56px); }

/* Home: link cards to each page */
.explore {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card-body b { font-family: var(--display); font-style: italic; font-size: var(--step-2); color: var(--gold); line-height: 1.1; }
.card-body span { color: var(--muted); font-size: var(--step--1); }
.card-body .card-go { margin-top: auto; padding-top: 8px; color: var(--cream); font-weight: 700; }

/* Menu page: order strip under the menu */
.cta-band {
  max-width: var(--wrap); margin: 0 auto clamp(48px, 7vw, 88px); padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.cta-band p { margin: 0; font-size: var(--step-1); }
.cta-band .actions { margin: 0; }

/* About page */
.about {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center;
}
.about h2 { margin-bottom: 16px; }
.about-copy p { max-width: 60ch; margin: 0 0 16px; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); }
.values { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(48px, 7vw, 88px); }
.values h2 { margin-bottom: 24px; }
.value-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.value-grid li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.value-grid b { color: var(--gold); font-size: var(--step-1); }
.value-grid span { color: var(--muted); font-size: var(--step--1); }

@media (max-width: 1000px) {
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
}
/* Phones: the page links move to a second row under the logo instead of disappearing */
@media (max-width: 760px) {
  .top { flex-wrap: wrap; row-gap: 6px; padding-bottom: 8px; }
  .top nav { display: flex; order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 8px; font-size: var(--step--1); }
  .top nav a[aria-current="page"] { text-underline-offset: 6px; }
  .tabs { top: 92px; }
  html { scroll-padding-top: 150px; }
  .hero-sm { padding-top: 48px; }
  .explore { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .cta-band .actions .btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- "We deliver" pop-up (text set in menu.js → DELIVERY_POPUP) ---------- */
.promo {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, 0.6); animation: promo-fade .2s ease-out;
}
.promo-box {
  position: relative; width: min(420px, 100%); text-align: center;
  background: var(--panel); border: 2px solid var(--gold); border-radius: 18px;
  padding: 36px 28px 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.promo-x {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  font: 400 28px/1 var(--body); color: var(--cream); background: transparent; border: 0; cursor: pointer;
}
.promo-x:hover { background: var(--panel-2); color: var(--gold); }
.promo-tag { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .14em; font-size: var(--step--1); font-weight: 800; color: var(--ribbon-2); }
.promo-box h2 { font-size: clamp(2.25rem, 8vw, 3rem); }
.promo-price { margin: 10px 0 4px; font-size: var(--step-2); font-weight: 800; color: var(--cream); }
.promo-text { margin: 0; color: var(--muted); }
.promo .actions { justify-content: center; margin-top: 22px; }
.promo .actions .btn { flex: 1 1 100%; text-align: center; }
@keyframes promo-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .promo { animation: none; } }
.favorites + .catering { margin-top: clamp(48px, 7vw, 88px); }

/* ---------- Own delivery: add buttons, cart bar, checkout (Nov 4, 2026) ---------- */
.apps { margin: 14px 0 0; font-size: var(--step--1); color: var(--muted); }
.apps a { color: var(--cream); font-weight: 700; }
.apps a:hover { color: var(--gold); }
.order-hint { margin: 0 0 16px; padding: 14px 18px; border: 1px solid var(--gold); border-radius: 12px; background: var(--panel); color: var(--cream); scroll-margin-top: 110px; }
.order-hint b { color: var(--gold); }
.order-row { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 8px; }
.pan li.has-photo .order-row { grid-column: 2 / -1; }
.order-row .size { font: 600 var(--step--1)/1 var(--body); color: var(--cream); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color-scheme: dark; }
.add { font: 800 var(--step--1)/1 var(--body); color: var(--night); background: var(--gold); border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.add:hover { background: var(--gold-soft); }
.cart-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: 16px; width: min(560px, calc(100% - 24px)); justify-content: space-between;
  font: 600 var(--step-0)/1 var(--body); color: var(--night); background: var(--gold); border: 0; border-radius: 999px;
  padding: 16px 22px; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.cart-bar:hover { background: var(--gold-soft); }
.cart-bar .cart-count { font-weight: 800; }
body.has-cart .foot { padding-bottom: 110px; }
body.modal-open { overflow: hidden; }
.checkout { place-items: start center; overflow-y: auto; }
.checkout-box { width: min(560px, 100%); text-align: left; margin: 24px 0; padding: 28px 24px 24px; }
.checkout-box h2 { font-size: clamp(1.75rem, 6vw, 2.25rem); margin: 0 40px 16px 0; }
.co-lines { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.co-lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-name { font-weight: 600; }
.co-qty { display: inline-flex; align-items: center; gap: 10px; }
.co-qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--cream); font: 700 18px/1 var(--body); cursor: pointer; }
.co-qty button:hover { border-color: var(--gold); }
.co-price { font-weight: 800; color: var(--gold); min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.co-empty { color: var(--muted); display: block !important; }
.co-form .field span { font-weight: 600; font-size: var(--step--1); }
.co-fee { margin: -6px 0 16px; font-size: var(--step--1); color: var(--muted); }
.co-fee.ok { color: var(--gold); font-weight: 700; }
.co-fee.err { color: #ff8a8f; font-weight: 600; }
.co-totals { margin: 6px 0 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.co-totals p { display: flex; justify-content: space-between; margin: 4px 0; font-variant-numeric: tabular-nums; }
.co-totals .co-total { font-size: var(--step-1); font-weight: 800; color: var(--gold); margin-top: 8px; }
.co-form .btn { width: 100%; text-align: center; }
.co-form .fine { margin: 12px 0 0; }
@media (max-width: 760px) {
  .cart-bar { bottom: 10px; padding: 14px 18px; font-size: var(--step--1); }
  .checkout-box { margin: 0; border-radius: 14px; }
}

/* ---------- Lunch special coupon (Nov 4, 2026) ---------- */
.coupon-wrap { max-width: var(--wrap); margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--gutter) 0; }
.coupon {
  position: relative; text-align: center; padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 48px);
  background: var(--panel); border: 3px dashed var(--gold); border-radius: 18px;
}
.coupon-tag { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .14em; font-size: var(--step--1); font-weight: 800; color: var(--ribbon-2); }
.coupon-deal { margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(1.9rem, 5vw, 3rem); color: var(--gold); line-height: 1.1; }
.coupon-price { margin: 10px 0 0; font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 800; line-height: 1; color: var(--cream); }
.coupon-fine { margin: 10px 0 0; color: var(--muted); }
.coupon-now { display: inline-block; margin: 16px 0 0; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-weight: 700; font-size: var(--step--1); }
.coupon-now.is-on { background: var(--gold); color: var(--night); }
.coupon .actions { justify-content: center; }
.coupon-show { margin: 16px 0 0; font-size: var(--step--1); color: var(--muted); }
.pan-special { border: 2px dashed var(--gold); }
.special-off { font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.order-row { flex-wrap: wrap; }

/* ---------- Pickup / Xcellent Driver checkout + fee calculator (Nov 4, 2026) ---------- */
.co-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.co-mode { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border-radius: 12px; cursor: pointer;
  background: var(--panel-2); border: 2px solid var(--line); color: var(--cream); font: inherit; }
.co-mode b { color: var(--gold); }
.co-mode span { font-size: var(--step--1); color: var(--muted); }
.co-mode em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--ribbon-2); text-transform: uppercase; letter-spacing: .08em; }
.co-mode[aria-checked="true"] { border-color: var(--gold); background: var(--panel); }
.co-mode:disabled { opacity: .6; cursor: not-allowed; }
.feecalc-wrap { max-width: var(--wrap); margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--gutter) 0; }
.menu-page + .feecalc-wrap, .menu .feecalc-wrap { padding-top: 0; }
.feecalc { background: var(--panel); border: 1px solid var(--gold); border-radius: 18px; padding: clamp(22px, 4vw, 36px); }
.feecalc h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 4px 0 10px; }
.feecalc-rule { margin: 0 0 16px; color: var(--muted); max-width: 70ch; }
.feecalc-form { display: flex; flex-wrap: wrap; gap: 10px; }
.feecalc-form input { flex: 1 1 280px; }
.feecalc-out { margin: 14px 0 0; font-weight: 700; min-height: 1.4em; }
.feecalc-out.ok { color: var(--gold); }
.feecalc-out.err { color: #ff8a8f; }
.feecalc-soon { margin: 12px 0 0; font-size: var(--step--1); color: var(--cream); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pay-cancelled { position: fixed; left: 50%; top: 90px; transform: translateX(-50%); z-index: 60; margin: 0; padding: 12px 18px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--gold); color: var(--cream); box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: calc(100% - 24px); }
.visit + .feecalc-wrap { padding-bottom: clamp(48px, 7vw, 88px); }
@media (max-width: 560px) { .co-modes { grid-template-columns: 1fr; } }
.coupon-pick { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px auto 0; max-width: 560px; }
.coupon-pick select { flex: 1 1 220px; font: 600 var(--step-0)/1.2 var(--body); padding: 12px 14px; border-radius: 12px; }
.coupon-warn { flex-basis: 100%; margin: 0; min-height: 1.2em; color: #ff8a8f; font-weight: 700; font-size: var(--step--1); }
.coupon-pick select, .order-row .size { background: var(--panel-2); color: var(--cream); border: 1px solid var(--line); color-scheme: dark; }
.coupon-pick select:disabled, .order-row .size:disabled { opacity: .45; cursor: not-allowed; }
