/* Tazrirt - product video inside the main WooCommerce gallery */
.tz-pv-host { position: relative; }

.tz-pv-stage {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1d1a17;
  overflow: hidden;
}
.tz-pv-stage[hidden] { display: none; }

.tz-pv-frame { position: relative; max-width: 100%; max-height: 100%; }
.tz-pv-frame iframe,
.tz-pv-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

/* The fullscreen/zoom icon belongs to the images, not the video. */
.woocommerce-product-gallery.tz-pv-active .woocommerce-product-gallery__trigger { visibility: hidden; }

/* Video thumbnail: same box as the other gallery thumbnails */
.flex-control-thumbs li.tz-pv-thumb { cursor: pointer; }
.tz-pv-thumb-inner { position: relative; display: block; }
.flex-control-thumbs li.tz-pv-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.tz-pv-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  max-width: 48px;
  min-width: 26px;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(20, 17, 14, .62);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background-color .2s ease;
}
.tz-pv-play svg { width: 46%; height: 46%; fill: #fff; margin-left: 8%; }
.tz-pv-thumb:hover .tz-pv-play,
.tz-pv-thumb:focus-visible .tz-pv-play,
.tz-pv-thumb[aria-pressed="true"] .tz-pv-play { background: rgba(20, 17, 14, .82); }
.tz-pv-thumb:focus-visible { outline: 2px solid #8a4b2a; outline-offset: 2px; }
