/* CSP-safe SweetAlert2 adapter. Presentation comes from the locally hosted
   SweetAlert2 stylesheet; these rules replace display values normally written
   to inline styles by the upstream JavaScript. */
.csp-swal-container {
    display: grid !important;
}

.csp-swal-popup {
    display: grid !important;
}

.csp-swal-popup.swal2-hide {
    pointer-events: none;
}

.csp-swal-popup .swal2-html-container {
    white-space: pre-wrap;
}

/* SweetAlert2 normally calculates this icon wrapper while opening the popup.
   Give it an explicit box so the two error strokes remain inside the circle. */
.csp-swal-popup .swal2-error .swal2-x-mark {
    display: block;
    width: 5em;
    height: 5em;
    flex: 0 0 5em;
}

.csp-swal-popup .swal2-actions:empty {
    display: none;
}
