/* Bunny Stream native video on PDP gallery slides (Caption → dual-source video) */
.dh-bunny-pdp-slide {
  position: relative;
  width: 100%;
}

.dh-bunny-pdp-slide__player {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dh-bunny-pdp-slide.is-bunny-active .dh-bunny-pdp-slide__player {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Keep sharp product image / poster until video actually plays (mobile HLS buffer) */
.dh-bunny-pdp-slide.is-bunny-active:not(.is-bunny-playing) .product__media-image {
  opacity: 1;
}

.dh-bunny-pdp-slide.is-bunny-active.is-bunny-playing .product__media-image {
  opacity: 0;
}

.dh-bunny-pdp-slide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  background: transparent;
}

.dh-bunny-pdp-slide.is-bunny-active .product__media-icon {
  display: none;
}

/* Video-only hero: native <video> fills frame; poster until play */
.dh-bunny-pdp-slide--video-only .dh-bunny-pdp-slide__frame {
  position: relative;
  width: 100%;
}

.dh-bunny-pdp-slide--video-only .dh-bunny-pdp-slide__video {
  position: relative;
  display: block;
}

.dh-bunny-pdp-slide--video-only.is-bunny-active .dh-bunny-pdp-slide__video {
  opacity: 1;
}

/* Overlay slide: hide video under poster until frames render */
.dh-bunny-pdp-slide--native:not(.dh-bunny-pdp-slide--video-only).is-bunny-active:not(.is-bunny-playing) .dh-bunny-pdp-slide__video {
  opacity: 0;
}

.dh-bunny-pdp-slide--native:not(.dh-bunny-pdp-slide--video-only).is-bunny-active.is-bunny-playing .dh-bunny-pdp-slide__video {
  opacity: 1;
}
