/**
 * Badges stay hidden until JS parks them on .box-image / .product-images.
 * This avoids the “flash then vanish” look.
 */

.wcpb-badges {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	overflow: visible;
	z-index: 40;
	margin: 0;
	padding: 0;
	pointer-events: none;
	/* Hidden until placed — prevents flash in wrong spot */
	opacity: 0;
	visibility: hidden;
}

.wcpb-badges.wcpb-is-placed,
.wcpb-badges[data-wcpb-placed='1'] {
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
}

.wcpb-badges.wcpb-is-duplicate {
	display: none !important;
}

.wcpb-badge {
	position: absolute;
	z-index: 41;
	pointer-events: none;
	line-height: 1;
	box-sizing: border-box;
	opacity: 1;
	visibility: visible;
}

.wcpb-badge--image img.wcpb-badge-img {
	width: 100%;
	height: auto;
	display: block;
	max-width: none;
	border: 0;
	margin: 0;
	padding: 0;
	box-shadow: none;
	opacity: 1 !important;
	visibility: visible !important;
}

.wcpb-badge--text {
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
}
