/*
 * Interactive Brokers — system-wide zoom control
 * Prevents accidental page zoom while preserving normal scrolling and form editing.
 */

/* Keep the page at its designed scale and disable browser gesture zoom. */
html,
body {
  touch-action: pan-x pan-y;
  -ms-touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Prevent double-tap zoom on common interactive controls without disabling taps. */
a,
button,
[role="button"],
input,
select,
textarea,
label,
summary {
  touch-action: pan-x pan-y;
  -ms-touch-action: pan-x pan-y;
}

/* iOS Safari zooms focused form controls when their computed font is below 16px. */
input,
select,
textarea,
button,
[contenteditable="true"] {
  font-size: max(16px, 1em) !important;
}

/* Keep text editable/selectable inside form controls. */
input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* Avoid Safari's automatic text-size adjustments changing the layout. */
input,
select,
textarea,
button {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Preserve ordinary vertical and horizontal page scrolling. */
body {
  overscroll-behavior-x: none;
}
