.spend-save {
	background: #f8f9fa;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
}

.spend-save__header {
	margin-bottom: 14px;
}

.spend-save__message {
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 6px;
	color: #333;
}

.spend-save__message--success {
	color: #0a7b3e;
}

.spend-save--conflict {
	background: #fff;
	border-color: #e2e4e7;
}

.spend-save__message--conflict {
	color: #333;
	margin: 0;
}

.spend-save__message strong {
	font-weight: 700;
}

.spend-save__trade-note {
	font-size: 12px;
	line-height: 1.4;
	color: #666;
	margin: 4px 0 0;
	font-style: italic;
}

.spend-save__ends {
	font-size: 12px;
	color: #888;
	margin: 4px 0 0;
}

/* Progress bar */
.spend-save__bar {
	position: relative;
	height: 12px;
	background: #e0e0e0;
	border-radius: 6px;
	overflow: visible;
	margin: 16px 0 30px;
}

.spend-save__bar-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: linear-gradient(90deg, #4caf50, #2e7d32);
	border-radius: 6px;
	transition: width 0.4s ease;
}

/* Tier markers on the bar */
.spend-save__marker {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 10px;
	height: 10px;
	background: #fff;
	border: 2px solid #bbb;
	border-radius: 50%;
	z-index: 1;
}

.spend-save__marker:last-of-type .spend-save__marker-label {
	right: 0;
	transform: translate(0, 0);
	left: initial;
}

.spend-save__marker--achieved {
	background: #2e7d32;
	border-color: #2e7d32;
}

.spend-save__marker-label {
	position: absolute;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 11px;
	color: #666;
	white-space: nowrap;
}

/* Tier list below the bar */
.spend-save__tiers {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.spend-save__tier {
	font-size: 13px;
	color: #555;
	padding: 4px 10px;
	background: #eee;
	border-radius: 4px;
}

.spend-save__tier--achieved {
	background: #e8f5e9;
	color: #2e7d32;
}

.spend-save__tick {
	font-weight: 700;
	margin-right: 4px;
}

/* Product page variant */
.spend-save--product {
	padding: 14px 16px;
	margin-top: 16px;
}

.spend-save--product .spend-save__header {
	margin-bottom: 8px;
}

.spend-save--product .spend-save__message {
	font-size: 16px;
	margin: 0;
}

.spend-save--product .spend-save__tiers {
	margin-top: 6px;
}

.spend-save--product .spend-save__ends {
	margin-top: 8px;
}

/* Mini cart variant */
.spend-save--mini {
	padding: 12px;
	margin: 0 0 12px;
	border-radius: 6px;
}

.spend-save--mini .spend-save__header {
	margin-bottom: 8px;
}

.spend-save--mini .spend-save__message {
	font-size: 13px;
	margin: 0;
}

.spend-save--mini .spend-save__bar {
	height: 8px;
	margin: 8px 0 0;
}
