.swal2-container {
    touch-action: manipulation;
    overscroll-behavior: contain;
}

@media (max-width: 575.98px) {
    .swal2-container {
        height: 100vh;
        height: 100dvh;
        padding:
            max(.5rem, env(safe-area-inset-top, 0px))
            max(.5rem, env(safe-area-inset-right, 0px))
            max(.5rem, env(safe-area-inset-bottom, 0px))
            max(.5rem, env(safe-area-inset-left, 0px));
        overflow-y: auto;
    }

    .swal2-container .swal2-popup {
        box-sizing: border-box;
        width: 100%;
        max-width: 32em;
        max-height: calc(100vh - 1rem);
        max-height: calc(100dvh - 1rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .swal2-container .swal2-actions {
        width: calc(100% - 2rem);
        gap: 1.5rem;
    }

    .swal2-container .swal2-actions .swal2-styled {
        flex: 1 1 9rem;
        min-width: 44px;
        min-height: 48px;
        margin: 0;
        touch-action: manipulation;
    }
}
