/* TVN November Savings: tier bar in the mini-cart drawer. Colours are TVN's own (forest, amber, sage, cream). */

.tvn-nov-on .wc-block-components-drawer #vs-drawer-ship {
	display: none !important;
}

.wc-block-components-drawer .tvn-nov {
	--tvn-nov-chip-h: 1.45rem;
	margin: 0;
	padding: 0.15rem var(--vs-dw-pad, 1.1rem) 0.9rem;
	background-color: var(--vs-dw-ground, rgba(20, 48, 31, 0.045));
	border-bottom: 1px solid var(--vs-dw-hair, rgba(20, 48, 31, 0.18));
	color: #14301f;
	font-family: var(--tvn-text, "Karla", system-ui, sans-serif);
}

.tvn-nov__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.7rem;
}

.wc-block-components-drawer .tvn-nov__title {
	margin: 0;
	font-family: var(--tvn-display, "Playfair Display", Georgia, serif);
	font-size: 1.05rem;
	font-style: normal;
	font-weight: 700;
	line-height: 1.2;
	color: #14301f;
}

.tvn-nov__ends {
	font-size: 0.78rem;
	color: #4b5a4f;
	white-space: nowrap;
}

.tvn-nov__track {
	position: relative;
}

.tvn-nov__rail {
	position: absolute;
	top: calc(var(--tvn-nov-chip-h) / 2 - 1.5px);
	left: 0;
	right: 0;
	height: 3px;
	border-radius: 2px;
	background: rgba(20, 48, 31, 0.14);
	overflow: hidden;
}

.tvn-nov__fill {
	height: 100%;
	background: #14301f;
	transition: width 0.35s ease;
}

.wc-block-components-drawer .tvn-nov__stops {
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--tvn-nov-stops, 5), minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.wc-block-components-drawer .tvn-nov__stop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.tvn-nov__stop::before,
.tvn-nov__stop::marker {
	content: none;
}

.tvn-nov__reward {
	display: inline-flex;
	align-items: center;
	height: var(--tvn-nov-chip-h);
	padding: 0 0.35rem;
	border: 1px solid rgba(20, 48, 31, 0.3);
	border-radius: 3px;
	background: #fbf8f1;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #14301f;
}

.tvn-nov__stop.is-next .tvn-nov__reward {
	border-color: #8a5a12;
	color: #8a5a12;
}

.tvn-nov__stop.is-reached .tvn-nov__reward {
	border-color: #14301f;
	background: #14301f;
	color: #f3eee2;
}

.tvn-nov__min {
	font-size: 0.78rem;
	line-height: 1.2;
	color: #4b5a4f;
	font-variant-numeric: lining-nums tabular-nums;
}

.tvn-nov__stop.is-reached .tvn-nov__min {
	color: #14301f;
}

.tvn-nov__min .amount,
.tvn-nov__min .woocommerce-Price-amount,
.tvn-nov__msg .amount,
.tvn-nov__msg .woocommerce-Price-amount {
	color: inherit;
}

.wc-block-components-drawer .tvn-nov__msg,
.wc-block-components-drawer .tvn-nov__blocked {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	font-style: normal;
	line-height: 1.4;
	text-align: left;
	color: #14301f;
}

.tvn-nov__msg strong,
.tvn-nov__blocked strong {
	font-weight: 700;
	color: #8a5a12;
}

.tvn-nov__msg .amount {
	font-weight: 700;
}

.wc-block-components-drawer .tvn-nov--blocked {
	padding-top: 0;
}

/* Empty cart: the drawer centres its message, so the bar joins that group as plain text. */
.wc-block-components-drawer .tvn-nov--empty {
	width: 100%;
	max-width: 26rem;
	margin: 0 auto 2.25rem;
	background: none;
	border-bottom: 0;
}

.wc-block-components-drawer .tvn-nov--empty .tvn-nov__msg {
	text-align: center;
}

@media (max-width: 380px) {
	.tvn-nov__reward {
		padding: 0 0.25rem;
		font-size: 0.64rem;
		letter-spacing: 0.02em;
	}
}
