:root {
  color-scheme: light;
  --ink: #202820;
  --green: #67a41b;
  --green-soft: #f1f6e9;
  --cream: #faf6e8;
  --paper: #fffefa;
  --line: #e4e7dc;
  --muted: #697066;
  --font: "Inter", Arial, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--cream); font-family: var(--font); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.checkout-header { min-height: 76px; padding: 10px max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 24px; background: rgba(255,254,250,.97); }
.checkout-brand { width: 150px; height: 55px; overflow: hidden; }
.checkout-brand img { width: 150px; mix-blend-mode: multiply; }
.checkout-header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.checkout-header-actions a { font-size: 13px; font-weight: 700; }
.account-pill { width: fit-content; margin-inline: auto; padding: 7px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .04em; }

.checkout-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 70px; }
.checkout-steps { margin: 0 auto 34px; padding: 0; display: flex; justify-content: center; list-style: none; }
.checkout-steps li { position: relative; min-width: 150px; display: flex; align-items: center; gap: 9px; color: #8a9086; font-size: 12px; font-weight: 700; }
.checkout-steps li:not(:last-child)::after { width: 54px; height: 1px; margin-inline: 15px; background: #d9ddd4; content: ""; }
.checkout-steps span { width: 28px; height: 28px; border: 1px solid #cfd4ca; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.checkout-steps .is-active, .checkout-steps .is-done { color: var(--ink); }
.checkout-steps .is-active span, .checkout-steps .is-done span { border-color: var(--green); background: var(--green); color: white; }

.auth-layout, .payment-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 24px 60px rgba(41,52,34,.1); }
.auth-photo { min-height: 650px; position: relative; background: url("https://images.unsplash.com/photo-1547592180-85f173990554?auto=format&fit=crop&w=1200&q=88") center/cover; }
.auth-photo::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(25,35,20,.78)); content: ""; }
.auth-photo-copy { position: absolute; z-index: 1; right: 42px; bottom: 38px; left: 42px; color: white; }
.auth-photo-copy p { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.auth-photo-copy h1 { max-width: 520px; margin: 0; font-family: var(--display); font-size: clamp(34px, 4vw, 54px); font-weight: 500; line-height: 1.04; }
.checkout-panel { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.checkout-panel h1, .checkout-heading h1 { margin: 0 0 10px; font-family: var(--display); font-size: clamp(34px, 4vw, 50px); font-weight: 500; line-height: 1.06; }
.checkout-panel > p, .checkout-heading > p { margin: 0 0 26px; color: var(--muted); line-height: 1.7; }
.demo-credentials { margin-bottom: 24px; padding: 14px 16px; border: 1px solid #dce8cd; border-radius: 12px; background: var(--green-soft); font-size: 13px; line-height: 1.65; }
.demo-credentials strong { color: var(--green); }
.checkout-form { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { padding: 0; font-size: 12px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid #d6dbd1; border-radius: 11px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 0; box-shadow: 0 0 0 4px rgba(103,164,27,.14); }
.field textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { min-height: 20px; margin: 0; color: #aa3022; font-size: 12px; font-weight: 700; }
.checkout-button { min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--green); color: white; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(103,164,27,.2); transition: transform .2s, filter .2s; }
.checkout-button:hover { transform: translateY(-2px); filter: brightness(.94); }
.checkout-button.secondary { border: 1px solid #cbd1c6; background: transparent; color: var(--ink); box-shadow: none; }
.secure-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }

.checkout-heading { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.plan-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.checkout-plan { position: relative; overflow: hidden; border: 2px solid transparent; border-radius: 20px; background: var(--paper); box-shadow: 0 12px 34px rgba(42,52,35,.08); transition: border-color .2s, transform .2s, box-shadow .2s; }
.checkout-plan:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(42,52,35,.13); }
.checkout-plan.is-selected { border-color: var(--green); }
.checkout-plan img { width: 100%; height: 190px; object-fit: cover; }
.checkout-plan-body { padding: 22px; }
.checkout-plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.checkout-plan h2 { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 500; }
.checkout-plan-tag { padding: 5px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; }
.checkout-plan-price { margin: 13px 0 2px; color: var(--green); font-size: 30px; font-weight: 800; letter-spacing: -.05em; }
.checkout-plan-price span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.checkout-plan-copy { min-height: 48px; margin: 7px 0 15px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.checkout-plan ul { min-height: 96px; margin: 0 0 20px; padding: 0; list-style: none; }
.checkout-plan li { margin-top: 9px; font-size: 13px; }
.checkout-plan li::before { margin-right: 8px; color: var(--green); content: "✓"; font-weight: 900; }
.checkout-plan .checkout-button { width: 100%; }

.payment-layout { align-items: start; padding: clamp(24px, 4vw, 48px); gap: 42px; }
.payment-form-wrap h1 { margin: 0 0 8px; font-family: var(--display); font-size: 40px; font-weight: 500; }
.payment-form-wrap > p { margin: 0 0 24px; color: var(--muted); }
.payment-methods { margin: 0 0 20px; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.payment-methods label { cursor: pointer; }
.payment-methods input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; clip-path: inset(50%); pointer-events: none; }
.payment-methods span { min-height: 62px; padding: 8px; border: 1px solid #d9ddd4; border-radius: 11px; display: grid; place-items: center; background: white; font-size: 12px; font-weight: 800; text-align: center; }
.payment-methods input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.payment-section[hidden] { display: none; }
.order-summary { position: sticky; top: 24px; padding: 24px; border-radius: 18px; background: var(--green-soft); }
.order-summary h2 { margin: 0 0 18px; font-size: 20px; }
.summary-food { width: 100%; height: 150px; margin-bottom: 18px; border-radius: 12px; object-fit: cover; }
.summary-line { padding: 10px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #dbe5d0; font-size: 13px; }
.summary-line strong { text-align: right; }
.summary-total { padding-top: 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.summary-total strong { color: var(--green); font-size: 27px; }
.demo-warning { margin: 18px 0 0; padding: 12px; border-radius: 10px; background: #fff8df; color: #6c5411; font-size: 11px; line-height: 1.5; }

.success-card { max-width: 680px; margin: 40px auto; padding: 55px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); text-align: center; box-shadow: 0 24px 60px rgba(41,52,34,.1); }
.success-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; font-size: 34px; }
.success-card h1 { margin: 0 0 12px; font-family: var(--display); font-size: 44px; font-weight: 500; }
.success-card p { color: var(--muted); line-height: 1.7; }
.success-actions { margin-top: 25px; display: flex; justify-content: center; gap: 10px; }

.queue-layout { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 24px; align-items: start; }
.pause-card { padding: clamp(32px, 5vw, 58px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 24px 60px rgba(41,52,34,.1); text-align: center; }
.pause-icon { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 26px; }
.pause-card .eyebrow { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pause-card h1 { margin: 0 0 15px; font-family: var(--display); font-size: clamp(38px, 5vw, 56px); font-weight: 500; line-height: 1.05; }
.pause-lead { max-width: 580px; margin: 0 auto 26px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.waiting-ticket { max-width: 400px; margin: 0 auto 22px; padding: 22px; border: 1px dashed var(--green); border-radius: 16px; display: grid; gap: 4px; background: var(--green-soft); }
.waiting-ticket > span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.waiting-ticket strong { color: var(--green); font-size: 48px; letter-spacing: -.04em; line-height: 1.1; }
.waiting-ticket small { color: var(--muted); font-size: 12px; }
.queue-note { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.65; }
.queue-actions { margin-top: 25px; display: flex; justify-content: center; gap: 10px; }
.availability-note { margin: 18px 0 0; padding: 12px; border-radius: 10px; background: white; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }

@media (max-width: 800px) {
  .checkout-header-actions > a:not(.checkout-button) { display: none; }
  .checkout-steps li { min-width: 0; }
  .checkout-steps li:not(:last-child)::after { width: 20px; margin-inline: 8px; }
  .checkout-steps li > strong { display: none; }
  .auth-layout, .payment-layout { grid-template-columns: 1fr; }
  .queue-layout { grid-template-columns: 1fr; }
  .auth-photo { min-height: 300px; }
  .plan-choice-grid { grid-template-columns: 1fr; }
  .payment-layout { padding: 22px; }
  .order-summary { position: static; }
}

@media (max-width: 520px) {
  .checkout-shell { width: min(100% - 24px, 1180px); padding-top: 24px; }
  .checkout-brand { width: 124px; }
  .checkout-brand img { width: 124px; }
  .checkout-panel { padding: 28px 22px; }
  .auth-photo-copy { right: 24px; bottom: 24px; left: 24px; }
  .form-row, .payment-methods { grid-template-columns: 1fr; }
  .success-card { padding: 35px 22px; }
  .success-actions { flex-direction: column; }
  .queue-actions { flex-direction: column; }
}
