/* Phone bottom navigation. Reuses existing routes, permissions, scanner, and drawer. */
.mobile-bottom-nav{display:none}
@media(max-width:600px), (orientation:landscape) and (max-height:500px) and (any-pointer:coarse){
body:not(.inventory-intake-page):not(.ebay-editor-body):not(.ebay-workflow-body):not(.photo-listing-body):not(.truck-workflow-page) .mobile-bottom-nav{position:fixed;z-index:34;right:0;bottom:0;left:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);min-height:64px;padding:5px max(6px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));border-top:1px solid #d7e1eb;background:rgba(255,255,255,.96);box-shadow:0 -7px 24px rgba(15,35,55,.12);backdrop-filter:blur(16px)}
body:not(.inventory-intake-page):not(.ebay-editor-body):not(.ebay-workflow-body):not(.photo-listing-body):not(.truck-workflow-page) .content{padding-bottom:calc(82px + env(safe-area-inset-bottom))!important}
.mobile-bottom-nav>a,.mobile-bottom-nav>button{display:flex;min-width:0;min-height:52px;align-items:center;justify-content:center;flex-direction:column;gap:2px;margin:0;padding:3px 2px;border:0;border-radius:10px;background:transparent;color:#587087;font-size:9px;font-weight:800;line-height:1.1;text-decoration:none}
.mobile-bottom-nav>a.active,.mobile-bottom-nav>a[aria-current="page"]{color:#0878e5;background:#edf6ff}
.mobile-bottom-nav-icon{display:grid;width:28px;height:28px;place-items:center;border-radius:9px}
.mobile-bottom-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mobile-bottom-nav>a.active .mobile-bottom-nav-icon,.mobile-bottom-nav>a[aria-current="page"] .mobile-bottom-nav-icon{background:#dceeff}
.mobile-bottom-nav .mobile-bottom-scan .mobile-bottom-nav-icon{width:36px;height:36px;margin-top:-13px;border:4px solid #fff;border-radius:50%;background:#0878e5;color:#fff;box-shadow:0 3px 11px rgba(8,120,229,.3)}
.mobile-bottom-nav .mobile-bottom-scan svg{width:20px;height:20px}
body.nav-open .mobile-bottom-nav{pointer-events:none}
}
/* Keep the primary navigation pinned to the visual viewport on inventory and channel pages. */
@media(max-width:600px), (orientation:landscape) and (max-height:500px) and (any-pointer:coarse){
  :is(body.online-inventory-page,body.ebay-create-page,body.online-listings-body) .mobile-bottom-nav{
    position:fixed!important;
    z-index:34;
    top:auto!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    box-sizing:border-box;
    transform:none!important;
  }
  :is(body.online-inventory-page,body.ebay-create-page,body.online-listings-body) .content{
    padding-bottom:calc(82px + env(safe-area-inset-bottom))!important;
  }
}
@media print{.mobile-bottom-nav{display:none!important}}
/* Clear active destination without making Scan look selected. */
@media(max-width:600px), (orientation:landscape) and (max-height:500px) and (any-pointer:coarse){
  .mobile-bottom-nav>a{position:relative}
  .mobile-bottom-nav>a.active,.mobile-bottom-nav>a[aria-current="page"]{background:#eaf4ff;color:#086fc9}
  .mobile-bottom-nav>a.active::before,.mobile-bottom-nav>a[aria-current="page"]::before{position:absolute;top:-6px;right:18%;left:18%;height:3px;border-radius:0 0 3px 3px;background:#0878e5;content:""}
  .mobile-bottom-nav>a.active .mobile-bottom-nav-icon,.mobile-bottom-nav>a[aria-current="page"] .mobile-bottom-nav-icon{background:transparent}
  .mobile-bottom-nav .mobile-bottom-scan{color:#587087}
  .mobile-bottom-nav .mobile-bottom-scan .mobile-bottom-nav-icon{border-color:#fff;background:#fff;color:#0878e5;box-shadow:0 3px 11px rgba(29,61,92,.18),inset 0 0 0 2px #b9d9f5}
}
