.store-menu-backdrop { display: none; }

@media (max-width: 991.98px) {
    .store-menu-heading {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: .75rem;
        padding-block-end: .625rem;
        border-block-end: 1px solid #e3e9f1;
        margin-block-end: .5rem;
    }

    .store-menu-heading h2 {
        margin: 0;
        color: #172746;
        font-size: 1.25rem;
        font-weight: 750;
    }

    .store-menu-close {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border: 0;
        border-radius: .75rem;
        background: #eff4fa;
        color: #172746;
        font-size: 1.6rem;
        line-height: 1;
    }

    :is(.store-mobile-menu, .user-profile-aside) :focus-visible {
        outline: 2px solid #165cba;
        outline-offset: -2px;
    }

    #shop-sidebar.user-profile-aside {
        inset: 0 0 auto auto;
        width: min(340px, calc(100vw - 40px));
        height: 100dvh;
        padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
        overscroll-behavior: contain;
        border-radius: 0;
        visibility: hidden;
    }

    #shop-sidebar.user-profile-aside.active { visibility: visible; }
    .profile-aside-overlay { width: 100%; background: #13213b65 !important; }
    body:has(.user-profile-aside.active) { overflow: hidden; }
    .account-menu-section,
    .account-menu-danger h3,
    .store-mobile-menu h3 {
        margin: 1rem 0 .25rem;
        color: #42536b;
        font-size: .86rem;
        font-weight: 750;
    }

    .user-profile-aside .widget-title {
        margin: 0;
        padding: 0;
        border: 0;
    }
    .user-profile-aside .widget-title > a {
        display: flex;
        align-items: center;
        gap: .75rem;
        min-height: 44px;
        padding: .375rem .625rem;
        color: #172746;
        text-decoration: none;
        border-radius: .625rem;
    }
    .user-profile-aside .widget-title > a .aside-link {
        color: inherit;
        font-size: .96rem;
    }
    .user-profile-aside .widget-title > a.active-menu {
        color: #0b4c9a;
        background: #eaf3ff;
    }
    .account-menu-danger { margin-top: 1rem; border-block-start: 1px solid #e3e9f1; }
    .account-menu-danger .widget-title > a { color: #a22139; }
}

@media (max-width: 767px) {
    .navbar #navbarCollapse {
        inset: 0 auto auto 0;
        inset-inline-start: 0;
        inset-inline-end: auto;
        width: min(340px, calc(100vw - 40px));
        max-width: none;
        height: 100dvh;
        padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
        text-align: start;
        overflow: auto;
        overscroll-behavior: contain;
    }
    #navbarCollapse.show + .store-menu-backdrop,
    #navbarCollapse.collapsing + .store-menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 99998;
        border: 0;
        background: #13213b65;
    }
    body:has(#navbarCollapse.show) { overflow: hidden; }
    .store-menu-links { margin: 0; padding: 0; list-style: none; }
    .store-menu-links :is(a, button) {
        display: flex;
        width: 100%;
        align-items: center;
        min-height: 44px;
        padding: .375rem .625rem;
        color: #172746;
        border: 0;
        border-radius: .625rem;
        background: transparent;
        text-align: start;
        text-decoration: none;
        font-size: .96rem;
        font-weight: 600;
    }
    .store-menu-links [aria-current="page"] { color: #0b4c9a; background: #eaf3ff; font-weight: 700; }
    .store-menu-links .store-menu-all { color: #0b4c9a; font-weight: 700; }
    .store-menu-links .store-menu-logout { color: #a22139; }
    .store-menu-secondary { border-block-end: 1px solid #e3e9f1; padding-block-end: .5rem; }
}
