/* PB Shop Pro v2.2.53 - Account, My Library, Thank-you and Login light-theme fix.
 *
 * Root causes fixed here:
 * 1. public.css paints the whole page dark with high-specificity legacy rules
 *    (html:has(body.pbc-experience) body, body.pbc-experience #page ...). They
 *    beat the newer light rules in customer.css / commerce-light-hard.css, so the
 *    account, library, thank-you and login pages render black.
 * 2. customer.css mobile media queries (.pbc-account-hero, .woocommerce-MyAccount-*)
 *    are less specific than the desktop rules (body.pbc-account-page ...), so on
 *    phones the hero and content stay in grid column 2 and are squeezed to ~60px.
 *
 * Scoped to body.pbc-account-page and body.pbc-thankyou-page only.
 */

/* ---------- 1. Light canvas ---------- */
html:root:has(body.pbc-account-page),
html:root:has(body.pbc-thankyou-page) {
    background: #f8fbfd !important;
}
html:root:has(body.pbc-account-page) body.pbc-account-page.pbc-experience,
html:root:has(body.pbc-thankyou-page) body.pbc-thankyou-page.pbc-experience {
    background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 44%, #f8fbfa 100%) #f8fbfd !important;
    color: #10213d !important;
}
body.pbc-account-page.pbc-experience #page,
body.pbc-account-page.pbc-experience .site,
body.pbc-account-page.pbc-experience .site-content,
body.pbc-account-page.pbc-experience #content,
body.pbc-account-page.pbc-experience #primary,
body.pbc-account-page.pbc-experience #main,
body.pbc-account-page.pbc-experience .content-area,
body.pbc-account-page.pbc-experience .site-main,
body.pbc-account-page.pbc-experience .entry-content,
body.pbc-account-page.pbc-experience article,
body.pbc-account-page.pbc-experience .wp-site-blocks,
body.pbc-thankyou-page.pbc-experience #page,
body.pbc-thankyou-page.pbc-experience .site,
body.pbc-thankyou-page.pbc-experience .site-content,
body.pbc-thankyou-page.pbc-experience #content,
body.pbc-thankyou-page.pbc-experience #primary,
body.pbc-thankyou-page.pbc-experience #main,
body.pbc-thankyou-page.pbc-experience .content-area,
body.pbc-thankyou-page.pbc-experience .site-main,
body.pbc-thankyou-page.pbc-experience .entry-content,
body.pbc-thankyou-page.pbc-experience article,
body.pbc-thankyou-page.pbc-experience .wp-site-blocks {
    background: transparent !important;
}

/* Account navigation bar: remove legacy dark strip */
body.pbc-account-page.pbc-experience .woocommerce-MyAccount-navigation ul {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* ---------- 2. Login / register / thank-you login forms ---------- */
body.pbc-account-page.pbc-experience .woocommerce label,
body.pbc-thankyou-page.pbc-experience .woocommerce label {
    color: #1d3655 !important;
    font-weight: 700 !important;
}
body.pbc-account-page.pbc-experience .woocommerce form.login input.input-text,
body.pbc-account-page.pbc-experience .woocommerce form.register input.input-text,
body.pbc-account-page.pbc-experience .woocommerce form.lost_reset_password input.input-text,
body.pbc-account-page.pbc-experience .woocommerce form input[type="text"],
body.pbc-account-page.pbc-experience .woocommerce form input[type="email"],
body.pbc-account-page.pbc-experience .woocommerce form input[type="password"],
body.pbc-thankyou-page.pbc-experience .woocommerce form input[type="text"],
body.pbc-thankyou-page.pbc-experience .woocommerce form input[type="email"],
body.pbc-thankyou-page.pbc-experience .woocommerce form input[type="password"] {
    min-height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid #dce4ea !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #10213d !important;
    box-shadow: none !important;
}
body.pbc-account-page.pbc-experience .woocommerce form input:focus,
body.pbc-thankyou-page.pbc-experience .woocommerce form input:focus {
    border-color: #79cbb0 !important;
    box-shadow: 0 0 0 4px rgba(10, 160, 107, .08) !important;
    outline: none !important;
}
body.pbc-account-page.pbc-experience form.lost_reset_password {
    background: #ffffff !important;
    border: 1px solid #e3e9ee !important;
}
body.pbc-account-page.pbc-experience .woocommerce p,
body.pbc-thankyou-page.pbc-experience .woocommerce p {
    color: #4d5f75;
}

/* ---------- 3. Mobile layout: single column, nothing squeezed ---------- */
body.pbc-account-page .woocommerce-MyAccount-navigation,
body.pbc-account-page .woocommerce-MyAccount-content,
body.pbc-account-page .pbc-account-hero {
    min-width: 0 !important;
}
@media (max-width: 980px) {
    body.pbc-account-page:not(.pbc-account-login-page) .woocommerce {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
    }
    body.pbc-account-page .pbc-account-hero {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    body.pbc-account-page .woocommerce-MyAccount-navigation {
        grid-column: 1 !important;
        grid-row: 2 !important;
        position: static !important;
        top: auto !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    body.pbc-account-page .woocommerce-MyAccount-navigation:before {
        display: none !important;
    }
    body.pbc-account-page .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    body.pbc-account-page .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
    body.pbc-account-page .woocommerce-MyAccount-navigation li { flex: none !important; }
    body.pbc-account-page .woocommerce-MyAccount-content {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
}
@media (max-width: 620px) {
    body.pbc-account-page .pbc-account-hero {
        min-height: 0 !important;
    }
    body.pbc-account-page .pbc-account-hero-copy {
        max-width: 100% !important;
    }
    body.pbc-account-page .pbc-account-hero-art {
        display: none !important;
    }
}
