* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #d62839;
  --primary-dark: #a8192a;
  --primary-soft: #fff0f2;
  --ink: #17191d;
  --muted: #747981;
  --muted-dark: #4f555e;
  --surface: #ffffff;
  --surface-soft: #f7f7f8;
  --cream: #fff9f3;
  --border: #e9eaec;
  --green: #16866c;
  --shadow-sm: 0 4px 16px rgba(22, 25, 30, .06);
  --shadow-md: 0 15px 40px rgba(22, 25, 30, .12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Cairo', Tahoma, Arial, sans-serif; background: #fbfbfc; color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.hidden { display: none !important; }
.checkout-gate { display: grid; gap: 10px; margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); text-align: center; }
.checkout-gate p { color: var(--ink); font-weight: 800; }
.checkout-gate .btn { width: 100%; }
.signed-in-banner { margin-top: 12px; padding: 11px; border-radius: 10px; background: #e7f6ef; color: #176c43; font-weight: 800; }
.customer-auth-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 18px; background: rgba(16,20,26,.55); }
.customer-auth-card { display: grid; gap: 12px; width: min(420px,100%); padding: 24px; border-radius: 18px; background: var(--surface); box-shadow: 0 20px 60px rgba(0,0,0,.22); text-align: center; }
.customer-auth-card > .icon-btn { justify-self: end; }
.social-auth-button { min-height: 46px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #222; font: inherit; font-weight: 800; cursor: pointer; }
.facebook-auth { background: #1877f2; color: #fff; border-color: #1877f2; }
.social-auth-button.is-unconfigured { opacity: .62; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; min-width: max-content; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--primary-soft); font-size: 26px; }
.brand-copy { display: grid; gap: 0; }
.brand-copy strong { color: var(--primary); font-size: 19px; font-weight: 800; line-height: 1.3; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.header-tools { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-search, .menu-search { display: flex; align-items: center; gap: 8px; min-width: 220px; padding: 0 13px; background: var(--surface-soft); border: 1px solid transparent; border-radius: 999px; color: var(--muted); transition: border-color .18s, background .18s; }
.header-search:focus-within, .menu-search:focus-within { background: var(--surface); border-color: #efb0b7; }
.header-search input, .menu-search input { width: 100%; padding: 10px 0; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.header-search span, .menu-search span { font-family: Arial, sans-serif; font-size: 23px; line-height: 1; }
.cart-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 116px; padding: 10px 15px; color: #fff; background: var(--primary); border: 0; border-radius: 999px; font-weight: 800; box-shadow: 0 7px 16px rgba(214,40,57,.22); transition: transform .18s, background .18s; }
.cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.cart-btn:active, .btn:active { transform: scale(.98); }
.cart-btn-icon { font-size: 17px; }
.badge { min-width: 23px; height: 23px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--primary); font-family: Manrope, Arial, sans-serif; font-size: 12px; font-weight: 800; }

/* Main and hero */
.container { width: min(1180px, 100%); margin: 0 auto; padding: 25px 20px 48px; flex: 1; }
.restaurant-hero { position: relative; min-height: 300px; overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(120deg, #351218 0%, #851f2e 57%, #c32d42 100%); box-shadow: var(--shadow-md); }
.restaurant-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 84% 22%, rgba(255,255,255,.2), transparent 29%), linear-gradient(90deg, rgba(0,0,0,.08), transparent 65%); }
.hero-copy { position: relative; z-index: 1; padding: 42px 44px; align-self: center; }
.eyebrow { display: block; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.hero-copy .eyebrow { color: #ffdce0; }
.hero-copy h1 { margin: 6px 0 1px; font-size: clamp(31px, 4.5vw, 52px); line-height: 1.15; font-weight: 800; }
.hero-address { color: #ffe8ea; font-size: 14px; font-weight: 700; }
.hero-description { max-width: 420px; margin-top: 18px; color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.9; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-meta span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff5f5; background: rgba(255,255,255,.1); font-size: 11px; }
.restaurant-status { display: inline-flex; margin-top: 18px; padding: 7px 12px; border-radius: 999px; background: #147d63; color: #fff; font-size: 12px; font-weight: 800; }
.restaurant-status.closed { background: #631522; }.restaurant-status.busy { background: #ad6715; }.restaurant-status.available { background: #147d63; }
.hero-image { min-height: 300px; background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(214,40,57,.32)), url('/logo.jpg') center/cover; }
.fulfillment-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: calc(100% - 48px); margin: -25px auto 22px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 17px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-sm); }
.fulfillment-intro { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.fulfillment-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 11px; background: var(--primary-soft); }
.fulfillment-intro div { display: grid; gap: 0; }.fulfillment-intro strong { font-size: 12px; }.fulfillment-intro small { color: var(--muted); font-size: 10px; }
.fulfillment-selector { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-soft); }
.fulfillment-btn { padding: 10px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted-dark); font-size: 13px; font-weight: 800; transition: color .18s, background .18s, box-shadow .18s; }
.fulfillment-btn.active { color: #fff; background: var(--primary); box-shadow: 0 4px 10px rgba(214,40,57,.2); }
.promo-strip { display: flex; align-items: center; gap: 11px; margin: 0 0 31px; padding: 13px 17px; border: 1px solid #f5e6d6; border-radius: 15px; background: linear-gradient(90deg, #fffaf3, #fff); }
.promo-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #ffeedc; font-size: 18px; }.promo-strip div:nth-child(2) { display: grid; gap: 0; }.promo-strip strong { font-size: 13px; }.promo-strip span { color: var(--muted); font-size: 11px; }.promo-arrow { margin-inline-start: auto; color: var(--primary); font-size: 20px; }

/* Menu */
.menu-section { scroll-margin-top: 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { margin-top: 2px; font-size: 28px; line-height: 1.25; font-weight: 800; }
.menu-search { width: min(300px, 100%); }
.menu-search input { font-size: 12px; }
.subsection-heading { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; }.subsection-heading h3 { font-size: 18px; }.subsection-heading span { color: var(--muted); font-size: 11px; }
.featured-section { margin-bottom: 29px; }.featured-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.featured-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .18s, box-shadow .18s; }
.featured-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }.featured-card-media { height: 112px; background: linear-gradient(135deg, #ffe7e9, #fff2dd); }.featured-card-media img { width: 100%; height: 100%; object-fit: cover; }.featured-card-copy { padding: 10px 11px 12px; }.featured-card-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.featured-card-copy span { color: var(--primary); font-family: Manrope, Arial, sans-serif; font-size: 12px; font-weight: 800; }
.menu-layout { display: grid; grid-template-columns: 194px minmax(0, 1fr); gap: 25px; align-items: start; }.categories-panel { position: sticky; top: 87px; }.categories-title { margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 800; }.categories { display: flex; flex-direction: column; gap: 3px; }.cat-btn { width: 100%; padding: 10px 13px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted-dark); text-align: right; font-size: 13px; font-weight: 700; transition: background .18s, color .18s, border-color .18s; }.cat-btn:hover { color: var(--primary); background: #fff; border-color: var(--border); }.cat-btn.active { color: #fff; background: var(--primary); box-shadow: 0 6px 15px rgba(214,40,57,.18); }
.menu-results-meta { min-height: 20px; margin-bottom: 8px; color: var(--muted); font-size: 11px; }.menu-list { display: grid; gap: 10px; }.menu-group-title { padding: 7px 2px; color: var(--ink); font-size: 18px; font-weight: 800; border-bottom: 1px solid var(--border); }.card { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 142px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }.card:hover { transform: translateY(-2px); border-color: #f0c5c9; box-shadow: var(--shadow-md); }.card-img { order: 2; min-height: 142px; background: linear-gradient(135deg, #fff0f1, #fff6e9); }.card-img img { width: 100%; height: 100%; display: block; object-fit: cover; }.card-body { order: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 17px 19px; }.card-name { width: 100%; font-size: 17px; font-weight: 800; }.card-desc { width: 100%; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.75; }.card-price { margin-top: 10px; color: var(--primary); font-family: Manrope, Arial, sans-serif; font-size: 16px; font-weight: 800; }.card-footer { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }.card-footer .card-price { margin-top: 0; }.btn-add { min-width: 92px; padding: 8px 13px; border: 0; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; transition: background .18s, color .18s, transform .18s; }.btn-add:hover { color: #fff; background: var(--primary); }.low-stock-note { display: inline-block; margin-inline-start: 6px; color: #b66a00; font-size: 10px; font-weight: 800; }.info, .error { padding: 35px; color: var(--muted); text-align: center; }.error { color: var(--primary); }

/* General controls */
.btn { border: 0; border-radius: 10px; padding: 10px 17px; font-size: 14px; font-weight: 800; transition: transform .18s, background .18s, opacity .18s; }.btn:disabled { opacity: .55; cursor: not-allowed; }.btn-primary { width: 100%; padding: 14px; background: var(--primary); color: #fff; box-shadow: 0 8px 17px rgba(214,40,57,.2); }.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }.btn-secondary { background: var(--ink); color: #fff; }.btn-secondary:hover { background: #30343a; }.btn-link { padding: 0; background: transparent; color: var(--primary); font-size: 12px; text-decoration: underline; }.form-msg { min-height: 21px; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }.form-msg.ok { color: var(--green); }.form-msg.err { color: var(--primary); }.form-section-label { padding-top: 7px; color: var(--muted-dark); font-size: 12px; font-weight: 800; border-top: 1px solid var(--border); }.payment-section-label { margin-top: 4px; }
input, textarea, select { width: 100%; padding: 12px 13px; border: 1px solid var(--border); border-radius: 10px; outline: 0; background: var(--surface); color: var(--ink); font-size: 13px; transition: border-color .18s, box-shadow .18s; }input:focus, textarea:focus, select:focus { border-color: #e38d96; box-shadow: 0 0 0 3px rgba(214,40,57,.1); }textarea { min-height: 73px; resize: vertical; }

/* Track */
.track { margin-top: 38px; padding: 23px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }.track .section-heading { align-items: center; margin-bottom: 15px; }.track-hint { color: var(--muted); font-size: 11px; }.track-form { display: flex; gap: 9px; }.track-form input { flex: 1; min-width: 150px; }.track-result { margin-top: 14px; }.status-box, .order-card { padding: 14px; border-radius: 11px; background: var(--surface-soft); border-inline-start: 4px solid var(--green); line-height: 1.9; }.order-card p + p { margin-top: 3px; }

/* Drawer and cart */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(12, 14, 18, .56); backdrop-filter: blur(2px); }.drawer { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 100; display: flex; flex-direction: column; width: min(440px, 100%); padding: 20px; overflow-y: auto; background: var(--surface); box-shadow: -12px 0 38px rgba(0,0,0,.17); animation: drawer-in .2s ease-out; }.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 18px; }.drawer-header h2 { margin-top: 1px; font-size: 22px; }.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-soft); color: var(--ink); font-size: 17px; transition: background .18s, transform .18s; }.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }.cart-items { display: flex; flex-direction: column; gap: 9px; }.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }.cart-item-info { min-width: 0; }.cart-item-info > strong { display: block; font-size: 13px; }.cart-item-info small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.6; }.cart-item-info > div { margin-top: 5px; color: var(--primary); font-family: Manrope, Arial, sans-serif; font-size: 11px; font-weight: 800; }.qty-controls { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }.qty-controls .icon-btn { width: 29px; height: 29px; border: 1px solid var(--border); font-size: 16px; }.qty-controls span { min-width: 18px; font-family: Manrope, Arial, sans-serif; font-weight: 800; text-align: center; }.coupon-box { margin-top: 17px; padding: 13px; border: 1px solid #f3e2d4; border-radius: 13px; background: var(--cream); }.coupon-box label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 800; }.coupon-row { display: flex; gap: 7px; }.coupon-row input { min-width: 0; background: #fff; }.coupon-row .btn { flex: 0 0 auto; padding-inline: 13px; }.coupon-box .form-msg { margin-top: 5px; }.order-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }.cart-order-type { padding: 11px 13px; border-radius: 11px; background: #fff4e9; color: var(--muted-dark); font-size: 12px; font-weight: 800; }.cart-order-type button { border: 0; background: none; color: var(--primary); font-size: 11px; font-weight: 800; text-decoration: underline; }.delivery-fields { display: flex; flex-direction: column; gap: 8px; }.delivery-fields select { appearance: none; background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23747981' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") left 12px center/16px no-repeat; }.payment-field { display: block; }.payment-select-wrap { position: relative; display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 10px 42px 10px 13px; border: 1px solid #edb8bd; border-radius: 13px; background: linear-gradient(135deg, #fff, #fff8f8); }.payment-method-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 11px; background: #fff0d8; font-size: 19px; }.payment-method-copy { display: grid; gap: 2px; min-width: 0; }.payment-method-copy strong { font-size: 13px; }.payment-method-copy small { color: var(--muted); font-size: 10px; }.payment-select-wrap select { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; color: transparent; cursor: pointer; appearance: none; }.payment-select-wrap select:focus { outline: 3px solid rgba(214,40,57,.18); outline-offset: 2px; box-shadow: none; }.payment-select-wrap::after { content: '⌄'; position: absolute; inset-inline-start: 15px; color: var(--muted); font-size: 20px; pointer-events: none; }.payment-select-wrap select option { color: var(--ink); }.payment-instructions { padding: 10px 12px; border: 1px solid #c9e5fb; border-radius: 11px; background: #eef7ff; color: #24506d; font-size: 11px; line-height: 1.8; white-space: pre-line; }.payment-reference-field { display: grid; gap: 6px; color: var(--muted-dark); font-size: 11px; font-weight: 800; }.payment-reference-field small { color: var(--muted); font-weight: 400; }.order-summary { margin-top: 4px; padding: 13px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); }.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: var(--muted-dark); font-size: 11px; }.summary-row strong { color: var(--ink); font-family: Manrope, Arial, sans-serif; font-size: 11px; }.summary-row.discount-row, .summary-row.discount-row strong { color: var(--green); }.summary-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; padding-top: 11px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 800; }.summary-total strong { color: var(--primary); font-family: Manrope, Arial, sans-serif; font-size: 18px; }.checkout-btn { margin-top: 2px; }

/* Item modal */
.item-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(12,14,18,.6); backdrop-filter: blur(4px); }.item-modal-card { position: relative; display: flex; flex-direction: column; width: min(920px, 100%); max-height: min(720px, 92vh); overflow: hidden; border-radius: 20px; background: var(--surface); box-shadow: 0 25px 70px rgba(0,0,0,.28); animation: modal-in .2s ease-out; }.item-modal-close { position: absolute; inset-block-start: 13px; inset-inline-start: 13px; z-index: 3; background: rgba(255,255,255,.88); }.item-modal-layout { min-height: 0; display: grid; grid-template-columns: minmax(270px, .92fr) minmax(0, 1.08fr); direction: ltr; overflow: hidden; }.item-modal-media { position: relative; min-height: 400px; background: linear-gradient(135deg, #ffe9ea, #fff3dc); }.item-modal-media img { width: 100%; height: 100%; display: none; object-fit: cover; }.item-modal-media img[src] { display: block; }.item-modal-media span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 90px; }.item-modal-media img[src] + span { display: none; }.item-modal-content { min-width: 0; max-height: 550px; overflow-y: auto; padding: 28px 27px 25px; direction: rtl; }.modal-title-row { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }.modal-title-row h2 { margin-top: 2px; font-size: 23px; }.modal-price { flex: 0 0 auto; color: var(--primary); font-family: Manrope, Arial, sans-serif; font-size: 17px; }.modal-description { margin: 9px 0 17px; color: var(--muted); font-size: 12px; line-height: 1.8; }.product-options { margin: 0 0 14px; padding: 0 0 13px; border: 0; border-bottom: 1px solid var(--border); }.product-options legend { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 7px; font-size: 14px; font-weight: 800; }.product-options legend small { padding: 3px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 10px; font-weight: 800; }.product-options legend small.optional { color: var(--muted); background: var(--surface-soft); }.product-options label { display: flex; align-items: center; gap: 8px; min-height: 39px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; color: var(--muted-dark); font-size: 12px; cursor: pointer; transition: border-color .18s, background .18s; }.product-options label:hover { border-color: #f0c5c9; background: #fffafa; }.product-options label:has(input:checked) { border-color: #efb0b7; background: var(--primary-soft); color: var(--ink); font-weight: 700; }.product-options input { width: 17px; height: 17px; flex: 0 0 17px; padding: 0; accent-color: var(--primary); }.item-note-label { display: block; margin: 13px 0 7px; color: var(--muted-dark); font-size: 12px; font-weight: 800; }.item-note-label small { color: var(--muted); font-weight: 400; }.item-modal-content #itemModalNote { min-height: 75px; }.modal-action-bar { display: flex; align-items: center; gap: 13px; padding: 12px 20px; border-top: 1px solid var(--border); background: rgba(255,255,255,.98); }.modal-action-bar .form-msg { flex: 1; min-height: 0; text-align: right; }.modal-action-bar .btn { width: min(300px, 48%); }.modal-action-bar .btn::after { content: '  —  '; }.modal-action-bar .btn { font-size: 14px; }

/* Toast and footer */
.toast { position: fixed; inset-inline-start: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-md); font-size: 13px; font-weight: 800; white-space: nowrap; }
.footer { margin-top: auto; padding: 35px 20px 0; background: #202124; color: #ddd; text-align: right; direction: rtl; }.footer-grid { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }.footer-col h3, .footer-col h4 { margin-bottom: 12px; color: #fff; }.footer-col p, .footer-col a { display: block; margin: 8px 0; color: #ccc; text-decoration: none; font-size: 13px; line-height: 1.7; }.footer-col a:hover { color: #ff9eaa; }.footer-logo { width: 70px; height: 70px; margin-bottom: 10px; padding: 6px; border-radius: 14px; background: #fff; object-fit: contain; }.social { display: inline-flex !important; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #2b2b2b; color: #fff !important; }.social span { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #1877f2; font-weight: 900; }.footer-bottom { margin-top: 30px; padding: 16px; border-top: 1px solid #333; color: #aaa; font-size: 13px; line-height: 1.9; text-align: center; }.footer-bottom a { color: #ff9eaa; text-decoration: none; }.footer-bottom strong { color: #fff; }

@keyframes drawer-in { from { transform: translateX(20px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
@keyframes modal-in { from { transform: translateY(8px) scale(.98); opacity: .6; } to { transform: translateY(0) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 900px) {
  .header-search { display: none; }
  .featured-menu { grid-template-columns: repeat(4, minmax(140px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .featured-card { min-width: 140px; }
  .menu-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 16px; }
  .item-modal-layout { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); }
}

@media (max-width: 650px) {
  .header-inner { padding: 10px 13px; }.brand-mark { width: 39px; height: 39px; font-size: 22px; }.brand-copy strong { font-size: 16px; }.brand-copy small { display: none; }.cart-btn { min-width: 93px; padding: 8px 11px; font-size: 12px; }.cart-btn-icon { font-size: 14px; }.badge { min-width: 20px; height: 20px; font-size: 10px; }
  .container { padding: 13px 12px 35px; }.restaurant-hero { min-height: 290px; grid-template-columns: 1fr; }.hero-image { position: absolute; inset: 0; opacity: .29; }.hero-copy { padding: 34px 25px; }.hero-copy h1 { font-size: 35px; }.hero-description { max-width: 330px; }.fulfillment-bar { width: 100%; margin: -18px 0 18px; padding: 8px; display: block; }.fulfillment-intro { display: none; }.fulfillment-selector { width: 100%; }.fulfillment-btn { flex: 1; padding: 10px 6px; font-size: 11px; }.promo-strip { margin-bottom: 24px; padding: 11px 12px; }.promo-strip strong { font-size: 12px; }.promo-strip span { font-size: 10px; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 11px; }.section-heading h2 { font-size: 24px; }.menu-search { width: 100%; }.featured-menu { display: flex; overflow-x: auto; gap: 9px; margin-inline: -2px; }.featured-card { flex: 0 0 150px; }.featured-card-media { height: 95px; }.menu-layout { display: block; } .categories-panel { position: sticky; top: var(--customer-sticky-header-height, 60px); z-index: 20; margin: 0 -12px 15px; padding: 9px 12px 7px; background: rgba(251,251,252,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }.categories-title { display: none; }.categories { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 2px; scrollbar-width: none; }.categories::-webkit-scrollbar { display: none; }.cat-btn { width: auto; flex: 0 0 auto; padding: 8px 13px; border: 1px solid var(--border); white-space: nowrap; font-size: 11px; }.cat-btn.active { border-color: var(--primary); }.menu-results-meta { margin-bottom: 7px; }.card { grid-template-columns: minmax(0, 1fr) 105px; min-height: 125px; }.card-img { grid-column: 2; min-height: 125px; }.card-body { grid-column: 1; padding: 12px 13px; }.card-name { font-size: 14px; }.card-desc { margin-top: 3px; font-size: 10px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }.card-footer { margin-top: 8px; }.card-price { font-size: 13px; }.btn-add { min-width: 70px; padding: 7px 9px; font-size: 10px; }
  .track { margin-top: 27px; padding: 16px; }.track .section-heading { flex-direction: row; align-items: end; }.track-hint { display: none; }.track-form { flex-direction: column; }.track-form .btn { width: 100%; }.footer-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }.footer { text-align: center; }.footer-logo { margin-inline: auto; }
  .drawer { width: 100%; padding: 15px 13px 20px; }.drawer-header { margin-bottom: 13px; }.drawer-header h2 { font-size: 20px; }.item-modal { padding: 0; align-items: end; }.item-modal-card { width: 100%; height: min(94vh, 850px); height: min(94dvh, 850px); max-height: 94vh; max-height: 94dvh; border-radius: 20px 20px 0 0; }.item-modal-layout { display: block; flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }.item-modal-media { min-height: 155px; max-height: 190px; }.item-modal-media img { height: 190px; }.item-modal-media span { font-size: 62px; }.item-modal-content { max-height: none; overflow: visible; padding: 19px 16px 17px; }.modal-title-row h2 { font-size: 20px; }.modal-price { font-size: 14px; }.modal-description { margin-bottom: 13px; }.product-options { margin-bottom: 11px; padding-bottom: 10px; }.product-options label { min-height: 36px; padding: 7px 8px; }.modal-action-bar { position: relative; z-index: 4; flex: 0 0 auto; min-height: 64px; padding: 10px 13px calc(10px + env(safe-area-inset-bottom)); }.modal-action-bar .form-msg { display: none; }.modal-action-bar .form-msg.err { display: block; position: absolute; inset-inline: 12px; bottom: calc(100% + 2px); padding: 9px 12px; border: 1px solid #efb0b7; border-radius: 10px; background: var(--surface); box-shadow: 0 6px 18px rgba(0,0,0,.12); text-align: center; }.modal-action-bar .btn { width: 100%; }.toast { bottom: 15px; max-width: calc(100% - 30px); overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
}


/* Quick quantity control inside simple menu cards */
.quick-qty { padding: 3px 5px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.quick-qty .icon-btn { width: 25px; height: 25px; background: #fff; font-size: 14px; }
.quick-qty .icon-btn:hover { background: var(--primary); color: #fff; }
.quick-qty .icon-btn[data-delta="1"], .quick-qty .icon-btn[data-delta="1"]:hover, .quick-qty .icon-btn[data-delta="1"]:focus-visible { background: var(--primary); color: #fff; -webkit-appearance: none; appearance: none; }
.modal-action-bar .btn::after { content: none; }


.card-img, .featured-card-media { display: grid; place-items: center; font-size: 50px; }
.featured-card-media { font-size: 38px; }


.mobile-cart-bar { display: none; }

@media (max-width: 650px) {
  .container { padding-bottom: 98px; }
  .mobile-cart-bar { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 80; display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); min-height: 62px; padding: 9px 11px; border: 0; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 12px 30px rgba(23,25,29,.28); text-align: right; }
  .mobile-cart-bar:active { transform: scale(.99); }
  .mobile-cart-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 37px; border-radius: 12px; background: var(--primary); font-size: 18px; }
  .mobile-cart-copy { display: grid; gap: 1px; min-width: 0; flex: 1; }
  .mobile-cart-copy strong { font-size: 12px; }.mobile-cart-copy small { color: rgba(255,255,255,.7); font-size: 9px; }
  .mobile-cart-total { display: flex; align-items: center; gap: 3px; color: #fff; font-family: Manrope, Arial, sans-serif; font-size: 11px; font-weight: 800; white-space: nowrap; }.mobile-cart-total b { margin-inline-start: 4px; color: #ffb1b9; font-family: Arial, sans-serif; font-size: 16px; }
}


.image-fallback-icon { display: none; place-items: center; width: 100%; height: 100%; font-size: inherit; }
.menu-results-meta { min-height: 20px; margin-bottom: 8px; color: var(--muted); font-size: 11px; }.menu-list { display: grid; gap: 10px; }.menu-group-title { padding: 7px 2px; color: var(--ink); font-size: 18px; font-weight: 800; border-bottom: 1px solid var(--border); }.card { display: grid; grid-template-columns: minmax(0, 1fr) 148px; min-height: 142px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }.card:hover { transform: translateY(-2px); border-color: #f0c5c9; box-shadow: var(--shadow-md); }.card-img { grid-column: 2; min-height: 142px; background: linear-gradient(135deg, #fff0f1, #fff6e9); }.card-img img { width: 100%; height: 100%; display: block; object-fit: cover; }.card-body { grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 17px 19px; }.card-name { width: 100%; font-size: 17px; font-weight: 800; }.card-desc { width: 100%; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.75; }.card-price { margin-top: 10px; color: var(--primary); font-family: Manrope, Arial, sans-serif; font-size: 16px; font-weight: 800; }.card-footer { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }.card-footer .card-price { margin-top: 0; }.btn-add { min-width: 92px; padding: 8px 13px; border: 0; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; transition: background .18s, color .18s, transform .18s; }.btn-add:hover { color: #fff; background: var(--primary); }.low-stock-note { display: inline-block; margin-inline-start: 6px; color: #b66a00; font-size: 10px; font-weight: 800; }.info, .error { padding: 35px; color: var(--muted); text-align: center; }.error { color: var(--primary); }


.card { cursor: pointer; }
.card:focus-visible { outline: 3px solid rgba(214,40,57,.3); outline-offset: 3px; }
.card .btn, .card .icon-btn { cursor: pointer; }


/* Show the full food image instead of cropping it inside cards and the item modal. */
.card-img img { object-fit: contain; padding: 8px; background: #fff; }
.item-modal-media { background: #fff; }
.item-modal-media img { object-fit: contain; padding: 14px; }


.language-picker { display: inline-flex; align-items: center; gap: 5px; min-width: 106px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--muted-dark); }
.language-picker span { font-size: 14px; }.language-picker select { width: auto; min-width: 0; padding: 2px 0; border: 0; background: transparent; box-shadow: none; color: var(--ink); font-size: 11px; font-weight: 800; cursor: pointer; }
html[dir="ltr"] .card-body { text-align: left; align-items: flex-start; }
html[dir="ltr"] .card-footer { flex-direction: row; }
html[dir="ltr"] .track-form, html[dir="ltr"] .footer { direction: ltr; text-align: left; }
@media (max-width: 650px) { .language-picker { min-width: 82px; padding: 5px 6px; }.language-picker span { display: none; }.language-picker select { font-size: 10px; } }


/* Featured item title stays in a dedicated row below the image. */
.featured-card { display: flex; flex-direction: column; text-align: start; }
.featured-card-media { width: 100%; height: 150px; flex: 0 0 150px; }
.featured-card-media img { object-fit: contain; padding: 8px; background: #fff; }
.featured-card-copy { width: 100%; min-height: 67px; display: grid; align-content: center; gap: 4px; background: #fff; }
.featured-card-copy strong { position: static; color: var(--ink); }
.featured-card-copy span { display: block; }
.cart-order-type { cursor: pointer; }
.cart-order-type[aria-expanded="true"] { border: 1px solid #efb0b7; background: #fff0f2; }
.cart-order-type-chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: -4px; padding: 7px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.cart-order-type-chooser button { padding: 9px 7px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--muted-dark); font-size: 11px; font-weight: 800; }
.cart-order-type-chooser button.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
@media (max-width: 650px) { .featured-card-media { height: 105px; flex-basis: 105px; }.featured-card-copy { min-height: 62px; padding: 9px 10px 10px; }.cart-order-type-chooser button { font-size: 10px; } }


.order-timing-field, .schedule-fields { display: grid; gap: 6px; margin: 10px 0; }
.order-timing-field span, .schedule-fields strong { font-size: 13px; font-weight: 800; }
.schedule-fields { padding: 12px; border: 1px dashed var(--primary); border-radius: 12px; background: #fff8f8; }
.schedule-fields small { color: var(--muted); font-size: 11px; }
.change-schedule-button { width: 100%; min-height: 44px; border: 1px solid var(--primary); border-radius: 10px; background: #fff; color: var(--primary-dark); font: inherit; font-weight: 800; cursor: pointer; }
.change-schedule-button:disabled { opacity: .5; cursor: not-allowed; }


.delivery-timing-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -8px auto 22px; padding: 13px 16px; border: 1px solid #f0d5d8; border-radius: 16px; background: linear-gradient(110deg, #fff8f8, #fff); box-shadow: var(--shadow-sm); }
.delivery-timing-copy { display: grid; gap: 2px; min-width: 190px; }
.delivery-timing-copy strong { font-size: 13px; }
.delivery-timing-copy small { color: var(--muted); font-size: 10px; }
.delivery-timing-controls { display: grid; gap: 8px; flex: 1; }
.timing-choice-group { display: flex; gap: 6px; }
.timing-choice { flex: 1; padding: 9px 13px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--muted-dark); font-size: 12px; font-weight: 800; }
.timing-choice.active { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 5px 12px rgba(214,40,57,.18); }
.home-schedule-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.order-timing-field select { margin-top: 3px; }
@media (max-width: 650px) { .delivery-timing-panel { display: grid; gap: 10px; margin: -7px 0 18px; padding: 11px; }.delivery-timing-copy { min-width: 0; }.timing-choice { padding: 9px 5px; font-size: 10px; }.home-schedule-fields { grid-template-columns: 1fr; } }


.schedule-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.58); }
.schedule-modal-card { position: relative; width: min(720px, 100%); max-height: min(850px, calc(100vh - 30px)); overflow: hidden auto; border-radius: 22px; background: #fff; box-shadow: 0 25px 80px rgba(0,0,0,.3); }
.schedule-modal-close { position: absolute; inset-block-start: 18px; inset-inline-start: 20px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #111; font-size: 29px; line-height: 1; cursor: pointer; }
.schedule-modal-head { padding: 32px 28px 16px; }.schedule-modal-head h2 { margin: 5px 0; font-size: 28px; }.schedule-modal-head p { color: var(--muted); font-size: 13px; }
.schedule-date-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 28px 18px; border-bottom: 1px solid #eee; }
.schedule-date-tab { min-height: 78px; display: grid; align-content: center; gap: 3px; border: 1px solid #eee; border-radius: 14px; background: #fff; color: #111; cursor: pointer; font: inherit; }.schedule-date-tab strong { font-size: 15px; }.schedule-date-tab span { font-size: 13px; }.schedule-date-tab.active { border: 2px solid #111; }
.schedule-slots-list { padding: 5px 28px 95px; }.schedule-slot-row { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #eee; color: #111; font-size: 17px; font-weight: 700; cursor: pointer; }.schedule-slot-row input { position: absolute; opacity: 0; pointer-events: none; }.schedule-slot-row i { width: 23px; height: 23px; flex: 0 0 23px; border: 3px solid #777; border-radius: 50%; }.schedule-slot-row input:checked + i { border: 7px solid #111; }.schedule-empty { padding: 30px 0; text-align: center; color: var(--muted); }
.schedule-modal-actions { position: sticky; bottom: 0; display: grid; gap: 10px; padding: 16px 28px 20px; background: rgba(255,255,255,.96); box-shadow: 0 -8px 20px rgba(0,0,0,.06); }.schedule-modal-actions .btn { min-height: 52px; }.schedule-cancel-btn { border: 0; border-radius: 10px; background: #f3f3f3; color: #111; font: inherit; font-weight: 800; }
body.schedule-modal-open { overflow: hidden; }
@media (max-width: 650px) { .schedule-modal { align-items: end; padding: 0; }.schedule-modal-card { width: 100%; max-height: 94vh; border-radius: 22px 22px 0 0; }.schedule-modal-head { padding: 28px 18px 14px; }.schedule-modal-head h2 { font-size: 23px; }.schedule-date-tabs { gap: 6px; padding-inline: 18px; overflow-x: auto; grid-template-columns: repeat(4, minmax(112px, 1fr)); }.schedule-date-tab { min-height: 70px; }.schedule-slots-list { padding-inline: 18px; }.schedule-slot-row { min-height: 62px; font-size: 15px; }.schedule-modal-actions { padding-inline: 18px; } }

.my-orders-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.my-orders-actions .btn { width: auto; padding: 8px 11px; font-size: 11px; }
.btn-gray { background: #eef0f2; color: var(--muted-dark); }
.btn-gray:hover { background: #e2e5e8; }
@media (max-width: 650px) { .my-orders-actions { width: 100%; }.my-orders-actions .btn { flex: 1; } }

/* Final mobile customer-site fixes. */
.my-orders-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.my-orders-date-filter { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--muted-dark); font-size: 11px; font-weight: 800; }
.my-orders-date-filter select { width: auto; min-width: 116px; padding: 4px 20px 4px 5px; border: 0; background: transparent; box-shadow: none; font-size: 11px; font-weight: 800; }
.hero-image { background-position: center; background-size: cover; }
@media (max-width: 650px) {
  .hero-image { opacity: .72; background-position: center; background-size: cover; }
  .my-orders-actions { align-items: stretch; }
  .my-orders-date-filter { flex: 1 1 100%; justify-content: space-between; }
  .my-orders-date-filter select { flex: 1; }
  .my-orders-actions .btn { flex: 1; min-width: 0; padding-inline: 8px; font-size: 11px; }
  .mobile-cart-bar { transition: opacity .16s ease, transform .16s ease; }
}

/* Phase fixes: grouped menu, clear switches, mobile hero, and safe cart bar. */
.customer-menu-group { scroll-margin-top: 92px; margin-bottom: 18px; }
.customer-menu-group-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 13px; background: #fff; color: var(--ink); text-align: start; font: inherit; box-shadow: var(--shadow-sm); }
.customer-menu-group-head strong { font-size: 18px; }
.customer-menu-group-head span { color: var(--muted); font-size: 11px; }
.customer-menu-group-head b { margin-inline-start: 5px; color: var(--primary); font-size: 16px; }
.customer-menu-group-items { display: grid; gap: 10px; margin-top: 9px; }
.fulfillment-selector, .timing-choice-group { border: 1px solid #e6dadd; box-shadow: inset 0 0 0 2px #fff; }
.fulfillment-btn, .timing-choice { min-height: 43px; border: 2px solid transparent; }
.fulfillment-btn.active, .timing-choice.active { border-color: var(--primary); font-weight: 900; }
@media (max-width: 650px) {
  .restaurant-hero::after { background: linear-gradient(90deg, rgba(53,18,24,.72), rgba(133,31,46,.34)); }
  .hero-image { opacity: 1; background-position: center; background-size: cover; }
  .customer-menu-group { scroll-margin-top: 130px; }
  .customer-menu-group-head strong { font-size: 15px; }
  .mobile-cart-bar { bottom: max(12px, env(safe-area-inset-bottom)); }
  .footer { padding-bottom: 22px; }
}

/* My orders drawer: compact access from the header instead of a long section above the menu. */
.my-orders-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 39px; padding: 8px 12px; border: 1px solid #efb0b7; border-radius: 11px; background: #fff; color: var(--primary); font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; }
.my-orders-btn:hover { background: #fff1f3; }
.my-orders-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(22,24,29,.42); }
.my-orders-drawer { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 100; width: min(520px, 94vw); max-height: 100vh; overflow-y: auto; margin: 0; padding: 24px 20px 28px; border-radius: 0; background: #fff; box-shadow: -10px 0 35px rgba(0,0,0,.18); transform: translateX(105%); transition: transform .18s ease; }
html[dir="ltr"] .my-orders-drawer { inset-inline-start: 0; inset-inline-end: auto; transform: translateX(-105%); }
html[dir="ltr"] .my-orders-drawer.is-open { transform: translateX(0); }
.my-orders-drawer.is-open { transform: translateX(0); }
.my-orders-drawer .section-heading { padding-inline-end: 40px; }
.my-orders-close { position: absolute; inset-block-start: 17px; inset-inline-end: 17px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f2f3f5; color: var(--ink); font-size: 23px; cursor: pointer; }
.my-orders-drawer .track-divider { margin-top: 22px; }
body.my-orders-open { overflow: hidden; }
@media (max-width: 650px) {
  .my-orders-btn { min-width: 70px; padding-inline: 8px; font-size: 10px; }
  .my-orders-btn span { display: inline; }
  .my-orders-drawer { width: 100%; padding: 18px 13px 24px; }
}

/* Prevent the mobile viewport from being pushed sideways by wide flex children. */
html, body { width: 100%; max-width: 100%; overflow-x: clip; }
.header-inner, .container, .restaurant-hero, .fulfillment-bar, .delivery-timing-panel, .promo-strip { max-width: 100%; min-width: 0; }
.header-inner, .header-tools, .brand { min-width: 0; }
.header-tools { flex-wrap: nowrap; }
.fulfillment-selector, .timing-choice-group, .delivery-timing-controls { min-width: 0; max-width: 100%; }
@media (max-width: 650px) {
  .header-tools { gap: 5px; }
  .brand-copy { min-width: 0; max-width: 115px; }
  .brand-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .my-orders-btn { flex: 0 0 auto; }
  .cart-btn { flex: 0 0 auto; }
  .delivery-timing-panel { display: block; }
  .delivery-timing-copy { min-width: 0; margin-bottom: 8px; }
  .timing-choice-group { display: flex; width: 100%; }
  .timing-choice { min-width: 0; flex: 1; }
}

@media (max-width: 650px) {
  .header-inner { gap: 4px; }
  .brand { flex: 1 0 100%; width: 100%; max-width: none; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; flex: 0 0 34px; font-size: 18px; }
  .brand-copy strong { font-size: 13px; }
  .header-tools { flex: 1 1 100%; width: 100%; justify-content: space-between; gap: 6px; }
  .brand-copy { max-width: none; }
  .brand-copy strong { overflow: visible; text-overflow: clip; }
  .language-picker { min-width: 70px; }
  .my-orders-btn { min-width: 60px; padding-inline: 6px; }
  .cart-btn { min-width: 79px; padding-inline: 6px; }
}

/* Day accordions in the customer order-history drawer. */
.order-day-group { overflow: hidden; margin: 10px 0; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.order-day-heading { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border: 0; background: linear-gradient(110deg, #fff7f2, #fff); color: var(--ink); text-align: start; font: inherit; font-weight: 800; cursor: pointer; }
.order-day-heading[aria-expanded="true"] { border-bottom: 1px solid var(--border); }
.order-day-count { margin-inline-start: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.order-day-chevron { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 16px; }
.order-day-content { padding: 8px 10px; }
.order-day-content .order-card { margin: 8px 0; border: 1px solid var(--border); border-inline-start: 4px solid var(--green); background: #fafafa; }
@media (max-width: 650px) {
  .header-inner { flex-wrap: wrap; row-gap: 7px; padding: 8px 12px; }
  .header-tools { flex-wrap: nowrap; }
  .brand-copy strong { font-size: 15px; }
  .my-orders-btn { min-width: 0; padding-inline: 9px; font-size: 11px; }
  .my-orders-btn span { white-space: nowrap; }
  .cart-btn { min-width: 0; padding-inline: 10px; }
}


/* Order status web-push opt-in */
.order-push-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid #d62839;
  border-radius: 10px;
  background: #fff;
  color: #b91f2e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.order-push-action:hover,
.order-push-action.is-enabled {
  background: #d62839;
  color: #fff;
}
.order-push-action:disabled {
  opacity: .65;
  cursor: wait;
}
.order-delay-alert { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin: 10px 8px 0 0; padding: 8px 14px; border: 1px solid #bd2734; border-radius: 10px; background: #fff2f2; color: #a71927; font: inherit; font-weight: 800; cursor: pointer; }
.order-delay-alert:hover, .order-delay-alert.is-sent { background: #bd2734; color: #fff; }
.order-delay-alert:disabled { cursor: default; opacity: .85; }
.order-call-shop { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin: 10px 8px 0 0; padding: 8px 14px; border: 1px solid #16794a; border-radius: 10px; background: #effaf4; color: #12663e; font: inherit; font-weight: 800; text-decoration: none; }
.order-call-shop:hover { background: #16794a; color: #fff; }
.order-push-error {
  margin: 8px 0 0;
  color: #a51725;
  font-weight: 700;
  line-height: 1.5;
}
.toast {
  left: 50%;
  inset-inline-start: auto;
  width: max-content;
  max-width: min(420px, calc(100vw - 30px));
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-align: center;
}

/* Keep iPhone Safari from zooming the cart when a field receives focus. */
@media (max-width: 767px) {
  .drawer input,
  .drawer textarea,
  .drawer select {
    font-size: 16px !important;
  }
}

/* Home Screen installation help: native modal keeps focus above order drawers. */
.home-screen-guide { box-sizing: border-box; width: min(480px, calc(100% - 28px)); max-height: 85vh; max-height: 85dvh; overflow-y: auto; margin: auto; padding: 24px; border: 0; border-radius: 22px; background: var(--surface, #fff); color: var(--ink, #17181b); box-shadow: 0 20px 70px #0004; }
.home-screen-guide::backdrop { background: #1119; }
.home-screen-guide h2 { margin: 0 0 12px; font-size: 21px; }
.home-screen-guide p, .home-screen-guide li { font-size: 15px; line-height: 1.8; }
.home-screen-guide ol { padding-inline-start: 25px; }
.home-screen-guide li { padding-inline-start: 6px; margin-block: 12px; }
.home-screen-guide li::marker { color: var(--primary); font-weight: 800; }
.home-screen-guide-note { padding: 12px; border-radius: 12px; background: var(--surface-soft, #f5f5f5); }
.home-screen-guide form .btn { width: 100%; margin-top: 12px; }

.order-push-hint { color: var(--muted-dark, #50545d); font-size: 13px; line-height: 1.8; margin: 8px 0 0; overflow-wrap: anywhere; }
.my-orders-empty { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); }
.my-orders-empty strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 14px; }
.my-orders-empty p { margin: 0; color: var(--muted-dark); font-size: 12px; line-height: 1.8; }

/* إعادة الطلب من سجل العميل */
.order-repeat-button { display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 46px; margin-top: 10px; padding: 10px 14px; border: 1px solid #d43c45; border-radius: 12px; background: #fff7f7; color: #bd303a; font: inherit; font-weight: 800; cursor: pointer; }
.order-repeat-button:hover { background: #fdebed; }

/* Refined customer order history cards: clear hierarchy and mobile-first actions. */
.my-orders-drawer { box-sizing: border-box; padding: 16px clamp(14px, 3vw, 28px) 30px; background: #fff; }
.my-orders-drawer .section-heading { position: sticky; z-index: 5; top: -16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 70px; margin: -16px calc(-1 * clamp(14px, 3vw, 28px)) 16px; padding: 12px clamp(14px, 3vw, 28px); border-bottom: 1px solid #e6eaf0; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.my-orders-drawer .section-heading h2 { margin: 0; color: #111827; font-size: clamp(22px, 5vw, 30px); line-height: 1.2; }
.my-orders-drawer .section-heading .eyebrow { display: none; }
.my-orders-drawer .section-heading > div:first-child { margin-inline-start: auto; }
.my-orders-drawer .my-orders-actions { flex: 0 1 auto; }
.my-orders-drawer #refreshMyOrders { min-height: 40px; padding: 8px 13px; border: 1px solid #f1bdc1; border-radius: 12px; background: #fff5f5; color: #b4232d; font-size: 13px; font-weight: 800; white-space: nowrap; }
.my-orders-drawer #refreshMyOrders:hover { background: #feecee; }
.my-orders-close { z-index: 6; inset-block-start: 17px; inset-inline-end: auto; inset-inline-start: 14px; width: 38px; height: 38px; }
.my-orders-drawer .track-result { margin-top: 0; }
.order-day-group { margin: 14px 0 18px; border-color: #e5e9ef; border-radius: 18px; box-shadow: none; }
.order-day-heading { min-height: 62px; padding: 14px 17px; background: #f4f6f8; font-size: 15px; }
.order-day-count { margin-inline-start: auto; font-size: 13px; }
.order-day-chevron { width: 32px; height: 32px; background: #fff; }
.order-day-content { padding: 10px; }
.order-day-content .order-card.order-card-polished, .track-result > .order-card.order-card-polished { box-sizing: border-box; display: grid; gap: 0; margin: 10px 0; padding: clamp(15px, 3.5vw, 24px); border: 1px solid #e4e8ee; border-inline-start: 1px solid #e4e8ee; border-radius: 19px; background: #fff; color: #17212d; line-height: 1.55; box-shadow: 0 4px 14px rgba(20,35,55,.07); }
.order-card-polished .order-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-card-polished .order-card-heading { display: grid; justify-items: end; gap: 8px; min-width: 0; }
.order-card-polished .order-card-heading > strong { color: #17212d; font-size: clamp(17px, 4vw, 21px); }
.order-card-polished .order-status-pill { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; padding: 6px 12px; border: 0; border-radius: 999px; background: #eaf7f0; color: #177247; font-size: 13px; font-weight: 800; }
.order-card-polished .order-timer { flex: 0 0 auto; margin: 0; padding: 8px 11px; border: 0; border-radius: 13px; background: #fff0f1; color: #b4232d; font-size: 13px; font-weight: 850; line-height: 1.4; }
.order-card-polished .order-timer.is-overdue { background: #ffeded; color: #b4232d; }
.order-card-meta { display: grid; gap: 9px; margin-top: 14px; color: #525d6b; font-size: 14px; }
.order-card-meta > span, .order-card-meta > time { min-width: 0; }
.order-fulfillment { font-weight: 700; }
.order-schedule { color: #525d6b; }
.order-address { display: grid; gap: 2px; overflow-wrap: anywhere; }
.order-address small { color: #7b8490; font-size: 12px; }
.order-created-at { color: #737d89; font-size: 13px; }
.order-total-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 13px 0; border-top: 1px solid #e5e9ef; border-bottom: 1px solid #e5e9ef; color: #17212d; font-size: 15px; }
.order-total-row strong { color: #b4232d; font-size: clamp(17px, 4.4vw, 21px); white-space: nowrap; }
.order-extra-info { display: flex; flex-wrap: wrap; gap: 7px 14px; padding-top: 10px; color: #626c78; font-size: 12px; }
.order-items-list { display: grid; margin: 0 0 8px; }
.order-item-row { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px 0; border-bottom: 1px solid #e9edf1; }
.order-item-row > img, .order-item-placeholder { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #f2f4f6; font-size: 24px; }
.order-item-copy { display: grid; gap: 3px; min-width: 0; color: #17212d; }
.order-item-copy strong { font-size: 15px; overflow-wrap: anywhere; }
.order-item-copy strong span { display: inline-block; color: #5f6874; font-size: 13px; font-weight: 700; }
.order-item-copy small { color: #707986; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.order-actions { display: grid; gap: 9px; margin-top: 12px; }
.order-actions > a, .order-actions > button { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 52px; margin: 0; padding: 11px 14px; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 800; text-align: center; cursor: pointer; text-decoration: none; }
.order-actions .order-call-shop { border: 1px solid #bd2734; background: #bd2734; color: #fff; }
.order-actions .order-call-shop:hover { background: #a91e2a; }
.order-actions .order-whatsapp-shop { border: 1px solid #168653; background: #eaf8f0; color: #12663e; }
.order-actions .order-whatsapp-shop:hover { background: #168653; color: #fff; }
.order-actions .order-delay-alert { border: 1px solid #c52b36; background: #fff; color: #b4232d; }
.order-actions .order-delay-alert:hover, .order-actions .order-delay-alert.is-sent { background: #fff0f1; color: #a71e29; }
.order-actions .order-repeat-button { border: 1px solid #e2e6ec; background: #fff; color: #293442; }
.order-actions .order-repeat-button:hover { background: #f7f8fa; }
.order-notifications { display: grid; grid-template-columns: minmax(0,1fr); gap: 3px; margin-top: 13px; padding: 12px 13px; border: 1px solid #e1e6ec; border-radius: 15px; background: #fff; }
.order-push-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 34px; padding: 0; border: 0; background: transparent; color: #17212d; font: inherit; font-size: 14px; font-weight: 800; text-align: start; cursor: pointer; }
.order-push-switch { position: relative; order: -1; flex: 0 0 48px; width: 48px; height: 28px; border-radius: 999px; background: #a9b0ba; transition: background .18s ease; }
.order-push-switch i { position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #0003; transition: transform .18s ease; }
.order-push-toggle.is-enabled .order-push-switch { background: #18a66a; }
.order-push-toggle.is-enabled .order-push-switch i { transform: translateX(20px); }
html[dir="ltr"] .order-push-toggle.is-enabled .order-push-switch i { transform: translateX(20px); }
.order-push-toggle:disabled { opacity: .65; cursor: wait; }
.order-notifications .order-push-hint { grid-row: 2; margin: 0; color: #6d7682; font-size: 12px; line-height: 1.55; }
.order-notifications .order-push-error { grid-row: 3; margin: 3px 0 0; font-size: 12px; }
.order-card-polished p { margin: 0; }
@media (max-width: 560px) {
  .my-orders-drawer { padding-inline: 12px; }
  .my-orders-drawer .section-heading { margin-inline: -12px; padding-inline: 12px; }
  .my-orders-drawer .section-heading h2 { font-size: 24px; }
  .my-orders-drawer #refreshMyOrders { min-height: 38px; padding-inline: 10px; font-size: 12px; }
  .my-orders-close { inset-inline-start: 10px; width: 34px; height: 34px; }
  .order-day-content { padding: 7px; }
  .order-card-polished .order-card-top { flex-direction: column-reverse; align-items: stretch; }
  .order-card-polished .order-card-heading { justify-items: end; }
  .order-card-polished .order-timer { justify-self: start; }
  .order-item-row > img, .order-item-placeholder { flex-basis: 50px; width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .order-push-switch, .order-push-switch i { transition: none; }
}
/* Keep the close control at the left and use a calm two-row mobile header. */
.my-orders-drawer .section-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.my-orders-drawer .section-heading > div:first-child { grid-row: 1; margin: 0; padding-inline-start: 42px; text-align: end; }
.my-orders-drawer .my-orders-actions { grid-row: 2; }
.my-orders-drawer #refreshMyOrders { min-width: min(100%, 250px); }
.my-orders-close { inset-inline-end: auto; inset-inline-start: 14px; }
html[dir="rtl"] .order-push-switch i { transform: translateX(-20px); }
html[dir="rtl"] .order-push-toggle.is-enabled .order-push-switch i { transform: none; }
html[dir="ltr"] .order-push-toggle.is-enabled .order-push-switch i { transform: translateX(20px); }

/* Uploaded promotional banners, each with its own dashboard display time. */
.featured-section { margin-block: 10px 28px; }
.featured-menu { min-width: 0; }
.menu-banner-slide { position: relative; overflow: hidden; aspect-ratio: 3 / 1; min-height: 200px; max-height: 430px; border-radius: 20px; background: #f4f0ec; box-shadow: var(--shadow-sm); }
.menu-banner-slide > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.featured-arrow { position: absolute; z-index: 2; top: 50%; width: 40px; height: 40px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid rgba(25,30,38,.1); border-radius: 50%; background: rgba(255,255,255,.94); color: #18202b; font: 25px/1 Arial, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.12); cursor: pointer; }
.featured-prev { inset-inline-start: 12px; }
.featured-next { inset-inline-end: 12px; }
.featured-dots { position: absolute; inset-inline-start: 50%; inset-block-end: 12px; display: flex; gap: 7px; transform: translateX(50%); padding: 7px 9px; border-radius: 99px; background: rgba(255,255,255,.85); }
html[dir="ltr"] .featured-dots { transform: translateX(-50%); }
.featured-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: #9b9fa6; cursor: pointer; transition: width .2s, background .2s; }
.featured-dot.active { width: 23px; background: var(--primary); }
@media (max-width: 650px) {
  .featured-section { margin-block: 8px 20px; }
  .menu-banner-slide { aspect-ratio: 750 / 420; min-height: 175px; border-radius: 15px; }
  .featured-arrow { width: 32px; height: 32px; }
  .featured-prev { inset-inline-start: 8px; }
  .featured-next { inset-inline-end: 8px; }
}
.modifier-limit-hint { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.modifier-clear { padding: 7px 12px; margin: 0 0 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); color: var(--muted-dark); cursor: pointer; }
.modifier-choice-image { width: 36px; height: 36px; flex: none; object-fit: cover; border-radius: 7px; }
.product-options label input:disabled:not(:checked) + span { opacity: .6; }
.menu-banner-slide { aspect-ratio: 1200 / 320; }
.menu-banner-slide picture { display:block; width:100%; height:100%; }
.menu-banner-slide picture img { width:100%; height:100%; object-fit:cover; display:block; }
.modifier-conditional-label { display:block; margin-top:4px; color:var(--muted); font-size:12px; font-weight:500; }


/* Clear customer feedback while the kitchen is preparing the order. */
.order-preparing-indicator {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 11px 0 2px;
  padding: 10px 12px;
  border: 1px solid #f2c3c8;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff7f7, #fff);
  color: #9f2530;
}
.order-preparing-indicator > span:last-child { display: grid; gap: 2px; min-width: 0; }
.order-preparing-indicator strong { font-size: 14px; }
.order-preparing-indicator small { color: #6f7480; font-size: 12px; line-height: 1.45; }
.order-preparing-pan {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(159, 37, 48, .13);
  font-size: 25px;
  transform-origin: 52% 68%;
  animation: order-pan-toss 1.45s ease-in-out infinite;
}
@keyframes order-pan-toss {
  0%, 100% { transform: rotate(-9deg) translateY(1px); }
  42% { transform: rotate(13deg) translateY(-3px); }
  62% { transform: rotate(4deg) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .order-preparing-pan { animation: none; }
}


/* Desktop fulfillment controls: make both choices visibly grouped and easy to scan. */
@media (min-width: 651px) {
  .fulfillment-bar { min-height:114px; box-sizing:border-box; display:grid; grid-template-columns:minmax(210px,.8fr) minmax(390px,1.2fr); gap:22px; align-items:center; padding:15px 18px; }
  .fulfillment-selector { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:5px; border:1px solid var(--border); border-radius:14px; background:#f6f7f9; }
  .fulfillment-btn { min-height:48px; border:1px solid transparent; border-radius:11px; font-size:14px; }
  .fulfillment-btn.active { border-color:var(--primary); background:var(--primary); box-shadow:0 5px 14px rgba(214,40,57,.22); }
  .delivery-timing-panel { min-height:114px; box-sizing:border-box; display:grid; grid-template-columns:minmax(210px,.7fr) minmax(420px,1.3fr); gap:22px; align-items:center; padding:16px 18px; }
  .delivery-timing-copy { min-width:0; }
  .delivery-timing-copy strong { font-size:15px; }
  .delivery-timing-copy small { font-size:12px; line-height:1.5; }
  .delivery-timing-controls { gap:10px; }
  .timing-choice-group { gap:9px; padding:4px; border:1px solid var(--border); border-radius:13px; background:#f6f7f9; }
  .timing-choice { min-height:46px; border-radius:10px; font-size:14px; }
  .home-schedule-fields select { min-height:44px; }
}
.menu-banner-slide { aspect-ratio:2 / 1; }
@media (max-width:650px) { .menu-banner-slide { aspect-ratio:750 / 420; } }
@media (max-width:650px) { .fulfillment-bar, .delivery-timing-panel { min-height:0; } }
.order-cancel-button { min-height:40px; padding:8px 13px; border:1px solid #e4a1a8; border-radius:10px; background:#fff7f7; color:#a9212d; font:inherit; font-weight:800; cursor:pointer; }
.order-cancel-button:disabled { opacity:.6; cursor:wait; }


/* Restaurant-at-work animation in customer order tracking */
.order-preparing-animation { position:relative; display:grid; place-items:center; flex:0 0 48px; width:48px; height:48px; border-radius:50%; background:#fff; box-shadow:0 3px 10px rgba(159,37,48,.13); }
.order-preparing-animation .order-preparing-pan { display:grid; place-items:center; width:40px; height:40px; font-size:27px; transform-origin:50% 65%; animation:order-pan-rock 1.15s ease-in-out infinite; }
.order-preparing-animation .order-preparing-egg { position:absolute; top:1px; right:0; font-size:17px; animation:order-egg-flip 1.15s ease-in-out infinite; }
.order-preparing-animation .order-preparing-sizzle { position:absolute; left:4px; top:6px; width:4px; height:4px; border-radius:50%; background:#df9b27; box-shadow:8px -4px 0 #df9b27, 15px 0 0 #df9b27; animation:order-sizzle 1.15s ease-out infinite; }
@keyframes order-pan-rock { 0%,100% { transform:rotate(-7deg) translateY(0); } 50% { transform:rotate(7deg) translateY(-2px); } }
@keyframes order-egg-flip { 0%,100% { transform:translateY(3px) rotate(-8deg); } 50% { transform:translateY(-6px) rotate(12deg); } }
@keyframes order-sizzle { 0%,100% { opacity:.18; transform:translateY(5px) scale(.8); } 50% { opacity:1; transform:translateY(-3px) scale(1.1); } }
.order-delivered-message { margin:10px 0 2px; padding:11px 14px; border:1px solid #b8e3cb; border-radius:13px; background:#f0fbf5; color:#187349; font-weight:800; text-align:center; }
@media (prefers-reduced-motion: reduce) { .order-preparing-animation * { animation:none !important; } }

/* Desktop promotional banner spans the menu grid but stays at a balanced size. */
.featured-menu > .menu-banner-slide {
  grid-column: 1 / -1;
  width: min(100%, 900px);
  max-height: 450px;
  margin-inline: auto;
}

/* Align desktop fulfillment panel with delivery timing panel. */
@media (min-width: 651px) {
  .fulfillment-bar {
    width: calc(100% - 24px);
    margin-inline-start: 24px;
    margin-inline-end: 0;
  }
}


/* Keep both desktop checkout panels and their segmented controls on one grid. */
@media (min-width: 651px) {
  .fulfillment-bar,
  .delivery-timing-panel {
    width: calc(100% - 48px);
    min-height: 114px;
    margin-inline: auto;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 22px;
    padding: 15px 18px;
  }

  .fulfillment-selector,
  .timing-choice-group {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f6f7f9;
  }

  .fulfillment-btn,
  .timing-choice {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 14px;
    line-height: 1.35;
  }

  .delivery-timing-controls {
    min-width: 0;
  }
}


/* Sale pricing: make the discounted price the primary reading point. */
.price-display {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 9px;
  vertical-align: baseline;
}
.price-before {
  color: var(--muted);
  font-size: .72em;
  font-weight: 500;
  text-decoration: line-through;
  white-space: nowrap;
}
.price-after { order: 1; color: var(--primary); font-weight: 900; white-space: nowrap; }
.price-display.has-discount .price-before { order: 2; }
.price-saving {
  order: 3;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid rgba(29, 132, 91, .14);
  border-radius: 999px;
  background: #eaf7f0;
  color: #18734d;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
.card-price .price-display.has-discount {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  max-width: 100%;
}
.card-price .price-display.has-discount .price-after { order: 1; font-size: 1.14em; }
.card-price .price-display.has-discount .price-before {
  order: 2;
  color: #626975;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
.card-price .price-display.has-discount .price-saving { order: 3; }
.modal-price .price-display { justify-content: flex-end; gap: 5px 8px; }
.cart-line-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.cart-line-price del { color: var(--muted); font-size: .9em; font-weight: 500; }
.cart-line-price > span { color: var(--primary); }


/* Keep the menu navigation visible and synced while browsing, like a food marketplace. */
@media (min-width: 651px) {
  .categories-panel {
    top: 82px;
    z-index: 30;
    max-height: calc(100vh - 98px);
    max-height: calc(100dvh - 98px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #e4b3b8 transparent;
  }
  .customer-menu-group { scroll-margin-top: 94px; }
}
@media (max-width: 650px) {
  .categories-panel {
    top: var(--customer-sticky-header-height, 60px);
    max-height: none;
    overflow: visible;
  }
  .customer-menu-group { scroll-margin-top: calc(var(--customer-sticky-header-height, 60px) + var(--customer-categories-height, 56px) + 8px); }
}


/* Keep mobile menu card actions inside the text column on narrow Android screens. */
@media (max-width: 650px) {
  .card-body { min-width: 0; }
  .card-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(76px, max-content);
    align-items: center;
    gap: 8px;
  }
  .card-footer .card-price {
    min-width: 0;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .card-footer .btn-add {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-inline: 7px;
    white-space: nowrap;
  }
}
@media (max-width: 390px) {
  .card-footer { grid-template-columns: minmax(0, 1fr); }
  .card-footer .card-price { text-align: right; }
  .card-footer .btn-add { justify-self: start; width: auto; min-width: 88px; }
}


/* Distinct customer-facing timer for minutes added by the restaurant. */
.order-time-extension {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin: 10px 0 2px;
  padding: 12px 14px;
  border: 1px solid #f2c977;
  border-radius: 14px;
  background: #fff8e8;
  color: #744b08;
  font-size: 14px;
  line-height: 1.5;
}
.order-time-extension strong { font-weight: 800; }
.order-time-extension [data-order-extra-timer] {
  direction: ltr;
  white-space: nowrap;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .order-time-extension { align-items: flex-start; flex-direction: column; gap: 4px; }
}

.delivery-location-field { display: grid; gap: 8px; margin-top: 14px; }
.delivery-location-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.delivery-location-heading strong { color: var(--text, #252525); }
#deliveryLocationMap { width: 100%; height: 300px; min-height: 240px; border: 1px solid #dedede; border-radius: 14px; overflow: hidden; z-index: 0; background: #eee; }
#deliveryLocationMap .leaflet-pane,
#deliveryLocationMap .leaflet-tile,
#deliveryLocationMap .leaflet-marker-icon,
#deliveryLocationMap .leaflet-marker-shadow { max-width: none !important; max-height: none !important; }
#deliveryLocationMap .leaflet-container img { max-width: none !important; max-height: none !important; }
#deliveryLocationMap .leaflet-control-zoom a { display: block; width: 30px; height: 30px; line-height: 30px; padding: 0; text-align: center; box-sizing: content-box; }
#deliveryLocationMap .leaflet-control-attribution { font-size: 10px; }
#deliveryLocationStatus { min-height: 1.2em; margin: 0; }
@media (max-width: 600px) {
  #deliveryLocationMap { height: 260px; }
  .delivery-location-heading .btn { width: 100%; }
}
 .order-delivery-pin{display:grid;gap:4px;margin:10px 0;padding:12px;border:1px solid #f2c65d;border-radius:12px;background:#fff8df;color:#684b0d}.order-delivery-pin strong{font-size:22px;letter-spacing:3px}.order-delivery-pin small{font-size:12px}
.sandbox-payment-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}.sandbox-payment-actions button{border:0;border-radius:10px;padding:10px 12px;background:#a51f2b;color:#fff;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.sandbox-payment-actions button+button{background:#ede7e4;color:#433c3d}.sandbox-payment-actions button:disabled{opacity:.5;cursor:wait}



/* Staging trial: orange action buttons with black labels. */
html body button#cartBtn,
html body button#myOrdersBtn,
html body button.cart-btn,
html body button.my-orders-btn,
html body button.fulfillment-btn.active,
html body button.timing-choice.active,
html body button.cat-btn.active,
html body button.btn-add,
html body button.btn-primary,
html body button.btn-secondary,
html body button.checkout-btn,
html body button.mobile-cart-bar {
  color: #17191d !important;
  background: #f5a623 !important;
  border-color: #f5a623 !important;
  box-shadow: 0 5px 13px rgba(120, 75, 0, .16) !important;
}
html body button#cartBtn:hover,
html body button#myOrdersBtn:hover,
html body button.cart-btn:hover,
html body button.my-orders-btn:hover,
html body button.fulfillment-btn.active:hover,
html body button.timing-choice.active:hover,
html body button.cat-btn.active:hover,
html body button.btn-add:hover,
html body button.btn-primary:hover:not(:disabled),
html body button.btn-secondary:hover,
html body button.checkout-btn:hover,
html body button.mobile-cart-bar:hover {
  color: #17191d !important;
  background: #e89412 !important;
  border-color: #e89412 !important;
}
html body button#cartBtn .badge { color: #b76b00 !important; background: #fff !important; }
