/* Checkout flow v2 */
.checkout-page {
    padding: 16px 0 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
}

.checkout-step span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.checkout-step.active span {
    background: linear-gradient(135deg, #F9A825, #FF8F00);
    color: #1e293b;
}

.checkout-step.done span {
    background: #10b981;
    color: #fff;
}

.checkout-step-line {
    width: 32px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 6px;
}

.checkout-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    margin-bottom: 16px;
}

.checkout-panel h5 {
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-panel h5 i {
    color: #F9A825;
}

.checkout-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.checkout-item:last-child { border-bottom: none; }

.checkout-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #eee;
}

.checkout-summary-card {
    background: linear-gradient(180deg, #fff8e1 0%, #fff 40%);
    border: 2px solid #ffe082;
    border-radius: 18px;
    padding: 22px;
    position: sticky;
    top: 100px;
}

.checkout-summary-card .total-row {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ea580c;
}

.checkout-pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.checkout-pay-option:has(input:checked) {
    border-color: #F9A825;
    background: #fffde7;
}

.checkout-pay-option input { margin: 0; }

.checkout-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.checkout-trust span {
    font-size: 11px;
    font-weight: 700;
    background: #f0fdf4;
    color: #166534;
    padding: 6px 10px;
    border-radius: 8px;
}

.checkout-btn-place {
    background: linear-gradient(135deg, #F9A825, #FF6F00);
    border: none;
    color: #1e293b;
    font-weight: 800;
    font-size: 16px;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(249, 168, 37, .4);
}

.checkout-btn-place:hover {
    color: #111;
    transform: translateY(-1px);
}

.checkout-login-banner {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #93c5fd;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Success page */
.checkout-success-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 16px 80px;
    text-align: center;
}

.checkout-success-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #059669;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPop .5s ease;
}

@keyframes successPop {
    0% { transform: scale(.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.checkout-success-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    text-align: left;
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.checkout-payment-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 16px 80px;
}

.checkout-payment-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
    border: 2px solid #ffe082;
}

@media (max-width: 991.98px) {
    .checkout-summary-card {
        position: static;
        margin-top: 8px;
    }
}
