/* Optional, bounded enhancement of the original HoverCaption.
   The original DOM remains the layout and accessible text source. */
[data-merchant-particles] > .merchant-particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

[data-merchant-particles] > .merchant-particles-canvas[hidden] {
  display: none;
}

[data-merchant-particles].is-particles-ready .c-hover-caption_title {
  opacity: 0 !important;
}

[data-merchant-particles].is-particles-ready > .c-hover-caption_overlay {
  opacity: 0;
}

.merchant-particles-measure {
  position: absolute !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  height: auto !important;
  transition: none !important;
  animation: none !important;
}

.merchant-particles-baseline {
  display: inline-block !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: baseline !important;
}

/* Immediate CSS fallback also covers the interval before JS handles a change. */
@media (prefers-reduced-motion: reduce) {
  [data-merchant-particles] > .merchant-particles-canvas {
    display: none;
  }

  [data-merchant-particles].is-particles-ready .c-hover-caption_title,
  [data-merchant-particles].is-particles-ready > .c-hover-caption_overlay {
    opacity: 1 !important;
  }
}
