/* Purchase-path focus layer (2026-08-24). */

/* Checkout keeps a calm logo-only header and concise support/legal footer.
   Store navigation, campaigns, search, and cart exits belong outside payment. */
body.woocommerce-checkout #top-bar,
body.woocommerce-checkout #wide-nav,
body.woocommerce-checkout #masthead .header-inner > :not(#logo),
body.woocommerce-checkout #footer {
    display: none !important;
}

body.woocommerce-checkout #masthead #logo {
    margin-right: auto;
    margin-left: auto;
}

.cork-checkout-focus-footer {
    display: grid;
    gap: 8px;
    justify-items: center;
    margin-top: 36px;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    border-top: 1px solid #dce4e9;
    background: #f7f8f7;
    color: #44525c;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.cork-checkout-focus-footer p,
.cork-checkout-focus-footer nav {
    margin: 0;
}

.cork-checkout-focus-footer__support {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
}

.cork-checkout-focus-footer__support strong {
    width: 100%;
    color: #0b2f4b;
}

.cork-checkout-focus-footer__secure {
    color: #176b3a;
    font-weight: 700;
}

.cork-checkout-focus-footer__secure::before {
    content: "\2713";
    margin-right: 5px;
}

.cork-checkout-focus-footer nav {
    display: flex;
    gap: 18px;
}

.cork-checkout-focus-footer a {
    color: #0b2f4b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* One sale treatment belongs in the price area. Remove the duplicate image
   badge and PDP topbar campaign; retain a single end date below the price. */
body.single-product .product-gallery .badge-inner.on-sale,
body.single-product #top-bar .cork-topbar-sale {
    display: none !important;
}

body.single-product .cork-product-sale-countdown-note::before {
    content: none !important;
}

/* The sticky CTA remains available, but repeats only the current price. */
body.single-product .cork-pdp-sticky-copy del,
body.single-product .cork-pdp-sticky-copy .cork-save-badge {
    display: none !important;
}

body.single-product .cork-pdp-sticky-copy ins {
    text-decoration: none;
}

@media (max-width: 549px), (max-width: 849px) and (max-height: 500px) {
    /* Secondary PDP content remains crawlable and accessible in native
       details elements without creating an eleven-thousand-pixel phone page. */
    .cork-mobile-disclosure {
        width: 100%;
        margin: 12px 0 24px;
    }

    .cork-mobile-disclosure > summary {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 48px;
        margin: 0 15px;
        padding: 12px 48px 12px 16px;
        border: 1px solid #d6e0e6;
        border-radius: 8px;
        background: #fff;
        color: #0b2f4b;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.35;
        cursor: pointer;
        list-style: none;
    }

    .cork-mobile-disclosure > summary::-webkit-details-marker {
        display: none;
    }

    .cork-mobile-disclosure > summary::after {
        position: absolute;
        top: 50%;
        right: 16px;
        content: "+";
        color: #946820;
        font-size: 24px;
        font-weight: 500;
        line-height: 1;
        transform: translateY(-52%);
    }

    .cork-mobile-disclosure[open] > summary::after {
        content: "\2212";
    }

    .cork-mobile-disclosure > summary:focus-visible {
        outline: 3px solid #236a8d;
        outline-offset: 3px;
    }

    body.cork-pdp-lower-v2 .product-page-sections > .cork-mobile-disclosure {
        margin: 0;
        border-top: 1px solid #dce4e9;
    }

    body.cork-pdp-lower-v2 .product-page-sections > .cork-mobile-disclosure > summary {
        margin: 0 15px;
        padding-right: 40px;
        padding-left: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        font-size: 17px;
    }

    body.cork-pdp-lower-v2 .cork-mobile-disclosure > .product-section {
        padding: 4px 0 18px;
        border: 0;
    }

    body.cork-pdp-lower-v2 .cork-mobile-disclosure > .product-section > .row {
        margin-right: 0;
        margin-left: 0;
    }

    body.cork-pdp-lower-v2 .cork-mobile-disclosure > .product-section > .row > .large-2 {
        display: none !important;
    }

    body.cork-pdp-lower-v2 .cork-mobile-disclosure > .product-section > .row > .large-10 {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
    }
}
