/**
 * Pop-ups, side panels and modals (theme 1.0.62, prepared as 1.0.55 in checkout-popups-audit, owner 2026-11-18).
 * Plain CSS (no LESS build), loaded on every page by Magento_Theme/layout/default_head_blocks.xml after the compiled
 * styles. Measured with dock `scripts/popups-acceptance.sh` (Chromium, WebKit, Firefox; 320-1920 px) on the clone:
 *
 * 1. Phone menu: the close "X" next to the drawer was a 15 x 24 px link (WCAG 2.2 asks 24 px at least, Apple and Google
 *    44-48 px on touch). Now a 44 x 44 px target in the same place (outside the drawer's right edge, white icon on the
 *    dimmed page), kept below the iPhone's status bar by the safe area.
 * 2. Phone filter panel: the page behind it scrolled (2800 px under one swipe on 390 px); now the page stays put while
 *    the panel is open and the panel keeps its own scroll. The price slider's 15 px handles get a 44 px touch area
 *    (an invisible ring, the look is unchanged).
 * 3. Cart side panel: the close button 40 x 40 -> 44 x 44 px.
 * Escape, focus and the dialog role for these panels: web/js/np-overlays.js.
 */

@media only screen and (max-width: 1023px) {
    .navigation.nav-sections .close-menu {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        top: max(6px, env(safe-area-inset-top, 0px)) !important;
        right: -6px !important;
        line-height: 1;
        -webkit-tap-highlight-color: transparent;
    }

    .navigation.nav-sections .close-menu:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: -4px;
        border-radius: 4px;
    }
}

/* np-overlays.js sets html.np-overlay-lock while a phone panel without its own lock is open (filter panel). */
html.np-overlay-lock,
html.np-overlay-lock body {
    overflow: hidden !important;
}

body.filter-active #layered-filter-block .filter-area,
body.filter-active #layered-filter-block .filter-content {
    overscroll-behavior: contain;
}

@media (pointer: coarse) {
    .filter-options .ui-slider-handle {
        position: absolute;
    }

    .filter-options .ui-slider-handle::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 44px;
        height: 44px;
        transform: translate(-50%, -50%);
        border-radius: 50%;
    }
}

.block-minicart #btn-minicart-close {
    width: 44px;
    height: 44px;
}
