.woocommerce-product-gallery.pgyfw-has-video {
	--pgyfw-gallery-ratio: 16 / 9;
}

.pgyfw-video-slide {
	background: #0a0a0a;
	overflow: hidden;
}

.pgyfw-video-frame {
	align-items: center;
	aspect-ratio: var( --pgyfw-gallery-ratio );
	background: #0a0a0a;
	display: flex;
	justify-content: center;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.pgyfw-video-play {
	align-items: center;
	background-color: #0a0a0a;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	border: 0;
	color: #fff;
	cursor: pointer;
	display: flex;
	font: inherit;
	height: 100%;
	justify-content: center;
	margin: 0;
	padding: 0;
	position: absolute;
	inset: 0;
	width: 100%;
}

.pgyfw-video-play__shade {
	background: linear-gradient( 180deg, rgba( 0, 0, 0, 0.08 ), rgba( 0, 0, 0, 0.42 ) );
	position: absolute;
	inset: 0;
}

.pgyfw-video-play__icon {
	background: #f03;
	border-radius: 16px;
	box-shadow: 0 4px 18px rgba( 0, 0, 0, 0.36 );
	height: 54px;
	position: relative;
	transition: transform 160ms ease, background-color 160ms ease;
	width: 78px;
	z-index: 1;
}

.pgyfw-video-play__icon::after {
	border-bottom: 11px solid transparent;
	border-left: 18px solid #fff;
	border-top: 11px solid transparent;
	content: "";
	left: 32px;
	position: absolute;
	top: 16px;
}

.pgyfw-video-play__text {
	background: rgba( 0, 0, 0, 0.72 );
	border-radius: 3px;
	bottom: 18px;
	font-size: 14px;
	font-weight: 600;
	left: 50%;
	line-height: 1.35;
	padding: 7px 11px;
	position: absolute;
	transform: translateX( -50% );
	white-space: nowrap;
	z-index: 1;
}

.pgyfw-video-play:hover .pgyfw-video-play__icon {
	background: #c9002b;
	transform: scale( 1.06 );
}

.pgyfw-video-play:focus-visible {
	box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px #2271b1;
	outline: 0;
}

.woocommerce-product-gallery.pgyfw-has-video .pgyfw-video-player {
	aspect-ratio: auto;
	border: 0;
	display: block;
	height: 100% !important;
	inset: 0;
	max-height: none;
	max-width: none;
	position: absolute;
	width: 100% !important;
}

.pgyfw-video-noscript {
	background: #fff;
	margin: 0;
	padding: 12px;
	position: absolute;
	inset: auto 12px 12px;
	text-align: center;
	z-index: 2;
}

.woocommerce-product-gallery.pgyfw-video-is-active .woocommerce-product-gallery__trigger {
	opacity: 0;
	pointer-events: none;
}

.woocommerce-product-gallery .flex-control-thumbs > li.pgyfw-video-thumb {
	position: relative;
}

.pgyfw-video-thumb__icon {
	background: #f03;
	border-radius: 7px;
	box-shadow: 0 1px 5px rgba( 0, 0, 0, 0.32 );
	height: 24px;
	left: 50%;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translate( -50%, -50% );
	width: 34px;
}

.pgyfw-video-thumb__icon::after {
	border-bottom: 5px solid transparent;
	border-left: 8px solid #fff;
	border-top: 5px solid transparent;
	content: "";
	left: 14px;
	position: absolute;
	top: 7px;
}

@media ( max-width: 480px ) {
	.pgyfw-video-play__icon {
		border-radius: 12px;
		height: 44px;
		width: 64px;
	}

	.pgyfw-video-play__icon::after {
		border-bottom-width: 9px;
		border-left-width: 15px;
		border-top-width: 9px;
		left: 26px;
		top: 13px;
	}

	.pgyfw-video-play__text {
		bottom: 12px;
		font-size: 12px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.pgyfw-video-play__icon {
		transition: none;
	}
}
