/* Precompiled ready galleries must be visible before any animation clock runs. */
body[data-owned-static-sku][data-product-images-state="ready"] [data-demo-main-gallery] li[id^="gallery-carousel"].motion-safe\:animate-fade-in:not([hidden]):not([aria-hidden="true"]) {
  animation: none;
  opacity: 1;
}

/* Keep the captured review controls available when this model gains reviews. */
#reviews[data-native-reviews-empty] > :not(h2):not([data-empty-review-message]) { display: none !important; }

/* Allow the price and purchase action to share a row only while they fit. */
@media (max-width: 374px) {
  /* Keep off-canvas content inside the page while the mobile controls initialize. */
  body[data-owned-static-sku] > #__nuxt {
    max-width: 100%;
    overflow-x: clip;
  }

  main .flex-row:has(> [data-id="product-page-buy-button-mobile"]) {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}
