/* ============================================================
   App-style menu layer (@since 1.5.21)
   Loaded only on the standalone /menu/ page, after rl-menu.css.
   Purely visual — ordering, cart, checkout and points logic are
   untouched. Everything is scoped to body.rl-menu-page.
   ============================================================ */

body.rl-menu-page {
  --rla-top: 57px;              /* sticky offset under the top bar (set by JS) */
  --rla-green: #1BA672;
  --rla-ink: #1A1A1A;
  --rla-soft: #F4F1EE;
  padding-bottom: 96px;          /* room for the bottom cart bar */
}

/* ── Compact header ─────────────────────────────────────────── */
.rl-menu-page .rla-head { background: #fff; border-bottom: 1px solid var(--m-border); }
.rl-menu-page .rla-head-inner { max-width: 1100px; margin: 0 auto; padding: 16px 16px 14px; }
.rl-menu-page .rla-title {
  font-family: var(--m-font-h); font-size: 22px; font-weight: 700;
  color: var(--rla-ink); margin: 0 0 4px; line-height: 1.25;
}
.rl-menu-page .rla-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: #444; margin-bottom: 12px;
}
.rl-menu-page .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap; margin: 0; padding: 0;
}
.rl-menu-page .rla-dot { color: #BBB; }
.rl-menu-page .rla-open { color: var(--rla-green); }
.rl-menu-page .rla-closed { color: #C0392B; }
.rl-menu-page .rla-search { max-width: none; margin: 0; }
.rl-menu-page .rla-search input {
  background: var(--rla-soft); box-shadow: none; border: 1px solid var(--m-border);
  border-radius: 12px; padding: 12px 44px 12px 16px;
}
.rl-menu-page .rla-search input:focus { background: #fff; border-color: var(--m-accent); box-shadow: none; }

/* ── Offers strip (auto-scrolling) ──────────────────────────── */
.rl-menu-page .rla-offers {
  background: #FFF1EA; border-bottom: 1px solid #F6DCCD;
  overflow: hidden; white-space: nowrap; position: relative;
}
.rl-menu-page .rla-offers-track {
  display: inline-flex; gap: 10px; padding: 9px 0;
  animation: rla-marquee 26s linear infinite;
}
.rl-menu-page .rla-offer {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: #fff; border: 1px dashed #F0B79C; border-radius: 100px;
  padding: 5px 14px; font-size: 12.5px; font-weight: 700; color: #B84520;
}
@keyframes rla-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .rl-menu-page .rla-offers { overflow-x: auto; }
  .rl-menu-page .rla-offers-track { animation: none; padding-left: 12px; }
}

/* ── Sticky category chips (mobile) ─────────────────────────── */
.rl-menu-page .rl-menu-tabs-mobile {
  position: sticky; top: var(--rla-top); z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.rl-menu-page .rl-tab-pill { padding: 7px 14px; font-size: 12.5px; }

/* ── Order again ────────────────────────────────────────────── */
.rl-menu-page .rla-again {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: #fff; border: 1px solid var(--m-border); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 16px; color: var(--rla-ink);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.rl-menu-page .rla-again-icon {
  width: 38px; height: 38px; border-radius: 10px; background: #FDF0EB;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.rl-menu-page .rla-again-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rl-menu-page .rla-again-title { font-size: 13.5px; font-weight: 700; }
.rl-menu-page .rla-again-items { font-size: 12px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-menu-page .rla-again-cta { font-size: 13px; font-weight: 800; color: var(--m-accent); white-space: nowrap; }

/* ── Recommended row ────────────────────────────────────────── */
.rl-menu-page .rla-reco { margin-bottom: 14px; }
.rl-menu-page .rla-reco[hidden] { display: none; }
.rl-menu-page .rla-reco-title {
  font-family: var(--m-font-h); font-size: 18px; font-weight: 700; margin: 0 0 10px; color: var(--rla-ink);
}
.rl-menu-page .rla-reco-row {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 16px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rl-menu-page .rla-reco-row::-webkit-scrollbar { display: none; }
.rl-menu-page .rla-reco-card {
  flex: 0 0 150px; scroll-snap-align: start; background: #fff;
  border: 1px solid var(--m-border); border-radius: 14px; overflow: visible;
  box-shadow: 0 1px 6px rgba(0,0,0,.05); display: flex; flex-direction: column;
}
.rl-menu-page .rla-reco-img { position: relative; height: 112px; border-radius: 14px 14px 0 0; overflow: hidden; background: var(--rla-soft); }
.rl-menu-page .rla-reco-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-menu-page .rla-reco-body { padding: 8px 10px 0; flex: 1; }
.rl-menu-page .rla-reco-name {
  font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--rla-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px;
}
.rl-menu-page .rla-reco-price { font-size: 13px; font-weight: 800; color: var(--rla-ink); margin-top: 4px; }
.rl-menu-page .rla-reco-foot { padding: 8px 10px 10px; display: flex; justify-content: flex-end; }
.rl-menu-page .rla-reco-foot .rl-add-btn,
.rl-menu-page .rla-reco-foot .rla-step { width: 90px; height: 34px; font-size: 14px; }

/* ── Filter chips ───────────────────────────────────────────── */
.rl-menu-page .rla-filters {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none;
}
.rl-menu-page .rla-filters::-webkit-scrollbar { display: none; }
.rl-menu-page .rla-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #DDD6D0; border-radius: 10px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 600; color: #444;
  cursor: pointer; font-family: var(--m-font-b); white-space: nowrap;
}
.rl-menu-page .rla-chip[aria-pressed="true"] { background: #FDF0EB; border-color: var(--m-accent); color: var(--m-accent); }
.rl-menu-page .rla-chip.rla-veg[aria-pressed="true"] { background: #EAF7EF; border-color: var(--rla-green); color: var(--rla-green); }
.rl-menu-page .rla-veg-box {
  width: 13px; height: 13px; border: 2px solid var(--rla-green); border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
}
.rl-menu-page .rla-veg-box::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--rla-green); }
.rl-menu-page .rla-chip[hidden] { display: none; }
.rl-menu-page .rla-nomatch { text-align: center; color: #888; font-size: 14px; padding: 30px 10px; }
.rl-menu-page .rla-nomatch[hidden] { display: none; }
.rl-menu-page .rla-nomatch button {
  background: none; border: none; color: var(--m-accent); font-weight: 700; cursor: pointer; font-size: 14px; font-family: inherit;
}

/* Filtered-out cards / emptied sections */
.rl-menu-page .rl-product-card.rla-hide,
.rl-menu-page .rl-menu-category-section.rla-empty { display: none !important; }

/* ── Product cards: Swiggy-style ────────────────────────────── */
.rl-menu-page .rl-menu-category-title {
  font-family: var(--m-font-b); font-size: 17px; font-weight: 800;
  border-bottom: none; padding-bottom: 0; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
  scroll-margin-top: calc(var(--rla-top) + 60px);
}
.rl-menu-page .rl-menu-category-section { scroll-margin-top: calc(var(--rla-top) + 60px); margin-bottom: 26px; }
.rl-menu-page .rl-product-card {
  align-items: flex-start; padding: 16px 14px 22px; margin-bottom: 10px;
  border-radius: 16px; box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.rl-menu-page .rl-product-card:hover { transform: none; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.rl-menu-page .rl-product-name { font-size: 15.5px; font-weight: 700; }
.rl-menu-page .rl-product-price { font-size: 15px; font-weight: 800; color: var(--rla-ink); }
.rl-menu-page .rl-product-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px; font-size: 12.5px; color: #7A7470;
}
.rl-menu-page .rl-product-desc.rla-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.rl-menu-page .rla-more {
  background: none; border: none; padding: 0; margin: 0 0 8px; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: #555; font-family: inherit;
}

/* Image column: photo with the ADD button overlapping its bottom edge */
.rl-menu-page .rl-product-card > div:last-child { position: relative; padding-bottom: 14px; }
.rl-menu-page .rl-product-image-wrap { width: 122px; height: 112px; border-radius: 14px; }
.rl-menu-page .rl-add-btn-wrap {
  position: absolute !important; left: 50%; bottom: 0 !important; right: auto !important;
  transform: translateX(-50%);
}
.rl-menu-page .rl-add-btn,
.rl-menu-page .rla-step {
  width: 96px; height: 36px; justify-content: center;
  background: #fff; color: var(--rla-green); border: 1px solid #D9D9D9;
  border-radius: 10px; font-size: 15px; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; box-shadow: 0 3px 10px rgba(0,0,0,.10);
  white-space: nowrap; padding: 0 8px;
}
.rl-menu-page .rl-add-btn:hover { background: #F6FFFA; color: var(--rla-green); }
.rl-menu-page .rl-add-btn.rla-hidden { display: none !important; }
.rl-menu-page .rla-step {
  display: flex; align-items: center; justify-content: space-between; padding: 0; overflow: hidden;
}
.rl-menu-page .rla-step button {
  background: none; border: none; width: 32px; height: 100%; cursor: pointer;
  color: var(--rla-green); font-size: 19px; font-weight: 800; font-family: inherit; line-height: 1;
}
.rl-menu-page .rla-step span { font-size: 14.5px; font-weight: 800; color: var(--rla-green); }

/* Badges */
.rl-menu-page .rl-badge { border-radius: 6px; text-transform: none; letter-spacing: 0; font-size: 11px; padding: 2px 8px; }
.rl-menu-page .rl-badge-musttry { background: #FFEDE5; color: #D4501E; }
.rl-menu-page .rl-badge-choice  { background: #FFF6D9; color: #9A6B00; }

/* ── Bottom cart bar ────────────────────────────────────────── */
.rl-menu-page .rl-cart-float {
  left: 12px; right: 12px; bottom: 12px; width: auto; max-width: 560px; margin: 0 auto;
  border-radius: 14px; padding: 14px 18px; justify-content: center; font-size: 15px;
  background: var(--rla-green); box-shadow: 0 8px 24px rgba(27,166,114,.35);
}
.rl-menu-page .rl-cart-float:hover { background: #158F61; transform: none; }

/* ── Floating "Menu" button + category sheet ────────────────── */
.rl-menu-page .rla-fab {
  position: fixed; right: 16px; bottom: 20px; z-index: 998;
  background: #1E1E1E; color: #fff; border: none; border-radius: 100px;
  padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: var(--m-font-b); box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
@media (min-width: 769px) { .rl-menu-page .rla-fab { display: none; } } /* sidebar covers this on desktop */
body.rl-menu-page.rla-has-cart .rla-fab { bottom: 84px; }
body.rl-menu-page.rla-searching .rla-fab { display: none; }
.rl-menu-page .rla-sheet { position: fixed; inset: 0; z-index: 997; background: rgba(0,0,0,.35); }
.rl-menu-page .rla-sheet[hidden] { display: none; }
.rl-menu-page .rla-sheet-card {
  position: absolute; right: 16px; bottom: 74px; width: min(300px, calc(100vw - 32px));
  max-height: 60vh; overflow-y: auto; background: #1E1E1E; border-radius: 16px; padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
body.rl-menu-page.rla-has-cart .rla-sheet-card { bottom: 138px; }
.rl-menu-page .rla-sheet-item {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: none; border: none; color: #fff; padding: 11px 18px; font-size: 14px;
  font-family: var(--m-font-b); cursor: pointer; text-align: left;
}
.rl-menu-page .rla-sheet-item:hover { background: rgba(255,255,255,.08); }
.rl-menu-page .rla-sheet-count { color: rgba(255,255,255,.6); font-size: 13px; }

/* ── Small screens ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .rl-menu-page .rl-menu-products { padding: 14px 12px; }
  .rl-menu-page .rl-product-card { padding: 14px 12px 20px; }
  .rl-menu-page .rl-product-image-wrap { width: 112px; height: 104px; }
  .rl-menu-page .rl-cart-float { left: 10px; right: 10px; bottom: 10px; }
}

/* ════════════════════════════════════════════════════════════════
   Colour theme — "Rich brand orange" (@since 1.5.25)
   Pure styling layer on top of everything above; no layout or
   behaviour changes. Delete this block to get the old look back.
   ════════════════════════════════════════════════════════════════ */
.rl-menu-page {
  --rlt-o1: #F2733A;            /* orange light */
  --rlt-o2: #D4461E;            /* orange deep  */
  --rlt-cream: #FFF6EE;
  --rlt-gold: #F5B82E;
  --rlt-gold-bg: #FFF4D6;
  --rlt-green: #1BA672;
  --rlt-red: #E23744;
}
body.rl-menu-page, .rl-menu-page .rl-menu-root { background: var(--rlt-cream); }

/* Top bar */
body.rl-menu-page > nav {
  background: linear-gradient(120deg, var(--rlt-o1) 0%, var(--rlt-o2) 100%) !important;
  border-bottom: none !important;
  box-shadow: 0 4px 16px rgba(212, 70, 30, .28);
}

/* Offer chips — solid, colourful */
.rl-menu-page .rla-offers { background: linear-gradient(180deg, #FFF0E4 0%, var(--rlt-cream) 100%); border-color: #FBE0CC; }
.rl-menu-page .rla-offer {
  border: none; color: #fff; font-weight: 700;
  background: linear-gradient(120deg, #22B57A, #138A5C);
  box-shadow: 0 3px 10px rgba(27, 166, 114, .25);
}
.rl-menu-page .rla-offer:nth-child(even) {
  background: linear-gradient(120deg, #FFC542, #F29A0F); color: #4A2A00;
  box-shadow: 0 3px 10px rgba(242, 154, 15, .28);
}

/* Category pills */
.rl-menu-page .rl-tab-pill { background: #fff; border-color: #F0DDD0; color: #5A4A42; }
.rl-menu-page .rl-tab-pill.active {
  background: linear-gradient(120deg, var(--rlt-o1), var(--rlt-o2)); border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(212, 70, 30, .30);
}
.rl-menu-page .rl-tab-pill[data-cat="special"]:not(.active) { background: var(--rlt-gold-bg); border-color: #F6D98A; color: #7A5200; font-weight: 700; }
.rl-menu-page .rl-cat-item.active { background: #FFEADF; border-left-color: var(--rlt-o2); color: var(--rlt-o2); }

/* Section headings */
.rl-menu-page .rla-reco-title, .rl-menu-page .rl-menu-category-title { position: relative; }
.rl-menu-page .rla-reco-title::after {
  content: ''; display: block; width: 44px; height: 4px; border-radius: 4px; margin-top: 6px;
  background: linear-gradient(90deg, var(--rlt-o1), var(--rlt-gold));
}
.rl-menu-page [data-cat-section="special"] > .rl-menu-category-title {
  background: linear-gradient(120deg, #FFF1C9, #FFE2A8); border-radius: 14px; padding: 10px 12px; color: #6B4500;
}

/* Recommended cards */
.rl-menu-page .rla-reco-card { border-color: #F3E3D8; box-shadow: 0 6px 18px rgba(170, 80, 30, .10); }
.rl-menu-page .rla-reco-price { color: var(--rlt-o2); }

/* Dish cards */
.rl-menu-page .rl-product-card { border-color: #F3E5DB; box-shadow: 0 4px 14px rgba(170, 80, 30, .07); }
.rl-menu-page .rl-product-earn { background: var(--rlt-gold-bg); color: #8A5A00; }

/* ADD button + stepper — green, food-app style */
.rl-menu-page .rl-add-btn { border-color: #BFE8D6; color: var(--rlt-green); box-shadow: 0 3px 10px rgba(27, 166, 114, .16); }
.rl-menu-page .rla-step { background: var(--rlt-green); border-color: var(--rlt-green); }
.rl-menu-page .rla-step button, .rl-menu-page .rla-step span { color: #fff; }

/* Badges */
.rl-menu-page .rl-badge-bestseller { background: linear-gradient(120deg, #FFD45C, #F5A623); color: #4A2A00; }
.rl-menu-page .rl-badge-musttry    { background: linear-gradient(120deg, #FF7A45, #E2441E); color: #fff; }
.rl-menu-page .rl-badge-choice     { background: linear-gradient(120deg, #FF7EB3, #D9437E); color: #fff; }
.rl-menu-page .rl-badge-trending   { background: #FFE4DA; color: #C2410C; }

/* Floating Menu button */
.rl-menu-page .rla-fab { background: linear-gradient(120deg, #3A2418, #1E120B); box-shadow: 0 6px 18px rgba(30, 18, 11, .35); }

/* ── Veg / Non-veg toggles ──────────────────────────────────── */
.rl-menu-page .rla-chip.rla-tgl { gap: 7px; padding: 6px 8px 6px 11px; border-radius: 12px; }
.rl-menu-page .rla-nv-box {
  width: 13px; height: 13px; border: 2px solid var(--rlt-red); border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
}
.rl-menu-page .rla-nv-box::after {
  content: ''; width: 0; height: 0;
  border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 6px solid var(--rlt-red);
}
.rl-menu-page .rla-switch {
  position: relative; width: 30px; height: 17px; border-radius: 17px; background: #D9D2CC;
  flex-shrink: 0; transition: background .2s;
}
.rl-menu-page .rla-switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s;
}
.rl-menu-page .rla-tgl[aria-pressed="true"] .rla-switch::after { transform: translateX(13px); }
.rl-menu-page .rla-veg[aria-pressed="true"] .rla-switch { background: var(--rlt-green); }
.rl-menu-page .rla-chip.rla-nonveg[aria-pressed="true"] { background: #FDECEE; border-color: var(--rlt-red); color: var(--rlt-red); }
.rl-menu-page .rla-nonveg[aria-pressed="true"] .rla-switch { background: var(--rlt-red); }

/* ── Empty cart extras (@since 1.5.26) ──────────────────────── */
.rl-menu-page .rl-cart-empty.rla-empty-compact { padding: 28px 16px 14px; }
.rl-menu-page .rla-empty-extra { padding: 0 2px 16px; }
.rl-menu-page .rla-empty-browse {
  display: block; width: 100%; padding: 12px; border-radius: 12px; border: 1.5px solid #F3C9B5;
  background: #fff; color: #D4461E; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit;
}
.rl-menu-page .rla-empty-title { font-size: 13px; font-weight: 800; color: #6B4500; margin: 18px 0 8px; }
.rl-menu-page .rla-empty-item {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #F3E5DB;
  border-radius: 12px; padding: 8px; margin-bottom: 8px;
}
.rl-menu-page .rla-empty-item img, .rl-menu-page .rla-empty-noimg {
  width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: #F7F1EC; font-size: 22px;
}
.rl-menu-page .rla-empty-info { flex: 1; min-width: 0; }
.rl-menu-page .rla-empty-name { font-size: 13px; font-weight: 700; color: #1A1A1A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-menu-page .rla-empty-price { font-size: 12.5px; font-weight: 700; color: #D4461E; margin-top: 2px; }
.rl-menu-page .rla-empty-add {
  flex-shrink: 0; background: #fff; color: #1BA672; border: 1.5px solid #BFE8D6; border-radius: 9px;
  padding: 7px 12px; font-weight: 800; font-size: 12px; cursor: pointer; font-family: inherit;
}

/* ── Free-delivery gap filler (@since 1.5.27) ───────────────── */
.rl-menu-page .rla-gap { margin: -4px 16px 14px; }
.rl-menu-page .rla-gap[hidden] { display: none; }
.rl-menu-page .rla-gap-title { font-size: 12.5px; font-weight: 800; color: #138A5C; margin: 0 0 8px; }
.rl-menu-page .rla-gap-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rl-menu-page .rla-gap-row::-webkit-scrollbar { display: none; }
.rl-menu-page .rla-gap-card {
  flex: 0 0 128px; background: #fff; border: 1px solid #DDEFE6; border-radius: 12px; padding: 7px;
  display: flex; flex-direction: column; gap: 5px; box-shadow: 0 3px 10px rgba(27,166,114,.08);
}
.rl-menu-page .rla-gap-card img, .rl-menu-page .rla-gap-noimg {
  width: 100%; height: 66px; border-radius: 8px; object-fit: cover; background: #F4F8F6;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.rl-menu-page .rla-gap-name { font-size: 12px; font-weight: 700; color: #1A1A1A; line-height: 1.25; height: 30px; overflow: hidden; }
.rl-menu-page .rla-gap-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.rl-menu-page .rla-gap-price { font-size: 12.5px; font-weight: 800; color: #D4461E; }
.rl-menu-page .rla-gap-add {
  background: #1BA672; color: #fff; border: none; border-radius: 7px; padding: 5px 8px;
  font-size: 11px; font-weight: 800; cursor: pointer; font-family: inherit;
}

/* ── "We're closed" notice (@since 1.5.29) ─────────────────── */
.rla-closed {
  background: #FFF4D6; border: 1px solid #F6D98A; color: #6B4500; border-radius: 12px;
  padding: 10px 12px; font-size: 13px; line-height: 1.45; margin: 12px 16px 0;
}
#rl-step-details .rla-closed { margin: 0 0 14px; }
.rla-closed, .rla-closed strong { color: #6B4500 !important; }
