/* 3xToys product video: listing badge (all pages) and product page player. */

/* Badge: inherits Wokiee's [class^=tt-label-] size/padding inside .tt-label-location */
.tt-label-location .tt-label-video,
.tt-label-video {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #6b3fd6;
	color: #fff;
}
.tt-label-video .xt-video-play-icon {
	display: inline-block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 4px 0 4px 6px;
	border-color: transparent transparent transparent currentColor;
}
/* Reviews page has no .tt-label-location wrapper */
.tt-image-box > .tt-label-video {
	position: absolute;
	top: 10px;
	left: 11px;
	z-index: 2;
	font-size: 12px;
	line-height: 1;
	font-weight: 500;
	padding: 3px 4px 1px;
	border-radius: 2px;
}

/* Product page */
.xt-product-video-wrap {
	padding-top: 32px;
}
.xt-product-video-title {
	font-size: 24px;
	line-height: 1.2;
	font-weight: 500;
	text-align: center;
	margin: 0 0 18px;
}
.xt-product-video {
	position: relative;
	max-width: 960px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 6px;
	overflow: hidden;
}
.xt-product-video__play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: #000;
	cursor: pointer;
	display: block;
}
.xt-product-video__poster {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.xt-product-video__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 76px;
	height: 76px;
	margin: -38px 0 0 -38px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .6);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
	transition: background-color .2s, transform .2s;
}
.xt-product-video__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -14px 0 0 -8px;
	border-style: solid;
	border-width: 14px 0 14px 24px;
	border-color: transparent transparent transparent #fff;
}
.xt-product-video__play:hover .xt-product-video__icon,
.xt-product-video__play:focus-visible .xt-product-video__icon {
	background: #6b3fd6;
	transform: scale(1.06);
}
.xt-product-video__play:focus-visible {
	outline: 3px solid #6b3fd6;
	outline-offset: -3px;
}
.xt-product-video__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}
.xt-product-video__link {
	position: absolute;
	inset: auto 0 12px;
	text-align: center;
	color: #fff;
}
@media (max-width: 575px) {
	.xt-product-video-wrap { padding-top: 22px; }
	.xt-product-video-title { font-size: 20px; }
	.xt-product-video { border-radius: 0; margin: 0 -10px; }
	.xt-product-video__icon { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
}
