/* WooCommerce Video Show — frontend styles. */

.wcvs-player {
	position: relative;
	cursor: pointer;
	overflow: hidden;
}

.wcvs-player img.wcvs-poster {
	display: block;
	width: 100%;
	height: auto;
}

.wcvs-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 72px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}

.wcvs-play-button svg {
	fill: currentColor;
	margin-left: 4px;
}

.wcvs-player:hover .wcvs-play-button,
.wcvs-player:focus-within .wcvs-play-button {
	background: rgba(0, 0, 0, 0.85);
	transform: translate(-50%, -50%) scale(1.08);
}

/* Playing state: the poster is replaced by the actual player. */
.wcvs-player.wcvs-playing {
	cursor: default;
	background: #000;
	aspect-ratio: 16 / 9;
}

.wcvs-player.wcvs-playing .wcvs-iframe,
.wcvs-player.wcvs-playing .wcvs-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Portrait sources (TikTok, Instagram, YouTube Shorts). */
.wcvs-orientation-portrait .wcvs-player.wcvs-playing {
	aspect-ratio: 9 / 16;
	max-width: min(100%, 420px);
	margin: 0 auto;
}

/* Generic oEmbed content sizes itself; give it room. */
.wcvs-player.wcvs-playing .wcvs-oembed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background: #000;
}

.wcvs-oembed iframe {
	max-width: 100%;
}
