/* CPX Finance Light V0.1.6 desktop refinements */

/* The section already has its own heading, so avoid repeating the widget heading. */
.comparison-card .cpx-widget__heading {
    display: none;
}

/* Make the shared comparison widget feel native to Finance Light. */
.comparison-card .cpx-widget__form {
    padding: 0;
}

.comparison-card .cpx-widget__grid {
    gap: 16px;
}

.comparison-card .cpx-submit,
.comparison-card .cpx-offer__actions a,
.comparison-card .cpx-offer__action a {
    background: var(--light-accent) !important;
    border-color: var(--light-accent) !important;
    color: #fff !important;
    box-shadow: 0 7px 18px color-mix(in srgb, var(--light-accent) 20%, transparent);
}

.comparison-card .cpx-submit:hover,
.comparison-card .cpx-offer__actions a:hover,
.comparison-card .cpx-offer__action a:hover {
    filter: brightness(.93);
}

.comparison-card .cpx-number-input,
.comparison-card .cpx-range,
.comparison-card .cpx-step-button,
.comparison-card .cpx-load-more,
.comparison-card .cpx-offer__more {
    color: var(--light-primary);
    accent-color: var(--light-primary);
}

.comparison-card .cpx-step-button {
    border-color: color-mix(in srgb, var(--light-primary) 24%, #fff);
}

.comparison-card .cpx-load-more {
    border-color: var(--light-primary);
}

.comparison-card .cpx-offer {
    padding: 17px 20px;
}

.comparison-card .cpx-offer__brand img {
    width: 150px;
    max-width: 150px;
}

/* Desktop density: designed for 100% browser zoom on 1920x1080-class screens. */
@media (min-width: 981px) {
    .light-shell {
        width: min(1320px, calc(100% - 64px));
    }

    .site-header__inner {
        min-height: 64px;
    }

    .site-branding__name {
        font-size: 20px;
    }

    .site-branding__logo img,
    .custom-logo {
        max-height: 38px;
    }

    .site-header__cta {
        min-height: 40px;
        padding: 0 18px;
        font-size: 14px;
    }

    .light-hero {
        padding: 56px 0 40px;
    }

    .light-hero__grid {
        grid-template-columns: minmax(0, 1.65fr) minmax(250px, .65fr);
        gap: 52px;
    }

    .eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .light-hero h1 {
        max-width: 720px;
        font-size: clamp(34px, 2.9vw, 50px);
        line-height: 1.05;
    }

    .light-hero__copy > p {
        max-width: 700px;
        margin-top: 18px;
        font-size: 16px;
    }

    .light-hero__checks {
        margin-top: 20px;
        gap: 8px 18px;
        font-size: 13px;
    }

    .light-hero__note {
        padding: 26px;
        border-radius: calc(var(--light-radius) + 8px);
    }

    .light-hero__note strong {
        font-size: 20px;
    }

    .light-hero__note p {
        margin-top: 8px;
        font-size: 14px;
    }

    .comparison-section {
        padding: 26px 0 64px;
    }

    .section-heading {
        margin-bottom: 20px;
    }

    .section-heading h2 {
        font-size: clamp(28px, 2.5vw, 38px);
    }

    .section-heading p {
        margin-top: 8px;
        font-size: 15px;
    }

    .comparison-card {
        padding: 20px 22px;
        border-radius: calc(var(--light-radius) + 6px);
    }

    .comparison-card .cpx-widget__grid {
        grid-template-columns: 1.1fr 1.2fr 1.2fr minmax(180px, auto);
        gap: 14px;
        align-items: start;
    }

    .comparison-card .cpx-field {
        align-self: start;
    }

    .comparison-card .cpx-field > label {
        min-height: 18px;
        margin-bottom: 5px;
        font-size: 12px;
    }

    .comparison-card .cpx-field--type .cpx-select-wrap {
        width: 100%;
    }

    .comparison-card .cpx-field--type select {
        height: 40px;
        font-size: 14px;
    }

    .comparison-card .cpx-number-control {
        grid-template-columns: 42px minmax(90px, 1fr) 42px;
        gap: 6px;
        margin-bottom: 5px;
    }

    .comparison-card .cpx-number-input,
    .comparison-card .cpx-step-button {
        height: 40px;
        min-height: 40px;
    }

    .comparison-card .cpx-number-input {
        font-size: 15px;
    }

    .comparison-card .cpx-step-button {
        font-size: 20px;
    }

    .comparison-card .cpx-submit {
        align-self: start;
        min-height: 40px;
        margin-top: 23px;
        padding: 0 16px;
        font-size: 13px;
    }

    .comparison-card .cpx-limits,
    .comparison-card .cpx-unit {
        font-size: 10px;
    }

    .comparison-card .cpx-widget__status {
        margin-top: 16px;
        font-size: 13px;
    }

    .comparison-card .cpx-offer__brand img {
        width: 145px;
        height: 58px;
        max-width: 145px;
        max-height: 58px;
    }

    .comparison-card .cpx-offer__metric span,
    .comparison-card .cpx-offer__name span {
        font-size: 11px;
    }

    .comparison-card .cpx-offer__metric strong {
        font-size: 16px;
    }

    .comparison-card .cpx-offer__actions {
        min-width: 150px;
    }

    .comparison-card .cpx-offer__actions a,
    .comparison-card .cpx-offer__more {
        min-height: 42px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 560px) {
    .comparison-card .cpx-offer {
        padding: 11px;
    }

    .comparison-card .cpx-offer__brand img {
        width: 96px;
    }
}
