/* Xemry v3.9.18 — remove off-canvas form controls from the document scroll area.
   Live mobile audit found two hidden controls expanding the root scroll width:
   the XLP anti-spam honeypot at left:-10000px and WooCommerce's visually-hidden
   enhanced variation select, whose width was 100% with a negative inline offset.
   Keep both controls in the DOM for server-side spam checks and WooCommerce JS,
   but visually clip them in a fixed 1px box so neither can widen the page. */
body.xm-product-responsive .xlp-hidden-field,
body.xm-product-responsive select.luania-enhanced-select[data-luania-enhanced="1"] {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  inset-inline: auto !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  min-height: 1px !important;
  max-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: none !important;
}

/* Keep the XLP honeypot's child controls inside the clipped 1px parent.
   They remain present for the landing-page plugin's spam validation. */
body.xm-product-responsive .xlp-hidden-field :is(label, input, textarea, select) {
  position: static !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  min-height: 1px !important;
  max-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

/* Product specifications were a 2-column grid whose intrinsic text width
   exceeded its container by 10px on narrow phones. Use shrinkable tracks. */
@media (max-width: 900px) {
  body.xm-product-responsive .xlp-spec-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) !important;
    column-gap: 8px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body.xm-product-responsive .xlp-spec-row > * {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    box-sizing: border-box !important;
  }
}
