/* Padrão visual global dos diálogos SweetAlert2. */
:root {
    --portal-swal-radius: 25px;
    --portal-swal-control-radius: 20px;
}

body.swal2-shown .swal2-popup {
    border-radius: var(--portal-swal-radius) !important;
}

body.swal2-shown .swal2-popup.swal2-toast {
    border-radius: 18px !important;
}

body.swal2-shown .swal2-styled,
body.swal2-shown .swal2-actions button,
body.swal2-shown .swal2-close {
    border-radius: var(--portal-swal-radius) !important;
}

body.swal2-shown .swal2-popup :where(
    .swal2-input,
    .swal2-textarea,
    .swal2-select,
    .swal2-file,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    input[type="date"],
    input[type="time"],
    select,
    textarea
) {
    border-radius: var(--portal-swal-control-radius) !important;
}

body.swal2-shown .swal2-validation-message,
body.swal2-shown .swal2-footer,
body.swal2-shown .swal2-timer-progress-bar-container,
body.swal2-shown .swal2-html-container :where(img, table, pre) {
    border-radius: 16px !important;
}

@media (max-width: 575.98px) {
    body.swal2-shown .swal2-popup:not(.swal2-toast) {
        border-radius: 22px !important;
    }

    body.swal2-shown .swal2-styled,
    body.swal2-shown .swal2-actions button {
        border-radius: 22px !important;
    }
}
