/* =========================================================
   PREMIUM BED — PAYMENT OPTIONS
========================================================= */

.pb-payment-strip,
.pb-payment-strip * ,
.pb-payment-page,
.pb-payment-page * {
    box-sizing: border-box;
}


/* =========================================================
   PRODUCT PAGE PAYMENT STRIP
========================================================= */

.pb-payment-strip {
    display: grid;
    grid-template-columns: minmax(170px, .8fr) minmax(260px, 1.35fr) auto;
    align-items: center;
    gap: 18px;

    width: 100%;
    margin: 17px 0 0;
    padding: 15px 17px;

    background: #f7f3ec;
    color: #101820 !important;

    border: 1px solid #e3e0db;
    border-left: 4px solid #c88629;
    border-radius: 8px;

    text-decoration: none !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.pb-payment-strip:hover {
    border-color: rgba(200,134,41,.65);
    box-shadow: 0 10px 24px rgba(16,24,32,.08);
    transform: translateY(-1px);
}

.pb-payment-strip-copy {
    display: block;
    min-width: 0;
}

.pb-payment-strip-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: #b97116;

    font-family: "Montserrat",Arial,sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.pb-payment-strip-title {
    display: block;

    color: #101820;

    font-family: "Montserrat",Arial,sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.pb-payment-strip-subtitle {
    display: block;

    margin-top: 3px;

    color: #6b747c;

    font-size: 9.5px;
    line-height: 1.35;
}

.pb-payment-strip-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;

    min-width: 0;
}

.pb-payment-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 28px;

    padding: 3px 5px;

    background: #ffffff;

    border: 1px solid #e4e0da;
    border-radius: 4px;
}

.pb-payment-logo img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain;

    margin: 0 !important;
    padding: 0 !important;
}

.pb-payment-logo-wide {
    width: 76px;
}

.pb-payment-logo-provider {
    width: 72px;
}

.pb-payment-logo-text {
    width: auto;
    min-width: 54px;

    padding-right: 8px;
    padding-left: 8px;

    color: #101820;

    font-family: "Montserrat",Arial,sans-serif;
    font-size: 8px;
    font-weight: 700;

    white-space: nowrap;
}

.pb-payment-strip-link {
    display: inline-flex;
    align-items: center;

    color: #b97116;

    font-family: "Montserrat",Arial,sans-serif;
    font-size: 9px;
    font-weight: 700;

    white-space: nowrap;
}

.pb-payment-strip-link span {
    margin-left: 5px;
    font-size: 13px;
}


/* =========================================================
   PAYMENT OPTIONS PAGE
========================================================= */

.pb-payment-page {
    width: 100%;
}

.pb-payment-page-inner {
    width: 90%;
    max-width: 1180px;

    margin: 0 auto;
}

.pb-payment-page-hero {
    position: relative;
    overflow: hidden;

    padding: 44px 0;

    background: #101820;
}

.pb-payment-page-hero::after {
    position: absolute;
    top: -190px;
    right: -100px;

    width: 360px;
    height: 360px;

    border: 1px solid rgba(200,134,41,.2);
    border-radius: 50%;

    content: "";
}

.pb-payment-page-hero .pb-payment-page-inner {
    position: relative;
    z-index: 2;

    max-width: 900px;

    text-align: center;
}

.pb-payment-page-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #c88629;

    font-family: "Montserrat",Arial,sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.6px;
}

.pb-payment-page-hero h1 {
    margin: 0 0 10px !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-size: clamp(36px,4vw,50px);
    line-height: 1.08;
}

.pb-payment-page-hero p {
    max-width: 690px;

    margin: 0 auto !important;

    color: rgba(255,255,255,.72);

    font-size: 13px;
    line-height: 1.6;
}

.pb-payment-page-hero-logos {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 18px;
}

.pb-payment-page-hero-logos .pb-payment-logo {
    width: 112px;
    height: 42px;

    padding: 7px 9px;
}


/* CONTENT */

.pb-payment-page-content {
    padding: 38px 0 42px;

    background: #f7f3ec;
}

.pb-payment-provider-grid {
    display: grid;

    grid-template-columns: repeat(3,minmax(0,1fr));

    gap: 16px;
}

.pb-payment-provider-card {
    min-width: 0;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #e3e0db;
    border-radius: 10px;

    box-shadow: 0 8px 22px rgba(16,24,32,.05);
}

.pb-payment-provider-card-dark {
    background: #101820;
    border-color: #101820;
}

.pb-payment-provider-logo {
    display: flex;

    margin-bottom: 17px;
}

.pb-payment-provider-logo .pb-payment-logo {
    width: 145px;
    height: 48px;

    justify-content: flex-start;

    padding: 7px 10px;
}

.pb-payment-provider-card-dark .pb-payment-provider-logo .pb-payment-logo {
    background: #ffffff;
}

.pb-payment-provider-label {
    display: block;

    margin-bottom: 7px;

    color: #c88629;

    font-family: "Montserrat",Arial,sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.pb-payment-provider-card h2 {
    margin: 0 0 9px !important;
    padding: 0 !important;

    color: #101820 !important;

    font-size: 28px;
    line-height: 1.15;
}

.pb-payment-provider-card > p {
    margin: 0 0 15px !important;

    color: #68737c;

    font-size: 12px;
    line-height: 1.65;
}

.pb-payment-provider-card-dark h2 {
    color: #ffffff !important;
}

.pb-payment-provider-card-dark > p,
.pb-payment-provider-card-dark li {
    color: rgba(255,255,255,.7);
}

.pb-payment-method-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin: 17px 0 13px;
    padding: 13px;

    background: #f7f3ec;

    border-radius: 7px;
}

.pb-payment-method-row .pb-payment-logo {
    width: 72px;
    height: 34px;
}

.pb-payment-method-row .pb-payment-logo-wide {
    width: 98px;
}

.pb-payment-provider-card ul {
    margin: 14px 0 16px !important;
    padding: 0 !important;

    list-style: none;
}

.pb-payment-provider-card li {
    position: relative;

    margin: 0 !important;
    padding: 8px 0 8px 19px;

    border-bottom: 1px solid rgba(255,255,255,.1);

    font-size: 11px;
    line-height: 1.45;
}

.pb-payment-provider-card li::before {
    position: absolute;
    top: 8px;
    left: 0;

    color: #c88629;

    content: "✓";

    font-weight: 700;
}

.pb-payment-provider-note {
    margin-bottom: 0 !important;

    font-size: 10px !important;
    line-height: 1.5 !important;
}

.pb-payment-provider-card-dark .pb-payment-provider-note {
    color: rgba(255,255,255,.54) !important;
}


/* SECURITY */

.pb-payment-security-note {
    display: grid;

    grid-template-columns: 42px minmax(0,1fr);

    gap: 13px;

    margin-top: 16px;
    padding: 17px 19px;

    background: #ffffff;

    border: 1px solid #e3e0db;
    border-radius: 8px;
}

.pb-payment-security-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    background: rgba(200,134,41,.12);
    color: #b97116;

    border-radius: 50%;

    font-weight: 700;
}

.pb-payment-security-note strong {
    display: block;

    margin-bottom: 3px;

    color: #101820;

    font-size: 11px;
}

.pb-payment-security-note p {
    margin: 0 !important;

    color: #68737c;

    font-size: 10.5px;
    line-height: 1.5;
}


/* PAGE ACTIONS */

.pb-payment-page-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 20px;
}

.pb-payment-page-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 43px;

    padding: 0 18px;

    font-family: "Montserrat",Arial,sans-serif;
    font-size: 9px;
    font-weight: 700;

    border-radius: 5px;

    text-decoration: none !important;
}

.pb-payment-page-primary {
    background: #c88629;
    color: #ffffff !important;

    border: 1px solid #c88629;
}

.pb-payment-page-secondary {
    background: #ffffff;
    color: #101820 !important;

    border: 1px solid #d9d5cf;
}


/* =========================================================
   TABLET
========================================================= */

@media only screen and (max-width:980px) {

    .pb-payment-strip {
        grid-template-columns: 1fr auto;
    }

    .pb-payment-strip-logos {
        grid-column: 1 / -1;
        grid-row: 2;

        justify-content: flex-start;
    }

    .pb-payment-provider-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media only screen and (max-width:767px) {

    .pb-payment-strip {
        display: block;

        padding: 14px;
    }

    .pb-payment-strip-logos {
        justify-content: flex-start;

        margin-top: 11px;

        gap: 6px;
    }

    .pb-payment-logo {
        width: 48px;
        height: 26px;
    }

    .pb-payment-logo-wide,
    .pb-payment-logo-provider {
        width: 65px;
    }

    .pb-payment-strip-link {
        margin-top: 11px;
    }

    .pb-payment-page-inner {
        width: 88%;
    }

    .pb-payment-page-hero {
        padding: 34px 0;
    }

    .pb-payment-page-hero h1 {
        font-size: 33px;
    }

    .pb-payment-page-content {
        padding: 29px 0 33px;
    }

    .pb-payment-provider-card {
        padding: 20px;
    }

    .pb-payment-provider-card h2 {
        font-size: 24px;
    }

    .pb-payment-security-note {
        grid-template-columns: 36px minmax(0,1fr);

        padding: 15px;
    }

    .pb-payment-security-icon {
        width: 33px;
        height: 33px;
    }

    .pb-payment-page-actions {
        display: grid;

        grid-template-columns: 1fr;
    }

    .pb-payment-page-actions a {
        width: 100%;
    }
}


/* =========================================================
   PAYMENT OPTIONS V1.1 — LEFT GALLERY STRIP + LOGO FIXES
========================================================= */

/*
 * The product strip now sits below the product gallery in the LEFT column.
 * Layout is deliberately compact and horizontal at desktop width.
 */
.pb-payment-strip {
    grid-template-columns: minmax(150px, .85fr) minmax(230px, 1.25fr) !important;
    gap: 11px 16px !important;
    margin: 14px 0 0 !important;
    padding: 14px 15px !important;
}

.pb-payment-strip-copy {
    align-self: center;
}

.pb-payment-strip-logos {
    justify-content: flex-end !important;
    gap: 7px !important;
}

.pb-payment-strip-link {
    grid-column: 1 / -1;
    justify-self: flex-end;
    margin-top: -2px;
}

/*
 * The previous matcher could select MasterCard SecureCode. V1.1 rejects
 * security/authentication badges completely. If no genuine Mastercard mark is
 * available in the official Payfast pack, the plugin falls back to a clean
 * text Mastercard tile rather than displaying the wrong mark.
 */

/*
 * Payfast's official pack includes light/reverse variants. The matcher now
 * rejects those, but this dark fallback also guarantees legibility if a
 * transparent light brand file is ever supplied by the pack.
 */
.pb-payment-logo-key-payfast {
    background: #101820 !important;
    border-color: #101820 !important;
}

.pb-payment-logo-key-payfast.pb-payment-logo-text {
    color: #ffffff !important;
}

.pb-payment-logo-key-payfast img {
    object-fit: contain !important;
}

/* Keep Payflex's official mark comfortable inside its tile. */
.pb-payment-logo-key-payflex {
    padding: 4px 7px !important;
}

/* Gallery-column / medium desktop widths */
@media only screen and (min-width: 981px) and (max-width: 1250px) {

    .pb-payment-strip {
        grid-template-columns: 1fr !important;
    }

    .pb-payment-strip-logos {
        justify-content: flex-start !important;
    }

    .pb-payment-strip-link {
        justify-self: start;
        margin-top: 0;
    }
}

/* Tablet and mobile */
@media only screen and (max-width: 980px) {

    .pb-payment-strip {
        display: block !important;
    }

    .pb-payment-strip-logos {
        justify-content: flex-start !important;
        margin-top: 11px !important;
    }

    .pb-payment-strip-link {
        display: inline-flex !important;
        margin-top: 11px !important;
    }
}


/* =========================================================
   PAYMENT OPTIONS V1.2 — OFFICIAL MASTERCARD SYMBOL
========================================================= */

.pb-payment-logo-key-mastercard {
    padding: 4px 7px !important;
}

.pb-payment-logo-key-mastercard img {
    object-fit: contain !important;
}


/* =========================================================
   PAYMENT OPTIONS V1.4 — PAYJUSTNOW PAGE SUPPORT
========================================================= */

/* Keep all three providers balanced across the desktop page. */
.pb-payment-provider-card-payjustnow {
    border-top: 4px solid #c88629;
}

.pb-payment-provider-card-payjustnow .pb-payment-provider-logo .pb-payment-logo-key-payjustnow {
    padding: 0 !important;
    overflow: hidden;
}

.pb-payment-provider-card-payjustnow .pb-payment-provider-logo .pb-payment-logo-key-payjustnow img {
    object-fit: contain !important;
}

/* PayJustNow uses the same checklist treatment as the dark Payflex card,
   but on Premium Bed's light card background. */
.pb-payment-provider-card-payjustnow li {
    color: #68737c;
    border-bottom-color: #ece7df;
}

/* Three cards are comfortable on large desktop. On medium desktop/tablet,
   stack to avoid narrow payment-provider cards. */
@media only screen and (min-width: 981px) and (max-width: 1180px) {
    .pb-payment-provider-grid {
        grid-template-columns: 1fr !important;
    }
}
