/**
 * WVP Inline Video Player – Single Product Pages
 *
 * Loaded only on single video product pages (is_product() + has video_url).
 * Does not affect category archive pages / popup / grid cards.
 */

/* ── Wrapper ───────────────────────────────────────────── */
.wvp-inline-player {
	position: relative;
	width: 100%;
	line-height: 0; /* collapse whitespace gap below video */
	border-radius: 16px;
	overflow: hidden;
}

/* ── Video element & Plyr wrapper ─────────────────────── */
.wvp-inline-player video.wvp-inline-video,
.wvp-inline-player .plyr {
	width: 100%;
	max-height: 70vh;
	display: block;
	object-fit: contain;
	background: #000;
	border-radius: 0; /* parent already clips */
}

/* Keep Plyr's fullscreen layer inside the wrapper */
.wvp-inline-player .plyr--fullscreen-fallback {
	border-radius: 0;
}

/* ── Expand button ────────────────────────────────────── */
.wvp-expand-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	background: rgba(0, 0, 0, 0.55);
	border: none;
	border-radius: 8px;
	padding: 7px 9px;
	cursor: pointer;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
	line-height: 0;
}

.wvp-expand-btn:hover,
.wvp-expand-btn:focus-visible {
	background: rgba(0, 0, 0, 0.8);
	outline: none;
}

/* Show on hover (desktop) */
.wvp-inline-player:hover .wvp-expand-btn {
	opacity: 1;
}

/* Always visible on mobile */
@media (max-width: 768px) {
	.wvp-expand-btn {
		opacity: 1;
	}
}

.wvp-expand-btn svg {
	width: 18px;
	height: 18px;
	display: block;
}
