/* ITTS OrderFlow — tablet/kiosk-friendly base styles.
   Large touch targets, high contrast, no frontend framework. */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #1c2430;
  --muted: #5b6675;
  --line: #dfe4ea;
  --brand: #0f7b6c;
  --brand-ink: #ffffff;
  --accent: #1f6feb;
  --danger: #b3261e;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 20px; color: var(--brand); text-decoration: none; letter-spacing: .2px; }
.topnav { display: flex; align-items: center; gap: 12px; }
.who { color: var(--muted); font-size: 15px; }
.inline-form { margin: 0; }

/* Layout */
.container { width: 100%; max-width: 880px; margin: 0 auto; padding: 28px 20px; flex: 1 0 auto; }
.footer { padding: 18px 20px; color: var(--muted); font-size: 14px; text-align: center; }

/* Hero / panels */
.hero { text-align: center; padding: 40px 8px; }
.hero h1 { font-size: 40px; margin: 0 0 10px; color: var(--brand); }
.lede { font-size: 20px; max-width: 620px; margin: 0 auto 24px; }
.hero-actions { margin: 24px 0; }
.muted { color: var(--muted); font-size: 15px; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; max-width: 640px; margin: 0 auto;
}
.panel-narrow { max-width: 420px; }
.panel h1 { margin-top: 0; }

/* Forms — large touch targets */
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; font-size: 18px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus { outline: 3px solid #cfe3ff; border-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700; padding: 12px 20px;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; min-height: 48px;
}
.btn-lg { font-size: 19px; padding: 16px 28px; min-height: 56px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #f0f2f5; }

/* Messages */
.messages { list-style: none; max-width: 880px; margin: 14px auto 0; padding: 0 20px; }
.msg { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; }
.msg.error { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c0; }
.msg.success { background: #e7f6ef; color: var(--brand); border: 1px solid #b9e3d2; }

/* Menu (public + management) */
.h-cat { margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.menu-list { list-style: none; margin: 0 0 12px; padding: 0; }
.menu-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.menu-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.menu-info { display: flex; flex-direction: column; flex: 1 1 auto; }
.menu-name { font-weight: 700; }
.menu-desc { color: var(--muted); font-size: 14px; }
.menu-price { font-weight: 700; white-space: nowrap; }

/* Customer menu UI */
.store-head { padding: 8px 2px 2px; }
.store-head h1 { margin: 0 0 4px; }

.cat-nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 2px; margin: 6px 0 8px;
  background: var(--bg); -webkit-overflow-scrolling: touch;
}
.cat-chip {
  flex: 0 0 auto; text-decoration: none; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 15px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.cat-chip:hover { background: #eef1f4; }
.cat-section { scroll-margin-top: 72px; }

.card-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  margin-bottom: 18px;
}
.prod-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; min-height: 120px;
}
.prod-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.prod-photo {
  height: 130px; background: #eef1f4; display: flex; align-items: center; justify-content: center;
}
.prod-photo img { width: 100%; height: 100%; object-fit: cover; }
.prod-photo-ph { font-size: 40px; }
.prod-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-name { font-weight: 700; }
.prod-desc { color: var(--muted); font-size: 14px; flex: 1; }
.prod-price { font-weight: 800; color: var(--brand); }

/* Product detail */
.detail { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.detail-photo {
  width: 220px; height: 180px; flex: 0 0 auto; border-radius: 12px; overflow: hidden;
  background: #eef1f4; display: flex; align-items: center; justify-content: center;
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1 1 240px; }
.detail-base { margin-top: 10px; }

.mod-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.mod-group legend { font-weight: 800; padding: 0 6px; }
.mod-option {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid var(--line); cursor: pointer; min-height: 48px;
}
.mod-option:last-child { border-bottom: none; }
.mod-option input { width: 22px; height: 22px; }
.mod-option > span:nth-of-type(1) { flex: 1; }
.mod-delta { color: var(--muted); font-weight: 700; }

/* Cart / order */
.cart-bar-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cart-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.qty-form { display: flex; align-items: center; gap: 6px; }
.qty-form input { width: 64px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; max-width: 320px; margin: 16px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .grand { font-size: 20px; color: var(--brand); font-weight: 800; }
.order-number { font-size: 28px; font-weight: 800; color: var(--brand); margin: 6px 0; }

/* Payment ticket */
.ticket-actions { display: flex; gap: 10px; max-width: 360px; margin: 0 auto 14px; }
.ticket {
  max-width: 360px; margin: 0 auto; background: #fff; color: #111;
  border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}
.ticket hr { border: none; border-top: 1px dashed #999; margin: 12px 0; }
.ticket-head { text-align: center; }
.ticket-head h2 { margin: 0 0 4px; }
.ticket-head p { margin: 2px 0; font-size: 13px; }
.ticket-num { font-size: 20px; font-weight: 800; margin: 4px 0; text-align: center; }
.ticket-meta { font-size: 12px; color: #555; text-align: center; margin: 2px 0; }
.ticket-status { text-align: center; font-weight: 800; letter-spacing: 1px; margin: 10px 0; }
.ticket-line { margin: 8px 0; }
.ticket-line-main { display: flex; justify-content: space-between; font-weight: 700; }
.ticket-mod { font-size: 13px; color: #444; padding-left: 10px; }
.ticket-totals > div { display: flex; justify-content: space-between; margin: 3px 0; }
.ticket-grand { font-weight: 800; font-size: 18px; border-top: 1px solid #111; margin-top: 6px; padding-top: 6px; }
.ticket-instruction { text-align: center; margin: 12px 0; }
.ticket-instruction p { font-size: 13px; color: #444; }
.qr-ph {
  width: 120px; height: 120px; margin: 12px auto 4px; border: 2px solid #111;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; letter-spacing: 2px; color: #111;
  background: repeating-linear-gradient(45deg, #fff, #fff 6px, #eee 6px, #eee 12px);
}

@media print {
  .topbar, .footer, .messages, .no-print, .ticket-actions { display: none !important; }
  body { background: #fff; }
  .container { padding: 0; }
  .ticket { border: none; max-width: 100%; }
}

/* Kitchen display */
.kds-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 12px; }
.kds-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; border-left: 6px solid var(--line); }
.kds-PAID { border-left-color: var(--accent); }
.kds-IN_PROCESS { border-left-color: #d98324; }
.kds-READY { border-left-color: var(--brand); }
.kds-AWAITING_PAYMENT { border-left-color: var(--danger); }
.kds-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.kds-head a { color: var(--ink); text-decoration: none; }
.kds-status { font-size: 12px; color: var(--muted); }
.kds-time { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.kds-items { list-style: none; margin: 6px 0; padding: 0; }
.kds-items li { padding: 6px 0; border-top: 1px dashed var(--line); }
.kds-mod { font-size: 13px; color: var(--muted); padding-left: 10px; }
.kds-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Reports */
.report-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 14px 0; }
.report-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.report-label { color: var(--muted); font-size: 14px; }
.report-big { font-size: 30px; font-weight: 800; color: var(--brand); }

@media (max-width: 540px) {
  .hero h1 { font-size: 32px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .detail-photo { width: 100%; }
}

/* Sprint 2 / S2-VP1A — Customer menu shell and product cards */
.customer-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(28, 36, 48, .06);
}
.store-head-copy { min-width: 0; }
.store-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.customer-menu-head h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.store-address {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.store-cart-btn {
  flex: 0 0 auto;
  gap: 8px;
  min-width: 138px;
  box-shadow: 0 8px 18px rgba(15, 123, 108, .2);
}
.customer-order-status { margin: 0 0 12px; }

.cat-nav {
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-chip {
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.cat-chip:hover,
.cat-chip:focus-visible {
  background: #e8f3f1;
  border-color: #b8d8d2;
  color: var(--brand);
}
.cat-chip:active { transform: scale(.98); }

.cat-section { padding-top: 10px; }
.cat-heading { margin: 0 0 14px; }
.cat-heading .h-cat {
  margin: 14px 0 4px;
  padding: 0;
  border: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.cat-description {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card-grid {
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-bottom: 30px;
}
.prod-card {
  min-height: 0;
  border-radius: 18px;
  box-shadow: 0 3px 12px rgba(28, 36, 48, .05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.prod-card:hover,
.prod-card:focus-visible {
  transform: translateY(-2px);
  border-color: #c8d1da;
  box-shadow: 0 10px 24px rgba(28, 36, 48, .11);
  outline: none;
}
.prod-card:active { transform: translateY(0); }
.prod-photo {
  height: auto;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #f4f6f8, #e8ecef);
  overflow: hidden;
}
.prod-photo img { transition: transform .2s ease; }
.prod-card:hover .prod-photo img { transform: scale(1.025); }
.prod-photo-ph { font-size: 46px; }
.prod-body {
  min-height: 142px;
  padding: 16px 17px 15px;
  gap: 14px;
}
.prod-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}
.prod-name {
  font-size: 19px;
  line-height: 1.25;
}
.prod-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.prod-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf0f3;
}
.prod-price {
  font-size: 22px;
  line-height: 1;
}
.prod-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f3f1;
  color: var(--brand);
  font-size: 28px;
  line-height: 1;
}
.empty-menu-state {
  padding: 52px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed #c9d0d7;
  border-radius: 18px;
}
.empty-menu-state > span { font-size: 44px; }
.empty-menu-state h2 { margin: 10px 0 2px; }

@media (max-width: 620px) {
  .customer-menu-head {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }
  .store-cart-btn { width: 100%; }
  .cat-nav { margin-left: -2px; margin-right: -2px; }
}

@media (max-width: 540px) {
  .card-grid { grid-template-columns: 1fr; }
  .prod-card { display: grid; grid-template-columns: 128px 1fr; }
  .prod-photo { height: 100%; min-height: 156px; aspect-ratio: auto; }
  .prod-body { min-height: 156px; }
  .prod-name { font-size: 18px; }
  .prod-price { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .prod-card,
  .prod-photo img,
  .cat-chip { transition: none; }
}

/* Sprint 2 / S2-VP1B — Product detail visual polish */
.product-detail-page {
  width: min(100%, 820px);
  margin: 0 auto;
}
.product-detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.product-detail-nav .btn {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
}
.product-hero-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.04fr) minmax(300px, .96fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(28, 36, 48, .10);
}
.product-hero-photo {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 35% 32%, rgba(255,255,255,.92), rgba(255,255,255,0) 36%),
    linear-gradient(145deg, #edf3f2, #dce8e5);
}
.product-hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(to top, rgba(16, 34, 32, .16), transparent);
  pointer-events: none;
}
.product-hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}
.product-hero-placeholder {
  font-size: 78px;
  filter: drop-shadow(0 12px 16px rgba(28, 36, 48, .14));
}
.product-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 38px 34px;
}
.product-detail-eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.product-hero-copy h1 {
  margin: 7px 0 10px;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.product-detail-description {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.product-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 22px;
  padding-top: 20px;
  border-top: 1px solid #edf0f3;
}
.product-price-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.product-detail-price {
  display: block;
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.02em;
}
.product-custom-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  color: var(--brand);
  background: #e8f3f1;
  border: 1px solid #c6e0db;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.product-primary-cta,
.product-add-btn {
  justify-content: space-between;
  min-height: 64px;
  padding-inline: 22px;
  border-radius: 15px;
  box-shadow: 0 12px 24px rgba(15, 123, 108, .22);
}
.product-primary-cta > span:last-child { font-size: 25px; }
.product-cta-help {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.guided-flow-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(28, 36, 48, .05);
}
.guided-flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.guided-flow-step > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.guided-flow-step strong {
  font-size: 15px;
  line-height: 1.2;
}
.guided-flow-step small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.guided-flow-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: var(--brand);
  background: #e8f3f1;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}
.guided-flow-arrow {
  color: #a5afb9;
  font-size: 26px;
}
.classic-customization {
  margin-top: 18px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(28, 36, 48, .06);
}
.customization-heading h2 {
  margin: 4px 0 16px;
  font-size: 28px;
  letter-spacing: -.02em;
}
.classic-customization .mod-group {
  margin: 14px 0;
  padding: 16px 18px 8px;
  background: #fbfcfd;
  border-radius: 16px;
}
.classic-customization .mod-group legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: calc(100% - 4px);
  gap: 14px;
  padding: 0 4px;
}
.classic-customization .mod-group legend > span {
  font-size: 19px;
}
.classic-customization .mod-group legend small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.classic-customization .mod-option {
  min-height: 58px;
  padding: 13px 6px;
}
.classic-customization .mod-option:has(input:checked) {
  margin-inline: -8px;
  padding-inline: 14px;
  background: #edf7f5;
  border-radius: 10px;
}
.classic-customization .mod-option input { accent-color: var(--brand); }
.product-order-fields {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 14px;
  align-items: end;
  margin-top: 20px;
}
.product-order-fields .field { margin-bottom: 0; }
.product-order-fields .field span {
  color: var(--ink);
  font-weight: 700;
}
.product-order-fields .field em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
.product-add-btn { margin-top: 18px; }
.product-add-btn strong { font-size: 22px; }

@media (max-width: 720px) {
  .product-hero-card { grid-template-columns: 1fr; }
  .product-hero-photo,
  .product-hero-photo img { min-height: 300px; }
  .product-hero-copy { padding: 28px 24px; }
  .guided-flow-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .guided-flow-arrow { display: none; }
  .guided-flow-step {
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f3;
  }
  .guided-flow-step:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (max-width: 520px) {
  .product-detail-nav .btn { padding-inline: 14px; font-size: 15px; }
  .product-hero-card { border-radius: 20px; }
  .product-hero-photo,
  .product-hero-photo img { min-height: 240px; }
  .product-hero-copy h1 { font-size: 36px; }
  .product-price-row { align-items: flex-start; flex-direction: column; }
  .product-order-fields { grid-template-columns: 1fr; }
  .classic-customization { padding: 20px 16px; }
  .classic-customization .mod-group legend {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }
}

/* Sprint 2 / S2-VP2 — Kiosk Wizard visual polish */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.kiosk-group,
.kiosk-instructions {
  max-width: 900px;
  padding: 30px 32px 32px;
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(28, 36, 48, .09);
}

.kiosk-progress-wrap {
  margin: -4px 0 30px;
  padding: 18px 20px 16px;
  background: linear-gradient(145deg, #f8fbfa, #f1f7f5);
  border: 1px solid #d7e7e3;
  border-radius: 18px;
}
.kiosk-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.kiosk-progress-meta strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kiosk-progress-track {
  display: flex;
  gap: 6px;
  height: 8px;
  margin-bottom: 14px;
}
.kiosk-progress-segment {
  flex: 1 1 0;
  overflow: hidden;
  background: #dfe7e5;
  border-radius: 999px;
}
.kiosk-progress-segment.is-complete { background: #7ab8ad; }
.kiosk-progress-segment.is-current {
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 123, 108, .11);
}
.kiosk-progress-labels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, 1fr);
  gap: 8px;
  overflow-x: auto;
  margin: 0;
  padding: 0 0 2px;
  list-style: none;
  scrollbar-width: none;
}
.kiosk-progress-labels::-webkit-scrollbar { display: none; }
.kiosk-progress-labels li {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: #7c8794;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.kiosk-progress-labels li > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kiosk-progress-labels li.is-complete { color: #4f706a; }
.kiosk-progress-labels li.is-current { color: var(--brand); }
.kiosk-progress-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  background: #e4eae8;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}
.kiosk-progress-labels li.is-complete .kiosk-progress-dot {
  color: #fff;
  background: #7ab8ad;
}
.kiosk-progress-labels li.is-current .kiosk-progress-dot {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 123, 108, .12);
}

.kiosk-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}
.kiosk-step-head > div:first-child { min-width: 0; }
.kiosk-step-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.kiosk-step-head h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.kiosk-step-description {
  max-width: 590px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}
.kiosk-requirement {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  min-width: 142px;
  padding: 11px 14px;
  border: 1px solid;
  border-radius: 14px;
}
.kiosk-requirement strong {
  font-size: 14px;
  line-height: 1.2;
}
.kiosk-requirement span {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
}
.kiosk-requirement.is-required {
  color: #0c6759;
  background: #e8f4f1;
  border-color: #bfddd6;
}
.kiosk-requirement.is-optional {
  color: #596574;
  background: #f4f6f8;
  border-color: #dce2e8;
}
.kiosk-error {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 18px;
  padding: 14px 16px;
  font-size: 15px;
}

.kiosk-options-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.kiosk-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.kiosk-options-grid.kiosk-options-spacious .kiosk-opt { min-height: 112px; }
.kiosk-opt {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 96px;
  margin: 0;
  padding: 16px 16px;
  color: var(--ink);
  background: #fff;
  border: 2px solid #dfe4ea;
  border-radius: 17px;
  box-shadow: 0 3px 12px rgba(28, 36, 48, .04);
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.kiosk-opt:hover {
  transform: translateY(-1px);
  border-color: #b8c6d0;
  box-shadow: 0 8px 20px rgba(28, 36, 48, .08);
}
.kiosk-opt:active { transform: scale(.992); }
.kiosk-opt:has(input:checked) {
  background: #edf7f5;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 123, 108, .10), 0 10px 22px rgba(15, 123, 108, .10);
}
.kiosk-opt > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.kiosk-option-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #fff;
  border: 2px solid #aeb9c4;
  border-radius: 50%;
  transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.kiosk-opt input[type="checkbox"] + .kiosk-option-control { border-radius: 8px; }
.kiosk-opt input:focus-visible + .kiosk-option-control {
  outline: 4px solid rgba(31, 111, 235, .22);
  outline-offset: 2px;
}
.kiosk-opt input:checked + .kiosk-option-control {
  background: var(--brand);
  border-color: var(--brand);
}
.kiosk-opt input:checked + .kiosk-option-control::after {
  content: "✓";
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.kiosk-option-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.kiosk-option-copy strong {
  overflow-wrap: break-word;
  word-break: normal;
  font-size: 18px;
  line-height: 1.22;
}
.kiosk-option-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.kiosk-option-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 10px;
  color: #52606d;
  background: #f1f4f6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.kiosk-opt:has(input:checked) .kiosk-option-price {
  color: var(--brand);
  background: #dcefeb;
}
.kiosk-selection-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 13px;
}
.kiosk-selection-hint > span {
  color: var(--brand);
  font-size: 16px;
}

.kiosk-group .kiosk-nav,
.kiosk-instructions .kiosk-nav { margin-top: 24px; }
.kiosk-group .kiosk-nav-main,
.kiosk-instructions .kiosk-nav-main {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .46fr);
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #dfe4ea;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(28, 36, 48, .14);
  backdrop-filter: blur(12px);
}
.kiosk-nav-secondary {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.kiosk-nav-secondary:empty { display: block; }
.kiosk-nav-secondary .btn {
  min-width: 112px;
  min-height: 58px;
}
.kiosk-back-btn { gap: 8px; }
.kiosk-skip-btn { flex: 1 1 auto; }
.kiosk-next-btn {
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  min-height: 58px;
  padding-inline: 20px;
  box-shadow: 0 10px 22px rgba(15, 123, 108, .22);
}
.kiosk-next-btn > span:last-child { font-size: 24px; }
.kiosk-nav-utility {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
}
.kiosk-text-action {
  min-height: 40px;
  padding: 7px 8px;
  color: #5a6572;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: #c5ccd3;
  text-underline-offset: 3px;
}
.kiosk-text-action:hover,
.kiosk-text-action:focus-visible {
  color: var(--ink);
  background: #f1f3f5;
  outline: none;
}
.kiosk-text-danger { color: #9a403a; }
.kiosk-text-danger:hover,
.kiosk-text-danger:focus-visible { color: var(--danger); background: #fdf0ef; }

.kiosk-notes-field { display: block; }
.kiosk-notes-field textarea {
  display: block;
  width: 100%;
  min-height: 168px;
  resize: vertical;
  padding: 18px 20px;
  color: var(--ink);
  background: #fff;
  border: 2px solid #dfe4ea;
  border-radius: 17px;
  font: inherit;
  font-size: 18px;
  line-height: 1.5;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.kiosk-notes-field textarea::placeholder { color: #9099a3; }
.kiosk-notes-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 123, 108, .11);
  outline: none;
}
.kiosk-notes-field small {
  display: block;
  margin: 8px 3px 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .kiosk-group,
  .kiosk-instructions {
    padding: 24px 22px 26px;
    border-radius: 20px;
  }
  .kiosk-progress-labels { grid-auto-columns: minmax(105px, 1fr); }
  .kiosk-step-head { flex-direction: column; gap: 14px; }
  .kiosk-requirement {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .kiosk-requirement span { margin-top: 0; }
  .kiosk-options-grid { grid-template-columns: 1fr; }
  .kiosk-options-grid.kiosk-options-spacious .kiosk-opt { min-height: 96px; }
}

@media (max-width: 560px) {
  .kiosk-group,
  .kiosk-instructions {
    margin-inline: -4px;
    padding: 20px 16px 22px;
    border-radius: 18px;
  }
  .kiosk-progress-wrap { margin-bottom: 24px; padding: 15px 14px 13px; }
  .kiosk-progress-meta strong { max-width: 55%; }
  .kiosk-progress-labels { display: none; }
  .kiosk-progress-track { margin-bottom: 0; }
  .kiosk-step-head h1 { font-size: 34px; }
  .kiosk-opt {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 92px;
    padding: 14px;
  }
  .kiosk-option-price {
    grid-column: 2;
    justify-self: start;
    margin-top: -4px;
  }
  .kiosk-group .kiosk-nav-main,
  .kiosk-instructions .kiosk-nav-main {
    grid-template-columns: 1fr;
    bottom: 8px;
  }
  .kiosk-next-btn { grid-row: 1; width: 100%; }
  .kiosk-nav-secondary {
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kiosk-nav-secondary .btn { min-width: 0; padding-inline: 12px; font-size: 14px; }
  .kiosk-nav-secondary .btn:only-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .kiosk-opt,
  .kiosk-option-control,
  .kiosk-notes-field textarea { transition: none; }
}


/* Sprint 2 / S2-VP3 — Review Item visual polish */
.kiosk-review {
  max-width: 940px;
  padding: 30px 32px 32px;
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(28, 36, 48, .09);
}
.kiosk-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}
.kiosk-review-head > div { min-width: 0; }
.kiosk-review-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.06;
  letter-spacing: -.04em;
}
.kiosk-review-head p {
  max-width: 590px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}
.kiosk-review-product {
  display: inline-flex;
  align-items: center;
  max-width: 260px;
  min-height: 40px;
  padding: 8px 13px;
  overflow: hidden;
  color: var(--brand);
  background: #e8f4f1;
  border: 1px solid #c7e1db;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kiosk-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: start;
  gap: 18px;
}
.kiosk-review-selections {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe4ea;
  border-radius: 20px;
}
.kiosk-review-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 18px;
  background: linear-gradient(145deg, #f8fbfa, #f1f7f5);
  border-bottom: 1px solid #dce9e6;
}
.kiosk-review-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.kiosk-review-section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.kiosk-review-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.kiosk-review-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kiosk-review-choice-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 16px 20px;
  border-bottom: 1px solid #e6eaee;
}
.kiosk-review-choice-row:last-child { border-bottom: 0; }
.kiosk-review-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 0 5px rgba(15, 123, 108, .09);
}
.kiosk-review-choice-copy { min-width: 0; }
.kiosk-review-choice-copy h3 {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.2;
}
.kiosk-review-values {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.kiosk-review-value,
.kiosk-review-empty {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  color: #40505d;
  background: #f2f5f6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}
.kiosk-review-value small {
  margin-left: 5px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}
.kiosk-review-empty {
  color: #7b8692;
  background: #f4f5f6;
  font-style: italic;
}
.kiosk-review-edit-form { justify-self: end; }
.kiosk-review-edit {
  gap: 9px;
  min-width: 84px;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 14px;
}
.kiosk-review-edit > span:last-child { color: var(--brand); font-size: 18px; }
.kiosk-review-notes {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  margin: 0 20px 20px;
  padding: 15px 16px;
  color: #5c4c2d;
  background: #fff8e8;
  border: 1px solid #efdfb7;
  border-radius: 15px;
}
.kiosk-review-notes-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f6e7bd;
  border-radius: 50%;
  font-size: 18px;
}
.kiosk-review-notes h3 { margin: 0 0 4px; font-size: 15px; }
.kiosk-review-notes p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #665a43;
  font-size: 13px;
  line-height: 1.45;
}
.kiosk-review-summary {
  position: sticky;
  top: 18px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(145deg, #0f7b6c, #0b695c);
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(15, 123, 108, .20);
}
.kiosk-review-summary-label {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,.80);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kiosk-review-summary > strong {
  display: block;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.kiosk-review-summary p {
  margin: 13px 0 18px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.45;
}
.kiosk-review-ready {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: 13px;
  font-weight: 850;
}
.kiosk-review-ready span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--brand);
  background: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}
.kiosk-review-form { margin-top: 20px; }
.kiosk-review-actionbar {
  position: sticky;
  bottom: 12px;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .45fr);
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,.95);
  border: 1px solid #dfe4ea;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(28, 36, 48, .14);
  backdrop-filter: blur(12px);
}
.kiosk-review-secondary-actions {
  display: flex;
  align-items: stretch;
}
.kiosk-review-secondary-actions .btn { min-width: 120px; min-height: 60px; }
.kiosk-review-add {
  justify-content: space-between;
  gap: 18px;
  min-height: 60px;
  padding-inline: 22px;
  box-shadow: 0 10px 22px rgba(15, 123, 108, .22);
}
.kiosk-review-add > span:last-child { font-size: 24px; }

@media (max-width: 780px) {
  .kiosk-review { padding: 24px 22px 26px; border-radius: 20px; }
  .kiosk-review-head { flex-direction: column; gap: 14px; }
  .kiosk-review-product { max-width: 100%; }
  .kiosk-review-layout { grid-template-columns: 1fr; }
  .kiosk-review-summary { position: static; }
  .kiosk-review-summary > strong { font-size: 34px; }
}

@media (max-width: 560px) {
  .kiosk-review {
    margin-inline: -4px;
    padding: 20px 16px 22px;
    border-radius: 18px;
  }
  .kiosk-review-head h1 { font-size: 34px; }
  .kiosk-review-section-head { padding: 17px 16px 15px; }
  .kiosk-review-section-head h2 { font-size: 21px; }
  .kiosk-review-choice-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 14px;
  }
  .kiosk-review-step-number { width: 32px; height: 32px; }
  .kiosk-review-edit-form { grid-column: 2; justify-self: start; }
  .kiosk-review-edit { min-height: 42px; }
  .kiosk-review-notes { margin: 0 14px 14px; }
  .kiosk-review-actionbar { grid-template-columns: 1fr; bottom: 8px; }
  .kiosk-review-add { grid-row: 1; width: 100%; }
  .kiosk-review-secondary-actions { grid-row: 2; }
  .kiosk-review-secondary-actions .btn { width: 100%; }
}

/* Sprint 2 / S2-VP4 — Cart + Review Order / Checkout visual polish */
.checkout-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}
.checkout-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}
.checkout-page-head > div { min-width: 0; }
.checkout-eyebrow,
.checkout-card-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.checkout-page-head h1 {
  margin: 0;
  font-size: clamp(36px, 5.5vw, 50px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.checkout-page-head p {
  max-width: 650px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}
.checkout-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  color: var(--brand);
  background: #e8f4f1;
  border: 1px solid #c7e1db;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 20px;
}
.cart-items,
.order-review-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.cart-item-card,
.order-review-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(28, 36, 48, .055);
}
.cart-item-card { padding: 22px; }
.cart-item-topline,
.cart-item-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cart-item-topline { justify-content: space-between; }
.cart-item-title-wrap { min-width: 0; }
.cart-item-number,
.checkout-step-number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 0 5px rgba(15, 123, 108, .09);
}
.cart-item-title-wrap h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.cart-unit-price {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.cart-line-price {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 21px;
  line-height: 1.2;
}
.cart-modifier-list {
  display: grid;
  gap: 10px;
  margin: 19px 0 0 52px;
}
.cart-modifier-group {
  display: grid;
  grid-template-columns: minmax(80px, .28fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}
.cart-modifier-group dt {
  padding-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.cart-modifier-group dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.cart-choice-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  color: #40505d;
  background: #f2f5f6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}
.cart-choice-chip small {
  margin-left: 5px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}
.cart-instructions {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  margin: 15px 0 0 52px;
  padding: 12px 14px;
  color: #5c4c2d;
  background: #fff8e8;
  border: 1px solid #efdfb7;
  border-radius: 13px;
}
.cart-instructions > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #f6e7bd;
  border-radius: 50%;
  font-size: 15px;
}
.cart-instructions strong { display: block; font-size: 12px; }
.cart-instructions p {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  color: #665a43;
  font-size: 12px;
  line-height: 1.4;
}
.cart-item-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid #e7eaee;
}
.cart-quantity-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cart-quantity-controls {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.cart-quantity-controls input {
  width: 72px;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd6dd;
  border-radius: 11px;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
}
.cart-quantity-controls input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 123, 108, .10);
  outline: none;
}
.cart-remove-form { margin-left: auto; }
.cart-remove-button {
  min-height: 44px;
  padding: 9px 4px;
  color: #9a403a;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.cart-remove-button:hover,
.cart-remove-button:focus-visible {
  color: var(--danger);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}
.checkout-summary {
  position: sticky;
  top: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(28, 36, 48, .08);
}
.checkout-summary-label {
  display: block;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.checkout-summary dl { margin: 0; }
.checkout-summary dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
}
.checkout-summary dt { color: var(--muted); font-size: 14px; }
.checkout-summary dd { margin: 0; font-size: 14px; font-weight: 800; }
.checkout-summary .checkout-summary-total {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.checkout-summary-total dt { color: var(--ink); font-size: 17px; font-weight: 900; }
.checkout-summary-total dd { color: var(--brand); font-size: 28px; letter-spacing: -.025em; }
.checkout-primary-action {
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 18px;
  padding-inline: 19px;
  box-shadow: 0 10px 22px rgba(15, 123, 108, .20);
}
.checkout-primary-action > span { font-size: 22px; }
.checkout-secondary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  margin-top: 8px;
  color: var(--ink);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.checkout-secondary-link:hover,
.checkout-secondary-link:focus-visible { background: #f1f3f5; outline: none; }
.checkout-summary-note {
  margin: 12px 0 0;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px solid #edf0f2;
  font-size: 11px;
  line-height: 1.45;
}
.cart-empty-state {
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(28, 36, 48, .06);
}
.cart-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  background: #e8f4f1;
  border-radius: 50%;
  font-size: 34px;
}
.cart-empty-state h2 { margin: 18px 0 6px; font-size: 28px; }
.cart-empty-state p { margin: 0 auto 23px; color: var(--muted); font-size: 15px; }

.order-review-layout { grid-template-columns: minmax(0, 1fr) 270px; }
.order-review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 18px;
  background: linear-gradient(145deg, #f8fbfa, #f1f7f5);
  border-bottom: 1px solid #dce9e6;
}
.order-review-card-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.order-review-card-head h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.order-review-card-head a {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-underline-offset: 3px;
}
.order-review-items {
  margin: 0;
  padding: 0 22px;
  list-style: none;
}
.order-review-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid #e6eaee;
}
.order-review-item:last-child { border-bottom: 0; }
.order-review-item-copy { min-width: 0; }
.order-review-item h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.order-review-item h3 span { color: var(--brand); }
.order-review-item > strong { color: var(--ink); font-size: 17px; }
.order-review-modifiers {
  display: grid;
  gap: 4px;
  margin: 10px 0 0;
}
.order-review-modifiers > div {
  display: grid;
  grid-template-columns: minmax(70px, .25fr) minmax(0, 1fr);
  gap: 8px;
}
.order-review-modifiers dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}
.order-review-modifiers dd {
  margin: 0;
  color: #465460;
  font-size: 12px;
  line-height: 1.4;
}
.order-review-modifiers small { color: var(--brand); font-size: 11px; font-weight: 900; }
.order-review-instructions {
  display: inline-flex;
  gap: 7px;
  margin: 10px 0 0;
  padding: 7px 10px;
  color: #665a43;
  background: #fff8e8;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.4;
}
.order-checkout-form { display: grid; gap: 16px; }
.checkout-fields {
  display: grid;
  gap: 16px;
  padding: 22px;
}
.checkout-field { display: block; }
.checkout-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}
.checkout-field-label strong,
.checkout-field-label em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  color: var(--brand);
  background: #e8f4f1;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.checkout-field-label em { color: #687583; background: #f0f2f4; }
.checkout-field input {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
  border: 2px solid #dfe4ea;
  border-radius: 13px;
  font: inherit;
  font-size: 17px;
}
.checkout-field input::placeholder { color: #9099a3; }
.checkout-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 123, 108, .10);
  outline: none;
}
.checkout-field small {
  display: block;
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: 11px;
}
.checkout-no-details { margin: 0; color: var(--muted); font-size: 14px; }
.order-place-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 22px;
  color: #fff;
  background: linear-gradient(145deg, #0f7b6c, #0b695c);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(15, 123, 108, .20);
}
.order-place-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.checkout-step-number-light {
  color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255,255,255,.12);
}
.order-place-card span:not(.checkout-step-number) {
  display: block;
  color: rgba(255,255,255,.75);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.order-place-card strong { display: block; font-size: 20px; line-height: 1.2; }
.order-place-card p {
  max-width: 420px;
  margin: 4px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 11px;
  line-height: 1.4;
}
.order-place-button {
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 18px;
  min-width: 210px;
  min-height: 62px;
  padding-inline: 20px;
  color: var(--brand);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.order-place-button span:first-child {
  color: var(--brand);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}
.order-place-button > span:last-child { color: var(--brand); font-size: 22px; }
.order-place-button:hover { filter: none; background: #f5fbf9; }
.order-place-button:disabled,
.order-place-button.is-submitting {
  cursor: wait;
  opacity: .72;
  box-shadow: none;
}
.order-review-payment-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  margin-top: 16px;
  padding: 13px;
  background: #f4f9f7;
  border-radius: 12px;
}
.order-review-payment-note > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}
.order-review-payment-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.order-review-payment-note strong { display: block; color: var(--ink); font-size: 12px; }
.order-review-paused { margin: 0; }

@media (max-width: 820px) {
  .checkout-layout,
  .order-review-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .cart-summary { order: -1; }
  .cart-summary .checkout-summary-note { display: none; }
}

@media (max-width: 620px) {
  .checkout-page-head { align-items: flex-start; }
  .checkout-page-head h1 { font-size: 37px; }
  .checkout-page-head p { font-size: 14px; }
  .checkout-count { display: none; }
  .cart-item-card { padding: 18px 16px; border-radius: 17px; }
  .cart-item-number { width: 34px; height: 34px; }
  .cart-item-title-wrap h2 { font-size: 19px; }
  .cart-line-price { font-size: 18px; }
  .cart-modifier-list,
  .cart-instructions { margin-left: 0; }
  .cart-modifier-group { grid-template-columns: 1fr; gap: 3px; }
  .cart-item-controls { align-items: center; }
  .cart-remove-button { font-size: 12px; }
  .order-review-card { border-radius: 17px; }
  .order-review-card-head { align-items: flex-start; padding: 17px 16px 15px; }
  .order-review-card-head h2 { font-size: 20px; }
  .checkout-step-number { width: 34px; height: 34px; }
  .order-review-items { padding: 0 16px; }
  .order-review-item { gap: 12px; }
  .order-review-modifiers > div { grid-template-columns: 1fr; gap: 1px; }
  .checkout-fields { padding: 18px 16px; }
  .order-place-card {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
  }
  .order-place-button { width: 100%; min-width: 0; }
}

@media (max-width: 430px) {
  .cart-item-topline { gap: 8px; }
  .cart-item-title-wrap { gap: 10px; }
  .cart-item-controls { flex-direction: column; align-items: stretch; }
  .cart-quantity-controls { display: grid; grid-template-columns: 76px 1fr; }
  .cart-remove-form { margin-left: 0; text-align: left; }
  .cart-remove-button { padding-left: 0; }
  .checkout-summary { padding: 19px 16px; }
  .order-review-item { grid-template-columns: 1fr; }
  .order-review-item > strong { justify-self: start; color: var(--brand); }
}

/* Sprint 2 / S2-VP5 — Order confirmation and reusable print ticket */
.confirmation-page { display: grid; gap: 18px; }
.confirmation-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(145deg, #ffffff, #f4faf8);
  border: 1px solid #d8e8e4;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(28, 36, 48, .06);
}
.confirmation-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(15, 123, 108, .10);
  font-size: 27px;
  font-weight: 900;
}
.confirmation-hero-copy { min-width: 0; }
.confirmation-eyebrow,
.confirmation-card-label {
  display: block;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.confirmation-hero h1 {
  margin: 2px 0 2px;
  font-size: 35px;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.confirmation-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.confirmation-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  color: #8a5b00;
  background: #fff6dc;
  border: 1px solid #efd99f;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.confirmation-status--paid,
.confirmation-status--in_process { color: #1459a6; background: #eaf3ff; border-color: #c9ddf7; }
.confirmation-status--ready,
.confirmation-status--completed { color: #0b6a5d; background: #e5f5f1; border-color: #bfe0d8; }
.confirmation-status--cancelled { color: #9c2c25; background: #fdecea; border-color: #f2c5c0; }
.confirmation-order-number-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 24px 20px;
  color: #fff;
  text-align: center;
  background: linear-gradient(145deg, #0f7b6c, #0b6559);
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(15, 123, 108, .18);
}
.confirmation-order-number-card span {
  color: rgba(255,255,255,.75);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.confirmation-order-number-card strong {
  font-size: clamp(27px, 5vw, 42px);
  line-height: 1.12;
  letter-spacing: .015em;
  overflow-wrap: anywhere;
}
.confirmation-order-number-card small { color: rgba(255,255,255,.82); font-size: 13px; }
.confirmation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 18px;
}
.confirmation-card,
.confirmation-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(28, 36, 48, .06);
}
.confirmation-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 21px;
  background: linear-gradient(145deg, #f8fbfa, #f1f7f5);
  border-bottom: 1px solid #dce9e6;
  border-radius: 20px 20px 0 0;
}
.confirmation-card-head h2 { margin: 2px 0 0; font-size: 22px; line-height: 1.15; }
.confirmation-item-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--brand);
  background: #e8f4f1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.confirmation-item-list { margin: 0; padding: 0 21px; list-style: none; }
.confirmation-item { padding: 20px 0; border-bottom: 1px solid #e6eaee; }
.confirmation-item:last-child { border-bottom: 0; }
.confirmation-item-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.confirmation-item-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.confirmation-item-title h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.confirmation-item-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}
.confirmation-item-topline > strong { color: var(--brand); font-size: 18px; white-space: nowrap; }
.confirmation-modifier-list { display: grid; gap: 8px; margin: 14px 0 0 44px; }
.confirmation-modifier-list > div {
  display: grid;
  grid-template-columns: minmax(72px, .28fr) minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}
.confirmation-modifier-list dt { color: var(--muted); font-size: 11px; font-weight: 900; }
.confirmation-modifier-list dd { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.confirmation-option-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 8px;
  color: #34434e;
  background: #f1f3f5;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.confirmation-option-chip small { color: var(--brand); font-size: 10px; font-weight: 900; }
.confirmation-instructions,
.confirmation-order-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  margin: 13px 0 0 44px;
  padding: 11px 12px;
  color: #665a43;
  background: #fff8e8;
  border: 1px solid #f0dfae;
  border-radius: 12px;
}
.confirmation-instructions > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #7a651e;
  background: #f8e9ba;
  border-radius: 50%;
  font-size: 13px;
}
.confirmation-instructions strong,
.confirmation-order-note strong { display: block; font-size: 12px; }
.confirmation-instructions p,
.confirmation-order-note p { margin: 2px 0 0; font-size: 12px; line-height: 1.4; }
.confirmation-order-note {
  grid-template-columns: 1fr;
  margin: 0 21px 21px;
  color: #4d5b66;
  background: #f4f7f9;
  border-color: #e1e7eb;
}
.confirmation-summary {
  position: sticky;
  top: 18px;
  padding: 22px;
}
.confirmation-summary dl { margin: 12px 0 0; }
.confirmation-summary dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
}
.confirmation-summary dt { color: var(--muted); font-size: 14px; }
.confirmation-summary dd { margin: 0; font-size: 14px; font-weight: 850; }
.confirmation-summary .confirmation-summary-total {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.confirmation-summary-total dt { color: var(--ink); font-size: 17px; font-weight: 900; }
.confirmation-summary-total dd { color: var(--brand); font-size: 29px; letter-spacing: -.025em; }
.confirmation-payment-message {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding: 13px;
  background: #f4f9f7;
  border-radius: 13px;
}
.confirmation-payment-message > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-weight: 900;
}
.confirmation-payment-message strong { display: block; font-size: 13px; }
.confirmation-payment-message p { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.confirmation-ticket-button {
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-top: 16px;
  padding-inline: 18px;
  box-shadow: 0 10px 22px rgba(15, 123, 108, .20);
}
.confirmation-new-order-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 7px;
  color: var(--ink);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}
.confirmation-new-order-link:hover,
.confirmation-new-order-link:focus-visible { background: #f1f3f5; outline: none; }

.ticket-vp5 { max-width: 410px; padding: 22px 24px; }
.ticket-document-type {
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 8px;
  color: #333;
  background: #f0f0f0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ticket-rule { border-top: 1px dashed #999; margin: 13px 0; }
.ticket-order-identification { text-align: center; }
.ticket-order-identification > span {
  color: #666;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ticket-customer { margin: 3px 0; font-size: 14px; font-weight: 800; }
.ticket-status {
  display: inline-block;
  margin: 10px auto 0;
  padding: 5px 9px;
  color: #6f4d00;
  background: #fff4cf;
  border: 1px solid #e7d08a;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .04em;
}
.ticket-status--paid,
.ticket-status--in_process { color: #124e8d; background: #eaf3ff; border-color: #c9ddf7; }
.ticket-status--ready,
.ticket-status--completed { color: #075f53; background: #e5f5f1; border-color: #bfe0d8; }
.ticket-status--cancelled { color: #922820; background: #fdecea; border-color: #f2c5c0; }
.ticket-items { display: grid; gap: 13px; }
.ticket-line { margin: 0; }
.ticket-line + .ticket-line { padding-top: 13px; border-top: 1px dotted #bbb; }
.ticket-line-main { gap: 14px; font-size: 14px; }
.ticket-line-main span:first-child { min-width: 0; }
.ticket-line-main span:last-child { white-space: nowrap; }
.ticket-modifier-group { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 7px; margin-top: 7px; }
.ticket-modifier-group > strong { color: #555; font-size: 10px; }
.ticket-modifier-group ul { margin: 0; padding: 0; list-style: none; }
.ticket-modifier-group li { color: #333; font-size: 11px; line-height: 1.45; }
.ticket-modifier-group li::before { content: "- "; }
.ticket-modifier-group li span { font-weight: 800; }
.ticket-instructions,
.ticket-order-note {
  margin-top: 8px;
  padding: 8px 9px;
  color: #4c422d;
  background: #fff8e8;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.4;
}
.ticket-order-note { margin-top: 0; }
.ticket-footer-text { margin: 12px 0 0; text-align: center; font-size: 11px; }
.ticket-copy-id { margin: 10px 0 0; color: #666; text-align: center; font-size: 9px; letter-spacing: .04em; }

@media (max-width: 820px) {
  .confirmation-layout { grid-template-columns: 1fr; }
  .confirmation-summary { position: static; }
}

@media (max-width: 620px) {
  .confirmation-hero { grid-template-columns: auto minmax(0, 1fr); padding: 18px 16px; }
  .confirmation-status { grid-column: 1 / -1; justify-self: start; }
  .confirmation-hero h1 { font-size: 30px; }
  .confirmation-order-number-card { padding: 21px 14px; }
  .confirmation-card-head { align-items: flex-start; padding: 17px 16px; }
  .confirmation-item-list { padding: 0 16px; }
  .confirmation-item-topline { gap: 10px; }
  .confirmation-modifier-list,
  .confirmation-instructions { margin-left: 0; }
  .confirmation-modifier-list > div { grid-template-columns: 1fr; gap: 3px; }
  .confirmation-order-note { margin-inline: 16px; }
}

@media (max-width: 430px) {
  .confirmation-success-mark { width: 46px; height: 46px; font-size: 23px; }
  .confirmation-hero p { font-size: 12px; }
  .confirmation-item-title { align-items: flex-start; }
  .confirmation-item-title h3 { font-size: 17px; }
  .confirmation-item-topline > strong { font-size: 16px; }
  .ticket-actions { flex-direction: column; max-width: 410px; }
  .ticket-actions .btn { width: 100%; }
}

@media print {
  @page { margin: 6mm; }
  body { display: block; font-size: 12px; }
  .container { width: auto; max-width: none; margin: 0; padding: 0; }
  .ticket-vp5 {
    width: 76mm;
    max-width: 76mm;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .ticket-document-type { border: 1px solid #777; background: transparent; }
  .ticket-status { border: 1px solid #555; color: #111; background: transparent; }
  .ticket-instructions,
  .ticket-order-note { border: 1px solid #aaa; background: transparent; }
}

/* S2-VP5-HF1 — functional order-number QR for cashier scanning */
.ticket-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.ticket-qr-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 142px;
  height: 142px;
  margin-bottom: 5px;
  padding: 7px;
  background: #fff;
  border: 1px solid #222;
  border-radius: 8px;
}
.ticket-order-qr {
  display: block;
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
}
.ticket-qr-block strong { font-size: 14px; }
.ticket-qr-block p {
  margin: 0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
}
.ticket-qr-block small {
  color: #666;
  font-size: 9px;
  line-height: 1.35;
}

@media print {
  .ticket-qr-image {
    width: 34mm;
    height: 34mm;
    padding: 1.5mm;
    border-radius: 0;
  }
  .ticket-qr-block small { color: #111; }
}

/* --- Cashier Operational Essentials R1-HF2 ----------------------------- */
.container-wide { max-width: 1180px; }
.cashier-console.panel { max-width: 1080px; width: 100%; }
.cashier-console > * { min-width: 0; }
.cashier-console { display: grid; gap: 22px; }
.cashier-console-header {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  gap: 22px;
  align-items: end;
}
.cashier-console-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cashier-scan-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.cashier-scan-form label { display: block; margin-bottom: 7px; font-weight: 800; }
.cashier-scan-form small { display: block; margin-top: 7px; color: var(--muted); }
.cashier-scan-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.cashier-scan-controls input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.cashier-found-order { margin: 0; }
.cashier-found-order-head,
.cashier-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.cashier-found-order-actions,
.cashier-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cashier-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0 16px;
}
.cashier-status-tab {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}
.cashier-status-tab strong {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef1f5;
  font-size: 12px;
}
.cashier-status-tab.active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
}
.cashier-status-tab.active strong {
  background: rgba(255,255,255,.22);
  color: inherit;
}
.cashier-order-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.cashier-order-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  font-size: 14px;
}
.cashier-order-table th,
.cashier-order-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.cashier-order-table tbody tr:last-child td { border-bottom: 0; }
.cashier-order-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.cashier-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f6f8;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.cashier-status-badge--awaiting_payment { color: var(--danger); background: #fdecea; border-color: #f2c5c0; }
.cashier-status-badge--paid,
.cashier-status-badge--in_process { color: #124e8d; background: #eaf3ff; border-color: #c9ddf7; }
.cashier-status-badge--ready { color: #7a5300; background: #fff5d8; border-color: #ecd48f; }
.cashier-status-badge--completed { color: #075f53; background: #e5f5f1; border-color: #bfe0d8; }
.cashier-status-badge--cancelled { color: #5b6675; background: #eef0f3; border-color: var(--line); }
.cashier-empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 15px;
  text-align: center;
}
.cashier-empty-state p { margin: 5px 0 0; color: var(--muted); }

@media (max-width: 900px) {
  .cashier-console-header { grid-template-columns: 1fr; align-items: stretch; }
}
@media (max-width: 560px) {
  .cashier-scan-controls { grid-template-columns: 1fr; }
  .cashier-status-tab { flex: 1 1 calc(50% - 9px); justify-content: space-between; }
}

/* CNM-1 RC2 — modal nested modifiers and quantity steppers */
.kiosk-opt-trigger {
  padding: 0;
  overflow: hidden;
}
.kiosk-trigger-button {
  width: 100%;
  min-width: 0;
  min-height: 104px;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.kiosk-opt-trigger.is-selected,
.kiosk-opt-quantity.is-selected {
  border-color: var(--brand);
  background: #edf8f6;
  box-shadow: 0 0 0 2px rgba(15, 123, 108, .12);
}
.kiosk-option-control-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f3f1;
  color: var(--brand);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.kiosk-trigger-summary {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}
.kiosk-trigger-summary-line,
.kiosk-trigger-summary-price,
.kiosk-trigger-summary-check {
  display: block;
  overflow-wrap: break-word;
  word-break: normal;
}
.kiosk-trigger-summary-line {
  color: var(--brand);
  font-weight: 750;
}
.kiosk-trigger-summary-price {
  margin-top: 2px;
  color: var(--ink);
  font-weight: 750;
}
.kiosk-trigger-summary-check {
  margin-top: 2px;
  color: var(--brand);
  font-weight: 750;
}
.kiosk-trigger-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 140px;
}
.kiosk-option-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f3f1;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.kiosk-opt-quantity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.modifier-stepper {
  display: inline-grid;
  grid-template-columns: 38px 52px 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.modifier-stepper-btn {
  width: 38px;
  height: 40px;
  border: 0;
  background: #f4f6f7;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}
.modifier-stepper-btn:hover,
.modifier-stepper-btn:focus-visible {
  background: #e8f3f1;
  color: var(--brand);
}
.modifier-stepper-btn:disabled {
  background: #f4f6f7;
  color: var(--muted);
  cursor: not-allowed;
  opacity: .45;
}
.modifier-stepper input[type="number"] {
  width: 52px;
  height: 40px;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  -moz-appearance: textfield;
}
.modifier-stepper input[type="number"]::-webkit-inner-spin-button,
.modifier-stepper input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.cnm-modal {
  width: min(680px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.cnm-modal::backdrop { background: rgba(18, 27, 38, .58); backdrop-filter: blur(2px); }
.cnm-modal-panel {
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(17, 28, 43, .28);
}
.cnm-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.cnm-modal-head h2 { margin: 3px 0 4px; font-size: 28px; }
.cnm-modal-head p { margin: 0; color: var(--muted); }
.cnm-modal-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.cnm-modal-error {
  min-height: 0;
  margin: 0 26px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 750;
}
.cnm-modal-error:not(:empty) { padding: 12px 0 0; }
.cnm-modal-options {
  display: grid;
  gap: 10px;
  padding: 18px 26px;
  overflow-y: auto;
}
.cnm-modal-option {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.cnm-modal-option.is-selected {
  border-color: var(--brand);
  background: #edf8f6;
  box-shadow: 0 0 0 2px rgba(15, 123, 108, .1);
}
.cnm-option-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #eef2f4;
  color: var(--brand);
  font-size: 18px;
  font-weight: 900;
}
.cnm-option-copy { min-width: 0; }
.cnm-option-copy strong,
.cnm-option-copy small { display: block; }
.cnm-option-copy small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.modal-draft-choice { width: 24px; height: 24px; accent-color: var(--brand); }
.cnm-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px 24px;
  border-top: 1px solid var(--line);
  background: #fbfcfc;
}
.cnm-modal-total span,
.cnm-modal-total strong { display: block; }
.cnm-modal-total span { color: var(--muted); font-size: 13px; }
.cnm-modal-total strong { margin-top: 2px; font-size: 20px; }
.cnm-modal-actions { display: flex; align-items: center; gap: 10px; }

@media (max-width: 620px) {
  .kiosk-trigger-button { grid-template-columns: auto minmax(100px, 1fr); }
  .kiosk-trigger-meta { grid-column: 2; align-items: flex-start; }
  .kiosk-opt-quantity { grid-template-columns: 1fr; }
  .cnm-modal-head, .cnm-modal-options, .cnm-modal-footer { padding-left: 18px; padding-right: 18px; }
  .cnm-modal-option { grid-template-columns: 42px minmax(0, 1fr); }
  .cnm-modal-option .modifier-stepper,
  .cnm-modal-option .modal-draft-choice { grid-column: 2; }
  .cnm-modal-footer { align-items: stretch; flex-direction: column; }
  .cnm-modal-actions { display: grid; grid-template-columns: 1fr; }
}

/* CNM-1 RC2 — per-product combo/included option rules */
.console-option-rules {
  margin-top: 1rem;
  border-top: 1px solid var(--line, #d9e1e8);
  padding-top: .9rem;
}
.console-option-rules > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink, #123047);
}
.console-option-rule-list {
  display: grid;
  gap: .8rem;
  margin-top: .8rem;
}
.console-option-rule-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(4, minmax(130px, 1fr));
  gap: .65rem;
  align-items: end;
  padding: .85rem;
  border: 1px solid var(--line, #d9e1e8);
  border-radius: 12px;
  background: #f8fbfd;
}
.console-option-rule-name {
  align-self: center;
}
.console-option-rule-name small {
  display: block;
  margin-top: .2rem;
  color: var(--muted, #647889);
}
.console-option-rule-row label {
  display: grid;
  gap: .25rem;
  font-size: .86rem;
  color: var(--muted, #647889);
}
.console-option-rule-row input,
.console-option-rule-row select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line, #cbd7df);
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #123047);
  padding: .55rem .6rem;
}
@media (max-width: 1100px) {
  .console-option-rule-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .console-option-rule-name {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .console-option-rule-row {
    grid-template-columns: 1fr;
  }
}
