/* Product video slide in the WooCommerce gallery */
.dtdpd-video-slide {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #141417;
}

.dtdpd-video-slide .zoomImg {
	display: none !important;
}

.woocommerce-product-gallery:has(.dtdpd-video-slide.flex-active-slide) .woocommerce-product-gallery__trigger {
	display: none;
}

.dtdpd-video__poster {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background-color: #141417;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.dtdpd-video__poster[hidden],
.dtdpd-video__stage[hidden] {
	display: none;
}

.dtdpd-video__poster::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
}

.dtdpd-video__play {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	background: var(--dtd-red, #e50935);
	border-radius: 50%;
	color: #fff;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.dtdpd-video__poster:hover .dtdpd-video__play {
	background: var(--dtd-red-hover, #c4072d);
	transform: scale(1.06);
}

.dtdpd-video__poster:focus-visible,
.dtdpd-video__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px;
}

.dtdpd-video__stage {
	position: absolute;
	inset: 0;
	background: #000;
}

.dtdpd-video__stage iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.dtdpd-video__controls {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dtdpd-video__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	background: rgba(11, 11, 13, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	color: #fff;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
}

.dtdpd-video__btn:hover {
	background: var(--dtd-red, #e50935);
	border-color: var(--dtd-red, #e50935);
	color: #fff;
}

.dtdpd-video__notice {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 16px;
	background: rgba(11, 11, 13, 0.94);
	color: #fff;
}

.dtdpd-video__notice p {
	flex: 1 1 100%;
	margin: 0;
	font-size: 1rem;
	line-height: 1.4;
}

/* Play badge on the video thumbnail */
.flex-control-thumbs li.dtdpd-has-video-thumb {
	position: relative;
}

.flex-control-thumbs li.dtdpd-has-video-thumb::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	background: var(--dtd-red, #e50935) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7v10l8-5z'/%3E%3C/svg%3E") center / 22px no-repeat;
	border-radius: 50%;
	pointer-events: none;
}

.dtdpd-video-slide .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
