.hal-product-badge {
	--hal-badge-bg: #149447;
	--hal-badge-color: #fff;
	position: absolute;
	z-index: 25;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: calc(100% - 24px);
	min-height: 30px;
	padding: 6px 13px;
	border-radius: 999px;
	background: var(--hal-badge-bg);
	color: var(--hal-badge-color) !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
	box-shadow: 0 5px 14px rgba(0, 0, 0, .13);
	pointer-events: none;
	box-sizing: border-box;
}

.hal-badge-host {
	position: relative !important;
}

.hal-badge-top-right { top: 12px; right: 12px; left: auto; bottom: auto; }
.hal-badge-top-left { top: 12px; left: 12px; right: auto; bottom: auto; }
.hal-badge-bottom-right { bottom: 12px; right: 12px; left: auto; top: auto; }
.hal-badge-bottom-left { bottom: 12px; left: 12px; right: auto; top: auto; }

/* WooCommerce standard loop: make the card/image link an overlay host. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.elementor-widget-woocommerce-products li.product,
.eael-product-grid li.product,
.ha-product-grid li.product {
	position: relative;
}

.hal-single-badge-wrap {
	position: absolute;
	z-index: 30;
	top: 12px;
	right: 12px;
}

.single-product div.product .woocommerce-product-gallery {
	position: relative;
}

.hal-single-gallery-badge-host {
	position: relative !important;
}

.hal-single-gallery-badge-host > .hal-product-badge {
	z-index: 40;
}

html[dir="rtl"] .hal-single-badge-wrap { right: 12px; left: auto; }

@media (max-width: 767px) {
	.hal-product-badge {
		min-height: 26px;
		padding: 5px 10px;
		font-size: 11px;
	}
	.hal-badge-top-right { top: 8px; right: 8px; }
	.hal-badge-top-left { top: 8px; left: 8px; }
	.hal-badge-bottom-right { bottom: 8px; right: 8px; }
	.hal-badge-bottom-left { bottom: 8px; left: 8px; }
}
