/*
 * Well Wish Premium Header — mobile drawer bottom-card visibility fix.
 * Intentionally scoped to classes added at runtime by mobile-scroll-fix.js.
 * No desktop styling is changed.
 */
@media (max-width: 1024px) {
    .wwph-mobile-drawer-scroll-fix {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        touch-action: pan-y !important;
        min-height: 0 !important;
        max-height: var(--wwph-mobile-drawer-height, 100vh) !important;
        max-height: var(--wwph-mobile-drawer-height, 100dvh) !important;
        box-sizing: border-box !important;
        padding-bottom: max(28px, env(safe-area-inset-bottom)) !important;
        scrollbar-width: thin;
    }

    .wwph-mobile-flex-min-fix {
        min-height: 0 !important;
    }

    /* Keep the bottom contact block in normal scroll flow when a theme/plugin
       has accidentally made it sticky/absolute inside the detected drawer. */
    .wwph-mobile-contact-flow-fix {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
