/* assets/css/checkout.css - Premium Checkout Styles */

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

/* LEFT SIDE: FORM */
.checkout-form-container {
    background: transparent;
}

.step-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    background: var(--accent);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* RIGHT SIDE: SUMMARY */
.checkout-summary-container {
    position: sticky;
    top: 100px;
    /* Below navbar */
}

.summary-card-premium {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.summary-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--border);
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.summary-items {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
}

.summary-item-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.item-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #f1f5f9;
    object-fit: cover;
}

.item-info {
    flex: 1;
    font-size: 0.9rem;
}

.item-name {
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
}

.item-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.item-price {
    font-weight: 700;
}

/* Total Section */
.summary-totals {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.total-row.final {
    margin-top: 1rem;
    margin-bottom: 0;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.5rem;
}

.btn-confirm {
    width: 100%;
    background: linear-gradient(to right, var(--accent), var(--accent-hover));
    color: white;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(var(--accent-rgb), 0.3);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(var(--accent-rgb), 0.4);
}

/* Radio & Inputs Enhancements */
.radio-card-premium {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1rem;
    position: relative;
}

.radio-card-premium input {
    position: absolute;
    opacity: 0;
}

.radio-card-premium.selected {
    border-color: var(--accent);
    background: #eff6ff;
}

.radio-card-premium .icon-box {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.label-title {
    font-weight: 700;
    display: block;
    margin-bottom: 0.2rem;
}

.label-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive */
@media(max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary-container {
        position: static;
        order: -1;
        /* Show summary first on mobile? Or last? Usually last or summary toggle. keeping default order for now but stacked */
        margin-bottom: 2rem;
    }
}