.wsb-free-shipping-bar {
	--wsb-fsb-bg: #fff;
	--wsb-fsb-accent: #6d28d9;
	--wsb-fsb-success: #059669;
	--wsb-fsb-icon-bg: #f3e8ff;
	--wsb-fsb-icon-color: #6d28d9;
	--wsb-fsb-success-icon-bg: #d1fae5;
	--wsb-fsb-success-icon-color: #059669;
	--wsb-fsb-text: #111827;
	--wsb-fsb-muted: #64748b;
	--wsb-fsb-border: #e9d5ff;
	--wsb-fsb-radius: 16px;
	--wsb-fsb-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
	--wsb-fsb-font: inherit;
	--wsb-fsb-font-size: 15px;
	--wsb-fsb-width: 920px;
	--wsb-fsb-offset: 18px;
	box-sizing: border-box;
	color: var(--wsb-fsb-text);
	font-family: var(--wsb-fsb-font);
	font-size: var(--wsb-fsb-font-size);
	line-height: 1.4;
	margin: 16px auto;
	max-width: min(var(--wsb-fsb-width), calc(100% - 32px));
	position: relative;
	width: 100%;
	z-index: 30;
}

.wsb-free-shipping-bar *,
.wsb-free-shipping-bar *::before,
.wsb-free-shipping-bar *::after {
	box-sizing: border-box;
}

.wsb-free-shipping-bar__shell {
	background: var(--wsb-fsb-bg);
	border: 1px solid var(--wsb-fsb-border);
	border-radius: var(--wsb-fsb-radius);
	box-shadow: var(--wsb-fsb-shadow);
	overflow: hidden;
	padding: 14px 16px 13px;
}

.wsb-free-shipping-bar__content {
	align-items: center;
	display: flex;
	gap: 11px;
}

.wsb-free-shipping-bar__icon {
	align-items: center;
	background: var(--wsb-fsb-icon-bg);
	border: 1px solid color-mix(in srgb, var(--wsb-fsb-icon-color) 22%, transparent);
	border-radius: 999px;
	color: var(--wsb-fsb-icon-color);
	display: inline-flex;
	flex: 0 0 38px;
	font-size: 18px;
	height: 38px;
	justify-content: center;
}

.wsb-free-shipping-bar__icon svg {
	fill: currentColor;
	height: 20px;
	width: 20px;
}

.wsb-free-shipping-bar__message {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	gap: 12px;
	justify-content: space-between;
	min-width: 0;
}

.wsb-free-shipping-bar__message strong {
	color: var(--wsb-fsb-text);
	font-size: 1em;
	font-weight: 750;
	margin: 0;
}

.wsb-free-shipping-bar__message > span {
	color: var(--wsb-fsb-muted);
	flex: 0 0 auto;
	font-size: 0.8em;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.wsb-free-shipping-bar__amount {
	color: var(--wsb-fsb-accent);
	white-space: nowrap;
}

.wsb-free-shipping-bar__amount .woocommerce-Price-amount,
.wsb-free-shipping-bar__amount .woocommerce-Price-currencySymbol {
	color: inherit;
}

.wsb-free-shipping-bar__track {
	background: color-mix(in srgb, var(--wsb-fsb-border) 60%, var(--wsb-fsb-bg));
	border-radius: 999px;
	height: 7px;
	margin-top: 11px;
	overflow: hidden;
	position: relative;
}

.wsb-free-shipping-bar__fill {
	background: linear-gradient(90deg, var(--wsb-fsb-accent), color-mix(in srgb, var(--wsb-fsb-accent) 68%, #fff));
	border-radius: inherit;
	display: block;
	height: 100%;
	min-width: 0;
	position: relative;
	transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.wsb-free-shipping-bar--animation-shine .wsb-free-shipping-bar__fill::after {
	animation: wsb-fsb-shine 2.2s ease-in-out infinite;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
	content: "";
	inset: 0;
	position: absolute;
	transform: translateX(-110%);
}

.wsb-free-shipping-bar--animation-pulse:not(.is-unlocked) .wsb-free-shipping-bar__icon {
	animation: wsb-fsb-pulse 1.9s ease-in-out infinite;
}

.wsb-free-shipping-bar.is-unlocked .wsb-free-shipping-bar__icon {
	background: var(--wsb-fsb-success-icon-bg);
	border-color: color-mix(in srgb, var(--wsb-fsb-success-icon-color) 24%, transparent);
	color: var(--wsb-fsb-success-icon-color);
}

.wsb-free-shipping-bar.is-unlocked .wsb-free-shipping-bar__fill {
	background: var(--wsb-fsb-success);
}

.wsb-free-shipping-bar.is-hidden {
	display: none !important;
}

.wsb-free-shipping-bar--top,
.wsb-free-shipping-bar--bottom {
	margin-left: auto;
	margin-right: auto;
}

.wsb-free-shipping-bar--floating {
	bottom: max(var(--wsb-fsb-offset), env(safe-area-inset-bottom));
	left: 50%;
	margin: 0;
	position: fixed;
	transform: translateX(-50%);
	transition: bottom 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: bottom;
	z-index: 99980;
}

.wsb-sticky-cart-is-visible .wsb-free-shipping-bar--floating {
	bottom: calc(var(--wsb-fsb-sticky-height, 88px) + 10px + env(safe-area-inset-bottom));
}

@keyframes wsb-fsb-shine {
	0%,
	45% {
		transform: translateX(-110%);
	}
	80%,
	100% {
		transform: translateX(110%);
	}
}

@keyframes wsb-fsb-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 0 color-mix(in srgb, var(--wsb-fsb-accent) 25%, transparent);
	}
	50% {
		box-shadow: 0 0 0 8px transparent;
	}
}

@media screen and (min-width: 783px) {
	.wsb-free-shipping-bar--hide-desktop {
		display: none !important;
	}
}

@media screen and (max-width: 782px) {
	.wsb-free-shipping-bar {
		font-size: max(13px, calc(var(--wsb-fsb-font-size) - 1px));
		margin-bottom: 12px;
		margin-top: 12px;
		max-width: calc(100% - 20px);
	}

	.wsb-free-shipping-bar--hide-mobile {
		display: none !important;
	}

	.wsb-free-shipping-bar__shell {
		padding: 11px 12px 10px;
	}

	.wsb-free-shipping-bar__content {
		gap: 9px;
	}

	.wsb-free-shipping-bar__icon {
		flex-basis: 34px;
		font-size: 16px;
		height: 34px;
	}

	.wsb-free-shipping-bar__message {
		gap: 6px;
	}

	.wsb-free-shipping-bar__message > span {
		font-size: 0.72em;
	}

	.wsb-free-shipping-bar__track {
		height: 6px;
		margin-top: 9px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.wsb-free-shipping-bar--floating,
	.wsb-free-shipping-bar__fill,
	.wsb-free-shipping-bar__fill::after,
	.wsb-free-shipping-bar__icon {
		animation: none !important;
		transition: none !important;
	}
}
