.spfs-progress {
	--spfs-bg: #f4f8f2;
	--spfs-accent: #5b8c3a;
	--spfs-success: #2e7d4f;
	--spfs-text: #263328;
	--spfs-radius: 14px;
	align-items: center;
	background: var(--spfs-bg);
	border: 1px solid color-mix(in srgb, var(--spfs-accent) 26%, transparent);
	border-left: 4px solid var(--spfs-accent);
	border-radius: var(--spfs-radius);
	box-shadow: 0 10px 28px rgba(31, 55, 35, 0.09);
	box-sizing: border-box;
	color: var(--spfs-text);
	display: flex;
	gap: 14px;
	margin: 0 0 20px;
	padding: 16px 18px;
	width: 100%;
}

.spfs-progress[hidden] {
	display: none !important;
}

.spfs-progress.is-complete {
	border-color: color-mix(in srgb, var(--spfs-success) 30%, transparent);
	border-left-color: var(--spfs-success);
}

.spfs-progress__icon {
	align-items: center;
	background: color-mix(in srgb, var(--spfs-accent) 14%, transparent);
	border-radius: 999px;
	color: var(--spfs-accent);
	display: flex;
	flex: 0 0 44px;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.is-complete .spfs-progress__icon {
	background: color-mix(in srgb, var(--spfs-success) 14%, transparent);
	color: var(--spfs-success);
}

.spfs-progress__icon svg {
	fill: none;
	height: 25px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 25px;
}

.spfs-progress__content {
	flex: 1 1 auto;
	min-width: 0;
}

.spfs-progress__title {
	color: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	margin: 0 0 4px;
}

.spfs-progress__message {
	color: color-mix(in srgb, var(--spfs-text) 78%, transparent);
	font-size: 13px;
	line-height: 1.45;
	margin: 0 0 10px;
}

.spfs-progress__message .woocommerce-Price-amount,
.spfs-progress__title .woocommerce-Price-amount {
	color: inherit;
	font-weight: 700;
}

.spfs-progress__track {
	background: color-mix(in srgb, var(--spfs-accent) 14%, #fff);
	border-radius: 999px;
	height: 9px;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.spfs-progress__bar {
	background: linear-gradient(90deg, var(--spfs-accent), color-mix(in srgb, var(--spfs-accent) 72%, #fff));
	border-radius: inherit;
	display: block;
	height: 100%;
	max-width: 100%;
	min-width: 0;
	position: relative;
	transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.spfs-progress__bar::after {
	animation: spfs-shine 2.4s ease-in-out infinite;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	content: "";
	inset: 0;
	position: absolute;
	transform: translateX(-100%);
}

.is-complete .spfs-progress__track {
	background: color-mix(in srgb, var(--spfs-success) 14%, #fff);
}

.is-complete .spfs-progress__bar {
	background: var(--spfs-success);
}

.spfs-progress__button {
	background: var(--spfs-accent);
	border: 0;
	border-radius: calc(var(--spfs-radius) * 0.65);
	box-shadow: none;
	box-sizing: border-box;
	color: #fff;
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	padding: 10px 13px;
	text-align: center;
	text-decoration: none;
	transition: filter 160ms ease, transform 160ms ease;
}

.spfs-progress__button:focus,
.spfs-progress__button:hover {
	color: #fff;
	filter: brightness(0.92);
	text-decoration: none;
	transform: translateY(-1px);
}

.spfs-progress--mini_cart {
	box-shadow: none;
	gap: 10px;
	margin: 8px 0 14px;
	padding: 12px;
}

.spfs-progress--mini_cart .spfs-progress__icon {
	display: none;
}

.spfs-progress--mini_cart .spfs-progress__button {
	display: none;
}

.spfs-progress--floating {
	bottom: 18px;
	left: 50%;
	margin: 0;
	max-width: 640px;
	position: fixed;
	transform: translateX(-50%);
	width: calc(100% - 32px);
	z-index: 9998;
}

.spfs-block-wrapper {
	box-sizing: border-box;
}

.spfs-block-wrapper .spfs-progress {
	margin: 0;
}

@keyframes spfs-shine {
	0%,
	42% {
		transform: translateX(-100%);
	}
	74%,
	100% {
		transform: translateX(100%);
	}
}

@media (max-width: 600px) {
	.spfs-progress {
		align-items: flex-start;
		flex-wrap: wrap;
		padding: 14px;
	}

	.spfs-progress__icon {
		flex-basis: 38px;
		height: 38px;
		width: 38px;
	}

	.spfs-progress__content {
		flex-basis: calc(100% - 54px);
	}

	.spfs-progress__button {
		margin-left: 54px;
	}

	.spfs-progress--floating {
		bottom: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spfs-progress__bar {
		transition: none;
	}

	.spfs-progress__bar::after {
		animation: none;
	}
}
