/* The storefront uses the kitchen's section colors and selected-item treatment.
   Keep the accepted Safari scroller and normal-flow navigation row intact. */
@media (max-width:700px) ,(max-width:1000px)  and (max-height:500px){
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav {
    --nav-muted:#5b6a60;
    --nav-surface:#fff;
    --nav-line:#e3e5da;
    --nav-focus:#24583f;
    gap:4px;
    min-height:0;
    padding:7px max(6px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important;
    background:var(--nav-surface)!important;
    border-top:1px solid var(--nav-line);
  }
  .v9-bottom-nav > a:first-child { --nav-ink:#23563f; --nav-soft:#eaf2e7; }
  .v9-bottom-nav > .sf-bottom-category { --nav-ink:#7c5a12; --nav-soft:#fbf2d8; }
  .v9-bottom-nav > .sf-bottom-dishes { --nav-ink:#a34428; --nav-soft:#fbede5; }
  .v9-bottom-nav > .v9-cart-shortcut { --nav-ink:#a03243; --nav-soft:#fbeaec; }
  .v9-bottom-nav > a:last-child { --nav-ink:#315e6b; --nav-soft:#e9f2f4; }

  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav > :is(a,button) {
    position:relative!important;
    display:flex!important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-width:0;
    min-height:60px;
    margin:0;
    padding:5px 0!important;
    border:0;
    border-radius:12px;
    color:var(--nav-muted)!important;
    background:transparent!important;
    box-shadow:none;
    text-align:center;
    text-decoration:none;
    font-weight:600;
    cursor:pointer;
    transition:background-color .16s ease,color .16s ease;
  }
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav > :is(a,button) > :first-child {
    display:grid;
    place-items:center;
    flex:none;
    width:38px;
    height:30px;
    border-radius:10px;
    color:var(--nav-ink);
    background:var(--nav-soft);
    line-height:1;
    transition:background-color .16s ease,color .16s ease;
  }
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav .sf-icon {
    width:23px;
    height:23px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
  }
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav :is(small,.v9-cart-shortcut__label) {
    max-width:100%;
    font-size:.75rem!important;
    line-height:1.2!important;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  /* Open dialogs take visual priority; selected filters retain their underline. */
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order:not(:has(#cart-panel[aria-hidden=false])) .v9-bottom-nav:not(:has(> [aria-expanded=true])) > [aria-current=page],
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav > [aria-expanded=true],
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order:has(#cart-panel[aria-hidden=false]) .v9-bottom-nav > .v9-cart-shortcut {
    color:var(--nav-ink)!important;
    background:var(--nav-soft)!important;
    font-weight:750;
  }
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order:not(:has(#cart-panel[aria-hidden=false])) .v9-bottom-nav:not(:has(> [aria-expanded=true])) > [aria-current=page] > :first-child,
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav > [aria-expanded=true] > :first-child,
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order:has(#cart-panel[aria-hidden=false]) .v9-bottom-nav > .v9-cart-shortcut > :first-child {
    color:var(--nav-surface);
    background:var(--nav-ink);
  }
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order:not(:has(#cart-panel[aria-hidden=false])) .v9-bottom-nav:not(:has(> [aria-expanded=true])) > [aria-current=page]::before,
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav > [aria-expanded=true]::before,
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order:has(#cart-panel[aria-hidden=false]) .v9-bottom-nav > .v9-cart-shortcut::before {
    content:'';
    position:absolute;
    top:0;
    left:calc(50% - 9px);
    width:18px;
    height:3px;
    border-radius:3px;
    background:var(--nav-ink);
  }
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav > :is(a,button):focus-visible {
    outline:3px solid var(--nav-focus);
    outline-offset:1px;
  }
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav > :is(a,button):active {
    color:var(--nav-ink)!important;
    background:var(--nav-soft)!important;
  }
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav .v9-cart-shortcut__badge {
    top:3px;
    right:calc(50% - 25px);
    margin:0;
    min-width:17px;
    padding:1px 4px;
    border:2px solid var(--nav-surface);
    border-radius:12px;
    color:var(--nav-surface);
    background:var(--nav-ink);
    font-size:10px;
    line-height:1.3;
  }
}
@media (max-width:360px) {
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav { gap:2px; padding-inline:4px!important; }
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav :is(small,.v9-cart-shortcut__label) { font-size:.6875rem!important; }
}
@media (max-width:700px) and (max-height:350px) ,(max-width:1000px) and (max-height:350px)  and (max-height:500px){
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav { padding-block:3px max(3px,env(safe-area-inset-bottom))!important; }
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav > :is(a,button) { min-height:48px; gap:2px; padding-block:3px!important; }
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav > :is(a,button) > :first-child { width:34px; height:25px; }
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav .sf-icon { width:20px; height:20px; }
}
@media (prefers-reduced-motion:reduce) {
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav,
  html body.purchase-refined.sf-navigation.sf-enhanced.web-order .v9-bottom-nav * { transition:none; }
}
