/* Site-wide installment entry point */
.installment-promo-dismissed .installment-promo {
    display: none;
}

.installment-promo {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    height: 55px;
    border-top: 1px solid #dce7f8;
    border-bottom: 1px solid #dce7f8;
    background: linear-gradient(90deg, #f2f7ff 0%, #f1fbf5 100%);
}

.installment-promo .container {
    position: relative;
    height: 100%;
}

.installment-promo__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32rem;
    height: 100%;
    padding: 0;
    color: #1e293b;
    text-decoration: none;
}

.installment-promo__copy {
    flex: 0 0 auto;
}

.installment-promo__title {
    font-size: 15rem;
    font-weight: 400;
    line-height: 1.25;
}

.installment-promo__logos {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14rem;
}

.installment-promo__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.installment-promo__brand img {
    display: block;
    width: auto;
    max-width: 110rem;
    height: 23rem;
}

.installment-promo__brand--vanta img {
    width: 84rem;
    max-width: none;
    height: auto;
}

.installment-promo__brand--poscredit img {
    width: 96rem;
    max-width: none;
    height: auto;
}

.installment-promo__dismiss {
    position: absolute;
    top: 50%;
    right: 0;
    display: inline-flex;
    width: 36rem;
    height: 36rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #526174;
    font: inherit;
    font-size: 12rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease;
}

.installment-promo__dismiss-label {
    display: none;
}

.installment-promo__dismiss:hover {
    color: #172033;
}

.installment-promo__dismiss-icon {
    font-size: 20rem;
    font-weight: 300;
    line-height: 0.8;
}

@media (min-width: 1240px) {
    .installment-promo .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
    }

    .installment-promo__link {
        grid-column: 2;
    }

    .installment-promo__dismiss {
        position: static;
        grid-column: 3;
        justify-self: start;
        margin-left: 40rem;
        transform: none;
    }
}

.installment-promo__link:focus-visible,
.installment-promo__dismiss:focus-visible,
.installment-button:focus-visible,
.installment-provider-card__link:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

/* Installment hub and provider pages */
.installment-page {
    padding: 34rem 0 80rem;
    background: #f5f7fb;
    color: #1f2937;
}

.installment-page .container {
    display: flex;
    flex-direction: column;
    gap: 28rem;
}

.installment-hero,
.installment-section,
.installment-cta-panel {
    border: 1px solid #e5eaf1;
    border-radius: 24rem;
    background: #fff;
    box-shadow: 0 14rem 40rem rgba(32, 55, 90, 0.07);
}

.installment-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(270rem, 0.6fr);
    align-items: center;
    gap: 36rem;
    padding: 52rem;
    overflow: hidden;
}

.installment-hero__content {
    position: relative;
    z-index: 1;
}

.installment-eyebrow {
    margin-bottom: 12rem;
    color: #135ee4;
    font-size: 14rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.installment-page h1 {
    max-width: 820rem;
    margin: 0;
    color: #111827;
    font-size: clamp(34rem, 4vw, 54rem);
    font-weight: 750;
    line-height: 1.08;
}

.installment-page h1:not(:last-child) {
    margin-bottom: 20rem;
}

.installment-lead {
    max-width: 760rem;
    color: #475569;
    font-size: 20rem;
    line-height: 1.55;
}

.installment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12rem;
    margin-top: 28rem;
}

.installment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48rem;
    padding: 12rem 20rem;
    border: 1px solid #135ee4;
    border-radius: 10rem;
    background: #135ee4;
    color: #fff;
    font-size: 16rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.installment-button:hover {
    background: #2f79ff;
    color: #fff;
}

.installment-button--secondary {
    background: #fff;
    color: #135ee4;
}

.installment-button--secondary:hover {
    background: #edf4ff;
    color: #135ee4;
}

.installment-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230rem;
    padding: 30rem;
    border-radius: 22rem;
    background: linear-gradient(145deg, #eef5ff 0%, #e8f8ee 100%);
}

.installment-hero__visual img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 118rem;
}

.installment-hero__visual--brands {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14rem;
    background: #eef5ff;
}

.installment-hero__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82rem;
    padding: 16rem;
    border: 1px solid rgba(19, 94, 228, 0.11);
    border-radius: 14rem;
    background: #fff;
}

.installment-hero__brand img {
    max-height: 46rem;
}

.installment-hero__brand--vanta img {
    width: 140rem;
    max-width: 100%;
    max-height: none;
}

.installment-hero__brand--poscredit img {
    width: 160rem;
    max-width: 100%;
    max-height: none;
}

.installment-section {
    padding: 40rem;
}

.installment-section h2,
.installment-cta-panel h2 {
    margin: 0 0 22rem;
    color: #111827;
    font-size: clamp(27rem, 3vw, 38rem);
    font-weight: 720;
    line-height: 1.18;
}

.installment-section > p,
.installment-cta-panel p {
    color: #526174;
    font-size: 17rem;
    line-height: 1.65;
}

.installment-provider-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18rem;
}

.installment-provider-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26rem;
    border: 1px solid #dfe6f0;
    border-radius: 18rem;
    background: #fff;
}

.installment-provider-card__logo {
    display: flex;
    align-items: center;
    min-height: 54rem;
    margin-bottom: 20rem;
}

.installment-provider-card__logo img {
    width: auto;
    max-width: 170rem;
    max-height: 48rem;
}

.installment-provider-card__logo--vanta img {
    max-width: 150rem;
    max-height: 48rem;
}

.installment-provider-card h3 {
    margin: 0 0 12rem;
    color: #172033;
    font-size: 22rem;
    line-height: 1.25;
}

.installment-provider-card p {
    margin-bottom: 22rem;
    color: #526174;
    font-size: 15rem;
    line-height: 1.55;
}

.installment-provider-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8rem;
    margin-top: auto;
    color: #135ee4;
    font-size: 15rem;
    font-weight: 650;
    text-decoration: none;
}

.installment-provider-card__link:hover {
    color: #003595;
}

.installment-feature-grid,
.installment-step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14rem;
    margin-top: 24rem;
}

.installment-feature,
.installment-step {
    padding: 22rem;
    border-radius: 16rem;
    background: #f4f7fb;
}

.installment-feature strong,
.installment-step strong {
    display: block;
    margin-bottom: 8rem;
    color: #172033;
    font-size: 18rem;
    line-height: 1.3;
}

.installment-feature p,
.installment-step p {
    margin: 0;
    color: #526174;
    font-size: 14rem;
    line-height: 1.5;
}

.installment-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34rem;
    height: 34rem;
    margin-bottom: 14rem;
    border-radius: 50%;
    background: #135ee4;
    color: #fff;
    font-size: 15rem;
    font-weight: 700;
}

.installment-list {
    display: grid;
    gap: 12rem;
    margin: 20rem 0 0;
    padding: 0;
    list-style: none;
}

.installment-list li {
    position: relative;
    padding-left: 30rem;
    color: #3f4d61;
    font-size: 16rem;
    line-height: 1.55;
}

.installment-list li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    color: #5fae3e;
    font-weight: 800;
}

.installment-faq {
    display: grid;
    gap: 12rem;
}

.installment-faq details {
    padding: 18rem 20rem;
    border: 1px solid #dfe6f0;
    border-radius: 14rem;
    background: #fff;
}

.installment-faq summary {
    cursor: pointer;
    color: #172033;
    font-size: 17rem;
    font-weight: 650;
    line-height: 1.4;
}

.installment-faq details p {
    margin: 14rem 0 0;
    color: #526174;
    font-size: 15rem;
    line-height: 1.6;
}

.installment-note {
    margin-top: 24rem;
    padding: 18rem 20rem;
    border-left: 4rem solid #135ee4;
    border-radius: 0 12rem 12rem 0;
    background: #f0f5ff;
    color: #44536a;
    font-size: 14rem;
    line-height: 1.55;
}

.installment-note a {
    color: #135ee4;
}

.installment-cta-panel {
    padding: 38rem 40rem;
    background: linear-gradient(135deg, #1257cf 0%, #0f76d2 100%);
    color: #fff;
}

.installment-cta-panel h2,
.installment-cta-panel p {
    color: #fff;
}

.installment-cta-panel .installment-button {
    border-color: #fff;
    background: #fff;
    color: #135ee4;
}

.installment-cta-panel .installment-button:hover {
    background: #eef4ff;
}

.payment-heading-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.payment-heading-inline img {
    display: block;
    width: auto;
    height: 1em;
}

.payment-heading-inline .payment-heading-inline__vanta {
    height: 0.55em;
}

.payment-heading-inline .payment-heading-inline__poscredit {
    height: 0.7em;
}

@media (max-width: 1239px) {
    .installment-promo__link {
        gap: 24rem;
    }

    .installment-promo__logos {
        gap: 12rem;
    }

    .installment-promo__brand img {
        height: 21rem;
    }

    .installment-promo__brand--vanta img {
        width: 76rem;
        height: auto;
    }

    .installment-promo__brand--poscredit img {
        width: 80rem;
        height: auto;
    }

    .installment-hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(220rem, 0.85fr);
        padding: 38rem;
    }

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

@media (max-width: 767px) {
    .installment-promo + main > section.preview {
        padding-top: 12rem;
    }

    .installment-promo__dismiss {
        right: 0;
    }

    .installment-promo__link {
        align-content: center;
        flex-wrap: wrap;
        gap: 5rem 12rem;
        min-height: 0;
        padding: 0;
    }

    .installment-promo__copy {
        flex-basis: 100%;
        text-align: center;
    }

    .installment-promo__title {
        font-size: 14rem;
    }

    .installment-promo__logos {
        justify-content: center;
        gap: 12rem;
    }

    .installment-promo__brand img {
        max-width: 92rem;
        height: 18rem;
    }

    .installment-promo__brand--vanta img {
        width: 72rem;
        height: auto;
    }

    .installment-promo__brand--poscredit img {
        width: 72rem;
        height: auto;
    }

    .installment-page {
        padding: 20rem 0 54rem;
    }

    .installment-page .container {
        gap: 18rem;
    }

    .installment-hero {
        grid-template-columns: 1fr;
        gap: 24rem;
        padding: 26rem 22rem;
        border-radius: 18rem;
    }

    .installment-page h1 {
        font-size: clamp(30rem, 9vw, 42rem);
    }

    .installment-lead {
        font-size: 17rem;
        line-height: 1.5;
    }

    .installment-actions {
        flex-direction: column;
    }

    .installment-button {
        width: 100%;
    }

    .installment-hero__visual {
        min-height: 160rem;
        padding: 22rem;
    }

    .installment-hero__visual img {
        max-height: 84rem;
    }

    .installment-section,
    .installment-cta-panel {
        padding: 26rem 22rem;
        border-radius: 18rem;
    }

    .installment-section h2,
    .installment-cta-panel h2 {
        font-size: 27rem;
    }

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

    .installment-provider-card {
        padding: 22rem;
    }

    .payment-heading-inline {
        flex-wrap: wrap;
    }
}
