.wdeche-fev-player,
.wp-block-wdeche-video {
	width: 100%;
}

.wdeche-fev-lazyload {
	width: 100%;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.wdeche-fev-lazyload::before {
	content: '';
	display: block;
	width: 100%;
	padding-top: 56.25%;
	background-color: #000;
}

.wdeche-fev-lazyload.wdeche-fev-short {
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}

.wdeche-fev-lazyload.wdeche-fev-short::before {
	padding-top: 177.7778%;
}

.alignwide .wdeche-fev-lazyload.wdeche-fev-short,
.alignfull .wdeche-fev-lazyload.wdeche-fev-short {
	max-width: none;
}

.wdeche-fev-lazyload-wrap {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.wdeche-fev-lazyload-content {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
	background-color: transparent;
}

.wdeche-fev-lazyload-content::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	pointer-events: none;
	background-color: var(--wdeche-fev-overlay-color, #000);
	opacity: var(--wdeche-fev-overlay-opacity, 0);
}

.wdeche-fev-lazyload-thumb {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center;
	border: 0;
	pointer-events: none;
}

/*
 * Heim ustawia wszystkim `button` height: 42px i tło przycisku.
 * Reset musi wygrać z .theme-heim button.
 */
.theme-heim .wdeche-fev-lazyload-playbtn,
.woocommerce .wdeche-fev-lazyload-playbtn,
.wdeche-fev-lazyload-playbtn {
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	z-index: 2;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	line-height: 0 !important;
	font-size: 0 !important;
	color: transparent !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	background-color: transparent !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath fill='%23212121' fill-opacity='.8' d='M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z'/%3E%3Cpath fill='%23fff' d='m45 24-18-10v20'/%3E%3C/svg%3E");
	background-position: 50% 50% !important;
	background-size: calc(35px + 10%) auto !important;
	background-repeat: no-repeat !important;
	transition: background-image 0.15s ease;
	cursor: pointer !important;
}

.theme-heim .wdeche-fev-lazyload-playbtn:hover,
.woocommerce .wdeche-fev-lazyload-playbtn:hover,
.wdeche-fev-lazyload-playbtn:hover,
.theme-heim .wdeche-fev-lazyload-playbtn:active,
.wdeche-fev-lazyload-playbtn:active {
	background-color: transparent !important;
	color: transparent !important;
	box-shadow: none !important;
	opacity: 1 !important;
}

.theme-heim .wdeche-fev-lazyload-playbtn:hover,
.woocommerce .wdeche-fev-lazyload-playbtn:hover,
.wdeche-fev-lazyload-playbtn:hover {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath fill='%23ff0000' d='M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z'/%3E%3Cpath fill='%23fff' d='m45 24-18-10v20'/%3E%3C/svg%3E");
}

.wdeche-fev-lazyload iframe,
.wdeche-fev-lazyload-player,
.wdeche-fev-lazyload-player iframe {
	width: 100% !important;
	height: 100% !important;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	border: 0;
}

.wdeche-fev-lazyload-player {
	overflow: hidden;
}

.theme-heim .wdeche-fev-lazyload.is-playing .wdeche-fev-lazyload-playbtn,
.woocommerce .wdeche-fev-lazyload.is-playing .wdeche-fev-lazyload-playbtn,
.wdeche-fev-lazyload.is-playing .wdeche-fev-lazyload-playbtn {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	opacity: 0 !important;
	z-index: 0 !important;
	background-image: none !important;
}

.wdeche-fev-lazyload.is-playing .wdeche-fev-lazyload-thumb,
.wdeche-fev-lazyload.is-playing .wdeche-fev-lazyload-content::after {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
}

.wdeche-fev-lazyload.is-playing .wdeche-fev-lazyload-player,
.wdeche-fev-lazyload.is-playing .wdeche-fev-lazyload-player iframe,
.wdeche-fev-lazyload.is-playing iframe {
	z-index: 5;
}

/* Heim / WooCommerce gallery — film jako pierwszy slajd, bez zoom-in */
.woocommerce-product-gallery__image.wdeche-fev-gallery-image {
	cursor: default;
}

.woocommerce-product-gallery__image.wdeche-fev-gallery-image .wdeche-fev-player {
	display: block;
}

.woocommerce-product-gallery.wdeche-fev-gallery .wdeche-fev-gallery-image .wdeche-fev-lazyload-playbtn {
	z-index: 2;
}
