/* Featured Video for WooCommerce */

.wcfv-player {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
	.wcfv-player {
		height: 0;
		padding-bottom: 56.25%;
	}
}

.wcfv-player img.wcfv-poster {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0;
	box-shadow: none !important;
}

.wcfv-player iframe {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	border: 0;
	margin: 0;
	display: block;
}

.wcfv-play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.wcfv-play svg {
	width: 72px;
	height: 72px;
	max-width: 26%;
	transition: transform .18s ease, opacity .18s ease;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35));
}

.wcfv-play:hover svg,
.wcfv-play:focus-visible svg {
	transform: scale(1.08);
}

.wcfv-play:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px;
}

@media (prefers-reduced-motion: reduce) {
	.wcfv-play svg { transition: none; }
}

/* Keep the slide from inheriting zoom / lightbox cursors */
.wcfv-slide,
.wcfv-slide .wcfv-player {
	cursor: default;
}

.wcfv-slide img.wcfv-poster {
	cursor: pointer;
}

/* Shop / archive badge */
.wcfv-loop {
	position: relative;
	display: block;
}

.wcfv-loop__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .6);
	pointer-events: none;
}

.wcfv-loop__badge::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #fff;
}

/* Shortcode output */
.wcfv-standalone {
	margin: 0 0 1.5em;
}

/* Builder galleries render the slides stacked until FlexSlider initialises.
   Keep the video slide sane in the Elementor editor preview. */
.elementor-widget-woocommerce-product-images .wcfv-slide,
.elementor-widget-wc-product-images .wcfv-slide {
	width: 100%;
}

.elementor-widget-woocommerce-product-images .wcfv-player,
.elementor-widget-wc-product-images .wcfv-player {
	max-width: 100%;
}
