
.wd-product-video {
	opacity: 0;
	background-color: #000;
	transition: all .3s ease;
	z-index: 2;
	border-radius: var(--wd-brd-radius);
}

.wd-product-video :is(iframe,video) {
	opacity: 0;
	transition: opacity .3s ease;
}

.wd-video-design-theme .wd-product-video, .wd-video-design-native:not(.wd-video-playing):not(.wd-video-hide-thumb) .wd-product-video {
	pointer-events: none;
}

.wd-owl:not(.owl-loaded) .wd-product-video :is(iframe,video) {
	opacity: 0;
}

:is(.wd-video-hide-thumb,.wd-video-playing) .wd-product-video {
	opacity: 1;
}

:is(.wd-video-hide-thumb,.wd-video-playing) .wd-product-video :is(iframe,video) {
	opacity: 1;
}

.wd-video-hide-thumb figure img {
	opacity: 0 !important;
	visibility: hidden;
}

.wd-video-cover .wd-product-video-iframe {
	left: -100vw;
	right: -100vw;
}

.wd-video-contain .wd-product-video-iframe {
	top: -100vh;
	bottom: -100vh;
}

.wd-product-video-youtube iframe {
	transition-delay: .3s;
}

.wd-video-cover .wd-youtube-shorts {
	left: 0;
	right: 0;
	top: -100vh;
	bottom: -100vh;
}

.wd-video-contain .wd-youtube-shorts {
	left: -100vw;
	right: -100vw;
	top: 0;
	bottom: 0;
}

.wd-product-video-mp4 video {
	max-width: 100%;
	height: 100%;
	width: 100%;
}

.wd-video-cover .wd-product-video-mp4 video {
	object-fit: cover;
}

.wd-hide-overlay-info :is(.product-labels,.product-additional-galleries,.wd-nav-pagin) {
	opacity: 0;
	visibility: hidden;
}

.wd-video-actions {
	position: absolute;
	opacity: .9;
	transition: all .3s ease;
	z-index: 4;
}

.wd-video-actions .wd-play-video.wd-style-icon-bg-text {
	--wd-action-icon-size: 28px;
	pointer-events: auto;
	transition: opacity .25s ease;
}

.wd-video-playing.wd-video-design-native .wd-video-actions {
	display: none;
}

.wd-video-playing .wd-play-video {
	--wd-btn-icon: "󱀚";
}

.wd-carousel-item .wd-play-video>a:after {
	left: calc(50% - .5em);
}

.wd-carousel-item.wd-with-video.wd-loading .wd-product-video {
	opacity: 1;
}

.wd-loading .wd-video-actions .wd-play-video {
	opacity: .6 !important;
}

.wd-loading .wd-video-actions .wd-play-video>a:before {
	opacity: 0;
	visibility: hidden;
}

.wd-loading .wd-video-actions .wd-play-video>a:after {
	opacity: 1;
	visibility: visible;
	--wd-anim-state: running;
}

.wd-video-actions.wd-loading, .wd-loading .wd-video-actions {
	cursor: default;
}

.wd-video-actions.wd-loading .wd-play-video, .wd-loading .wd-video-actions .wd-play-video {
	pointer-events: none;
}

.wd-gallery-thumb .wd-with-video:before {
	position: absolute;
	left: calc(50% - 1.1em);
	top: calc(50% - 1.1em);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.2em;
	height: 2.2em;
	border-radius: 50%;
	font-size: 20px;
	color: var(--color-gray-600);
	background-color: var(--bgcolor-white);
	box-shadow: 0 0 5px rgba(0, 0, 0, .08);
	content: "";
	font-family: "woodmart-font";
	z-index: 2;
	opacity: .9;
}

.thumbs-position-left .wd-gallery-thumb .wd-with-video:before {
	top: calc(50% - 1.1em - var(--wd-gap) / 2);
}

@media (min-width: 1025px) {
	.wd-video-actions {
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
	
	.woocommerce-product-gallery .wd-video-playing .wd-video-actions {
		opacity: 0;
	}
	
	.woocommerce-product-gallery .wd-video-playing .wd-video-actions:hover {
		opacity: .9 !important;
	}
	
	.woocommerce-product-gallery .wd-video-playing:hover .wd-video-actions {
		opacity: .3;
	}
}

@media (max-width: 1024px) {
	.wd-video-actions {
		inset: 0;
	}
	
	.wd-video-actions .wd-play-video {
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
	}
	
	.wd-video-playing .wd-video-actions {
		opacity: 0;
		transition-delay: 1s;
	}
	
	.wd-product-video-iframe:before, .wd-product-video-iframe:after {
		content: "";
		position: absolute;
		width: min(20%, 100px);
		inset-block: 150px;
	}
	
	.wd-product-video-iframe:before {
		left: 0;
	}
	
	.wd-product-video-iframe:after {
		right: 0;
	}
}
