/* MotorGravity checkout — premium navy design system */

body.vsp-checkout.vsp-body {
    background-color: #eef2f7;
    background-image:
        radial-gradient(1000px 520px at 12% -8%, rgba(47, 128, 237, 0.12), transparent 55%),
        radial-gradient(800px 420px at 92% 10%, rgba(74, 158, 255, 0.08), transparent 50%),
        linear-gradient(180deg, #f5f7fa 0%, #e8eef5 100%);
    background-attachment: fixed;
    padding-top: var(--vsp-header-h, 4.5rem);
}

.vsp-checkout-main {
    min-height: 60vh;
}

.vsp-checkout-split {
    display: grid;
    gap: 2rem;
    align-items: start;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .vsp-checkout-split {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 2rem 2.5rem;
        align-items: stretch;
    }
}

.vsp-ch-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid rgba(15, 35, 55, 0.08);
    box-shadow: 0 20px 50px rgba(7, 17, 31, 0.08);
    border-radius: 0.875rem;
}

.vsp-ch-card {
    position: relative;
    padding: 1.75rem 1.5rem 2rem;
}

@media (min-width: 768px) {
    .vsp-ch-card {
        padding: 2rem 2rem 2.25rem;
    }
}

.vsp-ch-loader {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 30;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: inherit;
    backdrop-filter: blur(4px);
}

.vsp-ch-loader.is-active {
    display: flex;
}

.vsp-ch-loader-inner {
    width: min(92%, 28rem);
    text-align: center;
    padding: 1.4rem 1.3rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(47, 128, 237, 0.2);
    background: linear-gradient(165deg, #fff, #eef5ff);
    box-shadow: 0 14px 34px rgba(7, 17, 31, 0.1);
}

.vsp-ch-spinner {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.8rem;
    border-radius: 999px;
    border: 3px solid rgba(47, 128, 237, 0.2);
    border-top-color: #2f80ed;
    animation: vsp-spin 0.9s linear infinite;
}

.vsp-ch-loader-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0c1522;
}

.vsp-ch-loader-sub {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: #3d4f63;
}

@keyframes vsp-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vsp-ch-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vsp-ch-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a2740;
    letter-spacing: 0.01em;
}

.vsp-ch-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgba(15, 35, 55, 0.14);
    background: #fff;
    padding: 0.85rem 1rem;
    font-size: 0.9375rem;
    color: #0c1522;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vsp-ch-input::placeholder {
    color: #8a9aab;
}

.vsp-ch-input:hover {
    border-color: rgba(47, 128, 237, 0.4);
}

.vsp-ch-input:focus {
    outline: none;
    border-color: rgba(47, 128, 237, 0.65);
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.18);
}

.vsp-ch-input-mono {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vsp-ch-hint {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7c8f;
    line-height: 1.4;
}

.vsp-reg-feedback-checkout {
    margin-top: 0.45rem;
}

.vsp-ch-check {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #3d4f63;
}

.vsp-ch-check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    accent-color: #2f80ed;
}

.vsp-ch-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: none;
    border-radius: 999px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: #2f80ed;
    box-shadow: 0 12px 32px rgba(47, 128, 237, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vsp-ch-submit:hover {
    transform: translateY(-2px);
    background: #4a9eff;
    box-shadow: 0 16px 40px rgba(74, 158, 255, 0.4);
}

.vsp-ch-submit:active {
    transform: translateY(0);
}

.vsp-ch-submit i {
    font-size: 0.9rem;
    opacity: 0.9;
    transition: transform 0.25s ease;
}

.vsp-ch-submit:hover i {
    transform: translateX(3px);
}

.vsp-ch-submit.is-submitting {
    pointer-events: none;
    opacity: 0.88;
}

.vsp-ch-summary {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 1.75rem;
    padding-bottom: 2rem;
}

.vsp-ch-summary-title {
    margin: 0;
    color: #0c1522 !important;
}

.vsp-ch-summary-intro {
    margin-top: 0.55rem;
    margin-bottom: 0;
}

.vsp-ch-plan {
    position: relative;
    border-radius: 0.75rem;
    margin-top: 1.35rem;
    padding: 1.1rem 1.15rem;
    background: linear-gradient(145deg, #0b1d30, #102a43);
    border: 1px solid rgba(74, 158, 255, 0.25);
    color: #fff;
}

.vsp-ch-plan p {
    color: rgba(232, 238, 245, 0.85);
}

.vsp-ch-plan .text-lg {
    color: #fff !important;
}

.vsp-ch-popular {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: #2f80ed;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}

.vsp-ch-delivery {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0c1522;
    background: rgba(47, 128, 237, 0.1);
    border: 1px solid rgba(47, 128, 237, 0.25);
}

.vsp-ch-delivery i {
    color: #2f80ed !important;
}

.vsp-ch-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.vsp-ch-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.48;
    color: #1a2740;
    margin-bottom: 0.65rem;
}

.vsp-ch-list i {
    margin-top: 0.22rem;
    flex-shrink: 0;
    font-size: 0.82rem;
    width: 1.05rem;
    text-align: center;
    color: #2f80ed !important;
}

.vsp-ch-summary-label {
    margin: 1.75rem 0 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7c8f;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vsp-ch-total-row {
    margin-top: 1rem;
    padding-top: 1.2rem;
}

.vsp-ch-total-row .text-2xl {
    color: #2f80ed !important;
}

.vsp-ch-summary-note {
    margin-top: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 0.65rem;
    background: #f5f7fa;
    border: 1px solid rgba(15, 35, 55, 0.08);
    display: grid;
    gap: 0.42rem;
}

.vsp-ch-summary-note p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.48rem;
    font-size: 0.81rem;
    font-weight: 600;
    color: #1a2740;
}

.vsp-ch-summary-note i {
    color: #2f80ed;
    width: 0.95rem;
    text-align: center;
}

.vsp-ch-trust {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.25rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 35, 55, 0.08);
    box-shadow: 0 10px 30px rgba(7, 17, 31, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vsp-ch-trust:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(7, 17, 31, 0.08);
}

.vsp-ch-trust-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 128, 237, 0.12);
    color: #2f80ed;
    font-size: 1rem;
}

.vsp-checkout .vsp-ch-card a.text-\[\#44cd3a\],
.vsp-checkout .vsp-ch-check a[href*="term"],
.vsp-checkout .vsp-ch-check a[href*="privacy"] {
    color: #2f80ed !important;
}

@media (max-width: 767px) {
    body.vsp-checkout.vsp-body {
        padding-top: calc(var(--vsp-header-h, 4rem) + env(safe-area-inset-top, 0px));
        background-attachment: scroll;
    }

    .vsp-checkout-split {
        display: flex;
        flex-direction: column;
        gap: 1.35rem;
    }

    .vsp-ch-summary {
        order: -1;
    }

    .vsp-ch-card {
        padding: 1.35rem 1.15rem 1.5rem;
    }

    .vsp-ch-check {
        gap: 0.75rem;
        padding: 0.35rem 0;
    }

    .vsp-ch-check input {
        width: 1.25rem;
        height: 1.25rem;
        margin-top: 0.1rem;
    }

    .vsp-ch-submit {
        width: 100%;
        min-height: 3rem;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .vsp-ch-glass,
    .vsp-ch-trust {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #fff;
    }

    body.vsp-checkout.vsp-body {
        background: #eef2f7;
        background-image: none;
    }
}
