/* WC Free Shipping Confetti — canvas overlay + sticky progress bar. */

/* ------- canvas ------- */
.wcfsc-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
	mix-blend-mode: normal;
}

.wcfsc-cart-total {
	display: none !important;
}

/* ------- sticky progress bar ------- */
.wcfsc-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9998;
	background: var(--wcfsc-bg, #FF6B8A);
	color: var(--wcfsc-fg, #FFFFFF);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	font-size: 14px;
	line-height: 1.3;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transform: translateY(-100%);
	transition: transform 0.35s ease, background 0.4s ease;
	will-change: transform, background;
}

.wcfsc-bar[data-state="below"],
.wcfsc-bar[data-state="above"] {
	transform: translateY(0);
}

.wcfsc-bar[data-state="above"] {
	background: var(--wcfsc-bg-above, #22C55E);
}

.wcfsc-bar__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.wcfsc-bar__icon {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	color: currentColor;
}

.wcfsc-bar__content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wcfsc-bar__message {
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wcfsc-bar__progress {
	height: 6px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	overflow: hidden;
}

.wcfsc-bar__progress-fill {
	height: 100%;
	width: 0%;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 999px;
	transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wcfsc-bar[data-state="above"] .wcfsc-bar__progress-fill {
	width: 100% !important;
}

.wcfsc-bar__percent {
	flex: 0 0 auto;
	font-weight: 700;
	font-size: 13px;
	min-width: 42px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.wcfsc-bar[data-state="above"] .wcfsc-bar__percent {
	display: none;
}

@media (max-width: 540px) {
	.wcfsc-bar__inner {
		padding: 8px 12px;
		gap: 8px;
	}
	.wcfsc-bar__message {
		font-size: 13px;
	}
	.wcfsc-bar__percent {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcfsc-canvas {
		display: none;
	}
	.wcfsc-bar,
	.wcfsc-bar__progress-fill {
		transition: none;
	}
}
