/* A shared mobile input floor for the storefront and isolated Design iframe.
   Safari can zoom small text fields on focus. Keep browser zoom available;
   change only editable controls, never the surrounding canvas or buttons. */
@media (max-width: 760px), (pointer: coarse) {
  :root :is(.storefront-layout, .storefront-chrome, body.studio-page, body.embedded-studio) :is(
    input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="color"], [type="button"], [type="submit"], [type="reset"], [type="image"]),
    select,
    textarea
  ) {
    /* This narrow override must beat inherited 12/13px label and panel fonts. */
    font-size: max(16px, 1em) !important;
    min-inline-size: 0;
    max-inline-size: 100%;
    box-sizing: border-box;
    scroll-margin-block: 12px;
  }
}
