/* ========================================
   PROFESSIONAL PAYMENT ALERT STYLES
   SweetAlert2 Custom Styling
   ======================================== */

/* Main Popup Container */
.payment-alert-popup {
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

/* Alert Title */
.payment-alert-title {
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    color: #1a1c19 !important;
    padding-bottom: 1rem !important;
}

/* Alert Text Content */
.payment-alert-text {
    font-size: 1rem !important;
    color: #52564f !important;
    padding: 0 1rem 1.5rem !important;
}

.payment-alert-text strong {
    color: #1a1c19;
    font-weight: 600;
}

.payment-alert-text .text-muted {
    color: #6b7169 !important;
}

/* Icon Styling */
.swal2-icon {
    margin: 2rem auto 1.5rem !important;
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.swal2-icon.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

/* Buttons Container */
.swal2-actions {
    gap: 1rem !important;
    margin-top: 1.5rem !important;
}

/* Custom Button Styles */
.swal2-confirm.btn-success {
    background: linear-gradient(135deg, #2d7a52 0%, #246841 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(45, 122, 82, 0.3) !important;
}

.swal2-confirm.btn-success:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(45, 122, 82, 0.4) !important;
}

.swal2-confirm.btn-success:active {
    transform: translateY(0) !important;
}

.swal2-cancel.btn-outline-secondary {
    background: white !important;
    border: 2px solid #d4d8d2 !important;
    color: #52564f !important;
    font-weight: 500 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel.btn-outline-secondary:hover {
    border-color: #2d7a52 !important;
    color: #2d7a52 !important;
    background: #f4faf7 !important;
}

/* Button Icons */
.swal2-confirm i,
.swal2-cancel i {
    margin-right: 0.5rem;
}

/* Overlay */
.swal2-container {
    backdrop-filter: blur(4px) !important;
}

.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.6) !important;
}

/* Animation */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-alert-popup {
    animation: slideInDown 0.3s ease !important;
}

/* Close Button */
.swal2-close {
    font-size: 2rem !important;
    color: #a8ada6 !important;
    transition: color 0.2s ease !important;
}

.swal2-close:hover {
    color: #52564f !important;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .payment-alert-popup {
        padding: 1.5rem !important;
        width: 90% !important;
        margin: 0 auto !important;
    }

    .payment-alert-title {
        font-size: 1.5rem !important;
    }

    .payment-alert-text {
        font-size: 0.9375rem !important;
        padding: 0 0.5rem 1rem !important;
    }

    .swal2-actions {
        flex-direction: column !important;
        width: 100% !important;
    }

    .swal2-confirm.btn-success,
    .swal2-cancel.btn-outline-secondary {
        width: 100% !important;
        margin: 0 !important;
    }

    .swal2-icon {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Loading State */
.swal2-loading {
    border-color: #2d7a52 transparent #2d7a52 transparent !important;
}

/* Timer Progress Bar */
.swal2-timer-progress-bar {
    background: #2d7a52 !important;
}

/* Custom Classes for Different Alert Types */
.payment-success-alert {
    border-top: 4px solid #10b981 !important;
}

.payment-warning-alert {
    border-top: 4px solid #f59e0b !important;
}

.payment-error-alert {
    border-top: 4px solid #ef4444 !important;
}

/* Focus States for Accessibility */
.swal2-confirm:focus,
.swal2-cancel:focus {
    outline: 2px solid #2d7a52 !important;
    outline-offset: 2px !important;
}

/* Disabled State */
.swal2-confirm:disabled,
.swal2-cancel:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}
