/* Keep native video thumbnails visible at tablet and phone widths. */
.single-product .fm-video-controls .wd-product-video-mp4 { opacity: 1 !important; pointer-events: auto !important; z-index: 3; }
.single-product .fm-video-controls .wd-video-actions,
.single-product .fm-video-controls .zoomImg { display: none !important; }
.single-product .woocommerce-product-gallery:has(.wd-gallery-images .fm-video-controls.wd-active) .woodmart-show-product-gallery { display: none !important; }
.single-product .fm-video-controls video { width: 100%; height: 100%; object-fit: contain; opacity: 1 !important; visibility: visible !important; }
.fm-video-bar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 4; display: flex; gap: 8px; align-items: center; padding: 10px; color: #fff; background: rgba(0,0,0,.8); }
body.single-product .fm-video-bar button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; min-height: 40px; padding: 8px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.fm-video-bar svg { display: block; width: 24px; height: 24px; pointer-events: none; }
.fm-video-bar button[hidden] { display: none !important; }
.fm-video-bar input[type=range] { flex: 1; min-width: 0; height: 40px; margin: 0; padding: 0; accent-color: #b4ff42; cursor: pointer; touch-action: none; }
.fm-video-bar span { font-size: 12px; white-space: nowrap; }
.fm-video-dialog { border: 0; padding: 48px 16px 16px; width: min(960px, 94vw); max-width: 94vw; background: #111; border-radius: 16px; }
.fm-video-dialog::backdrop { background: rgba(0, 0, 0, .85); }
.fm-video-stage { width: fit-content; max-width: 100%; margin: auto; }
.fm-video-dialog video { display: block; width: auto; max-width: 100%; max-height: calc(100dvh - 180px); object-fit: contain; }
.fm-video-dialog .fm-video-bar { position: relative; }
body.single-product .fm-video-dialog .fm-video-close { position: absolute; top: 8px; right: 12px; width: 32px; height: 32px; min-height: 32px; padding: 0; color: #fff; background: transparent; border: 0; font-size: 30px; cursor: pointer; }
@media (max-width: 1024px) {
  .single-product .wd-gallery-thumb:has(.wd-with-video) { display: block !important; }
  .single-product .woocommerce-product-gallery:has(.wd-product-video) .fm-touch-thumbs { display: none !important; }
}
