/* Okkanda Product Video - frontend styles
   All classes prefixed .opv- to avoid collisions with the Babybo theme
   or WooCommerce default styles. Nothing here targets the gallery. */

.opv-video-card {
	margin: 16px 0;
	display: block;
	max-width: 280px;
}

.opv-video-card__heading {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 8px;
}

.opv-video-card__trigger {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f7f7f7;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 8px 14px;
	cursor: pointer;
	width: 100%;
	text-align: left;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.opv-video-card__trigger:hover,
.opv-video-card__trigger:focus {
	background: #efefef;
	border-color: #c9c9c9;
}

.opv-video-card__thumb {
	position: relative;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #222;
}

.opv-video-card__thumb--image .opv-video-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.opv-video-card__play {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba( 0, 0, 0, 0.35 );
}

.opv-video-card__thumb--placeholder .opv-video-card__play {
	position: relative;
	background: transparent;
}

.opv-video-card__label {
	font-size: 14px;
	font-weight: 600;
	color: #222;
}

/* Modal / lightbox */

.opv-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
}

.opv-modal--open {
	display: block;
}

.opv-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba( 0, 0, 0, 0.75 );
}

.opv-modal__content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	margin: 5vh auto;
	background: #000;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Popup size variants */
.opv-modal--small .opv-modal__video-wrap {
	max-width: 480px;
}

.opv-modal--medium .opv-modal__video-wrap {
	max-width: 800px;
}

.opv-modal--large .opv-modal__video-wrap {
	max-width: 1100px;
}

.opv-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: rgba( 0, 0, 0, 0.6 );
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
}

.opv-modal__video-wrap {
	width: 100%;
}

.opv-modal__video {
	width: 100%;
	max-height: 80vh;
	display: block;
}

.opv-modal__iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	display: block;
	border: none;
}

body.opv-modal-active {
	overflow: hidden;
}

/* Mobile - full width card */
@media ( max-width: 600px ) {
	.opv-video-card {
		max-width: 100%;
	}

	.opv-video-card__trigger {
		width: 100%;
	}
}
