/* Offer label badge: Catena labels run from "1+1 gratis" to two lines with prices, so the
   badge grows with its label and wraps, instead of Flatsome's fixed-size, single-line badge. */
.badge.badge-offer {
	display: block;
	width: auto;
	height: auto;
	min-width: 2.8em;
	min-height: 2.8em;
	max-width: min(14em, 42vw);
}

.badge.badge-offer .badge-inner {
	display: block;
	height: auto;
	padding: 0.4em 0.6em;
	border-radius: 0.4em;
	font-size: 0.85em;
	line-height: 1.2;
	white-space: normal;
	overflow-wrap: anywhere;
}

/* Handpicked-products cards place the badge over the image. */
.wc-block-grid__product-image {
	position: relative;
}

/* Offer block under the product title and as the heading of each listing group. */
.product-offer {
	display: block;
	margin: 0 0 1em;
	padding: 0.6em 0.9em;
	border-left: 4px solid var(--fs-color-secondary, #d26e4b);
	background: #f7f7f7;
	color: inherit;
}

a.product-offer:hover {
	color: inherit;
	background: #f0f0f0;
}

.product-offer__label {
	font-weight: bold;
	font-size: 1.15em;
}

.product-offer__description > :last-child {
	margin-bottom: 0;
}

.product-offer--heading {
	margin-top: 1.5em;
}

.product-offer--heading .product-offer__label {
	font-size: 1.4em;
}

/* Full label as a strip under the image (display modes "strip" and "chip + strip").
   The slot is on every card of the row, so the alignment script can give them one height. */
.offer-slot {
	display: flex;
	flex-direction: column;
}

/* Fills its slot, so strips in one row share a height. Green is the site's primary colour. */
.offer-strip {
	display: flex;
	flex: 1 0 auto;
	align-items: center;
	justify-content: center;
	margin: 0 0 0.5em;
	padding: 0.35em 0.5em;
	background-color: #00a651;
	color: #fff;
	font-size: 0.85em;
	line-height: 1.25;
	text-align: center;
	overflow-wrap: anywhere;
}

/* Mode "space above the image": the badge stays at the top of the card and the image moves down
   below it. The script sizes the space to the tallest badge in each row; 2.4em is the fallback. */
.offer-display-band_above .col-inner > .badge-container,
.offer-display-band_above .wc-block-grid__product-image > .badge-container {
	margin-top: 0;
}

/* On the box, not on .box-image: Flatsome sizes the image from the .box-image box, so padding there
   shrinks the photo. */
.offer-display-band_above .col-inner > .product-small.box,
.offer-display-band_above .wc-block-grid__product-image {
	padding-top: 2.4em;
}

/* Mode "smaller badge": the full label, but most of the photo stays visible, at every width. */
.offer-display-badge_small .badge.badge-offer {
	max-width: 75%;
}

.offer-display-badge_small .badge.badge-offer .badge-inner {
	font-size: 0.72em;
	padding: 0.25em 0.45em;
}
