/* ========================================
   SWEETALERT Z-INDEX FIX
   ======================================== */

/* Ensure SweetAlert appears above cart popup */
.swal2-container {
    z-index: 99999999 !important;
}

.swal2-popup {
    z-index: 99999999 !important;
}

/* Modern SweetAlert Design */
.swal2-popup {
    border-radius: 16px !important;
    padding: 32px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.swal2-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 16px !important;
}

.swal2-html-container {
    font-size: 16px !important;
    color: #666 !important;
    line-height: 1.6 !important;
}

.swal2-icon {
    margin: 0 auto 24px !important;
}

.swal2-icon.swal2-warning {
    border-color: #f39c12 !important;
    color: #f39c12 !important;
}

.swal2-icon.swal2-error {
    border-color: #e74c3c !important;
    color: #e74c3c !important;
}

.swal2-icon.swal2-success {
    border-color: #27ae60 !important;
    color: #27ae60 !important;
}

.swal2-icon.swal2-info {
    border-color: #3498db !important;
    color: #3498db !important;
}

/* Buttons */
.swal2-actions {
    gap: 12px !important;
    margin-top: 24px !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3) !important;
    transition: all 0.2s ease !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4) !important;
}

.swal2-cancel {
    background: #95a5a6 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3) !important;
    transition: all 0.2s ease !important;
}

.swal2-cancel:hover {
    background: #7f8c8d !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4) !important;
}

/* Backdrop */
.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.6) !important;
}

/* Animation */
.swal2-show {
    animation: swal2-show 0.3s !important;
}

.swal2-hide {
    animation: swal2-hide 0.2s !important;
}

@keyframes swal2-show {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes swal2-hide {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .swal2-popup {
        width: 90% !important;
        padding: 24px !important;
    }

    .swal2-title {
        font-size: 20px !important;
    }

    .swal2-html-container {
        font-size: 14px !important;
    }

    .swal2-confirm,
    .swal2-cancel {
        padding: 10px 24px !important;
        font-size: 14px !important;
    }
}