/* Bundle progress notice. Every value the settings screen controls arrives
   as a custom property from wp_add_inline_style(). */

.wcbm-nudge {
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-sizing: border-box;
	margin: 0 0 20px;
	padding: 15px 17px;
	background: var(--wcbm-bg, #f8f1ea);
	color: var(--wcbm-fg, #141414);
	font-family: var(--wcbm-font, inherit);
	font-size: var(--wcbm-size, 13px);
	line-height: 1.45;
}

.wcbm-nudge__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 14px;
}

.wcbm-nudge__msg {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wcbm-nudge__check {
	flex: 0 0 auto;
	color: var(--wcbm-fill-done, #2e9c6d);
}

.wcbm-nudge__goal {
	white-space: nowrap;
	opacity: 0.62;
	font-size: 0.86em;
	font-variant-numeric: tabular-nums;
}

.wcbm-nudge__track {
	position: relative;
	display: block;
	height: 3px;
	background: var(--wcbm-track, #e3dcd2);
}

.wcbm-nudge__track i {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: block;
	background: var(--wcbm-fill, #141414);
	transition: width 0.35s ease;
}

.wcbm-nudge.is-reached .wcbm-nudge__track i {
	background: var(--wcbm-fill-done, #2e9c6d);
}

.wcbm-nudge .amount,
.wcbm-nudge bdi {
	font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
	.wcbm-nudge__track i {
		transition: none;
	}
}

/* A standing promo line on the product page, and the badge that marks which
   cart lines a rule actually claimed. */

.wcbm-promo {
	display: block;
	margin: 12px 0;
	color: var(--wcbm-fg, #141414);
	font-family: var(--wcbm-font, inherit);
	font-size: calc(var(--wcbm-size, 13px) - 1px);
	line-height: 1.45;
}

.wcbm-line-badge {
	display: inline-block;
	margin: 4px 6px 0 0;
	padding: 2px 8px;
	border-radius: 2px;
	background: var(--wcbm-bg, #f4f4f4);
	color: var(--wcbm-fg, #141414);
	font-size: 0.78em;
	line-height: 1.6;
	white-space: nowrap;
}
