/* ========================================================================== */
/* CHECKOUT PAGE                                                       */
/* ========================================================================== */

/* section 1 : hero */

.checkout-hero {
    position: relative;
    width: 100%;
    min-height: 52vh;
    left: auto;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #032f4f, #0a4b79);
    color: white;
    overflow: hidden;
    z-index: 0;
}

    .checkout-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(3, 47, 79, 0.85), rgba(10, 75, 121, 0.75));
        z-index: 2;
    }

    .checkout-hero::after {
        content: "";
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100%;
        height: 48px;
        background: white;
        border-top-left-radius: 48px;
        border-top-right-radius: 48px;
        z-index: 6;
    }

    .checkout-hero::before,
    .checkout-hero::after {
        pointer-events: none;
    }

.checkout-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 90px 40px 120px 40px;
    text-align: center;
}

.checkout-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14rem;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 12px;
}

.checkout-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.checkout-hero-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
}


/* content + layout*/

.checkout-content {
    margin-top: 140px;
    padding: 0 0 160px 0;
    position: relative;
    z-index: 10;
}

.checkout-container {
    max-width: 1200px;
    margin: -70px auto 0 auto; 
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 28px;
    align-items: start;
}

.checkout-left,
.checkout-right {
    display: grid;
    gap: 18px;
}


/* card (shared) */

.checkout-card {
    background: white;
    border-radius: 14px;
    border: 1px solid rgba(3, 47, 79, 0.10);
    box-shadow: 0 14px 35px rgba(3, 47, 79, 0.08);
    overflow: hidden;
}

.checkout-card-header {
    padding: 22px 24px 14px 24px;
    border-bottom: 1px solid rgba(3, 46, 79, 0.06);
}

    .checkout-card-header h2 {
        font-size: 1.2rem;
        font-weight: 700;
        margin: 0 0 6px 0;
        color: #032f4f;
    }

    .checkout-card-header p {
        margin: 0;
        font-size: 0.95rem;
        color: #48687f;
        line-height: 1.5;
    }

.checkout-card-body {
    padding: 22px 24px;
}


/* left: products */

.checkout-products {
    display: grid;
    gap: 18px;
}

.checkout-product {
    display: grid;
    gap: 18px;
}

.checkout-product-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.checkout-product-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-product-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #032f4f;
}

.checkout-product-image {
    display: block;
    margin-top: 14px;
    width: 100%;
    max-width: 260px; 
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(3, 47, 79, 0.10);
    background: #f5f8fb;
    padding: 12px;
}

.checkout-product-price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
    color: #032f4f;
}

    .checkout-product-price .price {
        font-size: 1.05rem;
        font-weight: 900;
    }

    .checkout-product-price .period {
        font-size: 0.9rem;
        font-weight: 700;
        color: #48687f;
    }

.checkout-divider {
    height: 1px;
    background: rgba(3, 47, 79, 0.08);
}

/* left: options (under product) */

.checkout-options {
    display: grid;
    gap: 12px;
}

.checkout-option {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid rgba(3, 47, 79, 0.10);
    background: linear-gradient(135deg, #f9fbff, #f1f6ff);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .checkout-option:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(3, 47, 79, 0.10);
        border-color: rgba(79, 139, 255, 0.25);
    }

    .checkout-option input {
        margin-top: 4px;
        accent-color: #4f8bff;
    }

.option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-title {
    font-weight: 800;
    color: #032f4f;
    font-size: 0.95rem;
}

.option-sub {
    font-size: 0.88rem;
    color: #48687f;
    line-height: 1.45;
}

.option-price {
    font-weight: 900;
    color: #032f4f;
    font-size: 0.9rem;
    white-space: nowrap;
}


/* left: total (bottom) */

.checkout-total {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(3, 47, 79, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.checkout-total-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: #48687f;
}

.checkout-total-value {
    font-size: 1.15rem;
    font-weight: 950;
    color: #032f4f;
}


/* right: auth card (NotAuthorized) */

.checkout-auth-card .checkout-auth-top {
    padding: 26px 24px 16px 24px;
    text-align: center;
}

.checkout-auth-logo {
    width: 120px;
    height: auto;
    margin: 6px auto 14px auto;
    display: block;
}

.checkout-auth-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #032f4f;
}

.checkout-auth-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #48687f;
    line-height: 1.5;
}

.checkout-auth-actions {
    padding: 0 24px 18px 24px;
    display: grid;
    gap: 10px;
}

.checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
}

    .checkout-btn.primary {
        background: #4f8bff;
        color: white;
        box-shadow: 0 12px 26px rgba(79, 139, 255, 0.28);
    }

        .checkout-btn.primary:hover {
            transform: translateY(-2px);
            background: #3b73e6;
            box-shadow: 0 16px 34px rgba(79, 139, 255, 0.34);
        }

    .checkout-btn.ghost {
        background: white;
        border-color: rgba(3, 47, 79, 0.18);
        color: #032f4f;
    }

        .checkout-btn.ghost:hover {
            transform: translateY(-2px);
            background: #eef6ff;
            border-color: rgba(79, 139, 255, 0.35);
        }

.checkout-auth-note {
    padding: 0 24px 24px 24px;
    font-size: 0.85rem;
    color: #7a8fa3;
    text-align: center;
}

    .checkout-auth-note a {
        color: #4f8bff;
        text-decoration: none;
        font-weight: 800;
    }

        .checkout-auth-note a:hover {
            text-decoration: underline;
        }

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    .checkout-product-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .checkout-container {
        margin-top: -40px; /* Reduced overlap on small screens */
    }
    .checkout-btn {
        display: flex;
        width: 100%;
    }
}

