.woocommerce div.product div.images,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	position: relative;
}

.plb-badge-wrap {
	position: absolute;
	top: 8px;
	z-index: 20;
	display: block;
	line-height: 0;
	max-width: 30%;
	pointer-events: none;
}

/* Scoped to the badge itself: the unscoped `.plb-position-*` rules also matched the image
   containers (which get these classes and position:relative) and shifted them by 8px. */
.plb-badge-wrap.plb-position-left {
	left: 8px;
}

.plb-badge-wrap.plb-position-right {
	right: 8px;
}

.plb-language-badge {
	display: block;
	max-width: 100%;
	height: auto;
	width: auto;
	object-fit: contain;
}

/* !important: the server-rendered badge carries its desktop position inline. */
@media (max-width: 480px) {
	.plb-badge-wrap {
		top: 5px !important;
		max-width: 25% !important;
	}
	.plb-badge-wrap.plb-position-left {
		left: 5px !important;
	}
	.plb-badge-wrap.plb-position-right {
		right: 5px !important;
	}
}

/* FiboSearch live autocomplete suggestions.
   FiboSearch styles every `.dgwt-wcas-si img` (width, padding, border, margin, max-height),
   and some themes add `width:100% !important`: the badge must override all of it. */
/* Only a positioning context: changing the thumbnail box display shifted the thumbnail. */
.dgwt-wcas-si.plb-fibosearch-image-wrap,
.plb-fibosearch-image-wrap {
	position: relative !important;
}
.dgwt-wcas-suggestion .plb-fibosearch-image-wrap img.plb-fibosearch-badge,
.plb-fibosearch-image-wrap img.plb-fibosearch-badge {
	position: absolute !important;
	top: 3px !important;
	bottom: auto !important;
	z-index: 30;
	display: block !important;
	width: auto;
	min-width: 0 !important;
	max-width: 45% !important;
	height: auto !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	object-fit: contain;
	pointer-events: none;
}
.dgwt-wcas-suggestion .plb-fibosearch-image-wrap.plb-position-left img.plb-fibosearch-badge,
.plb-fibosearch-image-wrap.plb-position-left img.plb-fibosearch-badge { left: 3px !important; right: auto !important; }
.dgwt-wcas-suggestion .plb-fibosearch-image-wrap.plb-position-right img.plb-fibosearch-badge,
.plb-fibosearch-image-wrap.plb-position-right img.plb-fibosearch-badge { right: 3px !important; left: auto !important; }

/* Product carousel image overlays (Elementor Loop Carousel and compatible sliders) */
.plb-carousel-image-wrap {
    position: relative !important;
    max-width: 100%;
}
/* Only inline wrappers (a, span, picture) need a block context to be positionable. */
.plb-carousel-inline-wrap {
    display: inline-block;
    line-height: 0;
    vertical-align: top;
}
.plb-carousel-image-wrap .plb-carousel-badge {
    position: absolute;
    top: 3px;
    z-index: 30;
    height: auto;
    max-width: 45%;
    max-height: none;
    width: auto;
    pointer-events: none;
}
.plb-carousel-image-wrap.plb-position-left .plb-carousel-badge { left: 3px; }
.plb-carousel-image-wrap.plb-position-right .plb-carousel-badge { right: 3px; }

/* Elementor loop items must not clip the overlay. */
.swiper-slide.e-loop-item,
.e-loop-item .elementor-widget-theme-post-featured-image .elementor-widget-container {
    overflow: visible;
}
