/* Loyalty campaign badges on product pages and cards (filled in by js/loyalty/campaign-badges.js). */
.tfc-campaign-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	box-sizing: border-box;
	max-width: 100%;
	margin: 6px 0 10px;
	padding: 6px 14px;
	border: 1px solid #7caf69;
	/* A pill on one line, a rounded box when the text wraps. */
	border-radius: 16px;
	background: #f1f7ed;
	color: #2f5d22;
	font-family: 'Work Sans', sans-serif;
	font-size: 13px;
	line-height: 1.35;
	text-align: left;
	vertical-align: middle;
}

.tfc-campaign-badge[hidden] {
	display: none;
}

.tfc-campaign-badge::before {
	content: '\2605';
	flex: none;
	color: #7caf69;
	line-height: 1;
}

.tfc-campaign-badge__body {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	min-width: 0;
	overflow-wrap: break-word;
}

.tfc-campaign-badge__text {
	font-weight: 600;
}

.tfc-campaign-badge__detail {
	color: #557aa0;
	font-size: 12px;
}

.tfc-campaign-badge__signin {
	color: #557aa0;
	font-size: 12px;
	text-decoration: underline;
}

/* Product cards: smaller, centred under the title whatever the card's own alignment. */
.tfc-card .tfc-campaign-badge,
.tfc-pg-card .tfc-campaign-badge,
.tfc-product-card .tfc-campaign-badge {
	display: flex;
	align-self: center;
	width: fit-content;
	margin: 6px auto 8px;
	padding: 4px 12px;
	font-size: 12px;
	text-align: center;
}

.tfc-card .tfc-campaign-badge[hidden],
.tfc-pg-card .tfc-campaign-badge[hidden],
.tfc-product-card .tfc-campaign-badge[hidden] {
	display: none;
}

.tfc-card .tfc-campaign-badge__body,
.tfc-pg-card .tfc-campaign-badge__body,
.tfc-product-card .tfc-campaign-badge__body {
	justify-content: center;
}

/* Narrow two-column cards on phones. */
@media (max-width: 600px) {
	.tfc-card .tfc-campaign-badge,
	.tfc-pg-card .tfc-campaign-badge,
	.tfc-product-card .tfc-campaign-badge {
		gap: 5px;
		padding: 4px 10px;
		font-size: 11.5px;
	}
}

/* Weight care product grid cards. */
.tfc-spg-card .tfc-campaign-badge {
	align-self: flex-start;
	margin: 0 0 10px;
	padding: 4px 12px;
	border-color: #6c775a;
	background: rgba(255, 255, 255, 0.7);
	color: #000;
	font-size: 14px;
}

.tfc-spg-card .tfc-campaign-badge::before {
	color: #6c775a;
}

.tfc-spg-card .tfc-campaign-badge__detail,
.tfc-spg-card .tfc-campaign-badge__signin {
	color: #6c775a;
}

/* A second badge, such as a boost, sits on its own line just under the first, keeping the card's alignment. */
.tfc-campaign-badge-break {
	display: block;
	height: 0;
}

.tfc-campaign-badge.tfc-campaign-badge--extra {
	margin-top: -4px;
}

/* Campaigns don't apply to subscriptions, so hide the badge while Subscribe & Save is selected. */
.tfc-spg-card--subscribe .tfc-campaign-badge,
.tfc-sp-wrap--subscribe .tfc-campaign-badge {
	display: none;
}

/* Active points boost: My Account and order received. */
.tfc-points-boost {
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 1px solid #7caf69;
	border-left-width: 4px;
	border-radius: 8px;
	background: #f1f7ed;
	color: #2f5d22;
	font-family: 'Work Sans', sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

.tfc-points-boost::before {
	content: '\2605';
	margin-right: 8px;
	color: #7caf69;
}

.tfc-points-boost-line {
	display: inline-block;
	margin-top: 4px;
	color: #2f5d22;
	font-size: 13px;
}

/* Checkout earning line. */
.tfc-points-earn-note p {
	margin: 10px 0;
	padding: 10px 14px;
	border-left: 3px solid #7caf69;
	background: #f1f7ed;
	font-size: 14px;
}
