/* MotorLabx checkout — layout inspired by secure checkout reference, brand greens */

body.vsp-checkout.vsp-body {
    background-color: #eef1ee;
    background-image:
        radial-gradient(1000px 520px at 12% -8%, rgba(117, 228, 98, 0.2), transparent 55%),
        radial-gradient(800px 420px at 92% 10%, rgba(117, 228, 98, 0.12), transparent 50%),
        radial-gradient(900px 500px at 50% 110%, rgba(255, 255, 255, 0.9), transparent 55%),
        linear-gradient(180deg, #f5f7f5 0%, #e8ece8 100%);
    background-attachment: fixed;
}

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

/* Two-column layout: payment left, order summary right (Tailwind bundle lacks lg:grid-cols-12 / lg:col-span-7|5) */
.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.78);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 20px 50px rgba(27, 29, 27, 0.08),
        0 0 0 1px rgba(27, 29, 27, 0.04);
    border-radius: 1.25rem;
}

.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.92);
    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: 1rem;
    border: 1px solid rgba(68, 205, 58, 0.24);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(236, 250, 233, 0.9));
    box-shadow: 0 14px 34px rgba(27, 29, 27, 0.12);
}

.vsp-ch-spinner {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.8rem;
    border-radius: 999px;
    border: 3px solid rgba(68, 205, 58, 0.22);
    border-top-color: #44cd3a;
    animation: vsp-spin 0.9s linear infinite;
}

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

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

@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: #2a302a;
    letter-spacing: 0.01em;
}

.vsp-ch-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(27, 29, 27, 0.12);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.85rem 1rem;
    font-size: 0.9375rem;
    color: #121512;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.vsp-ch-input:hover {
    border-color: rgba(68, 205, 58, 0.35);
}

.vsp-ch-input:focus {
    outline: none;
    border-color: rgba(68, 205, 58, 0.65);
    box-shadow: 0 0 0 3px rgba(117, 228, 98, 0.22);
}

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

.vsp-ch-hint {
    margin: 0;
    font-size: 0.75rem;
    color: #6b756b;
    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: #3d453d;
}

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

.vsp-ch-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: none;
    border-radius: 0.875rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f140f;
    cursor: pointer;
    background: linear-gradient(180deg, #8ef078 0%, #75e462 35%, #5fd44a 100%);
    border: 1px solid #3db82e;
    box-shadow: 0 4px 0 #3a9e30, 0 12px 32px rgba(68, 205, 58, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.vsp-ch-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 6px 0 #3a9e30, 0 18px 40px rgba(68, 205, 58, 0.4);
}

.vsp-ch-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 #3a9e30, 0 8px 24px rgba(68, 205, 58, 0.3);
}

.vsp-ch-submit i {
    font-size: 0.9rem;
    opacity: 0.85;
}

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

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

.vsp-ch-summary-title {
    margin: 0;
}

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

.vsp-ch-plan {
    position: relative;
    border-radius: 1rem;
    margin-top: 1.35rem;
    padding: 1.1rem 1.15rem 1.1rem;
    background: linear-gradient(145deg, rgba(232, 248, 228, 0.95), rgba(204, 245, 199, 0.55));
    border: 1px solid rgba(68, 205, 58, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.vsp-ch-popular {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f140f;
    background: linear-gradient(100deg, #f0f7a8, #d4f078);
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(27, 29, 27, 0.08);
}

.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: #1a3d1a;
    background: linear-gradient(90deg, rgba(204, 245, 199, 0.9), rgba(232, 248, 228, 0.95));
    border: 1px solid rgba(68, 205, 58, 0.35);
}

.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.965rem;
    font-weight: 500;
    line-height: 1.48;
    color: #1d261d;
    margin-bottom: 12px;
}

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

.vsp-ch-summary-label {
    margin: 3.25rem 0px 9px 0;
    font-size: 17px;
    font-weight: 800;
    color: #4b5563;
    letter-spacing: 0.08em;
}

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

.vsp-ch-summary-note {
    margin-top: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.85rem;
    background: linear-gradient(145deg, rgba(245, 253, 241, 0.95), rgba(233, 248, 228, 0.92));
    border: 1px solid rgba(68, 205, 58, 0.2);
    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: #2a332a;
}

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

/* Trust row */
.vsp-ch-trust {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(27, 29, 27, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vsp-ch-trust:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(27, 29, 27, 0.09);
}

.vsp-ch-trust-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(117, 228, 98, 0.18);
    color: #2d8a22;
    font-size: 1rem;
}

@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: #f0f2f0;
        background-image: none;
    }
}
