/* Payment Modal Styles */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.payment-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
    color: #333;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.payment-modal-header h3 {
    margin: 0;
    color: #23284a;
    font-size: 1.3rem;
    font-weight: 600;
}

.payment-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    padding: 0;
    line-height: 1;
}

.payment-modal-close:hover {
    color: #333;
}

.payment-modal-body {
    padding: 20px;
    background-color: #fff;
    color: #333;
}

.payment-product-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.payment-product-info h4 {
    margin: 0 0 10px 0;
    color: #23284a;
    font-size: 1.2rem;
    font-weight: 600;
}

.payment-price {
    font-size: 1.1rem;
    color: #43a047;
    font-weight: bold;
    margin: 0;
}

.payment-balance-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.payment-balance-info p {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #333;
}

.payment-balance-info p:last-child {
    margin-bottom: 0;
}

.payment-balance-info strong {
    color: #2196f3;
    font-weight: 600;
}

.payment-insufficient {
    color: #e53935;
    font-weight: bold;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option-balance,
.payment-option-checkout {
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.payment-option-balance {
    background-color: #43a047;
    color: white;
}

.payment-option-balance:hover {
    background-color: #2e7d32;
}

.payment-option-checkout {
    background-color: #2196f3;
    color: white;
}

.payment-option-checkout:hover {
    background-color: #1976d2;
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #43a047;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background-color: #333;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.toast-notification.success {
    background-color: #43a047;
}

.toast-notification.error {
    background-color: #e53935;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex-grow: 1;
}

.toast-message {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 576px) {
    .payment-modal-content {
        width: 95%;
    }
    
    .payment-modal-header {
        padding: 12px 16px;
    }
    
    .payment-modal-body {
        padding: 16px;
    }
    
    .payment-product-info h4 {
        font-size: 1.1rem;
    }
    
    .payment-price {
        font-size: 1rem;
    }
    
    .payment-option-balance,
    .payment-option-checkout {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .toast-notification {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        padding: 12px 16px;
    }
} 