/* ==========================================================================
   FREE-DELIVERY PROGRESS (avallone-live-fixes, part 10)
   Cart, checkout (blocks) and mini cart. Theme tokens with literal fallbacks;
   no color-mix() or :has(), so Chrome 109 draws it the same.
   ========================================================================== */

.avallone-fd {
	box-sizing: border-box;
	margin: 0 0 16px;
	padding: 14px 16px 12px;
	border: 1px solid var(--color-rose, #E4BEB8);
	border-radius: var(--radius-button, 12px);
	background-color: var(--color-surface-rose, #F7F0EF);
	color: var(--color-ink, #1B1C1C);
	text-align: left;
}

.avallone-fd__message {
	margin: 0 0 10px;
	font-family: var(--font-ui, 'Work Sans', sans-serif);
	font-weight: 500;
	font-size: 15px;
	line-height: 22px;
	letter-spacing: 0;
	text-transform: none;
	color: var(--color-ink, #1B1C1C);
}

.avallone-fd__amount {
	font-weight: 600;
	color: var(--color-primary, #A20007);
	white-space: nowrap;
}

.avallone-fd__track {
	position: relative;
	height: 6px;
	overflow: hidden;
	border-radius: var(--radius-pill, 9999px);
	background-color: rgba(228, 190, 184, 0.55);
}

.avallone-fd__fill {
	display: block;
	height: 100%;
	max-width: 100%;
	border-radius: inherit;
	background-color: var(--color-primary, #A20007);
	transition: width var(--transition-slow, 350ms ease);
}

.avallone-fd__scope {
	margin: 8px 0 0;
	font-family: var(--font-meta, 'Inter', sans-serif);
	font-size: 12px;
	line-height: 18px;
	letter-spacing: 0;
	text-transform: none;
	color: #6F5753;
}

/* Reached: the same shape, quieter — a confirmation rather than a nudge. */
.avallone-fd.is-reached {
	border-color: rgba(162, 0, 7, 0.25);
	background-color: var(--color-cream, #FCF9F8);
}

.avallone-fd.is-reached .avallone-fd__message {
	margin-bottom: 10px;
	color: var(--color-primary-dark, #770003);
}

.avallone-fd.is-reached .avallone-fd__message::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 11px;
	margin: 0 10px 3px 2px;
	border: solid var(--color-primary, #A20007);
	border-width: 0 2px 2px 0;
	vertical-align: middle;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}

/* Cart and checkout: inside WooCommerce's order summary, after the totals.
   WooCommerce pads every slot child 16px 0 (.slot-wrapper > * > *). */
.wc-block-components-totals-wrapper.slot-wrapper > * > .avallone-fd,
.avallone-fd--blocks {
	margin: 0;
	padding: 14px 16px 12px;
}

/* Mini cart: first in the drawer's footer, above the totals. */
.mini-cart__footer > .avallone-fd {
	margin-bottom: 16px;
}

@media (prefers-reduced-motion: reduce) {
	.avallone-fd__fill {
		transition: none;
	}
}
