/* Purchase amount only; existing template layouts and desktop totals stay intact. */
@media (max-width: 991px) {
    .humberger__menu__wrapper {
        position: fixed;
    }

    .humberger__menu__wrapper .humberger__menu__close {
        align-items: center;
        background: none;
        border: 0;
        border-radius: 0;
        color: #999;
        cursor: pointer;
        display: inline-flex;
        height: 40px;
        justify-content: center;
        line-height: 1;
        padding: 0;
        position: absolute;
        right: 5px;
        top: 5px;
        width: 40px;
        z-index: 10;
    }

    .humberger__menu__wrapper .humberger__menu__close svg {
        display: block;
        height: 18px;
        width: 18px;
    }

    .humberger__menu__wrapper .humberger__menu__close:focus-visible {
        outline: 2px solid #999;
        outline-offset: 2px;
    }

    .humberger__menu__wrapper .humberger__menu__close:hover {
        opacity: 0.7;
    }
}

header.header .header-mobile-cart-total {
    display: none !important;
}

@media (min-width: 320px) and (max-width: 991px) {
    header.header .header__cart .header-mobile-cart-item {
        position: relative !important;
        overflow: visible;
    }

    header.header .header__cart .header-mobile-cart-total {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: inherit;
        display: block !important;
        font-family: Arial, Helvetica, sans-serif !important;
        font-size: 11px !important;
        font-variant-numeric: tabular-nums;
        font-weight: 400;
        height: 16px !important;
        left: 50% !important;
        line-height: 16px !important;
        margin: 0 !important;
        max-width: none;
        padding: 0 !important;
        pointer-events: none;
        position: absolute !important;
        right: auto !important;
        text-align: center;
        top: calc(100% + 2px) !important;
        transform: translateX(-50%);
        white-space: nowrap;
        width: max-content !important;
    }

    header.header .header__cart .header-mobile-cart-total::before {
        content: "Total: ";
        display: inline;
    }

    header.header .header__cart .header-desktop-cart-total {
        display: none !important;
    }

    /* Clothes stacks search under the actions: keep a separate amount line. */
    header.clothes-store-header .b_f_c_header {
        row-gap: calc(clamp(4px, 1vw, 8px) + 18px);
    }
}