.wcpl-image-wrap {
	position: relative;
	display: block;
	width: 100%;
}

.wcpl-image-wrap--loop > img {
	display: block;
	width: 100%;
	height: auto;
}

.woocommerce-product-gallery__image {
	position: relative;
}

/* Karta produktu – etykiety poza obrazkiem (bez psucia slidera galerii) */
.woocommerce div.product div.images,
.woocommerce div.product div.images .woocommerce-product-gallery,
.elementor-widget-woocommerce-product-images,
.elementor-widget-woocommerce-product-images .elementor-widget-container {
	overflow: visible !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery,
.elementor-widget-woocommerce-product-images .woocommerce-product-gallery {
	position: relative;
}

.wcpl-labels--single {
	z-index: 30;
}

.wcpl-labels {
	position: absolute;
	z-index: 20;
	display: flex;
	flex-direction: column;
	pointer-events: none;
}

.wcpl-labels .wcpl-label + .wcpl-label {
	margin-top: var(--wcpl-label-gap, 6px);
}

.wcpl-labels--pos-top-left {
	top: var(--wcpl-offset-y, 10px);
	left: var(--wcpl-offset-x, 10px);
	right: auto;
	bottom: auto;
	align-items: flex-start;
}

.wcpl-labels--pos-top-right {
	top: var(--wcpl-offset-y, 10px);
	right: var(--wcpl-offset-x, 10px);
	left: auto;
	bottom: auto;
	align-items: flex-end;
}

.wcpl-labels--pos-bottom-left {
	bottom: var(--wcpl-offset-y, 10px);
	left: var(--wcpl-offset-x, 10px);
	top: auto;
	right: auto;
	align-items: flex-start;
}

.wcpl-labels--pos-bottom-right {
	bottom: var(--wcpl-offset-y, 10px);
	right: var(--wcpl-offset-x, 10px);
	top: auto;
	left: auto;
	align-items: flex-end;
}

.wcpl-label {
	display: block;
	width: auto;
	height: auto;
	object-fit: contain;
}

.wcpl-labels--loop .wcpl-label {
	max-width: var(--wcpl-size-loop, 80px);
	max-height: var(--wcpl-size-loop, 80px);
}

.wcpl-labels--single .wcpl-label {
	max-width: var(--wcpl-size-single, 120px);
	max-height: var(--wcpl-size-single, 120px);
}

/* Standardowy WooCommerce */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	position: relative;
}

.woocommerce div.product div.images,
.woocommerce-page div.product div.images {
	position: relative;
}

/* Elementor Pro – Loop Grid */
.e-loop-item.product,
.elementor-widget-loop-grid .e-loop-item {
	position: relative;
}

.elementor-widget-loop-grid .elementor-widget-image,
.elementor-widget-loop-grid .elementor-widget-theme-post-featured-image {
	position: relative;
}

.elementor-widget-loop-grid .elementor-widget-image .elementor-widget-container,
.elementor-widget-loop-grid .elementor-widget-theme-post-featured-image .elementor-widget-container,
.elementor-widget-woocommerce-products .elementor-widget-container,
.elementor-widget-wc-products .elementor-widget-container,
.elementor-widget-woocommerce-archive-products .elementor-widget-container {
	overflow: visible;
}

.elementor-widget-loop-grid .wcpl-image-wrap--elementor,
.elementor-widget-woocommerce-products .wcpl-image-wrap,
.elementor-widget-wc-products .wcpl-image-wrap,
.elementor-widget-woocommerce-archive-products .wcpl-image-wrap {
	position: relative;
}

.elementor-widget-woocommerce-products .product,
.elementor-widget-wc-products .product,
.elementor-widget-woocommerce-archive-products .product,
.elementor-widget-loop-grid .product {
	position: relative;
}
