/* Shared customer dock. Existing page/dialog behavior remains authoritative. */
/* Navigation includes the existing Lucide gamepad-2 icon, ISC License.
   Copyright (c) 2026 Lucide Icons and Contributors.
   Permission to use, copy, modify, and/or distribute this software for any
   purpose with or without fee is hereby granted, provided that the above
   copyright notice and this permission notice appear in all copies.
   THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
   WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
   MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
   SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
   RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
   NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
   THE USE OR PERFORMANCE OF THIS SOFTWARE. */
:root { --customer-dock-height:80px; --customer-dock-gap:max(12px,env(safe-area-inset-bottom)); }
html.customer-dock-page { scroll-padding-bottom:calc(var(--customer-dock-height) + var(--customer-dock-gap) + 24px); }
body .customer-dock[data-customer-dock] {
  box-sizing:border-box; position:fixed; z-index:40; inset:auto auto var(--customer-dock-gap) 50%;
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; gap:2px;
  width:min(30rem,calc(100% - 24px)); margin:0; padding:5px;
  border:1px solid var(--line,#e0e4d9); border-radius:20px;
  background:#fffffff5; color:var(--ink,#183a2b); box-shadow:0 6px 24px #17392514;
  transform:translateX(-50%); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
}
body .customer-dock[data-customer-dock] > :is(a,button) {
  box-sizing:border-box; position:relative; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:5px; min-width:0; min-height:60px;
  margin:0; padding:8px 3px; border:0; border-radius:15px;
  background:transparent; color:var(--muted,#5d695f); font:inherit; font-size:.75rem;
  font-weight:600; line-height:1.3; text-align:center; text-decoration:none;
  cursor:pointer; touch-action:manipulation;
}
body .customer-dock[data-customer-dock] > :is(a,button)[aria-current=page] {
  background:var(--brand,#22553d); color:#fff; font-weight:750;
}
body .customer-dock[data-customer-dock] > :is(a,button):focus-visible {
  outline:3px solid #28764b; outline-offset:3px;
}
body .customer-dock[data-customer-dock] > :is(a,button) > svg {
  display:block; flex:none; width:21px; height:21px; fill:none; stroke:currentColor;
  stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round;
}
body .customer-dock[data-customer-dock] .nav-label {
  max-width:100%; white-space:normal; overflow-wrap:anywhere; word-break:normal; hyphens:none;
}
body[data-customer-shell] :is(.account-shell,.order-shell,.game-shell,.home-shell),
body[data-customer-shell].customer-app .shell.customer {
  padding-bottom:calc(var(--customer-dock-height) + var(--customer-dock-gap) + 32px);
}
html.customer-dock-page .cart-shortcut {
  bottom:calc(var(--customer-dock-height) + var(--customer-dock-gap) + 10px);
}
html.customer-dock-page body.has-cart .home-shell {
  padding-bottom:max(15em,calc(var(--customer-dock-height) + var(--customer-dock-gap) + 120px));
}
/* Native dish dialogs deliberately hide/inert the underlying navigation. */
.dialog-open .customer-dock[data-customer-dock] { visibility:hidden; }
@media (hover:hover) {
  body .customer-dock[data-customer-dock] > :is(a,button):not([aria-current=page]):hover { background:var(--soft,#edf1e6); }
}
@media (prefers-reduced-motion:reduce) {
  body .customer-dock[data-customer-dock],body .customer-dock[data-customer-dock] > :is(a,button) { transition:none; }
}
