.newto-vendigo-page {
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 20px;
    background: #eef8f7;
}

.newto-vendigo-card {
    width: min(100%, 620px);
    padding: 44px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(4, 48, 78, .12);
    text-align: center;
}

.newto-vendigo-card h1 {
    margin: 0 0 16px;
}

.newto-vendigo-card p {
    margin: 0 0 24px;
}

.newto-vendigo-test-banner {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0 0 24px;
    padding: 12px 16px;
    border: 2px solid #b45309;
    border-radius: 10px;
    background: #fff7ed;
    color: #7c2d12;
    font-size: 13px;
    line-height: 1.45;
}

.newto-vendigo-card .button {
    display: inline-flex;
    justify-content: center;
    min-width: 220px;
}

.newto-vendigo-card .button:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.newto-vendigo-mark {
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #062f4f;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.newto-vendigo-secondary {
    display: block;
    margin-top: 18px;
}

.newto-vendigo-disclosure {
    margin-top: 28px !important;
    color: #52636f;
    font-size: 13px;
}

.newto-vendigo-checkout-note {
    margin-bottom: 0;
}

.newto-vendigo-calculator {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(6, 47, 79, .16);
    font-size: 13px;
}

.newto-vendigo-calculator__primary {
    display: block;
    margin-bottom: 5px;
    color: #062f4f;
    font-size: 15px;
}

.newto-vendigo-calculator__details {
    color: #52636f;
}

.newto-vendigo-calculator__note {
    display: block;
    margin-top: 6px;
    color: #52636f;
    font-size: 11px;
    line-height: 1.4;
}

/* Product-page finance trigger */

.newto-vendigo-finance-cta {
    margin: 10px 0 0;
}

.newto-vendigo-finance-cta__button {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #d5dee6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(6, 47, 79, .06);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.newto-vendigo-finance-cta__button:hover,
.newto-vendigo-finance-cta__button:focus-visible {
    border-color: #2f6df6;
    box-shadow: 0 6px 18px rgba(47, 109, 246, .14);
    transform: translateY(-1px);
}

.newto-vendigo-finance-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    height: 40px;
    border-radius: 10px;
    background: #eef4ff;
    color: #2f6df6;
    font-size: 17px;
}

.newto-vendigo-finance-cta__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

/* Sizes/weights mirror the theme's sidebar cards (13px Manrope, 800/500). */
.newto-vendigo-finance-cta__title {
    color: #075985;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.newto-vendigo-finance-cta__meta {
    color: #52636f;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.newto-vendigo-finance-cta__chevron {
    flex: 0 0 auto;
    color: #91a3b4;
    font-size: 13px;
}

/* Calculator modal */

.newto-vendigo-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.newto-vendigo-modal[hidden] {
    display: none;
}

.newto-vendigo-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 26, 46, .55);
    backdrop-filter: blur(2px);
}

.newto-vendigo-modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    /* 502px calculator + 20px padding each side. */
    max-width: 542px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(6, 26, 46, .3);
}

.newto-vendigo-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e8eef4;
}

.newto-vendigo-modal__title {
    margin: 0;
    color: #0b2239;
    font-size: 17px;
    font-weight: 600;
}

.newto-vendigo-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #44586c;
    line-height: 1;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

/* The theme sizes Font Awesome glyphs globally, which pushed the cross off
   centre. Normalise the glyph box so it centres inside the circle. */
.newto-vendigo-modal__close i {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    font-size: 15px;
    line-height: 1;
}

.newto-vendigo-modal__close:hover,
.newto-vendigo-modal__close:focus-visible {
    background: #e2e8f0;
    color: #0b2239;
}

.newto-vendigo-modal__body {
    overflow-y: auto;
    padding: 18px 20px;
}

/* Vendigo sizes its iframe from the mount element's measured width and caps it
   at 502px, so the mount must fill the row rather than shrink to its content. */
.newto-vendigo-calculator-ui__mount {
    display: block;
    width: 100%;
    margin: 0 auto;
    max-width: 502px;
}

.newto-vendigo-modal__body iframe {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.newto-vendigo-modal__footer {
    padding: 12px 20px 16px;
    border-top: 1px solid #e8eef4;
    color: #64748b;
    font-size: 11.5px;
    line-height: 1.45;
}

body.newto-vendigo-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .newto-vendigo-modal {
        padding: 0;
    }

    .newto-vendigo-modal__dialog {
        max-width: none;
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }
}

@media (max-width: 640px) {
    .newto-vendigo-page {
        padding: 32px 14px;
    }

    .newto-vendigo-card {
        padding: 30px 20px;
    }
}
