/* Structural corrections loaded after the saved Admin stylesheet.
   These caps prevent an older generated stylesheet from restoring the former
   oversized JaxCash icon until Settings is saved again after deployment. */
body.frontpage .fp-jaxcash-icon {
    height: min(var(--fp-jaxcash-icon-height), 96px);
    margin-block: max(var(--fp-jaxcash-icon-margin-block), -6px);
    transform: none;
}

/* Keep AVVANCE in three balanced columns at every non-portrait-mobile size,
   even when an older saved Admin stylesheet is still present. */
body.frontpage .fp-financing-grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr) minmax(0, .8fr);
    justify-items: stretch;
    text-align: initial;
}
body.frontpage .fp-financing-item,
body.frontpage .fp-financing-item + .fp-financing-item {
    width: auto;
    padding-top: 0;
    grid-column: auto;
    border-top: 0;
}
body.frontpage .fp-financing-item + .fp-financing-item {
    padding-left: var(--fp-content-gap);
    border-left: 1px solid var(--fp-divider-color);
}
body.frontpage .fp-financing-provider { padding-right: var(--fp-content-gap); padding-bottom: 0; }
body.frontpage .fp-financing-copy { text-align: center; }
body.frontpage .fp-financing-action {
    margin-top: 0;
    padding-left: var(--fp-content-gap);
    grid-column: auto;
    border-left: 1px solid var(--fp-divider-color);
    justify-self: stretch;
}

@media (max-width: 600px) {
    body.frontpage .fp-jaxcash-icon { height: 80px; margin-block: 0; transform: none; }
}

@media (max-width: 600px) and (orientation: portrait) {
    body.frontpage .fp-financing-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    body.frontpage .fp-financing-item,
    body.frontpage .fp-financing-item + .fp-financing-item {
        width: min(100%, 560px);
        padding-left: 0;
        grid-column: 1;
        border-left: 0;
    }
    body.frontpage .fp-financing-item + .fp-financing-item {
        padding-top: var(--fp-content-gap);
        border-top: 1px solid var(--fp-divider-color);
    }
    body.frontpage .fp-financing-provider { padding-right: 0; padding-bottom: 0; }
    body.frontpage .fp-financing-provider img { margin-inline: auto; }
    body.frontpage .fp-financing-provider small { text-align: center; }
}

@media (min-width: 601px) and (max-width: 1024px) {
    body.frontpage .fp-jaxcash-icon {
        height: min(var(--fp-jaxcash-icon-height), 92px);
        margin-block: max(var(--fp-jaxcash-icon-margin-block), -4px);
        transform: none;
    }
}

@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) {
    body.frontpage .fp-jaxcash-inner { grid-template-columns: minmax(160px, 180px) minmax(0, 1fr) minmax(140px, 150px); justify-items: stretch; gap: 18px; text-align: left; }
    body.frontpage .fp-jaxcash-copy { padding-left: 40px; text-align: left; }
    body.frontpage .fp-jaxcash-icon { height: 84px; margin-block: 0; transform: none; }
    body.frontpage .fp-jaxcash-button { min-width: 140px; padding-inline: 12px; }
}

@media (min-width: 601px) and (max-width: 760px) and (orientation: landscape) {
    body.frontpage .fp-jaxcash-icon { height: 84px; margin-block: 0; transform: none; }
}
