/**
 * Evhod Free Shipping Bar — frontend styles.
 *
 * Colors for the progress bar itself are injected inline via
 * wp_add_inline_style() (see EFSB_Frontend::get_dynamic_css()) so admins
 * can change them from wp-admin without a build step. Everything else
 * (layout, spacing, typography) lives here and is easy to override from a
 * theme by targeting .efsb-wrapper.
 */

.efsb-wrapper {
	margin: 12px 0;
	padding: 12px 14px;
	background: #f8f8f8;
	border: 1px solid #e2e2e2;
	border-radius: 0;
	font-size: 13px;
	line-height: 1.5;
	box-sizing: border-box;
	display: flex;
	width: 100%;
	flex-direction: column;
}

.cart-wrapper .efsb-wrapper {
	font-size: 12px;
	padding: 5px 7px 7px 7px;
}
.efsb-wrapper * {
	box-sizing: border-box;
}

.efsb-wrapper.efsb-met {
	background: #eef8ef;
	border-color: #cfe8d1;
}

.efsb-pre-text {
	margin-bottom: 6px;
}

.efsb-label {
	font-weight: 300;
	margin-bottom: 8px;
}

.efsb-wrapper.efsb-met .efsb-label {
	color: #2e7d32;
}
.cart-wrapper .efsb-label{
	font-size: 11px;
	text-align: right;
	margin-bottom: 5px;
}

.efsb-post-text {
	margin-top: 8px;
}

.efsb-progress-track {
	width: 100%;
	height: 6px;
	border-radius: 999px;
	overflow: hidden;
	background-color: #e5e5e5; /* Fallback; overridden by inline style. */
}

.cart-wrapper .efsb-progress-track {
		height: 5px;
}

.efsb-progress-fill {
	height: 100%;
	border-radius: 999px;
	background-color: #4caf50; /* Fallback; overridden by inline style. */
	transition: width 0.4s ease;
	min-width: 2%;
}

/* Placement tweaks. */
.cart_totals .efsb-wrapper,
.woocommerce-checkout .efsb-wrapper {
	margin: 0 0 20px;
}

@media (max-width: 480px) {
	.efsb-wrapper {
		padding: 10px 12px;
		font-size: 13px;
	}
}
