body.checkout-is-open { overflow: hidden; }
.checkout-dialog {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh;
  max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0;
  overflow-y: auto; overscroll-behavior-y: contain; background: var(--cream); color: var(--forest);
  scrollbar-gutter: stable; scroll-padding-block: 24px;
  font: 400 16px/1.5 Arial, Helvetica, sans-serif;
}
.checkout-dialog :where(button, input, select, option) { font-family: inherit; color: inherit; }
.checkout-dialog button { cursor: pointer; }
.checkout-dialog :is(h1, h2, h3) { text-wrap: balance; }
.checkout-cart-tools { margin-bottom: 12px; }
.checkout-cart-tools:has(> [hidden]):not(:has(> :not([hidden]))) { display: none; }
.checkout-clear { padding-left: 0; }
.checkout-undo-notice { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; }
.checkout-undo-delay { font-size: 14px; }
.checkout-item .checkout-line-total { margin-top: 5px; font-size: 17px; }
.checkout-dialog :is(.checkout-unit, .checkout-line-total, .receipt-amount, .receipt-total, .checkout-quantity input, .checkout-quantity button) {
  font-family: Fraunces, Georgia, serif; font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}
.checkout-dialog::backdrop { background: transparent; }
.checkout-dialog [hidden] { display: none !important; }
.checkout-shell { width: min(100%, 1560px); margin: auto; padding: 24px clamp(20px, 3.5vw, 64px) max(40px, env(safe-area-inset-bottom)); }
.checkout-back, .checkout-link { background: none; border: 0; border-radius: 0; padding: 10px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; font-weight: 700; text-align: left; }
.checkout-back { font-size: 16px; }
.checkout-heading { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 54px); align-items: center; margin: 12px 0 26px; }
.checkout-heading h1 { margin: 0; font: 750 clamp(44px, 4.8vw, 68px)/1 Fraunces, Georgia, serif; letter-spacing: -.04em; }
.checkout-heading p { margin: 10px 0 0; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.25; }
.checkout-logo { display: block; width: min(100%, 300px); height: auto; margin: auto; }
.checkout-form { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 54px); align-items: start; }
.checkout-block { border-top: 2px solid var(--mustard); padding-top: 12px; margin-bottom: 24px; }
.checkout-block h2, .order-ticket h2 { margin: 0 0 20px; font: 750 clamp(26px, 2.4vw, 34px)/1.07 Fraunces, Georgia, serif; letter-spacing: -.025em; }
.checkout-items { list-style: none; margin: 0; padding: 0; }
.checkout-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 8px 0 16px; }
.checkout-item h3 { font: 730 clamp(23px, 1.9vw, 28px)/1.12 Fraunces, Georgia, serif; margin: 0 0 4px; }
.checkout-item p { margin: 0; font-size: 15px; line-height: 1.4; }
.checkout-unit { font-weight: 450; white-space: nowrap; }
.checkout-item-actions { align-self: center; display: grid; gap: 3px; justify-items: end; }
.checkout-quantity { display: flex; align-items: stretch; border: 1px solid var(--forest); border-radius: 6px; overflow: visible; }
.checkout-quantity button { border: 0; background: none; width: 44px; min-height: 44px; padding: 0; font: 500 25px/1 Fraunces, Georgia, serif; }
.checkout-quantity input { width: 48px; min-width: 0; text-align: center; border: 0; border-inline: 1px solid var(--forest); border-radius: 0; background: transparent; font: 700 20px Fraunces, Georgia, serif; color: inherit; appearance: textfield; padding: 5px 0; }
.checkout-quantity input::-webkit-inner-spin-button { appearance: none; }
.checkout-dialog button:disabled { opacity: .45; cursor: not-allowed; }
.checkout-remove { border: 0; background: none; min-height: 44px; padding: 7px 0 7px 12px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.checkout-link { font: 700 21px/1.2 Fraunces, Georgia, serif; }
.checkout-field label { display: block; font: 500 16px/1.4 Arial, Helvetica, sans-serif; margin-bottom: 7px; }
.checkout-field select, .checkout-field input { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--forest); border-radius: 5px; background: var(--cream); color: var(--forest); font: 17px/1.3 Arial, sans-serif; padding: 10px 12px; }
.checkout-field select { padding-right: 28px; }
.checkout-product-add { display: grid; grid-template-columns: minmax(0, 1fr); }
.checkout-product-add .checkout-link { justify-self: start; margin: 2px 0 8px; }
.checkout-pickup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.checkout-location { grid-column: 1 / -1; }
.checkout-help { font-size: 14px; line-height: 1.45; margin: 7px 0 0; }
.checkout-empty { font-size: 18px; line-height: 1.4; margin: 12px 0 2px; }
.checkout-error { color: #9c2820; font-size: 14px; font-weight: 700; line-height: 1.35; margin: 6px 0 0; }
.checkout-error:empty { display: none; }
.checkout-item > .checkout-error { grid-column: 1 / -1; }
.checkout-dialog [aria-invalid="true"] { outline: 2px solid #9c2820; outline-offset: 2px; }
.checkout-dialog :is(input, select, button):focus-visible { outline: 3px solid var(--mustard); outline-offset: 4px; }
.order-ticket { position: relative; min-width: 0; background: var(--forest); color: var(--cream); padding: clamp(22px, 2.2vw, 36px); margin-bottom: 12px; }
.order-ticket::after { content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 20px; background: radial-gradient(circle at 10px 10px, var(--cream) 8px, transparent 8.5px) 0 0 / 26px 20px repeat-x; pointer-events: none; }
.order-ticket h2 { font-size: clamp(27px, 2.5vw, 36px); }
.receipt-kicker { margin: -6px 0 28px; font: 700 17px Fraunces, Georgia, serif; letter-spacing: .06em; }
.receipt-lines { list-style: none; margin: 0; padding: 0 0 22px; }
.receipt-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 7px 0; font: 650 clamp(19px, 1.6vw, 23px)/1.25 Fraunces, Georgia, serif; }
.receipt-lines .receipt-amount { white-space: nowrap; }
.receipt-total { border-top: 2px dotted var(--cream); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font: 750 clamp(30px, 2.5vw, 38px)/1.2 Fraunces, Georgia, serif; }
.receipt-total output { white-space: nowrap; }
.receipt-pickup { position: relative; padding: 26px 0 10px; margin: 20px 0 14px; border-top: 1px solid rgb(250 240 226 / .35); }
.receipt-pickup::before, .receipt-pickup::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); }
.receipt-pickup::before { left: calc(-1 * clamp(22px, 2.2vw, 36px) - 11px); }
.receipt-pickup::after { right: calc(-1 * clamp(22px, 2.2vw, 36px) - 11px); }
.receipt-pickup p { margin: 0 0 7px; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.receipt-pickup .receipt-place { font: 700 24px/1.2 Fraunces, Georgia, serif; }
.checkout-submit { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 15px 18px; border: 0; border-radius: 6px; background: var(--mustard); color: var(--forest); box-shadow: 0 2px 0 rgb(0 0 0 / .15); font: 750 clamp(21px, 2vw, 29px)/1.15 Fraunces, Georgia, serif; text-align: left; }
.checkout-submit:not(:disabled):hover { background: #f2b83c; }
.checkout-submit:not(:disabled):active { transform: translateY(1px); }
.checkout-submit:focus-visible { outline-color: var(--cream) !important; }
.checkout-status { margin: 18px 0 0; font-size: 15px; }
.checkout-status:empty { display: none; }
.checkout-confirmation { max-width: 820px; margin: 30px auto 0; }
.checkout-confirmation > h2 { font: 750 clamp(34px, 4vw, 54px)/1.1 Fraunces, Georgia, serif; margin: 0 0 12px; }
.checkout-confirmation > p { font-size: 17px; line-height: 1.5; }
.checkout-reference { overflow-wrap: anywhere; }
.checkout-confirmation .order-ticket { margin-top: 25px; }
@media (max-width: 899px) {
  .checkout-shell { padding: 16px 24px max(36px, env(safe-area-inset-bottom)); }
  .checkout-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 18px; margin-bottom: 30px; }
  .checkout-heading h1 { font-size: clamp(40px, 6vw, 52px); }
  .checkout-heading p { font-size: 19px; }
  .checkout-logo { width: 150px; }
  .checkout-form { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .checkout-block h2 { font-size: 30px; }
  .checkout-item h3 { font-size: 26px; }
  .order-ticket { padding: 26px; }
  .receipt-pickup::before { left: -37px; }
  .receipt-pickup::after { right: -37px; }
  .checkout-submit { font-size: 25px; }
}
@media (max-width: 499px) {
  .checkout-shell { padding-inline: 18px; }
  .checkout-heading { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .checkout-logo { width: 145px; margin: 0; }
  .checkout-heading h1 { font-size: clamp(38px, 10vw, 46px); }
  .checkout-heading p { font-size: 18px; }
  .checkout-block h2 { font-size: 30px; }
  .checkout-item { grid-template-columns: minmax(0, 1fr); gap: 7px; padding-bottom: 20px; }
  .checkout-item-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
  .checkout-item h3 { font-size: 25px; }
  .checkout-pickup { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .order-ticket { padding: 22px 18px 28px; }
  .order-ticket h2 { font-size: 31px; }
  .receipt-lines li { font-size: 19px; }
  .receipt-total { font-size: 31px; }
  .receipt-pickup::before { left: -29px; }
  .receipt-pickup::after { right: -29px; }
  .checkout-submit { font-size: 23px; padding-inline: 13px; }
}
/* Desktop: use the width for selection, pickup and ticket instead of stacking all fields. */
@media (min-width: 900px) {
  .checkout-shell { width: min(100%, 1720px); padding: 14px clamp(24px, 2.5vw, 48px) 6px; }
  .checkout-back { min-height: 36px; padding-block: 6px; }
  .checkout-heading { margin: 4px 0 20px; gap: 24px; }
  .checkout-heading h1 { font-size: clamp(42px, 3.3vw, 54px); }
  .checkout-heading p { margin-top: 6px; font-size: 17px; }
  .checkout-logo { width: 180px; margin-right: 0; }
  .checkout-form { gap: 24px; }
  .checkout-block { padding-top: 8px; margin-bottom: 0; }
  .checkout-block h2, .order-ticket h2 { margin-bottom: 10px; font-size: 26px; }
  .checkout-item { gap: 4px 12px; padding: 4px 0 8px; }
  .checkout-item h3 { font-size: 21px; }
  .checkout-item p { font-size: 14px; }
  .checkout-item .checkout-line-total { font-size: 16px; margin-top: 3px; }
  .checkout-item-actions { gap: 0; }
  .checkout-quantity button { width: 36px; }
  .checkout-quantity input { width: 40px; font-size: 18px; }
  .checkout-link { font-size: 18px; padding-block: 8px; }
  .checkout-empty { margin-top: 4px; font-size: 16px; }
  .checkout-pickup { gap: 12px; }
  .checkout-field label { margin-bottom: 4px; font-size: 15px; }
  .checkout-field select, .checkout-field input { font-size: 16px; min-height: 44px; padding: 9px 10px; }
  .checkout-field select { padding-right: 24px; }
  .checkout-help { font-size: 13px; line-height: 1.4; margin-top: 6px; }
  .checkout-product-add .checkout-link { margin-bottom: 0; }
  .order-ticket { padding: 20px; }
  .receipt-kicker { margin: 0 0 14px; font-size: 14px; }
  .receipt-lines { padding-bottom: 12px; }
  .receipt-lines li { font-size: 18px; padding-block: 5px; }
  .receipt-total { font-size: 29px; padding-top: 12px; }
  .receipt-pickup { padding: 14px 0 0; margin: 14px 0; }
  .receipt-pickup p { margin-bottom: 4px; font-size: 15px; }
  .receipt-pickup .receipt-place { font-size: 21px; }
  .receipt-pickup::before { left: -31px; }
  .receipt-pickup::after { right: -31px; }
  .checkout-submit { min-height: 48px; font-size: 20px; padding: 12px; }
  .checkout-status { margin-top: 4px; font-size: 14px; }
  .checkout-selection { display: grid; gap: 14px; }
  .checkout-cart-tools { margin-bottom: 0; }
}
@media (min-width: 1100px) {
  .checkout-item-actions { display: flex; align-items: center; gap: 8px; }
  .checkout-item-copy { display: flex; flex-wrap: wrap; align-content: center; gap: 0 10px; }
  .checkout-item-copy h3, .checkout-item-copy .checkout-line-total { flex-basis: 100%; }
  .checkout-product-add .checkout-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; }
  .checkout-product-add .checkout-field label { margin-bottom: 0; }
  .checkout-product-add .checkout-field .checkout-error { grid-column: 1 / -1; }
  .checkout-remove { padding-left: 0; }
  .checkout-form { grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr); }
  .checkout-selection { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 12px 24px; align-items: start; }
  .checkout-cart-tools { grid-column: 1; grid-row: 1; }
  .checkout-block[aria-labelledby="checkout-burgers-title"] { grid-column: 1; grid-row: 2; }
  .checkout-block[aria-labelledby="checkout-drinks-title"] { grid-column: 1; grid-row: 3; }
  .checkout-block[aria-labelledby="checkout-pickup-title"] { grid-column: 2; grid-row: 1 / 4; }
  .checkout-selection:has(#checkout-clear:not([hidden])) { grid-template-rows: auto 1fr; }
  .checkout-selection:has(#checkout-clear:not([hidden])) .checkout-cart-tools { grid-area: 1 / 1; justify-self: end; z-index: 1; }
  .checkout-selection:has(#checkout-clear:not([hidden])) .checkout-block[aria-labelledby="checkout-burgers-title"] { grid-area: 1 / 1; }
  .checkout-selection:has(#checkout-clear:not([hidden])) #checkout-burgers-title { min-height: 44px; padding-right: 130px; margin-bottom: 4px; display: flex; align-items: center; }
  .checkout-selection:has(#checkout-clear:not([hidden])) .checkout-block[aria-labelledby="checkout-drinks-title"] { grid-row: 2; }
  .checkout-selection:has(#checkout-clear:not([hidden])) .checkout-block[aria-labelledby="checkout-pickup-title"] { grid-row: 1 / 3; }
  .checkout-selection:not(:has(.checkout-cart-tools > :not([hidden]))) { grid-template-rows: 0 auto 1fr; row-gap: 0; }
  .checkout-selection:not(:has(.checkout-cart-tools > :not([hidden]))) .checkout-block[aria-labelledby="checkout-drinks-title"] { margin-top: 12px; }
}

/* Extra breathing room when the desktop viewport has sufficient height. */
@media (min-width: 1100px) and (min-height: 800px) {
  .checkout-shell { padding-top: 28px; padding-bottom: 28px; }
  .checkout-heading { margin-bottom: 32px; }
  .checkout-heading h1 { font-size: 54px; }
  .checkout-logo { width: 220px; }
  .checkout-block { padding-top: 14px; }
  .checkout-block h2, .order-ticket h2 { margin-bottom: 16px; font-size: 28px; }
  .checkout-pickup { row-gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-dialog { scroll-behavior: auto; }
  .checkout-submit:active { transform: none; }
}
