/*
 * SweetAlert2, in Noximo's clothes — for any page that opens a dialog (Home/Welcome's delete
 * confirmation, Home/ClientCode's "decrypting your profile" loader). Link SweetAlert2's own
 * stylesheet first, so these rules win. Dialogs use buttonsStyling: false and the nx-swal classes.
 */

.swal2-container.swal2-backdrop-show {
    background: rgba(12, 12, 12, 0.55);
}

.nx-swal.swal2-popup {
    width: min(32rem, calc(100vw - 2rem));
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 16px;
    font-family: var(--nx-font-body);
    color: var(--nx-ink-2);
}

.nx-swal .nx-swal__title {
    padding: 0.5rem 0 0;
    font-family: var(--nx-font-display);
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.028em;
    color: var(--nx-ink);
}

.nx-swal .nx-swal__copy {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--nx-ink-2);
}

.nx-swal .nx-swal__copy strong {
    font-weight: 600;
    color: var(--nx-ink);
}

.nx-swal .swal2-icon.swal2-warning {
    border-color: var(--nx-red);
    color: var(--nx-red);
}

.nx-swal .nx-swal__actions {
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.nx-swal .swal2-loader {
    border-color: var(--nx-red) transparent var(--nx-red) transparent;
}

/* A loader that spins fast, so a long wait still looks busy (SweetAlert2's own turn is 1.5s). */
.nx-swal .swal2-loader {
    width: 3rem;
    height: 3rem;
    margin: 0.5rem auto 0;
    border-width: 0.3rem;
    animation-duration: 0.55s;
}

@media (prefers-reduced-motion: reduce) {
    .nx-swal .swal2-loader {
        animation-duration: 1.5s;
    }
}
