/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap');

/* ── LMR TOKENS ── */
:root {
  --lmr-navy:   #1E3059;
  --lmr-blue:   #1a6fd4;
  --lmr-accent: #00A1E4;
  --lmr-green:  #1aaa55;
  --lmr-gold:   #f5a623;
  --lmr-red:    #e53935;
  --lmr-page:   #f0f3f9;
  --lmr-card:   #ffffff;
  --lmr-div:    #e4e9f2;
  --lmr-pill:   #eef3fb;
  --lmr-pill2:  #eef0f5;
  --lmr-t1:     #0e2044;
  --lmr-t2:     #5a6a88;
  --lmr-t3:     #8a9ab8;
  --lmr-shadow: 0 1px 10px rgba(14,32,68,0.08);
  --lmr-radius: 12px;
}

/* ── PAGE TITLE (existing .lm-page-header sits above) ── */
.lmr-page-title {
  font-family: 'Jost', sans-serif;
  font-size: 20px; font-weight: 700;
  color: #fff; letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center; padding: 20px 0 0;
  background: var(--lmr-navy);
}

/* ── OUTER SHELL ── */
/* Instead of fighting .lm-page's max-width/centering with
   negative margins (causes scroll bugs), we override the
   parent containers directly using a body class.
   The PHP sets a class on .lm-page via a wrapper div.     */
.lmr-shell {
  position: relative;
  background: var(--lmr-page);
  font-family: 'Jost', 'Futura', 'Trebuchet MS', sans-serif;
  min-height: 100vh;
}
.lmr-back-bar {
  background: var(--lmr-navy);
  padding: 12px 32px 0;
}

/* Override .lm-page constraints when merchant redesign is active */
.lmr-page-override {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Override .lm-main-content padding when merchant redesign is active */
.lmr-main-override {
  padding: 0 !important;
}

/* ── HERO ── */
.lmr-hero { background: #1E3059; padding: 28px 36px 0; }
.lmr-hero-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.lmr-store-icon {
  width: 66px; height: 66px; border-radius: 15px; flex-shrink: 0;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.lmr-store-icon i { font-size: 28px; color: rgba(255,255,255,0.65); }
.lmr-store-icon img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 5px;
    position: relative;
}
.lmr-hero-name { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.3px; margin-bottom: 3px; }
.lmr-hero-addr { font-size: 13px; color: rgba(255,255,255,0.42); margin-bottom: 10px; }
.lmr-hero-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.lmr-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 7px;
  padding: 5px 12px; font-size: 12.5px; font-weight: 600;
  color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.05);
}
.lmr-chip-open { border-color: rgba(26,170,85,0.4); color: #4cdb87; background: rgba(26,170,85,0.08); }

/* ── PAGE TABS ── */
.lmr-page-tabs { display: flex; padding: 0 36px; }
.lmr-ptab {
  padding: 13px 20px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); border-bottom: 2px solid transparent;
  cursor: pointer; transition: all .15s;
}
.lmr-ptab.active { color: #fff; border-bottom-color: #00A1E4; }

/* ── BODY: center + right side-by-side ── */
/* Use a column background trick: the right panel column gets
   white background via the grid parent, so it fills height
   without min-height causing empty space.                  */
.lmr-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  /* Paint the right-column background directly on the grid so
     it fills the full column height without any extra element */
  background: linear-gradient(to right,
    var(--lmr-page) calc(100% - 280px),
    var(--lmr-card) calc(100% - 280px)
  );
}

/* ── CENTER ── */
.lmr-center { padding: 32px 40px 100px; }

/* ── SECTION HEADING ── */
.lmr-sh {
  font-size: 14px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--lmr-t3);
  margin: 32px 0 14px; display: flex; align-items: center; gap: 8px;
}
.lmr-sh:first-child { margin-top: 0; }
.lmr-sh::after { content: ''; flex: 1; height: 1px; background: var(--lmr-div); }

/* ── TOGGLE ── */
.lmr-mtog {
  display: flex; background: #dde2ee; border-radius: 10px;
  padding: 4px; gap: 4px; margin-bottom: 16px;
}
.lmr-mtbtn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 16px; font-family: 'Jost', sans-serif;
  font-size: 13.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--lmr-t2); border: none; border-radius: 8px;
  background: transparent; cursor: pointer; transition: all .18s;
}
.lmr-mtbtn svg { flex-shrink: 0; }
.lmr-mtbtn.on { background: #1E3059; color: #fff; box-shadow: 0 1px 8px rgba(30,48,89,0.28); }
.lmr-mtbtn.on svg { filter: brightness(0) invert(1); }

/* ── PANELS ── */
.lmr-panel { display: none; }
.lmr-panel.on { display: block; }
.lmr-items-panel { display: none; }
.lmr-items-panel.on { display: block; }

/* ── SERVICE CARDS ── */
.lmr-svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.lmr-svc-card {
  background: var(--lmr-card); border: 1px solid var(--lmr-div);
  border-radius: var(--lmr-radius); overflow: hidden; box-shadow: var(--lmr-shadow);
}
.lmr-svc-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 17px; border-bottom: 1px solid var(--lmr-div);
}
.lmr-svc-ico {
  width: 34px; height: 34px; background: var(--lmr-pill2);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.lmr-svc-nm  { font-size: 14px; font-weight: 700; color: var(--lmr-t1); }
.lmr-svc-sub { font-size: 11px; color: var(--lmr-t3); margin-top: 1px; }
.lmr-svc-tiers { padding: 11px 15px; display: flex; flex-direction: column; gap: 6px; }
.lmr-tier {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 8px; background: #f4f6fb;
}
.lmr-tier-l { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--lmr-t2); }
.lmr-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.lmr-dot-b { background: var(--lmr-blue); }
.lmr-dot-g { background: var(--lmr-green); }
.lmr-dot-y { background: var(--lmr-gold); }
.lmr-dot-p { background: #8e44ad; }
.lmr-dot-o { background: #e67e22; }
.lmr-tier-p    { font-size: 14px; font-weight: 700; color: var(--lmr-t1); }
.lmr-tier-p.hi { color: var(--lmr-blue); }
.lmr-svc-min { font-size: 11px; color: var(--lmr-t3); padding: 0 15px 4px; }
.lmr-wt-block { margin: 0 15px 12px; border-top: 1px dashed #e4e9f2; padding-top: 8px; }
.lmr-wt-lbl   { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lmr-t3); margin-bottom: 5px; }
.lmr-wt-row   { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #f4f6fb; font-size: 12.5px; }
.lmr-wt-row:last-child { border-bottom: none; }
.lmr-wt-range { color: var(--lmr-t2); }
.lmr-wt-price { font-weight: 700; color: var(--lmr-t1); }

/* ── ITEM CATEGORIES ── */
.lmr-items-block {
  background: var(--lmr-card); border: 1px solid var(--lmr-div);
  border-radius: var(--lmr-radius); overflow: hidden; box-shadow: var(--lmr-shadow);
}
.lmr-cat-sect { border-bottom: 1px solid var(--lmr-div); }
.lmr-cat-sect:last-child { border-bottom: none; }
.lmr-cat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 17px; cursor: pointer; transition: background .12s; user-select: none;
}
.lmr-cat-head:hover { background: #f6f8fc; }
.lmr-cat-ico {
  width: 28px; height: 28px; background: var(--lmr-pill2);
  border-radius: 7px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.lmr-cat-name  { font-size: 14px; font-weight: 700; color: var(--lmr-t1); flex: 1; }
.lmr-cat-count { font-size: 13px; color: var(--lmr-t3); font-weight: 500; margin-right: 4px; }
.lmr-cat-chev  { transition: transform .2s; display: flex; align-items: center; }
.lmr-cat-chev.open { transform: rotate(180deg); }
.lmr-cat-items { display: none; }
.lmr-cat-items.open { display: block; }
.lmr-item-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 17px 11px 54px; border-top: 1px solid #f1f3f9;
}
.lmr-item-nm { font-size: 13.5px; color: var(--lmr-t2); }
.lmr-item-pr { font-size: 13.5px; font-weight: 700; color: var(--lmr-t1); }
.lmr-cat-count { font-size: 13px; color: var(--lmr-t3); font-weight: 500; margin-right: 4px; }
.lmr-cat-chev  { transition: transform .2s; display: flex; align-items: center; }
.lmr-cat-chev.open { transform: rotate(180deg); }
.lmr-cat-items { display: none; }
.lmr-cat-items.open { display: block; }
.lmr-item-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 17px 11px 54px; border-top: 1px solid #f1f3f9;
}
.lmr-item-nm { font-size: 13.5px; color: var(--lmr-t2); }
.lmr-item-pr { font-size: 13.5px; font-weight: 700; color: var(--lmr-t1); }

/* ── ICON CARD GRID ── */
.lmr-icon-grid { display: flex; gap: 8px; margin-bottom: 0; }
.lmr-icard {
  flex: 1; background: var(--lmr-card); border: 1.5px solid var(--lmr-div);
  border-radius: 10px; padding: 16px 8px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer; transition: all .2s; position: relative; min-width: 0;
  box-shadow: var(--lmr-shadow); user-select: none;
}
.lmr-icard:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(14,32,68,0.12); }
.lmr-icard.active {
  border-color: transparent; background: #1E3059;
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,48,89,0.25);
}
.lmr-icard-bg {
  width: 40px; height: 40px; border-radius: 9px; background: var(--lmr-pill2);
  display: flex; align-items: center; justify-content: center;
}
.lmr-icard-lbl { font-size: 11px; font-weight: 700; text-align: center; color: var(--lmr-t2); line-height: 1.3; }
.lmr-icard.active .lmr-icard-lbl { color: rgba(255,255,255,0.85); }
.lmr-icard.active::after {
  content: ''; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 7px solid #1E3059; z-index: 2;
}

/* Expand panel */
.lmr-icpanel {
  background: var(--lmr-card); border: 1px solid var(--lmr-div);
  border-radius: 10px; overflow: hidden; max-height: 0; opacity: 0;
  box-shadow: var(--lmr-shadow);
  transition: max-height .3s ease, opacity .25s ease, margin-top .25s ease;
  margin-top: 0;
}
.lmr-icpanel.open { max-height: 600px; opacity: 1; margin-top: 12px; }
.lmr-icph {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-bottom: 1px solid var(--lmr-div); background: #f8f9fd;
}
.lmr-icph-ico {
  width: 24px; height: 24px; background: #1E3059;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.lmr-icph-title { font-size: 13px; font-weight: 700; color: var(--lmr-t1); }
.lmr-icrow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid #f1f3f9;
}
.lmr-icrow:last-child { border-bottom: none; }
.lmr-icrow-nm { font-size: 13px; color: var(--lmr-t2); }
.lmr-icrow-pr { font-size: 13px; font-weight: 700; color: var(--lmr-t1); }

/* ── RIGHT PANEL ── */
/* No min-height needed — the grid background fills the column.
   Sticky so it locks at top while center content scrolls.   */
.lmr-right {
  background: transparent; /* grid background paints the column */
  border-left: 1px solid var(--lmr-div);
  padding: 26px 22px 110px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  align-self: start;
}

/* Ensure .lm-main-content fills full height */
.lmr-main-override {
  padding: 0 !important;
  min-height: 100vh !important;
}

.lmr-shell { background: var(--lmr-page); }
.lmr-ra-name  { font-size: 15px; font-weight: 800; color: var(--lmr-t1); margin-bottom: 4px; }
.lmr-ra-desc  { font-size: 12px; color: var(--lmr-t2); line-height: 1.65; margin-bottom: 14px; }
.lmr-ra-div   { height: 1px; background: var(--lmr-div); margin-bottom: 14px; }
.lmr-ra-row   { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; }
.lmr-ra-lbl   { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lmr-t3); margin-bottom: 2px; }
.lmr-ra-val   { font-size: 12px; color: var(--lmr-t1); font-weight: 500; line-height: 1.4; }
.lmr-ra-val a { color: #00A1E4; text-decoration: none; }
.lmr-hours-head {
  font-size: 11px; font-weight: 700; color: var(--lmr-t1);
  display: flex; align-items: center; gap: 6px; margin-bottom: 9px;
}
.lmr-hr { display: flex; justify-content: space-between; align-items: center; padding: 5px 7px; border-radius: 5px; font-size: 11.5px; }
.lmr-hr.lmr-today { background: rgba(0,161,228,0.08); }
.lmr-hd { color: var(--lmr-t2); font-weight: 500; }
.lmr-hr.lmr-today .lmr-hd { color: #00A1E4; font-weight: 700; }
.lmr-ht { color: var(--lmr-t3); }
.lmr-hr.lmr-today .lmr-ht { color: #00A1E4; font-weight: 600; }
.lmr-hcls { color: var(--lmr-red); font-weight: 700; font-size: 11.5px; }

/* ── ORDER BAR ── */
.lmr-order-wrap {
  position: fixed;
  bottom: 0;
  left: var(--lm-sidebar-width); 
  /* syncs with app.css --lm-sidebar-width: 220px */
  right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--lmr-div);
  padding: 11px 28px;
  z-index: 200;
}
.lmr-place-order-btn {
  display: block; width: 100%;
  background: var(--lmr-green); color: #fff;
  font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  border: none; border-radius: 9px; padding: 14px; cursor: pointer; text-align: center;
}
.lmr-place-order-btn:hover { background: #158a44; color: #00A1E4; text-decoration: none;}

.lmr-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00A1E4;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
  transition: opacity .15s;
}
.lmr-back-link:hover {
  opacity: 0.75;
  color: #00A1E4;
  text-decoration: none;
}
.lmr-back-link svg {
  flex-shrink: 0;
}
.lmr-min-text {
    font-size: 9.5px;
    color: var(--lmr-t3);
}


/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
  .lmr-order-wrap { left: 0 !important; }
}
@media (max-width: 768px) {
  .lmr-back-bar { padding: 10px 16px 0; }
  .lmr-body     {
    grid-template-columns: 1fr;
    background: var(--lmr-page);
  }
  .lmr-hero     { padding: 20px 18px 0; }
  .lmr-hero-name { font-size: 22px; }
  /* Center the Store Info / Reviews tabs on mobile */
  .lmr-page-tabs { justify-content: center; padding: 0 18px; }
  .lmr-center   { padding: 20px 18px 20px; }
  .lmr-svc-grid { grid-template-columns: 1fr; }
  .lmr-right    {
    background: var(--lmr-card);
    border-left: none; border-top: 1px solid var(--lmr-div);
    position: static; height: auto;
    /* Extra bottom padding so Place Order button doesn't cover hours */
    padding: 24px 18px 90px;
  }
  .lmr-icon-grid { flex-wrap: wrap; }
  .lmr-icard    { flex: 1 1 calc(33.333% - 5px); min-width: calc(33.333% - 5px); }
  /* Tighten section heading top margin on mobile */
  .lmr-sh { margin-top: 20px; }
  /* Remove excess gap after last expand panel before right panel stacks */
  .lmr-icpanel { margin-bottom: 0; }
  .lmr-order-wrap { left: 0 !important; padding: 10px 16px; z-index: 9999; }
}

/* ── Reviews Tab ─────────────────────────────────────────── */
    .lmr-reviews-wrap {
      max-width: 720px;
      margin: 0 auto;
      padding: 32px 32px 80px;
    }
    .lmr-reviews-summary {
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--lmr-card);
      border: 1px solid var(--lmr-div);
      border-radius: var(--lmr-radius);
      padding: 14px 20px;
      margin-bottom: 20px;
      box-shadow: var(--lmr-shadow);
    }
    .lmr-reviews-big-num {
      font-size: 28px;
      font-weight: 800;
      color: var(--lmr-t1);
      line-height: 1;
    }
    .lmr-reviews-stars-row {
      display: flex;
      gap: 3px;
      align-items: center;
    }
    .lmr-reviews-stars-row svg {
      width: 16px;
      height: 16px;
    }
    .lmr-reviews-count {
      font-size: 13px;
      color: var(--lmr-t3);
      margin-left: 2px;
    }
    .lmr-review-card {
      background: var(--lmr-card);
      border: 1px solid var(--lmr-div);
      border-radius: var(--lmr-radius);
      padding: 20px 22px;
      margin-bottom: 12px;
      box-shadow: var(--lmr-shadow);
    }
    .lmr-review-card:last-child { margin-bottom: 0; }
    .lmr-review-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }
    .lmr-review-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--lmr-navy);
      color: #fff;
      font-size: 14px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .lmr-review-author { font-size: 14px; font-weight: 700; color: var(--lmr-t1); }
    .lmr-review-date   { font-size: 12px; color: var(--lmr-t3); margin-top: 2px; }
    .lmr-review-rating {
      display: flex;
      gap: 2px;
      margin-left: auto;
    }
    .lmr-review-rating svg { width: 14px; height: 14px; }
    .lmr-review-text {
      font-size: 13.5px;
      color: var(--lmr-t2);
      line-height: 1.65;
      margin-bottom: 14px;
    }
    @media (max-width: 768px) {
      .lmr-reviews-wrap { padding: 20px 16px 80px; }
      .lmr-reviews-summary { padding: 18px 16px; }
      .lmr-review-card { padding: 16px; }
    }