/* ==================================================
   WooCommerce Product Video Overlay
   ================================================== */

.wcpvo-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}

.wcpvo-overlay.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.wcpvo-overlay-inner {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wcpvo-video {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	background: #000;
	outline: none;
}

/* Full-bleed option – uncomment if you prefer the video to cover the entire screen */
/*
.wcpvo-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
*/

/* ---------- Big Play Button ---------- */
.wcpvo-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 15;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}

.wcpvo-play-btn:hover {
	transform: translate(-50%, -50%) scale(1.08);
}

.wcpvo-play-btn:active {
	transform: translate(-50%, -50%) scale(0.96);
}

.wcpvo-play-btn.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.wcpvo-play-btn svg {
	display: block;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.wcpvo-play-btn:hover svg circle {
	fill: rgba(0, 0, 0, 0.7);
	stroke: #fff;
}

/* ---------- Progress bar ---------- */
.wcpvo-progress-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 5px;
	background: rgba(255, 255, 255, 0.18);
	z-index: 5;
	overflow: hidden;
}

.wcpvo-progress-fill {
	height: 100%;
	width: 0%;
	background: #ffffff;
	transition: width 0.1s linear;
	border-radius: 0 2px 2px 0;
}

.wcpvo-progress-bar:hover {
	height: 7px;
}

/* ---------- Skip button ---------- */
.wcpvo-skip-btn {
	position: absolute;
	bottom: 28px;
	right: 28px;
	z-index: 10;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 6px;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.wcpvo-skip-btn:hover,
.wcpvo-skip-btn:focus {
	background: rgba(0, 0, 0, 0.75);
	border-color: rgba(255, 255, 255, 0.6);
	outline: none;
}

.wcpvo-skip-btn:active {
	transform: scale(0.97);
}

/* Prevent body scroll while overlay is visible */
body.wcpvo-overlay-active {
	overflow: hidden !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
	.wcpvo-play-btn svg {
		width: 64px;
		height: 64px;
	}

	.wcpvo-skip-btn {
		bottom: 24px;
		right: 16px;
		left: 16px;
		width: calc(100% - 32px);
		text-align: center;
		padding: 14px 16px;
	}

	.wcpvo-progress-bar {
		height: 4px;
	}
}
