/*
 * Ordering on a restaurant site (partials/order.blade.php, assets/js/order.js).
 * Neutral by default and drawn from the site's own colours; a site's
 * stylesheet restyles it through the --ord-* tokens or the ord-* classes.
 */
.ord {
  --ord-accent: var(--c-primary, #c8102e);
  --ord-accent-ink: #fff;
  --ord-paper: #fffdf8;
  --ord-ink: var(--c-heading, #1d1612);
  --ord-muted: var(--c-muted, #6f6259);
  --ord-line: rgba(29, 22, 18, .12);
  --ord-soft: rgba(29, 22, 18, .05);
  --ord-radius: 22px;
  --ord-font: inherit;
  --ord-display: inherit;
}
.ord-lock { overflow: hidden; }
.ord-sheet[hidden], .ord-cart[hidden] { display: none !important; }
.ord-sheet, .ord-cart { position: fixed; inset: 0; z-index: 1200; background: rgba(15, 10, 8, .5); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; font-family: var(--ord-font); color: var(--ord-ink); }
.ord-sheet.is-open, .ord-cart.is-open { opacity: 1; }
.ord-sheet { display: grid; place-items: end center; }
.ord-sheet__panel { position: relative; width: min(560px, 100%); max-height: 92vh; overflow: auto; background: var(--ord-paper); border-radius: var(--ord-radius) var(--ord-radius) 0 0; transform: translateY(30px); transition: transform .35s cubic-bezier(.2, .9, .2, 1); }
.ord-sheet.is-open .ord-sheet__panel { transform: none; }
@media (min-width: 700px) { .ord-sheet { place-items: center; } .ord-sheet__panel { border-radius: var(--ord-radius); } }
.ord-sheet__pic { margin: 0; aspect-ratio: 16/10; overflow: hidden; background: var(--ord-soft); }
.ord-sheet__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ord-sheet__in { padding: 20px 22px 8px; }
.ord-sheet__in h3 { font-family: var(--ord-display); font-size: 1.6rem; margin: 0 0 6px; color: var(--ord-ink); }
.ord-sheet__in > p { margin: 0 0 14px; color: var(--ord-muted); }
.ord-group { border: 0; margin: 0 0 14px; padding: 0; }
.ord-group legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.ord-group legend small { font-weight: 500; color: var(--ord-muted); margin-inline-start: 6px; }
.ord-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid var(--ord-line); border-radius: 14px; margin-bottom: 6px; cursor: pointer; background: #fff; }
.ord-opt:has(input:checked) { border-color: var(--ord-accent); box-shadow: inset 0 0 0 1px var(--ord-accent); }
.ord-opt input { accent-color: var(--ord-accent); width: 18px; height: 18px; }
.ord-opt b { font-weight: 600; color: var(--ord-muted); }
.ord-opt.is-out { opacity: .45; cursor: not-allowed; }
.ord-note { display: grid; gap: 6px; font-weight: 600; margin: 6px 0 12px; }
.ord-note input, .ord-area select { font: inherit; padding: 11px 14px; border: 1px solid var(--ord-line); border-radius: 12px; background: #fff; color: var(--ord-ink); }
.ord-closed { color: #b42318; font-weight: 600; }
.ord-sheet__bar { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 14px 22px 18px; background: linear-gradient(transparent, var(--ord-paper) 30%); }
.ord-qty { display: inline-flex; align-items: center; gap: 12px; padding: 6px; border: 1px solid var(--ord-line); border-radius: 999px; background: #fff; }
.ord-qty button, .ord-line__qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ord-soft); font-size: 1.1rem; cursor: pointer; color: var(--ord-ink); }
.ord-cta { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ord-accent); color: var(--ord-accent-ink); font: 700 1rem var(--ord-font); text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.ord-cta:hover { filter: brightness(1.06); }
.ord-cta:active { transform: scale(.98); }
.ord-cta.is-incomplete { background: var(--ord-ink); }
.ord-cta.is-disabled, .ord-cta:disabled { opacity: .45; pointer-events: none; }
.ord-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ord-ink); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4); }
.ord-cart { display: flex; justify-content: flex-end; }
.ord-cart__panel { position: relative; width: min(440px, 100%); height: 100%; overflow: auto; background: var(--ord-paper); padding: 22px; display: flex; flex-direction: column; gap: 14px; transform: translateX(40px); transition: transform .35s cubic-bezier(.2, .9, .2, 1); }
.ord-cart.is-open .ord-cart__panel { transform: none; }
.ord-cart__head { display: flex; justify-content: space-between; align-items: center; }
.ord-cart__head h3 { margin: 0; font-family: var(--ord-display); font-size: 1.7rem; }
.ord-cart__head .ord-x { position: static; }
.ord-cart .ord-cta { flex: none; width: 100%; }
.ord-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: var(--ord-soft); }
.ord-modes button { min-height: 42px; border: 0; border-radius: 999px; background: transparent; font: 600 .95rem var(--ord-font); color: var(--ord-ink); cursor: pointer; }
.ord-modes button[aria-pressed="true"] { background: #fff; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .3); color: var(--ord-accent); }
.ord-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--ord-line); }
.ord-line img, .ord-line__dot { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--ord-soft); display: block; }
.ord-line b { display: block; }
.ord-line small { display: block; color: var(--ord-muted); margin: 2px 0 6px; }
.ord-line__qty { display: inline-flex; align-items: center; gap: 10px; }
.ord-line__qty button { width: 28px; height: 28px; }
.ord-empty { color: var(--ord-muted); text-align: center; padding: 24px 0; }
.ord-sum p { display: flex; justify-content: space-between; margin: 6px 0; }
.ord-total { font-weight: 800; font-size: 1.15rem; padding-top: 8px; border-top: 1px dashed var(--ord-line); }
.ord-sum p.ord-hint { display: block; font-size: .88rem; color: var(--ord-muted); }
.ord-sum p.ord-hint--warn { color: #b42318; font-weight: 600; }
.ord-notice { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff4e5; color: #8a4b00; font-size: .92rem; }
.ord-notice--closed { background: #fde8e8; color: #9b1c1c; }
.ord-upsell p { margin: 4px 0 8px; font-weight: 700; }
.ord-upsell > div { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.ord-upsell__item { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--ord-line); border-radius: 14px; background: #fff; color: var(--ord-ink); text-decoration: none; font-size: .85rem; }
.ord-upsell__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 9px; }
.ord-area { display: grid; gap: 6px; font-weight: 600; min-width: 0; }
.ord-area select { width: 100%; max-width: 100%; min-width: 0; }
.ord-pay { border: 0; padding: 0; margin: 0; }
.ord-pay legend { font-weight: 700; margin-bottom: 8px; }
.ord-pay__note { font-size: .9rem; color: var(--ord-muted); margin: 4px 0 0; }
.ord-fab { position: fixed; z-index: 1100; inset-inline-end: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 0 20px 0 16px; height: 58px; border-radius: 999px; background: var(--ord-accent); color: var(--ord-accent-ink); font: 700 1rem var(--ord-font); text-decoration: none; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); transform: translateY(120px); transition: transform .4s cubic-bezier(.2, .9, .2, 1); }
.ord.has-items .ord-fab { transform: none; }
.ord-fab__count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: #fff; color: var(--ord-accent); display: inline-grid; place-items: center; font-size: .9rem; }
.ord-bump { animation: ord-bump .45s ease; }
@keyframes ord-bump { 40% { transform: scale(1.35); } }
@media (max-width: 520px) { .ord-fab__label { display: none; } .ord-fab { padding: 0 16px; } }
.kit-checkout__grid .ord-lines .ord-line:last-child { border-bottom: 0; }
.kit-checkout__grid .ord-modes, .kit-checkout__grid .ord-sum, .kit-checkout__grid .ord-area, .kit-checkout__grid .ord-pay, .kit-checkout__grid .ord-notice { margin-bottom: 14px; }
.ord-done { text-align: center; padding: 18px 0; }
.ord-done__tick { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ord-accent); color: var(--ord-accent-ink); font-size: 2rem; }
.ord-done .ord-cta { flex: none; margin-top: 10px; }
.kit-checkout__grid.is-placed .mqf__form { display: none; }
@media (prefers-reduced-motion: reduce) { .ord-sheet, .ord-cart, .ord-sheet__panel, .ord-cart__panel, .ord-fab { transition: none; } .ord-bump { animation: none; } }
.ord.is-checkout .ord-fab{display:none}
.ord-code { margin: 4px 0 12px; }
.ord-code label { display: grid; gap: 6px; font-weight: 600; }
.ord-code__row { display: flex; gap: 8px; }
.ord-code__row input { flex: 1; min-width: 0; font: inherit; text-transform: uppercase; padding: 10px 14px; border: 1px dashed var(--ord-line); border-radius: 12px; background: #fff; color: var(--ord-ink); }
.ord-code__row button, .ord-code__on button { border: 0; border-radius: 999px; padding: 0 18px; background: var(--ord-ink); color: #fff; font: 700 .9rem var(--ord-font); cursor: pointer; }
.ord-code__on { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; background: #eaf7ee; color: #14532d; }
.ord-code__on button { margin-inline-start: auto; min-height: 30px; background: transparent; color: #14532d; text-decoration: underline; padding: 0; }
.ord-code__msg { margin: 6px 0 0; font-size: .88rem; color: #b42318; }
.ord-code__msg:empty { display: none; }
.ord-sum p.ord-off { color: #15803d; font-weight: 600; }
.ord .ord-cart__head h3, .ord .ord-sheet__in h3, .ord-done h3 { color: var(--ord-ink); }
.ord-only { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: #fff4e5; color: #8a4b00; font-weight: 700; font-size: .88rem; }
