:root {
    --primary: #00a97f;
    --border: #e6e6e6;
    --text-light: #777;
    --shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    --bg-light: #f9f9f9;
    --bg-black: #000;
}

.checkout-wrapper {
    max-width: 1200px;
    margin: 50px auto;
    background: #fff;
    border-radius: 18px;
    padding: 40px 50px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.5s ease-out;
}

/* HEADER */
.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    text-align: center;
}

.back-link {
    font-weight: 600;
    color: #111;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s ease;
}

.back-link:hover {
    color: var(--primary);
}

.checkout-header img {
    height: 38px;
}

.secure {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.secure i {
    color: var(--primary);
    font-size: 18px;
}

/* STEP INDICATOR */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
    font-weight: 500;
    font-size: 15px;
}

.step-indicator span {
    color: var(--text-light);
    position: relative;
    padding-bottom: 4px;
    cursor: pointer;
    transition: 0.3s ease;
}

.step-indicator .active {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

.step-indicator span:hover {
    color: var(--primary);
}

/* LEFT SECTION */
.login-box {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-align: center;
    margin-bottom: 25px;
}

.login-box button {
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--primary);
    background: #fff;
    transition: all 0.3s ease;
}

.login-box button:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 169, 127, 0.2);
}

.address-form h6 {
    font-weight: 600;
    margin-bottom: 18px;
    font-size: 17px;
}

.form-control {
    height: 48px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(0, 169, 127, 0.2);
}

/* RIGHT SECTION */
.order-summary {
    background: #fff;
    border: 1px solid #f2f2f2;
    border-radius: 16px;
    padding: 25px 28px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 20px;
}

.order-summary h6 {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.cart-item {
    border: 1px solid #eee;
    transition: 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
}

.summary-total {
    font-weight: 700;
    font-size: 16px;
    border-top: 1px solid #ddd;
    padding-top: 12px;
    margin-top: 12px;
}

/* ✅ Custom Black Button */
.btn-continue {
    background: #111;
    color: #fff;
    font-weight: 600;
    width: 100%;
    height: 54px;
    border-radius: 12px;
    margin-top: 25px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-continue:hover {
    background: var(--bg-black);
    box-shadow: 0 4px 12px rgba(0, 169, 127, 0.25);
}

.text-success {
    color: var(--primary) !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ✅ Responsive */
@media (max-width: 768px) {
    .checkout-wrapper {
        padding: 25px 20px;
    }

    .checkout-header {
        flex-direction: column;
        gap: 12px;
    }

    .back-link,
    .checkout-header img {
        display: block;
        text-align: center;
    }

    .order-summary {
        margin-top: 30px;
        position: static;
    }

    .step-indicator {
        gap: 20px;
        font-size: 13px;
    }
}