/* Enhanced WooCommerce: free shipping progress bar.
 * "Auto" mode inherits the theme font and uses the Elementor / block theme
 * accent color when available. */

.ewc-progress-slot:empty { display: none; }
.ewc-progress-slot { margin: 16px 0; }
.ewc-progress-slot--minicart { margin: 0 0 12px; }

.ewc-progress {
	font-family: inherit;
	color: var(--ewc-pb-text, currentColor);
	background: var(--ewc-pb-bg, transparent);
	border-radius: 12px;
}
.ewc-progress__msg {
	display: flex; align-items: center; gap: 8px;
	margin: 0 0 8px !important;
	font-size: .92em; line-height: 1.4;
}
.ewc-progress__icon { width: 20px; height: 20px; flex-shrink: 0; }
.ewc-progress__amount {
	color: var(--ewc-pb-fill, var(--e-global-color-accent, var(--wp--preset--color--primary, currentColor)));
}
.ewc-progress__track {
	position: relative; overflow: hidden;
	height: var(--ewc-pb-height, 8px);
	border-radius: var(--ewc-pb-radius, 99px);
	background: var(--ewc-pb-track, rgba(127, 127, 127, .18));
}
.ewc-progress__fill {
	display: block; height: 100%;
	border-radius: inherit;
	background: var(--ewc-pb-fill, var(--e-global-color-accent, var(--wp--preset--color--primary, currentColor)));
	transition: width .5s cubic-bezier(.2, .8, .2, 1);
}
.ewc-progress.is-reached .ewc-progress__fill { background: var(--ewc-pb-success, #1e8a5a); }
.ewc-progress.is-reached .ewc-progress__icon { color: var(--ewc-pb-success, #1e8a5a); }

/* Cart totals and checkout spacing. */
.cart_totals .ewc-progress-slot { margin-top: 0; }
