/* Alta Solutions Free Shipping Bar
 * Colors and radius come from the settings as CSS variables (--as-fsb-*).
 * Elements also carry the legacy luchiana-* classes for existing custom CSS.
 */

.asfsb-block-slot:empty,
.altasolutions-fsb-shortcode:empty,
.altasolutions-fsb-checkout-fragment:empty {
	display: none;
}

.asfsb-bar {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	margin: 0 0 22px;
	padding: 17px 18px 16px;
	border: 1px solid rgba(185, 154, 112, 0.32);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 246, 241, 0.92)),
		#fff;
	box-shadow: 0 12px 30px rgba(35, 31, 32, 0.06);
	color: #2d2928;
	font-family: inherit;
	text-align: center;
	text-transform: none;
}

.asfsb-bar *,
.asfsb-bar *::before,
.asfsb-bar *::after {
	box-sizing: border-box;
}

.asfsb-bar::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, var(--as-fsb-color-1, #8f673c), var(--as-fsb-color-2, #d9b878), var(--as-fsb-color-3, #9d7446));
}

.asfsb-text {
	position: relative;
	margin: 0 0 11px;
	padding: 0;
	color: #2d2928;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0.03em;
}

.asfsb-text strong {
	color: #1f1b1a;
	font-weight: 600;
}

.asfsb-promo {
	position: relative;
	margin: -5px 0 11px;
	padding: 0;
	color: rgba(45, 41, 40, 0.58);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: 0.01em;
}

.asfsb-promo strong {
	color: rgba(45, 41, 40, 0.7);
	font-weight: 500;
}

.asfsb-bar strong .amount,
.asfsb-bar strong .woocommerce-Price-amount,
.asfsb-bar strong bdi {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.asfsb-bar.is-complete .asfsb-promo,
.asfsb-text:last-child,
.asfsb-promo:last-child {
	margin-bottom: 0;
}

.asfsb-track {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 7px;
	margin: 0;
	border-radius: var(--as-fsb-radius, 0);
	background: rgba(45, 41, 40, 0.09);
}

.asfsb-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	min-width: 8px;
	max-width: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--as-fsb-color-1, #8f673c), var(--as-fsb-color-2, #d9b878), var(--as-fsb-color-3, #9d7446));
	box-shadow: 0 0 14px rgba(185, 137, 75, 0.28);
	transition: width 0.35s ease;
}

/* Contexts */
.asfsb-bar.asfsb-bar--checkout {
	margin-bottom: 24px;
}

.asfsb-bar.asfsb-bar--mini-cart {
	margin: 16px 0 18px;
	padding: 13px 14px 12px;
	box-shadow: 0 10px 24px rgba(35, 31, 32, 0.05);
}

.asfsb-bar.asfsb-bar--mini-cart .asfsb-text {
	margin-bottom: 9px;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.asfsb-bar.asfsb-bar--mini-cart .asfsb-track {
	height: 6px;
}

.asfsb-bar.asfsb-bar--mini-cart .asfsb-promo {
	font-size: 10px;
	line-height: 1.3;
}

/* Blocks */

/* Hidden until blocks.js moves the slot into the order summary (avoids a full-width flash while loading). */
.asfsb-block-slot--cart:not(.is-placed),
.asfsb-block-slot--checkout:not(.is-placed) {
	display: none;
}
.asfsb-block-slot--cart .asfsb-bar,
.asfsb-block-slot--checkout .asfsb-bar {
	margin: 0 0 16px;
}

.asfsb-block-slot--mini-cart {
	padding: 0 16px;
}

.asfsb-block-slot--mini-cart .asfsb-bar {
	margin: 12px 0;
}

@media (max-width: 619px) {
	.asfsb-bar {
		margin-bottom: 18px;
		padding: 15px 14px 14px;
	}

	.asfsb-text {
		font-size: 12px;
		line-height: 1.5;
	}

	.asfsb-promo {
		font-size: 10px;
		line-height: 1.4;
	}
}

@media (prefers-reduced-motion: reduce) {
	.asfsb-fill {
		transition: none;
	}
}
