/* Checkout page styles */

.checkout-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
}

.checkout-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkout-title h1 {
    margin: 0;
    font-size: 1.75rem;
}

.checkout-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.checkout-form-section {
    flex: 1 1 auto;
    background: #0b0b0b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    padding: 32px 40px;
}

.checkout-form-section h2 {
    margin: 0 0 1.25rem 0;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
    color: #7b2ff7 !important;
}

.checkout-form-section .form-group {
    margin-bottom: 1.25rem;
}

.checkout-form-section .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #fff !important;
}

.checkout-form-section .form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #eee !important;
}

.checkout-form-section .form-group input::placeholder {
    color: var(--muted, #9a9a9a);
}

.checkout-form-section .form-group input:focus {
    outline: none;
    border-color: var(--accent1, #7b2ff7);
    box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* Gift card section */
.giftcard-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.giftcard-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.giftcard-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.giftcard-btn {
    padding: 12px 20px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.giftcard-btn:hover {
    background: #6d28d9;
}

/* Balance display */
.balance-display {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    font-weight: 600;
}

.balance-display.insufficient {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

/* Place order button */
.place-order-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-top: 1.5rem;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.place-order-btn:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.place-order-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--muted, #9a9a9a);
    cursor: not-allowed;
}

/* Messages */
.checkout-container .message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.checkout-container .message.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.checkout-container .message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Back link */
.checkout-container .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted, #9a9a9a);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.checkout-container .back-link:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .checkout-content {
        flex-direction: column;
    }

    .checkout-form-section,
    .checkout-content .order-summary-box {
        width: 100%;
    }
}
