/* =========================================================
   ZeroMaxShop Buyer Protection
   Page-specific styles loaded after style.css.
========================================================= */

:root {
    --zmx-bp-orange: #ef5b43;
    --zmx-bp-blue: #2f9ed8;
    --zmx-bp-navy: #171b32;
    --zmx-bp-text: #17181d;
    --zmx-bp-muted: #747883;
    --zmx-bp-border: #e5e9e7;
    --zmx-bp-green: #11845f;
    --zmx-bp-green-dark: #0c684b;
    --zmx-bp-green-soft: #dcf6eb;
    --zmx-bp-green-soft-2: #eefaf5;
}

body.buyer-protection-page {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(17, 132, 95, 0.045),
            transparent 27%
        ),
        #ffffff;
    color: var(--zmx-bp-text);
}

/* =========================================================
   Header
========================================================= */

body.buyer-protection-page .zmx-policy-header {
    position: sticky;
    top: 0;
    z-index: 5000;
    display: flex;
    width: 100%;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 24px;
    border-bottom: 1px solid var(--zmx-bp-border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.035);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        box-shadow 160ms ease,
        border-color 160ms ease;
}

body.buyer-protection-page .zmx-policy-header.is-scrolled {
    border-bottom-color: #d8dfdc;
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.085),
        0 1px 0 rgba(15, 23, 42, 0.04);
}

body.buyer-protection-page .zmx-policy-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: var(--zmx-bp-text);
    text-decoration: none;
}

body.buyer-protection-page .zmx-policy-brand-logo {
    display: block;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    object-fit: contain;
}

body.buyer-protection-page .zmx-policy-brand-copy {
    display: grid;
    min-width: 0;
    justify-items: start;
    gap: 4px;
}

body.buyer-protection-page .zmx-policy-brand-name {
    display: inline-flex;
    align-items: baseline;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -0.065em;
    line-height: 1;
    white-space: nowrap;
}

body.buyer-protection-page .zmx-policy-brand-zero {
    color: var(--zmx-bp-orange);
}

body.buyer-protection-page .zmx-policy-brand-max {
    color: var(--zmx-bp-blue);
}

body.buyer-protection-page .zmx-policy-brand-shop {
    color: var(--zmx-bp-navy);
}

body.buyer-protection-page .zmx-policy-brand-subtitle {
    color: #737782;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: 0.055em;
    line-height: 1;
    white-space: nowrap;
}

body.buyer-protection-page .zmx-policy-header-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

body.buyer-protection-page .zmx-policy-back-link,
body.buyer-protection-page .zmx-policy-account-link {
    border: 1px solid var(--zmx-bp-border);
    background: #ffffff;
    color: #1c1e24;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.035);
    transition:
        border-color 150ms ease,
        background 150ms ease,
        transform 150ms ease,
        box-shadow 150ms ease;
}

body.buyer-protection-page .zmx-policy-back-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 850;
}

body.buyer-protection-page .zmx-policy-account-link {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
}

body.buyer-protection-page .zmx-policy-back-link:hover,
body.buyer-protection-page .zmx-policy-account-link:hover {
    border-color: #b9decf;
    background: var(--zmx-bp-green-soft-2);
    color: var(--zmx-bp-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.065);
}

/* =========================================================
   Main shell and hero
========================================================= */

body.buyer-protection-page .buyer-protection-shell {
    width: min(100% - 28px, 980px);
    margin: 0 auto;
    padding: 18px 0 42px;
}

body.buyer-protection-page .buyer-protection-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.85fr);
    min-height: 108px;
    align-items: center;
    gap: 18px;
    padding: 17px 19px;
    border: 1px solid #dce8e3;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            rgba(238, 250, 245, 0.96),
            rgba(255, 255, 255, 0.98)
        );
    box-shadow: 0 9px 26px rgba(15, 23, 42, 0.04);
}

body.buyer-protection-page .buyer-protection-kicker {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--zmx-bp-green-soft);
    color: var(--zmx-bp-green-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

body.buyer-protection-page .buyer-protection-hero h1 {
    margin: 0;
    color: #17181d;
    font-size: clamp(23px, 3.1vw, 32px);
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1;
}

body.buyer-protection-page .buyer-protection-hero p {
    max-width: 520px;
    margin: 8px 0 0;
    color: var(--zmx-bp-muted);
    font-size: 12px;
    font-weight: 620;
    line-height: 1.4;
}

body.buyer-protection-page .buyer-protection-hero-pills {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

body.buyer-protection-page .buyer-protection-hero-pills span {
    display: inline-flex;
    min-width: 0;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 6px;
    border: 1px solid #cee5dc;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.92);
    color: #415149;
    font-size: 9.5px;
    font-weight: 820;
    line-height: 1.1;
    text-align: center;
}

body.buyer-protection-page .buyer-protection-hero-pills i {
    flex: 0 0 auto;
    color: var(--zmx-bp-green);
    font-size: 14px;
}

/* =========================================================
   Sticky tabs
========================================================= */

body.buyer-protection-page .buyer-protection-tabs {
    position: sticky;
    top: 65px;
    z-index: 3000;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 11px 0;
    padding: 5px;
    border: 1px solid var(--zmx-bp-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.045);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.buyer-protection-page .buyer-protection-tab-link {
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #6d746f;
    font-size: 10.5px;
    font-weight: 850;
    text-decoration: none;
    transition:
        background 150ms ease,
        color 150ms ease,
        transform 150ms ease;
}

body.buyer-protection-page .buyer-protection-tab-link:hover {
    background: var(--zmx-bp-green-soft-2);
    color: var(--zmx-bp-green-dark);
}

body.buyer-protection-page .buyer-protection-tab-link.is-active {
    background: var(--zmx-bp-green-soft);
    color: var(--zmx-bp-green-dark);
    box-shadow: inset 0 0 0 1px #c3e7d8;
}

/* =========================================================
   Compact sections
========================================================= */

body.buyer-protection-page .buyer-protection-section {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 11px;
    padding: 15px 16px;
    border: 1px solid var(--zmx-bp-border);
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.032);
    scroll-margin-top: 121px;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 300ms ease,
        transform 300ms ease,
        border-color 150ms ease,
        box-shadow 150ms ease;
}

body.buyer-protection-page .buyer-protection-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.buyer-protection-page .buyer-protection-section:hover {
    border-color: #cfe2da;
    box-shadow: 0 9px 25px rgba(15, 23, 42, 0.05);
}

body.buyer-protection-page .buyer-protection-number {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid #c5e8da;
    border-radius: 10px;
    background: var(--zmx-bp-green-soft);
    color: var(--zmx-bp-green-dark);
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
}

body.buyer-protection-page .buyer-protection-content {
    min-width: 0;
}

body.buyer-protection-page .buyer-protection-section-title {
    margin: 1px 0 0;
    color: #1c2924;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

body.buyer-protection-page .buyer-protection-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 11px 0 0;
    padding: 0;
    list-style: none;
}

body.buyer-protection-page .buyer-protection-checklist li {
    display: grid;
    min-width: 0;
    grid-template-columns: 19px minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    padding: 8px 9px;
    border: 1px solid #e7eeeb;
    border-radius: 11px;
    background: #fbfdfc;
    color: #4b5550;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.32;
}

body.buyer-protection-page .buyer-protection-checklist li i {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--zmx-bp-green-soft);
    color: var(--zmx-bp-green-dark);
    font-size: 10px;
}

/* =========================================================
   Payment methods
========================================================= */

body.buyer-protection-page .buyer-payment-box {
    margin-top: 9px;
    padding: 10px;
    border: 1px solid #e5ece9;
    border-radius: 13px;
    background: #fbfdfc;
}

body.buyer-protection-page .buyer-payment-box-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

body.buyer-protection-page .buyer-payment-label {
    margin: 0 0 2px;
    color: var(--zmx-bp-green-dark);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.075em;
    line-height: 1;
    text-transform: uppercase;
}

body.buyer-protection-page .buyer-payment-box h3 {
    margin: 0;
    color: #242824;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

body.buyer-protection-page .buyer-payment-box-heading > span {
    color: #8a918d;
    font-size: 8.5px;
    font-weight: 750;
    white-space: nowrap;
}

body.buyer-protection-page .buyer-payment-methods-logo-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

body.buyer-protection-page .buyer-payment-logo-card {
    display: flex;
    width: 74px;
    height: 42px;
    min-width: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

body.buyer-protection-page .buyer-payment-logo-card.is-full-card {
    border: 0;
    background: transparent;
}

body.buyer-protection-page .buyer-payment-logo-card.is-full-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

body.buyer-protection-page .buyer-payment-logo-card.is-logo-only {
    padding: 3px 6px;
    border: 1px solid #e4e8e6;
    background: #ffffff;
}

body.buyer-protection-page .buyer-payment-logo-card.is-logo-only img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 64px;
    max-height: 25px;
    object-fit: contain;
    object-position: center;
}

body.buyer-protection-page
.buyer-payment-logo-card.is-logo-only
img[src$=".svg"] {
    transform: scale(1.13);
    transform-origin: center;
}

/* =========================================================
   Support and policy links
========================================================= */

body.buyer-protection-page .buyer-support-callout {
    margin-top: 9px;
    padding: 9px 10px;
    border: 1px solid #dceae4;
    border-radius: 11px;
    background: var(--zmx-bp-green-soft-2);
    color: #56635d;
    font-size: 10.5px;
    font-weight: 640;
    line-height: 1.35;
}

body.buyer-protection-page .buyer-support-callout strong {
    color: #24473a;
    font-weight: 900;
}

body.buyer-protection-page .buyer-policy-note {
    display: grid;
    gap: 3px;
    margin-top: 9px;
    padding: 9px 10px;
    border: 1px solid #dce8e3;
    border-radius: 11px;
    background: #f7fbf9;
    color: #56615c;
    text-align: left;
}

body.buyer-protection-page .buyer-policy-note strong {
    display: block;
    color: #1f3f33;
    font-size: 10px;
    font-weight: 950;
    line-height: 1.15;
    text-transform: none;
}

body.buyer-protection-page .buyer-policy-note p {
    margin: 0;
    color: #56615c;
    font-size: 10.5px;
    font-weight: 650;
    line-height: 1.35;
}

body.buyer-protection-page .buyer-policy-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 9px;
}

body.buyer-protection-page .buyer-policy-links a {
    display: flex;
    min-height: 37px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid #e4e9e7;
    border-radius: 11px;
    background: #ffffff;
    color: #252b28;
    font-size: 10.5px;
    font-weight: 850;
    text-decoration: none;
    transition:
        border-color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
}

body.buyer-protection-page .buyer-policy-links a:hover {
    border-color: #bddfD1;
    background: var(--zmx-bp-green-soft-2);
    color: var(--zmx-bp-green-dark);
    transform: translateY(-1px);
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 800px) {
    body.buyer-protection-page .zmx-policy-header {
        min-height: 59px;
        padding: 8px 12px;
    }

    body.buyer-protection-page .zmx-policy-brand-logo {
        display: none;
    }

    body.buyer-protection-page .zmx-policy-brand-name {
        font-size: clamp(19px, 5.8vw, 23px);
    }

    body.buyer-protection-page .zmx-policy-brand-subtitle {
        font-size: 9px;
        letter-spacing: 0.06em;
    }

    body.buyer-protection-page .zmx-policy-back-link {
        min-height: 36px;
        padding: 0 10px;
        border-radius: 12px;
        font-size: 11px;
    }

    body.buyer-protection-page .zmx-policy-account-link {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    body.buyer-protection-page .buyer-protection-shell {
        width: min(100% - 20px, 980px);
        padding-top: 11px;
    }

    body.buyer-protection-page .buyer-protection-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 12px;
        padding: 14px;
        border-radius: 16px;
    }

    body.buyer-protection-page .buyer-protection-hero h1 {
        font-size: 25px;
    }

    body.buyer-protection-page .buyer-protection-tabs {
        top: 60px;
    }

    body.buyer-protection-page .buyer-protection-checklist {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    body.buyer-protection-page .zmx-policy-back-link span {
        display: none;
    }

    body.buyer-protection-page .zmx-policy-back-link {
        width: 36px;
        padding: 0;
    }

    body.buyer-protection-page .buyer-protection-hero-pills {
        gap: 4px;
    }

    body.buyer-protection-page .buyer-protection-hero-pills span {
        min-height: 36px;
        gap: 3px;
        padding-inline: 3px;
        font-size: 8.2px;
    }

    body.buyer-protection-page .buyer-protection-hero-pills i {
        font-size: 12px;
    }

    body.buyer-protection-page .buyer-protection-tabs {
        gap: 4px;
        padding: 4px;
        border-radius: 13px;
    }

    body.buyer-protection-page .buyer-protection-tab-link {
        min-height: 33px;
        padding-inline: 2px;
        font-size: 8.8px;
    }

    body.buyer-protection-page .buyer-protection-section {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 8px;
        padding: 12px;
        border-radius: 15px;
        scroll-margin-top: 113px;
    }

    body.buyer-protection-page .buyer-protection-number {
        width: 27px;
        height: 27px;
        border-radius: 8px;
        font-size: 10px;
    }

    body.buyer-protection-page .buyer-protection-section-title {
        font-size: 15px;
    }

    body.buyer-protection-page .buyer-payment-box-heading {
        align-items: flex-start;
    }

    body.buyer-protection-page .buyer-payment-methods-logo-grid {
        gap: 5px;
    }

    body.buyer-protection-page .buyer-payment-logo-card {
        width: calc((100% - 10px) / 3);
        height: 40px;
    }

    body.buyer-protection-page .buyer-policy-links {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.buyer-protection-page .buyer-protection-section {
        opacity: 1;
        transform: none;
        transition-duration: 0.01ms !important;
    }

    body.buyer-protection-page .zmx-policy-header,
    body.buyer-protection-page .buyer-protection-tab-link,
    body.buyer-protection-page .buyer-policy-links a,
    body.buyer-protection-page .zmx-policy-back-link,
    body.buyer-protection-page .zmx-policy-account-link {
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   Buyer Protection v3 refinements
========================================================= */

/*
   Use the same compact highlighted-label language as the small
   availability badge, while preserving the main heading weight.
*/
body.buyer-protection-page .buyer-protection-title-chip {
    display: inline-flex;
    width: fit-content;
    min-height: 38px;
    align-items: center;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #c5e8da;
    border-radius: 12px;
    background: var(--zmx-bp-green-soft);
    color: #17382d;
    font-size: clamp(21px, 2.8vw, 28px);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 5px 13px rgba(17, 132, 95, 0.06);
}

body.buyer-protection-page .buyer-protection-section-title {
    display: inline-flex;
    width: fit-content;
    min-height: 25px;
    align-items: center;
    margin: 0;
    padding: 0 9px;
    border: 1px solid #d3e9e0;
    border-radius: 999px;
    background: var(--zmx-bp-green-soft-2);
    color: var(--zmx-bp-green-dark);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
}

/* =========================================================
   Payment logo cleanup
========================================================= */

/* Logo-only methods should not sit inside another white card. */
body.buyer-protection-page .buyer-payment-logo-card.is-logo-only {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Apple Pay, Google Pay, Cash App Pay, and Afterpay read as main logos. */
body.buyer-protection-page .buyer-payment-logo-card.is-logo-large {
    width: 82px;
    height: 42px;
}

body.buyer-protection-page
.buyer-payment-logo-card.is-logo-large
img {
    width: 100%;
    height: 100%;
    max-width: 78px;
    max-height: 31px;
    object-fit: contain;
    transform: none;
}

/* Cash App and Afterpay SVG art benefits from a controlled enlargement. */
body.buyer-protection-page
.buyer-payment-logo-card.is-cash-app-pay
img,
body.buyer-protection-page
.buyer-payment-logo-card.is-afterpay
img {
    transform: scale(1.13);
    transform-origin: center;
}

/* Link and Affirm stay intentionally quieter and smaller. */
body.buyer-protection-page .buyer-payment-logo-card.is-logo-small {
    width: 63px;
    height: 42px;
}

body.buyer-protection-page
.buyer-payment-logo-card.is-logo-small
img {
    width: 100%;
    height: 100%;
    max-width: 52px;
    max-height: 21px;
    object-fit: contain;
    transform: none;
}

/* =========================================================
   Logged-in support action
========================================================= */

body.buyer-protection-page .buyer-support-action {
    display: flex;
    justify-content: flex-start;
    margin-top: 9px;
}

body.buyer-protection-page .buyer-support-action a {
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid #cce5db;
    border-radius: 10px;
    background: var(--zmx-bp-green-soft-2);
    color: var(--zmx-bp-green-dark);
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition:
        border-color 150ms ease,
        background 150ms ease,
        transform 150ms ease;
}

body.buyer-protection-page .buyer-support-action a:hover {
    border-color: #afd8c8;
    background: var(--zmx-bp-green-soft);
    color: var(--zmx-bp-green-dark);
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    body.buyer-protection-page .buyer-protection-title-chip {
        min-height: 35px;
        padding-inline: 11px;
        border-radius: 11px;
        font-size: 21px;
    }

    body.buyer-protection-page .buyer-protection-section-title {
        min-height: 23px;
        padding-inline: 8px;
        font-size: 9px;
    }

    body.buyer-protection-page .buyer-payment-logo-card.is-logo-large {
        width: calc((100% - 10px) / 3);
        height: 40px;
    }

    body.buyer-protection-page .buyer-payment-logo-card.is-logo-small {
        width: calc((100% - 10px) / 3);
        height: 40px;
    }
}


/* =========================================================
   Buyer Protection v4 refinements
========================================================= */

/* The hero now begins with Buyer Protection and its short explanation. */
body.buyer-protection-page .buyer-protection-hero-copy {
    display: grid;
    align-content: center;
}

body.buyer-protection-page .buyer-protection-kicker {
    width: fit-content;
    margin-bottom: 6px;
}

body.buyer-protection-page .buyer-protection-hero-copy > p {
    margin-top: 0;
    max-width: 500px;
}

/*
   Give Cash App, Link, Affirm, and Afterpay a restrained card surface,
   similar in weight to the supplied Visa and Mastercard artwork.
*/
body.buyer-protection-page
.buyer-payment-logo-card.is-faint-card {
    padding: 3px 6px;
    border: 1px solid #e1e7e4;
    border-radius: 8px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(247, 249, 248, 0.98)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 5px rgba(15, 23, 42, 0.025);
}

/* Keep the logo artwork centered after restoring the faint card. */
body.buyer-protection-page
.buyer-payment-logo-card.is-faint-card
img {
    object-fit: contain;
    object-position: center;
}

@media (max-width: 800px) {
    body.buyer-protection-page .buyer-protection-hero {
        gap: 10px;
    }
}


/* =========================================================
   Buyer Protection v5 refinements
========================================================= */

/* Center the entire hero so it reads cleanly on desktop and mobile. */
body.buyer-protection-page .buyer-protection-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    justify-items: center;
    gap: 8px;
    padding: 15px 18px 13px;
    text-align: center;
}

body.buyer-protection-page .buyer-protection-hero-copy {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    text-align: center;
}

body.buyer-protection-page .buyer-protection-kicker {
    margin: 0;
}

body.buyer-protection-page .buyer-protection-confidence-label {
    margin: 2px 0 0;
    color: var(--zmx-bp-green-dark);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.085em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

body.buyer-protection-page .buyer-protection-hero-description {
    max-width: 560px;
    margin: 2px auto 0 !important;
    color: var(--zmx-bp-muted);
    font-size: 11.5px;
    font-weight: 620;
    line-height: 1.35;
    text-align: center;
}

/* Pull the three protection items closer to the text to remove empty space. */
body.buyer-protection-page .buyer-protection-hero-pills {
    width: min(100%, 560px);
    margin-top: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

body.buyer-protection-page .buyer-protection-hero-pills span {
    min-height: 34px;
    padding-inline: 6px;
}

/* Stack every pair of checks on desktop as well as mobile. */
body.buyer-protection-page .buyer-protection-checklist {
    grid-template-columns: minmax(0, 1fr);
}

/*
   Cash App, Link, Affirm, and Afterpay keep a soft background that
   matches the card artwork, but the visible outline is removed.
*/
body.buyer-protection-page
.buyer-payment-logo-card.is-faint-card {
    border: 0 !important;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.99),
            rgba(245, 247, 246, 0.99)
        );
    box-shadow:
        0 3px 8px rgba(15, 23, 42, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

@media (max-width: 800px) {
    body.buyer-protection-page .buyer-protection-hero {
        gap: 7px;
        padding: 13px 13px 12px;
    }

    body.buyer-protection-page .buyer-protection-hero-description {
        max-width: 430px;
        font-size: 10.8px;
    }

    body.buyer-protection-page .buyer-protection-hero-pills {
        width: min(100%, 460px);
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    body.buyer-protection-page .buyer-protection-hero {
        padding: 12px 10px 10px;
    }

    body.buyer-protection-page .buyer-protection-confidence-label {
        font-size: 9px;
    }

    body.buyer-protection-page .buyer-protection-hero-description {
        max-width: 330px;
        font-size: 10px;
    }

    body.buyer-protection-page .buyer-protection-hero-pills {
        gap: 4px;
    }

    body.buyer-protection-page .buyer-protection-hero-pills span {
        min-height: 32px;
        font-size: 8px;
    }
}


/* =========================================================
   Buyer Protection — stronger confidence label
========================================================= */

body.buyer-protection-page .buyer-protection-confidence-label {
    color: #0b6044 !important;
    font-size: 11px !important;
    font-weight: 1000 !important;
    letter-spacing: 0.065em !important;
    text-shadow: 0 0 0.01px currentColor;
}

@media (max-width: 520px) {
    body.buyer-protection-page .buyer-protection-confidence-label {
        font-size: 10px !important;
        font-weight: 1000 !important;
    }
}

/* =========================================================
   Buyer Protection mobile navigation — dashboard consistency
   Only the buyer-protection top bar and mobile drawer are affected.
========================================================= */

body.buyer-protection-page .zmx-policy-header-brand-side {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

body.buyer-protection-page .zmx-policy-menu-toggle {
    display: none;
}

body.buyer-protection-page .zmx-policy-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: block;
    visibility: hidden;
    background: rgba(12, 14, 20, 0.42);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition:
        opacity 260ms ease,
        visibility 0s linear 260ms;
}

body.buyer-protection-page
.zmx-policy-menu-backdrop.is-mounted {
    visibility: visible;
    transition-delay: 0s;
}

body.buyer-protection-page
.zmx-policy-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

body.buyer-protection-page .zmx-policy-menu-panel {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 9600 !important;
    display: block !important;
    visibility: hidden;
    width: min(86vw, 340px) !important;
    height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 24px 24px 0 !important;
    background: #ffffff !important;
    box-shadow: 18px 0 55px rgba(15, 23, 42, 0.22) !important;
    opacity: 0;
    transform: translate3d(-108%, 0, 0) !important;
    transition:
        transform 320ms cubic-bezier(0.2, 0.82, 0.2, 1),
        opacity 190ms ease,
        visibility 0s linear 320ms !important;
    will-change: transform;
}

body.buyer-protection-page
.zmx-policy-menu-panel.is-mounted {
    visibility: visible;
    transition-delay: 0s !important;
}

body.buyer-protection-page
.zmx-policy-menu-panel.is-open {
    opacity: 1;
    transform: translate3d(0, 0, 0) !important;
}

body.buyer-protection-page .zmx-policy-menu-panel-inner {
    height: 100%;
    padding:
        max(18px, env(safe-area-inset-top))
        17px
        max(22px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -2px -2px 14px;
    padding: 8px 2px 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #111318;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-close {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--zmx-bp-border);
    border-radius: 13px;
    background: #ffffff;
    color: #111318;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-section {
    padding: 14px;
    border: 1px solid #e5e6eb;
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-section
+ .mobile-menu-section {
    margin-top: 13px;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-heading {
    margin: 0 0 10px;
    color: #777985;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.065em;
    line-height: 1;
    text-transform: uppercase;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-section
> .mobile-menu-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid #e5e6eb;
    border-radius: 14px;
    background: #ffffff;
    color: #111318;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 13px rgba(15, 23, 42, 0.025);
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-section
> .mobile-menu-link
+ .mobile-menu-link {
    margin-top: 7px;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-section
> .mobile-menu-link:hover,
body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-section
> .mobile-menu-link:focus-visible {
    border-color: #d7d9df;
    background: #f8f8fa;
    color: #111318;
    text-decoration: none;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-section
> .mobile-menu-link:focus-visible,
body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-summary:focus-visible,
body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-link:focus-visible {
    outline: 3px solid rgba(113, 69, 214, 0.16);
    outline-offset: 2px;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-badge {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #e60023;
    color: #ffffff;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-like-left {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-like-icon {
    font-size: 16px;
}

/* One outlined expandable Shop card, matching the dashboard. */
body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-dropdown {
    overflow: hidden;
    border: 1px solid #e5e6eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 13px rgba(15, 23, 42, 0.025);
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px;
    color: #111318;
    font-size: 14px;
    font-weight: 900;
    list-style: none;
    cursor: pointer;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-summary::-webkit-details-marker {
    display: none;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-summary-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #777985;
    font-size: 12px;
    font-weight: 900;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-summary-right i {
    font-size: 13px;
    transition: transform 180ms ease;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-list {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    border-top: 0 solid #e5e6eb;
    background: #ffffff;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        max-height 240ms ease,
        padding 240ms ease,
        border-width 240ms ease,
        opacity 180ms ease,
        transform 180ms ease;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-dropdown[open]
.mobile-category-list {
    max-height: min(58dvh, 560px);
    padding: 8px 8px 9px;
    overflow-y: auto;
    border-top-width: 1px;
    opacity: 1;
    transform: translateY(0);
    overscroll-behavior: contain;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-dropdown[open]
.mobile-category-summary-right i {
    transform: rotate(180deg);
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-link {
    display: flex;
    min-height: 39px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 5px 0 10px;
    border-radius: 10px;
    color: #111318;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-link:hover,
body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-link:focus-visible {
    background: #f7f7fa;
    color: #111318;
    text-decoration: none;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-link
span:last-child {
    min-width: 24px;
    color: #777985;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-menu-link,
body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-summary,
body.buyer-protection-page
.zmx-policy-menu-panel
.mobile-category-link {
    opacity: 0;
    transform: translateX(-9px);
    transition:
        opacity 210ms ease,
        transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
        background 160ms ease;
    transition-delay: 0ms;
}

body.buyer-protection-page
.zmx-policy-menu-panel.is-open
.mobile-menu-link,
body.buyer-protection-page
.zmx-policy-menu-panel.is-open
.mobile-category-summary,
body.buyer-protection-page
.zmx-policy-menu-panel.is-open
.mobile-category-link {
    opacity: 1;
    transform: translateX(0);
    transition-delay:
        calc(var(--zmx-item-index, 0) * 22ms + 70ms);
}

html.zmx-policy-menu-lock,
html.zmx-policy-menu-lock body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

@media (max-width: 800px) {
    body.buyer-protection-page .zmx-policy-header-brand-side {
        gap: 8px;
    }

    body.buyer-protection-page .zmx-policy-menu-toggle {
        position: relative;
        display: inline-block;
        width: 43px;
        height: 43px;
        flex: 0 0 43px;
        padding: 0;
        border: 1px solid var(--zmx-bp-border);
        border-radius: 15px;
        background: #ffffff;
        box-shadow:
            0 7px 18px rgba(15, 23, 42, 0.045),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    body.buyer-protection-page .zmx-policy-menu-line {
        position: absolute;
        left: 11px;
        width: 21px;
        height: 2.5px;
        border-radius: 999px;
        background: #15171b;
        transform-origin: center;
        transition:
            transform 240ms cubic-bezier(0.2, 0.75, 0.2, 1),
            opacity 160ms ease,
            top 240ms cubic-bezier(0.2, 0.75, 0.2, 1);
    }

    body.buyer-protection-page
    .zmx-policy-menu-line:nth-child(1) {
        top: 13px;
    }

    body.buyer-protection-page
    .zmx-policy-menu-line:nth-child(2) {
        top: 20px;
    }

    body.buyer-protection-page
    .zmx-policy-menu-line:nth-child(3) {
        top: 27px;
    }

    body.buyer-protection-page
    .zmx-policy-menu-toggle.is-open
    .zmx-policy-menu-line:nth-child(1) {
        top: 20px;
        transform: rotate(45deg);
    }

    body.buyer-protection-page
    .zmx-policy-menu-toggle.is-open
    .zmx-policy-menu-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.3);
    }

    body.buyer-protection-page
    .zmx-policy-menu-toggle.is-open
    .zmx-policy-menu-line:nth-child(3) {
        top: 20px;
        transform: rotate(-45deg);
    }

    body.buyer-protection-page .zmx-policy-brand {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    body.buyer-protection-page .zmx-policy-menu-toggle {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    body.buyer-protection-page .zmx-policy-menu-line {
        left: 10px;
        width: 19px;
    }

    body.buyer-protection-page
    .zmx-policy-menu-line:nth-child(1) {
        top: 12px;
    }

    body.buyer-protection-page
    .zmx-policy-menu-line:nth-child(2) {
        top: 18px;
    }

    body.buyer-protection-page
    .zmx-policy-menu-line:nth-child(3) {
        top: 24px;
    }

    body.buyer-protection-page
    .zmx-policy-menu-toggle.is-open
    .zmx-policy-menu-line:nth-child(1),
    body.buyer-protection-page
    .zmx-policy-menu-toggle.is-open
    .zmx-policy-menu-line:nth-child(3) {
        top: 18px;
    }

    body.buyer-protection-page
    .zmx-policy-menu-panel-inner {
        padding-right: 14px;
        padding-left: 14px;
    }

    body.buyer-protection-page
    .zmx-policy-menu-panel
    .mobile-menu-section {
        padding: 12px;
        border-radius: 18px;
    }

    body.buyer-protection-page
    .zmx-policy-menu-panel
    .mobile-menu-section
    > .mobile-menu-link,
    body.buyer-protection-page
    .zmx-policy-menu-panel
    .mobile-category-summary {
        min-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.buyer-protection-page .zmx-policy-menu-panel,
    body.buyer-protection-page .zmx-policy-menu-backdrop,
    body.buyer-protection-page .zmx-policy-menu-line,
    body.buyer-protection-page
    .zmx-policy-menu-panel
    .mobile-menu-link,
    body.buyer-protection-page
    .zmx-policy-menu-panel
    .mobile-category-summary,
    body.buyer-protection-page
    .zmx-policy-menu-panel
    .mobile-category-link,
    body.buyer-protection-page
    .zmx-policy-menu-panel
    .mobile-category-list {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =========================================================
   Buyer Protection mobile drawer layer correction
   Mobile Safari can keep sticky/backdrop-filter layers above
   fixed drawers. Hide the sticky tabs only while the drawer
   is open, and keep the overlay dark without blurring the menu.
========================================================= */

body.buyer-protection-page .zmx-policy-menu-backdrop {
    z-index: 9500 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.buyer-protection-page .zmx-policy-menu-panel {
    z-index: 9600 !important;
}

body.buyer-protection-page.zmx-policy-menu-open
.buyer-protection-tabs {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.buyer-protection-page .buyer-protection-tabs {
    transition:
        opacity 120ms ease,
        visibility 0s linear 120ms;
}

body.buyer-protection-page.zmx-policy-menu-open
.buyer-protection-tabs {
    transition-delay: 0s;
}

