/* P1: runtime flag gates all mobile purchase layout changes. Desktop is unchanged. */
.rfs-consent-short-copy { display: none; }
@media (max-width: 760px) {
  html[data-rfs-mobile-purchase="on"] .product-layout { display: flex; flex-direction: column; gap: 14px; }
  html[data-rfs-mobile-purchase="on"] .product-head { order: 0; width: 100%; padding-bottom: 0; }
  html[data-rfs-mobile-purchase="on"] .product-layout > .product-info { display: contents; }
  html[data-rfs-mobile-purchase="on"] .product-info > * { order: 3; width: 100%; }
  html[data-rfs-mobile-purchase="on"] .product-info > #purchase-form { order: 1; display: flex; flex-direction: column; margin: 0; }
  html[data-rfs-mobile-purchase="on"] .product-layout > .gallery { order: 2; width: 100%; }
  html[data-rfs-mobile-purchase="on"] .gallery-stage { height: min(380px, 45svh); min-height: 0; }
  html[data-rfs-mobile-purchase="on"] #purchase-form > fieldset { order: 0; margin-bottom: 8px; }
  html[data-rfs-mobile-purchase="on"] #purchase-form > .purchase-row { order: 1; margin-top: 6px; }
  html[data-rfs-mobile-purchase="on"] #purchase-form > .field-error,
  html[data-rfs-mobile-purchase="on"] #purchase-form > .purchase-status { order: 2; }
  html[data-rfs-mobile-purchase="on"] #purchase-form > .personal-disclosure { order: 3; margin-top: 10px; }
  html[data-rfs-mobile-purchase="on"] #purchase-form > .included-print { order: 4; margin: 8px 0 0; }
  html[data-rfs-mobile-purchase="on"] #sticky-purchase { gap: 12px; }
  html[data-rfs-mobile-purchase="on"] #sticky-purchase .sticky-copy p { font-size: 12px; }

  html[data-rfs-mobile-purchase="on"][data-rfs-regional-consent="on"] { --rfs-consent-height: calc(54px + env(safe-area-inset-bottom)); }
  html[data-rfs-mobile-purchase="on"][data-rfs-consent-saved="yes"] { --rfs-consent-height: 0px; }
  html[data-rfs-mobile-purchase="on"] .rfs-consent-banner {
    flex-wrap: nowrap; justify-content: space-between; align-items: center;
    gap: 4px; padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
  }
  html[data-rfs-mobile-purchase="on"] .rfs-consent-banner p { font-size: 10.5px; white-space: nowrap; }
  html[data-rfs-mobile-purchase="on"] .rfs-consent-banner .rfs-consent-actions { grid-template-columns: 50px 50px 48px; gap: 2px; flex-shrink: 0; }
  html[data-rfs-mobile-purchase="on"] .rfs-consent-banner .rfs-consent-actions button { padding: 4px 2px; min-height: 44px; font-size: 11px; }
  html[data-rfs-mobile-purchase="on"] .rfs-consent-full-copy { display: none; }
  html[data-rfs-mobile-purchase="on"] .rfs-consent-short-copy { display: inline; }
  html[data-rfs-mobile-purchase="on"] .rfs-consent-banner .rfs-consent-message:not(:empty) { white-space: normal; position: absolute; bottom: 100%; background: white; padding: 8px; left: 0; right: 0; }
}
