.global-store-nav, .store-mobile-search, .store-mobile-cart { display: none; }
.np-header .store-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-block-start: 1px;
    box-sizing: border-box;
}

@media (max-width: 850px) {
    html:has(.global-store-nav) {
        --store-nav-edge: calc(8px + env(safe-area-inset-bottom, 0px));
        --store-nav-height: 58px;
        --store-nav-active-height: var(--store-nav-height);
        --store-nav-space: calc(var(--store-nav-edge) + var(--store-nav-height) + 10px);
        scroll-padding-bottom: calc(82px + env(safe-area-inset-bottom) + var(--store-purchase-space, 0px));
    }
    body:has(.global-store-nav) { padding-bottom: var(--store-nav-space); }
    body:has(.global-store-nav) .np-header .np-customer-header,
    body.premium-storefront:has(.global-store-nav) .np-header .np-customer-header { display: none !important; }
    .global-store-nav {
        position: fixed;
        z-index: 38;
        inset-inline: max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-left));
        bottom: var(--store-nav-edge);
        max-width: 440px;
        height: var(--store-nav-height);
        margin-inline: auto;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        gap: 2px;
        padding: 4px;
        background: #fff;
        border: 1px solid #cddde9;
        border-radius: 18px;
        box-shadow: 0 4px 18px rgb(18 41 64 / 12%);
    }
    html:has(.global-store-nav[data-scroll-hidden]) { --store-nav-active-height: 0px; }
    .global-store-nav[data-scroll-hidden] { opacity: 0; transform: translateY(calc(100% + var(--store-nav-edge) + 4px)); }
    .global-store-nav::before {
        content: '';
        position: absolute;
        inset-inline: 0;
        top: 100%;
        height: calc(var(--store-nav-edge) + 1px);
        background: white;
        pointer-events: none;
    }
    .global-store-nav a {
        position: relative;
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        gap: 2px; min-height: 44px;
        color: #455e73;
        font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1.6;
        text-decoration: none; border-radius: 13px;
    }
    .global-store-nav svg { flex: none; width: 20px; height: 20px; stroke-width: 1.75; }
    .global-store-nav a[aria-current] { color: #075da6; background: #eaf5ff; font-weight: 700; }
    .global-store-nav a[aria-current]::after {
        content: ''; position: absolute; inset-block-end: 0; width: 16px; height: 3px;
        border-radius: 3px; background: #098cf7;
    }
    .global-store-nav a:focus-visible { outline: 2px solid #075da6; outline-offset: -2px; }
    .global-store-nav a:active { background: #dcecf9; }
    body:has(.global-store-nav) button[data-support-launcher] {
        bottom: calc(var(--store-nav-edge) + 10px + var(--store-purchase-space, 0px));
        transform: translateY(calc(-1 * var(--store-nav-active-height)));
        transition: transform .2s ease, box-shadow .2s ease, opacity .16s ease;
    }
    body:has(.global-store-nav) button[data-support-launcher]:hover {
        transform: translateY(calc(-1 * var(--store-nav-active-height) - 2px));
    }
    body:has(dialog[open], [data-support-frame][data-state="open"]) :is(.global-store-nav, [data-product-dock]),
    body:has(input:is([type=text],[type=search],[type=tel],[type=password],[type=email],[type=number],:not([type])):focus, textarea:focus, select:focus) :is(.global-store-nav, [data-product-dock], button[data-support-launcher]) {
        visibility: hidden;
    }
    @media (hover: hover) {
        .global-store-nav a:not([aria-current]):hover { background: #f0f6fb; color: #075da6; }
    }
    @media (prefers-reduced-motion: no-preference) {
        .global-store-nav { transition: transform .18s ease, opacity .18s ease; }
        .global-store-nav::before {
        content: '';
        position: absolute;
        inset-inline: 0;
        top: 100%;
        height: calc(var(--store-nav-edge) + 1px);
        background: white;
        pointer-events: none;
    }
    .global-store-nav a { transition: background-color .14s ease, color .14s ease; }
    }
}
@media (max-width: 359px) {
    html:has(.global-store-nav) { --store-nav-height: 54px; }
    .global-store-nav a > span:not([data-store-cart-count]):not(.global-store-nav__icon-wrap) {
        position: absolute;
        inline-size: 1px;
        block-size: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}
@media (min-width: 600px) and (max-width: 850px) {
    .global-store-nav { max-width: 520px; }
    .global-store-nav a { flex-direction: row; gap: 5px; font-size: 12px; }
}
@media (max-width: 850px) {
    .product-detail-page .store-mobile-cart {
        position: relative;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        padding: 0;
        margin-inline-start: auto;
        overflow: visible;
    }
    .product-detail-page .store-mobile-cart svg { width: 20px; height: 20px; }
    .product-detail-page .store-mobile-cart .store-cart-count {
        inset-block-start: -8px;
        inset-inline-end: -8px;
        min-width: 19px;
        height: 19px;
        padding: 0 4.5px;
        padding-block-start: 1px;
        border-radius: 999px;
        background: #b4232d;
        color: #fff;
        font-size: 10.5px;
        font-weight: 700;
        line-height: 1;
        box-shadow: 0 0 0 2px #ffffff;
    }
}
@media (max-width: 767px) {
    html:has(body.product-detail-page) {
        --store-nav-edge: 0px;
        --store-nav-height: 0px;
        --store-nav-active-height: 0px;
        --store-nav-space: calc(var(--store-purchase-height, 78px) + env(safe-area-inset-bottom, 0px) + 16px);
        scroll-padding-bottom: calc(var(--store-purchase-height, 78px) + env(safe-area-inset-bottom, 0px) + 20px);
    }
    body.product-detail-page .global-store-nav {
        display: none !important;
    }
    body.product-detail-page {
        padding-bottom: calc(var(--store-purchase-height, 78px) + env(safe-area-inset-bottom, 0px) + 16px);
    }
    body.product-detail-page:has(.global-store-nav) button[data-support-launcher],
    body.product-detail-page button[data-support-launcher] {
        bottom: calc(var(--store-purchase-height, 76px) + env(safe-area-inset-bottom, 0px) + 14px + var(--store-added-bar-space, 0px));
        transform: none;
    }
    body.product-detail-page:has(.global-store-nav) button[data-support-launcher]:hover,
    body.product-detail-page button[data-support-launcher]:hover {
        transform: translateY(-2px);
    }
}
@media (max-width: 700px) {
    .premium-storefront .store-mobile-search {
        display: inline-flex;
        margin-inline-start: auto;
    }
    .premium-storefront .np-customer-header { margin-inline-start: 0; }
    .premium-storefront .np-header :is(.store-mobile-search, .store-mobile-cart, [data-customer-entry] .np-customer-trigger) {
        flex: 0 0 44px;
        height: 44px;
        padding: 0;
    }
    .premium-storefront .np-mobile-menu > button:not(:hover) {
        border-color: #d1e5f7;
    }
}

@media (max-width: 767px) {
    .product-detail-page .purchase-meta,
    .product-detail-page #product-specs { padding-inline-end: 4rem; }
}
