/**
 * Nuven Free Shipping Bar
 */

.nfsb-bar {
	--nfsb-fill: #641f2a;
	--nfsb-done: #641f2a;
	--nfsb-track: #ece6dd;
	--nfsb-text: #1a1a1a;
	box-sizing: border-box;
	display: block;
	flex: 0 0 auto;
	width: 100%;
	margin: 0;
	padding: 0;
	color: var(--nfsb-text);
	font-family: inherit;
	text-align: left;
}

.nfsb-bar *,
.nfsb-bar *::before,
.nfsb-bar *::after {
	box-sizing: border-box;
}

.nfsb-source[hidden] {
	display: none !important;
}

/* In the side cart: sits above the products with a hairline below. */
.nfsb-bar--drawer {
	margin: 0 0 20px;
	padding: 4px 0 20px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Above the subtotal instead. */
.elementor-menu-cart__subtotal + .nfsb-bar--drawer,
.nfsb-bar--drawer + .elementor-menu-cart__subtotal,
.nfsb-bar--drawer + .woocommerce-mini-cart__total {
	border-bottom: 0;
}

.nfsb-bar--cart,
.nfsb-bar--shortcode {
	margin: 0 0 24px;
}

.nfsb-bar .nfsb-bar__text {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0.01em;
	text-transform: none;
	color: var(--nfsb-text);
}

.nfsb-bar .nfsb-bar__amount,
.nfsb-bar .nfsb-bar__amount .amount,
.nfsb-bar .nfsb-bar__amount bdi {
	font-weight: 700;
	color: var(--nfsb-fill);
}

.nfsb-bar--done .nfsb-bar__text {
	font-weight: 600;
	color: var(--nfsb-done);
}

.nfsb-bar .nfsb-bar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--nfsb-done);
	color: #ffffff;
	animation: nfsb-pop 0.35s ease both;
}

.nfsb-bar .nfsb-bar__icon svg {
	display: block;
	width: 11px;
	height: 11px;
}

.nfsb-bar .nfsb-bar__track {
	position: relative;
	display: block;
	width: 100%;
	height: 6px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 999px;
	background: var(--nfsb-track);
}

.nfsb-bar .nfsb-bar__fill {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	display: block;
	max-width: 100%;
	border-radius: 999px;
	background: var(--nfsb-fill);
	transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.nfsb-bar--done .nfsb-bar__fill {
	background: var(--nfsb-done);
}

/* A soft sheen travels along the fill while there is still ground to cover. */
.nfsb-bar--progress .nfsb-bar__fill::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
	background-size: 200% 100%;
	animation: nfsb-sheen 2.4s ease-in-out infinite;
}

.nfsb-bar .nfsb-bar__fill.nfsb-no-transition {
	transition: none !important;
}

@keyframes nfsb-sheen {
	from {
		background-position: 150% 0;
	}
	to {
		background-position: -50% 0;
	}
}

@keyframes nfsb-pop {
	0% {
		transform: scale(0.4);
		opacity: 0;
	}
	70% {
		transform: scale(1.12);
		opacity: 1;
	}
	100% {
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nfsb-bar .nfsb-bar__fill {
		transition: none;
	}

	.nfsb-bar .nfsb-bar__fill::after,
	.nfsb-bar .nfsb-bar__icon {
		animation: none;
	}
}
