
/* MRTalla installment experience - Phase 11 */
.installment-page {
    --installment-accent: #d79b12;
    --installment-accent-dark: #a76f00;
    --installment-ink: #2f2a22;
    --installment-muted: #756f65;
    --installment-border: rgba(68, 63, 54, .12);
    --installment-soft: #fbf8f1;
    color: var(--installment-ink);
    background: #fff;
}

.installment-page *,
.installment-product-box *,
.installment-checkout * {
    box-sizing: border-box;
}

.installment-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 56px;
    background:
        radial-gradient(circle at 15% 20%, rgba(215, 155, 18, .13), transparent 32%),
        linear-gradient(145deg, #fffdfa, #f8f2e7);
}

.installment-hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(215, 155, 18, .18);
    border-radius: 50%;
    left: -120px;
    bottom: -150px;
}

.installment-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    font-size: 13px;
    color: var(--installment-muted);
}

.installment-breadcrumb a {
    color: inherit;
}

.installment-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 48px;
    align-items: center;
}

.installment-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--installment-accent-dark);
    background: rgba(215, 155, 18, .11);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.installment-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.45;
    font-weight: 900;
    color: #242019;
}

.installment-hero__content > p {
    max-width: 720px;
    margin: 0;
    font-size: 16px;
    line-height: 2.05;
    color: var(--installment-muted);
}

.installment-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.installment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.installment-btn:hover {
    transform: translateY(-1px);
}

.installment-btn--primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--installment-accent), #c98808);
    box-shadow: 0 10px 25px rgba(183, 122, 4, .18);
}

.installment-btn--ghost {
    color: var(--installment-ink) !important;
    background: rgba(255, 255, 255, .7);
    border-color: var(--installment-border);
}

.installment-btn--outline {
    color: var(--installment-ink) !important;
    background: #fff;
    border-color: rgba(68, 63, 54, .2);
}

.installment-btn--block {
    width: 100%;
}

.installment-trust-note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--installment-muted);
}

.installment-trust-note__icon {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border-radius: 50%;
    color: #fff;
    background: #2f8f62;
    font-size: 11px;
    font-weight: 900;
}

.installment-hero__visual {
    position: relative;
}

.installment-hero-card {
    position: relative;
    z-index: 1;
    padding: 24px;
    border: 1px solid rgba(215, 155, 18, .2);
    border-radius: 24px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 24px 70px rgba(72, 54, 20, .12);
    backdrop-filter: blur(8px);
}

.installment-hero-card__badge {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #222;
    color: #fff;
    font-size: 11px;
}

.installment-hero-card > strong {
    display: block;
    margin-bottom: 18px;
    font-size: 18px;
}

.installment-mini-provider {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    padding: 13px;
    border-radius: 15px;
    border: 1px solid var(--installment-border);
    background: #fff;
}

.installment-mini-provider.is-primary {
    border-color: rgba(215, 155, 18, .32);
    background: #fffaf0;
}

.installment-mini-provider b,
.installment-mini-provider small {
    display: block;
}

.installment-mini-provider small {
    margin-top: 3px;
    color: var(--installment-muted);
    font-size: 11px;
}

.installment-provider-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #e6ae2e, #b67700);
    font-size: 18px;
    font-weight: 900;
}

.installment-provider-mark.is-secondary {
    background: linear-gradient(135deg, #3e6f9f, #214c78);
}

.installment-section {
    padding: 62px 0;
}

.installment-section--soft {
    background: var(--installment-soft);
}

.installment-section-heading {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.installment-section-heading > span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--installment-accent-dark);
    font-size: 12px;
    font-weight: 800;
}

.installment-section-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 900;
}

.installment-section-heading p {
    margin: 0;
    color: var(--installment-muted);
    line-height: 1.9;
}

.installment-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.installment-provider-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 24px;
    border: 1px solid var(--installment-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(64, 53, 34, .06);
}

.installment-provider-card--primary {
    border-color: rgba(215, 155, 18, .35);
    box-shadow: 0 16px 44px rgba(183, 122, 4, .11);
}

.installment-provider-card__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.installment-provider-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.installment-provider-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
}

.installment-provider-brand > div {
    min-width: 0;
}

.installment-provider-brand strong,
.installment-provider-brand small {
    display: block;
}

.installment-provider-brand strong {
    font-size: 17px;
}

.installment-provider-brand small {
    margin-top: 3px;
    color: var(--installment-muted);
    font-size: 11px;
}

.installment-provider-priority,
.installment-provider-type {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.installment-provider-priority {
    color: #8a5900;
    background: #fff1c8;
}

.installment-provider-type {
    color: #315474;
    background: #edf5fc;
}

.installment-provider-card > p {
    color: var(--installment-muted);
    line-height: 2;
    font-size: 13px;
}

.installment-provider-features {
    flex: 1;
    margin: 10px 0 22px;
    padding: 0;
    list-style: none;
}

.installment-provider-features li {
    position: relative;
    padding: 7px 26px 7px 0;
    font-size: 12px;
    color: #504b43;
}

.installment-provider-features li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 7px;
    color: #2c8a5f;
    font-weight: 900;
}

.installment-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.installment-step {
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(68, 63, 54, .08);
}

.installment-step > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 12px;
    color: #fff;
    background: #3c372f;
    font-weight: 900;
}

.installment-step h3 {
    margin: 0 0 9px;
    font-size: 15px;
    font-weight: 900;
}

.installment-step p {
    margin: 0;
    color: var(--installment-muted);
    line-height: 1.9;
    font-size: 12px;
}

.installment-faq {
    max-width: 900px;
    margin: 0 auto;
}

.installment-faq details {
    margin-bottom: 10px;
    border: 1px solid var(--installment-border);
    border-radius: 15px;
    background: #fff;
    overflow: hidden;
}

.installment-faq summary {
    position: relative;
    padding: 17px 18px 17px 44px;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 800;
}

.installment-faq summary::-webkit-details-marker {
    display: none;
}

.installment-faq summary::after {
    content: "+";
    position: absolute;
    left: 18px;
    top: 13px;
    color: var(--installment-accent-dark);
    font-size: 22px;
}

.installment-faq details[open] summary::after {
    content: "−";
}

.installment-faq p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--installment-muted);
    line-height: 2;
    font-size: 12px;
}

.installment-disclaimer {
    max-width: 900px;
    margin: 20px auto 0;
    padding: 16px 18px;
    border-right: 4px solid var(--installment-accent);
    border-radius: 12px;
    background: #fff8e7;
    color: #64553a;
    font-size: 12px;
    line-height: 2;
}

/* Product page */
.installment-product-box {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(215, 155, 18, .3);
    border-radius: 14px;
    background: linear-gradient(145deg, #fffdf8, #fff8e9);
    direction: rtl;
    text-align: right;
}

.installment-product-box__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.installment-product-box__title strong {
    font-size: 13px;
    color: #2e2921;
}

.installment-product-box__title span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #f2e2b6;
    color: #7e5700;
    font-size: 9px;
    font-weight: 800;
}

.installment-product-box p {
    margin: 0 0 10px;
    color: #70685d;
    line-height: 1.8;
    font-size: 11px;
}

.installment-product-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.installment-product-provider {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 10px;
    border: 1px solid rgba(68, 63, 54, .1);
    background: #fff;
    font-size: 10px;
}

.installment-product-provider.is-primary {
    border-color: rgba(215, 155, 18, .35);
    font-weight: 800;
}

.installment-product-box a {
    color: #8a5b00;
    font-size: 11px;
    font-weight: 800;
}

/* Checkout */
.installment-checkout {
    margin-top: 12px;
}

.installment-payment-list {
    display: grid;
    gap: 10px;
}

.installment-payment-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.installment-payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.installment-payment-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: 100%;
    padding: 13px;
    border: 1px solid rgba(68, 63, 54, .13);
    border-radius: 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.installment-payment-option input:checked + .installment-payment-card {
    border-color: #d79b12;
    background: #fffaf0;
    box-shadow: 0 6px 20px rgba(183, 122, 4, .1);
}

.installment-payment-card__radio {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    border: 2px solid #b6afa3;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 4px #fff;
}

.installment-payment-option input:checked + .installment-payment-card .installment-payment-card__radio {
    border-color: #d79b12;
    background: #d79b12;
}

.installment-payment-card__body {
    min-width: 0;
    flex: 1;
}

.installment-payment-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.installment-payment-card__head strong {
    font-size: 12px;
}

.installment-payment-card__head span {
    padding: 3px 6px;
    border-radius: 999px;
    background: #fff0c8;
    color: #815500;
    font-size: 9px;
    font-weight: 800;
}

.installment-payment-card__body p {
    margin: 4px 0 0;
    color: #777066;
    line-height: 1.7;
    font-size: 10px;
}

.installment-payment-state {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-top: 8px;
    color: #766f63;
    font-size: 10px;
}

.installment-payment-state::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #aaa49a;
}

.installment-payment-state.is-loading::before {
    background: #d79b12;
    box-shadow: 0 0 0 4px rgba(215, 155, 18, .12);
}

.installment-payment-state.is-success::before {
    background: #2d9365;
}

.installment-payment-state.is-error::before {
    background: #c94b4b;
}

.installment-payment-option.is-disabled {
    cursor: not-allowed;
}

.installment-payment-option.is-disabled .installment-payment-card {
    opacity: .68;
    background: #f7f7f7;
}

.installment-toplend-card {
    margin-top: 10px;
    padding: 12px 13px;
    border: 1px dashed rgba(54, 91, 126, .28);
    border-radius: 14px;
    background: #f7fbff;
}

.installment-toplend-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.installment-toplend-card strong {
    font-size: 12px;
}

.installment-toplend-card p {
    margin: 5px 0 9px;
    color: #68717a;
    font-size: 10px;
    line-height: 1.75;
}

.installment-toplend-card a {
    color: #285b89;
    font-size: 10px;
    font-weight: 800;
}

.installment-total-note {
    display: none;
    margin-top: 9px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #fff7df;
    color: #765100;
    font-size: 10px;
    line-height: 1.7;
}

.installment-total-note.is-visible {
    display: block;
}

@media (max-width: 991.98px) {
    .installment-hero__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .installment-hero__visual {
        max-width: 520px;
        width: 100%;
    }

    .installment-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .installment-hero {
        padding: 30px 0 38px;
    }

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

    .installment-section {
        padding: 42px 0;
    }

    .installment-provider-card {
        padding: 18px;
        border-radius: 18px;
    }

    .installment-provider-card__top {
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .installment-hero h1 {
        font-size: 29px;
    }

    .installment-hero__content > p {
        font-size: 14px;
    }

    .installment-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .installment-steps {
        grid-template-columns: 1fr;
    }

    .installment-section-heading {
        text-align: right;
    }

    .installment-provider-card__top {
        flex-direction: column;
    }

    .installment-payment-card__head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Phase 11: product + checkout installment surfaces */
.product-installment-box {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(215, 155, 18, .28);
    border-radius: 16px;
    background: linear-gradient(145deg, #fffdf8 0%, #fff8e8 100%);
    text-align: right;
}

.product-installment-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.product-installment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 11px;
    background: #443f36;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.product-installment-head strong,
.product-installment-provider strong {
    display: block;
    color: #302d28;
    font-size: 12px;
}

.product-installment-head small,
.product-installment-provider small {
    display: block;
    margin-top: 3px;
    color: #736d64;
    font-size: 10px;
    line-height: 1.75;
}

.product-installment-providers {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.product-installment-provider {
    position: relative;
    min-width: 0;
    overflow-wrap: anywhere;
    display: block;
    padding: 10px 11px;
    border: 1px solid rgba(68, 63, 54, .12);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none !important;
}

.product-installment-provider.is-primary {
    border-color: rgba(215, 155, 18, .42);
    box-shadow: 0 5px 16px rgba(173, 115, 4, .07);
}

.provider-rank {
    float: left;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fff0c8;
    color: #805600;
    font-size: 8px;
    font-weight: 800;
}

.product-installment-more {
    display: inline-block;
    margin-top: 11px;
    color: #8a5b00;
    font-size: 10px;
    font-weight: 800;
}

.installment-checkout {
    overflow: visible;
}

.installment-checkout-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.installment-checkout-heading p {
    margin: 0;
    color: #777168;
    font-size: 10px;
    line-height: 1.8;
}

.installment-checkout-heading > a {
    flex: 0 0 auto;
    color: #966600;
    font-size: 10px;
    font-weight: 800;
}

.payment-method-cards {
    display: grid;
    gap: 10px;
}

.payment-method-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: 100%;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid rgba(68, 63, 54, .14);
    border-radius: 14px;
    background: #fff;
    color: #39352f;
    cursor: pointer;
    text-align: right;
    text-decoration: none !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}

.payment-method-card:hover {
    color: #39352f;
    border-color: rgba(215, 155, 18, .42);
}

.payment-method-card.is-selected {
    border-color: #d79b12;
    background: #fffaf0;
    box-shadow: 0 6px 18px rgba(173, 115, 4, .09);
}

.payment-method-card.is-primary {
    border-width: 2px;
}

.payment-method-card.is-loading,
.payment-method-card.is-unavailable {
    cursor: not-allowed;
}

.payment-method-card.is-loading {
    opacity: .76;
}

.payment-method-card.is-unavailable {
    border-color: rgba(150, 145, 136, .2);
    background: #f8f8f7;
    opacity: .72;
}

.payment-method-card.is-available {
    border-color: rgba(45, 147, 101, .42);
}

.payment-method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-radio {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    border: 2px solid #b4ada2;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 4px #fff;
}

.payment-method-card.is-selected .payment-method-radio {
    border-color: #d79b12;
    background: #d79b12;
}

.payment-method-copy {
    min-width: 0;
    flex: 1;
}

.payment-method-copy > strong,
.payment-provider-title strong {
    color: #302d28;
    font-size: 12px;
}

.payment-method-copy small {
    display: block;
    margin-top: 4px;
    color: #746e65;
    font-size: 10px;
    line-height: 1.75;
}

.payment-provider-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.payment-provider-badge {
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff0c8;
    color: #835800;
    font-size: 8px;
    font-weight: 900;
}

.payment-method-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 8px;
    background: #edf5fb;
    color: #2e668d;
    font-size: 13px;
}

.payment-method-card.is-external {
    border-style: dashed;
    background: #f8fbfd;
}

.installment-checkout-message {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #f7f7f5;
    color: #716b62;
    font-size: 10px;
    line-height: 1.75;
}

.installment-fee-note {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff6dc;
    color: #735000;
    font-size: 10px !important;
    line-height: 1.75;
}

.installment-submit {
    margin-top: 12px;
    padding: 11px 14px;
    border: 1px solid #443f36;
    border-radius: 10px;
    background: #f6aa1d;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 575.98px) {
    .installment-checkout-heading {
        flex-direction: column;
    }

    .payment-method-card {
        padding: 12px;
    }
}

/* SnappPay official PDP branding: logo 40px desktop / 32px mobile (guideline). */
.snapppay-pdp-provider { display:flex; flex-direction:row; align-items:flex-start; justify-content:flex-start; gap:16px; text-align:right; background:#fff; }
.snapppay-pdp-logo { flex:0 0 40px; display:block; width:40px; height:40px; }
.snapppay-pdp-logo img { width:100%; height:100%; object-fit:contain; }
.snapppay-pdp-copy { display:flex; flex-direction:column; min-width:0; gap:4px; }
.snapppay-pdp-copy strong { font-size:14px; line-height:1.7; color:#1A1C23; font-weight:700; }
.snapppay-pdp-copy small { font-size:12px; line-height:1.8; color:#616475; }
@media(max-width:575px) { .snapppay-pdp-provider {gap:12px;} .snapppay-pdp-logo {flex-basis:32px;width:32px;height:32px;} }

/* SnappPay PDP compliance: white background, nearest to add-to-cart,
   horizontal centered logo + 2 lines, official dimensions. */
.snapppay-pdp-widget {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    min-height: 52px;
    padding: 8px 10px;
    margin-top: 8px;
    background: #fff !important;
    border: 1px solid #ebecf2;
    border-radius: 8px;
    text-align: right;
    box-sizing: border-box;
}
.snapppay-pdp-widget .snapppay-pdp-logo { width: 40px; height: 40px; flex: 0 0 40px; display:flex; align-items:center; justify-content:center; }
.snapppay-pdp-widget .snapppay-pdp-logo img { width: 40px; height: 40px; object-fit:contain; }
.snapppay-pdp-widget .snapppay-pdp-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.snapppay-pdp-widget .snapppay-pdp-copy strong { color:#1a1c23; font-size: 14px; font-weight:700; line-height:1.55; }
.snapppay-pdp-widget .snapppay-pdp-copy small { color:#616475; font-size:12px; line-height:1.5; }
@media (max-width:575px) {
  .snapppay-pdp-widget { gap:12px; min-height:64px; }
  .snapppay-pdp-widget .snapppay-pdp-logo { flex:0 0 32px; width:32px; height:32px; }
  .snapppay-pdp-widget .snapppay-pdp-logo img { width:32px; height:32px; }
}
