/* Append after the guided quotation component styles. Sizes follow the reader's root text size. */
@media screen and (max-width: 480px),
       screen and (orientation: landscape) and (max-height: 480px) and (pointer: coarse) {
  html:has(#mobile-preview:not([hidden])) { scroll-padding-bottom: calc(3.75rem + env(safe-area-inset-bottom)); }
  #guide-app { font-size: .875rem; line-height: 1.5; }
  #guide-app .gq-brand { font-size: .875rem; }
  #guide-app .gq-brand img { width: 22px; height: 24px; object-fit: contain; }
  #guide-app .gq-title-row { gap: 8px; margin-bottom: 12px; }
  #guide-app .gq-title-row h1 { font-size: 1.1875rem; line-height: 1.35; }
  #guide-app .gq-question { font-size: 1.125rem; line-height: 1.4; }
  #guide-app .gq-help, #guide-app .asm-lead { font-size: .8125rem; line-height: 1.5; }
  #guide-app .asm-head h2, #guide-app .ws-gallery-tools h2,
  #guide-app .gq-preview-heading h2 { font-size: .9375rem; }

  #guide-app .gq-choice {
    min-height: 44px;
    padding: 6px 8px;
    gap: 6px;
    font-size: .8125rem !important;
    line-height: 1.45;
  }
  #guide-app .gq-choice-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 22px;
  }
  #guide-app .gq-choice-icon svg, #guide-app .gq-small-icon { width: 15px; height: 15px; }
  #guide-app .gq-thumb, #gq-fx-toast .gq-thumb { width: 34px; height: 28px; }
  #guide-app .gq-thumb svg, #gq-fx-toast .gq-thumb svg { width: 29px; height: 22px; }
  #guide-app .gq-thumb-check, #gq-fx-toast .gq-thumb-check {
    width: 15px; height: 15px; top: -4px; right: -4px; font-size: 10px;
  }
  #guide-app .gq-swatch { width: 16px; height: 16px; }
  #guide-app .gq-plan-icon { font-size: 1.125rem; }
  #guide-app .gq-button, #guide-app .bp-link,
  #guide-app .gq-mobile-preview:not([hidden]) { font-size: .875rem; min-height: 44px; }
  #guide-app .ws-chips button, #guide-app .ws-starter-buttons button,
  #guide-app .gv-tabs button, #guide-app .gv-tools button { font-size: .8125rem !important; min-height: 44px; }
  #guide-app .gq-mode button, #guide-app .gq-fx-step,
  #guide-app .gq-icon-button, #guide-app .gq-qty button { min-height: 44px; }
  .bp-dialog .bp-head h2 { font-size: 1.0625rem; }
  .bp-dialog .bp-total strong { font-size: 1.375rem; }
  .bp-dialog button { min-height: 44px; font-size: .8125rem; }
  /* Dimension and contact fields stay readable when the iOS keyboard opens. */
  #guide-app input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  #guide-app textarea, #guide-app select:not(#guide-theme) { font-size: max(16px, 1rem) !important; }
}
