/* Shared iOS focus safeguards. Keep pinch zoom enabled in the viewport meta tag. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    :where(
        input:not([type]),
        input[type="text" i],
        input[type="number" i],
        input[type="email" i],
        input[type="password" i],
        input[type="search" i],
        input[type="tel" i],
        input[type="url" i],
        textarea,
        select,
        [contenteditable]:not([contenteditable="false"])
    ) {
        font-size: max(16px, 1em) !important;
    }
}

@supports (-webkit-touch-callout: none) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    :where(
        input:not([type]),
        input[type="text" i],
        input[type="number" i],
        input[type="email" i],
        input[type="password" i],
        input[type="search" i],
        input[type="tel" i],
        input[type="url" i],
        textarea,
        select,
        [contenteditable]:not([contenteditable="false"])
    ) {
        font-size: max(16px, 1em) !important;
    }

    /* SweetAlert may focus a field during its default scale animation. */
    .swal2-popup.swal2-show,
    .swal2-popup.swal2-hide {
        animation: none !important;
        transform: none !important;
    }
}
