/* Scoped mobile corrections; original design styles stay unchanged. */
/* Inner pages share this wrapper, including shop, product and product-group templates. */
main.buvpro-page {
    box-sizing: border-box;
    padding-inline: max(clamp(20px, 4vw, 64px), env(safe-area-inset-left)) max(clamp(20px, 4vw, 64px), env(safe-area-inset-right));
}
main.buvpro-page > *, main.buvpro-page .wp-block-post-content {
    min-width: 0;
}
@media (max-width: 800px) {
    /* Keep WordPress's native dialog, focus management and Escape handling. */
    .buvpro-header .buvpro-nav { margin-left: auto; }
    .buvpro-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
    .buvpro-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
    .buvpro-nav .wp-block-navigation__responsive-container.is-menu-open {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-width: none;
        box-sizing: border-box;
        overflow-y: auto;
        padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
        background: #fff;
        color: #0b2435;
        z-index: 100000;
    }
    .buvpro-nav .is-menu-open .wp-block-navigation__responsive-dialog { position: relative; }
    .buvpro-nav .is-menu-open .wp-block-navigation__responsive-container-close {
        top: 0;
        right: 0;
        display: flex;
    }
    .buvpro-nav .is-menu-open .wp-block-navigation__responsive-container-content {
        box-sizing: border-box;
        padding-top: 72px;
        width: 100%;
        align-items: stretch;
    }
    .buvpro-nav .is-menu-open .wp-block-navigation__container {
        width: 100%;
        margin: 0 !important;
        gap: 8px;
        align-items: stretch !important;
        flex-direction: column;
    }
    .buvpro-nav .is-menu-open .wp-block-navigation-item { width: 100%; }
    .buvpro-nav .is-menu-open .wp-block-navigation-item__content {
        box-sizing: border-box;
        justify-content: flex-start;
        width: 100%;
        padding: 14px 0;
        font-size: 20px;
        line-height: 1.4;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .bp-hero-copy, .bp-benefits, .bp-solutions, .bp-story,
    .bp-contact-footer, .buvpro-header, .buvpro-topbar {
        box-sizing: border-box;
        padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
    }
    .bp-container, .bp-contact-columns, .bp-contact-columns > .wp-block-column,
    .bp-form-column, .bp-hero-copy, .bp-solution-caption > div {
        min-width: 0;
        box-sizing: border-box;
    }
    .bp-big-phone { flex-wrap: wrap; white-space: normal; }
    .bp-big-phone > span { white-space: nowrap; }
    /* The live Site Editor footer nests topics inside the phone link. */
    .bp-big-phone > .bp-footer-topics { flex-basis: 100%; width: 100%; }
    .bp-footer-topics { flex-wrap: wrap; white-space: normal; }
    .bp-contact-footer p, .bp-contact-detail { overflow-wrap: anywhere; }
    .bp-form-column { max-width: 100%; }
    .bp-contact-footer input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
    .bp-contact-footer textarea, .bp-contact-footer select {
        box-sizing: border-box;
        max-width: 100%;
        font-size: 16px;
    }
    .buvpro-nav .wp-block-navigation__responsive-container-open,
    .buvpro-nav .wp-block-navigation__responsive-container-close {
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }
    .buvpro-nav .is-menu-open .wp-block-navigation-item__content {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}
@media (max-width: 550px) {
    .bp-actions .bp-button { box-sizing: border-box; }
    .bp-big-phone { font-size: clamp(24px, 7.5vw, 30px); gap: 12px; }
    .bp-hero h1 { font-size: clamp(36px, 10.5vw, 44px); }
    .bp-contact-footer h2 { font-size: clamp(36px, 10.5vw, 43px); }
    .bp-contact-footer .bp-form-column { padding: 22px !important; }
}
