/* Checkout System Styles */
:root {
    --checkout-primary: #1e293b;
    --checkout-accent: #3b82f6;
    --checkout-success: #10b981;
    --checkout-warning: #f59e0b;
    --checkout-glass-bg: rgba(255, 255, 255, 0.7);
    --checkout-glass-border: rgba(255, 255, 255, 0.2);
    --checkout-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.checkout-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 80px 0;
    min-height: 80vh;
}

.checkout-card {
    background: var(--checkout-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--checkout-glass-border);
    border-radius: 24px;
    box-shadow: var(--checkout-shadow);
    padding: 40px;
    transition: transform 0.3s ease;
}

.checkout-card:hover {
    transform: translateY(-5px);
}

.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 16px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.course-item:hover {
    border-color: var(--checkout-accent);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.course-info h5 {
    margin: 0;
    font-weight: 700;
    color: var(--checkout-primary);
}

.course-info p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.price-tag {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--checkout-accent);
}

.summary-card {
    background: var(--checkout-primary);
    color: white;
    border-radius: 24px;
    padding: 30px;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-total {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed rgba(255, 255, 255, 0.2);
    font-size: 1.75rem;
    font-weight: 800;
}

.btn-pay {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
    margin-top: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-pay:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-pay:disabled {
    background: #475569;
    cursor: not-allowed;
    transform: none;
}

/* Quantity Control */
.qty-control {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f1f5f9;
    padding: 8px 15px;
    border-radius: 10px;
}

.qty-btn {
    background: white;
    border: 1px solid #e2e8f0;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--checkout-accent);
    color: white;
    border-color: var(--checkout-accent);
}

.qty-val {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Add to Cart Widget */
.add-to-cart-box {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
}

.input-group-premium {
    margin-bottom: 20px;
}

.input-group-premium label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 0.9rem;
}

.input-group-premium input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.3s;
}

.input-group-premium input:focus {
    outline: none;
    border-color: var(--checkout-accent);
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--checkout-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-cart-msg {
    text-align: center;
    padding: 40px;
}

.empty-cart-msg i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
}

/* Premium Form Inputs */
.premium-input {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

.premium-input:focus {
    border-color: var(--checkout-accent);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-label {
    color: var(--checkout-primary);
    letter-spacing: 0.5px;
}
