/* siymon — the same dark pill bottom bar as the home page, pinned on every sub-page. */
.sub-nav{--navbg:#202020;--navfg:#A8A8A8;--pill:#5DD62C;
  position:fixed;inset:auto auto calc(12px + env(safe-area-inset-bottom,0px)) 50%;transform:translateX(-50%);z-index:45;
  width:min(420px,calc(100% - 24px));height:62px;margin:0;padding:7px;gap:2px;
  display:flex;align-items:center;justify-content:space-between;direction:rtl;
  background:var(--navbg);border-radius:999px;border:1px solid rgba(248,248,248,.12);box-shadow:0 10px 28px rgba(0,0,0,.5)}
html[dir="ltr"] .sub-nav{direction:ltr}
.sub-nav>a{position:relative;flex:0 0 auto;height:48px;min-width:48px;padding:0 12px;border:0;border-radius:999px;
  display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;background:none;color:var(--navfg);
  font:inherit;font-size:15px;font-weight:700;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sub-nav .ic{display:grid;place-items:center;width:26px;height:26px}
.sub-nav .ic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sub-nav .lb{display:none;white-space:nowrap}
.sub-nav>a.on{background:var(--pill);color:var(--navbg);padding:0 16px}
.sub-nav>a.on .lb{display:inline}
.sub-nav>a.on .fl{fill:currentColor}
.sub-nav>a.on .dt{stroke:var(--pill)}
.sub-nav>a:focus-visible{outline:2px solid var(--pill);outline-offset:2px}
.sub-nav b{position:absolute;top:2px;inset-inline-end:4px;min-width:18px;height:18px;border-radius:9px;background:#5DD62C;color:#0F0F0F;font-size:11px;line-height:18px;text-align:center;padding:0 4px}
.sub-nav b[hidden]{display:none}
body.has-subnav{padding-bottom:104px}
@media (prefers-reduced-motion:no-preference){.sub-nav>a{transition:background .18s,color .18s}}

/* chat page: the bar sits under the conversation; it steps aside while typing */
body.chat-page.has-subnav{padding-bottom:0}
body.chat-page.has-subnav #chatPage{height:calc(100% - 86px - env(safe-area-inset-bottom,0px))}
body.chat-page.has-subnav .cc-page .cc-composer{padding-bottom:10px}
body.chat-page:has(#chatInput:focus) .sub-nav{display:none}
body.chat-page:has(#chatInput:focus) #chatPage{height:100%}

/* order opened from a notification (/orders/?order=ID) */
.order-card.order-focus{outline:3px solid #5DD62C;outline-offset:2px;box-shadow:0 0 0 8px rgba(93,214,44,.18);transition:box-shadow .4s,outline-color .4s}
