/*
 * iOS Safari zooms the page into a form field whose font is smaller than 16px and does not zoom back
 * (TD-120, docs/plans/archive/ios-input-zoom.md). The Phoenix theme gives fields 0.8rem (12.8px).
 * Phones and touch tablets only, desktop keeps the theme size. Load after theme.min.css / user.min.css:
 * the selectors have the same specificity as the theme's, the later file wins.
 * Do not solve it with maximum-scale=1 in the viewport: Android then blocks pinch zoom too.
 */
@media (max-width: 767.98px), (hover: none) and (pointer: coarse) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
    select,
    textarea,
    .form-control,
    .form-control-sm,
    .form-select,
    .form-select-sm,
    .choices .choices__input,
    .choices .choices__input--cloned,
    .flatpickr-time input {
        font-size: 16px;
    }

    /* Floating labels: the theme height (2.875rem + 2px) minus the top/bottom padding (22.5px + 9.5px) leaves 14px,
       a 16px line needs 20px - iOS cut the chosen value of a select ("Anrede"). 3.25rem + 2px leaves 20px. */
    .form-floating > .form-control,
    .form-floating > .form-control-plaintext,
    .form-floating > .form-select {
        height: calc(3.25rem + 2px);
    }
}
