/*
 * Mirrors WooCommerce's .wc-block-components-skeleton__element on the surcharge amounts.
 * Core tints with currentColor; here the text is transparent, so the tint is a fixed grey.
 */
.wc-block-components-totals-item__value.kl-lz-loading {
	position: relative;
	overflow: hidden;
	min-width: 3.5em;
	border-radius: 4px;
	color: transparent !important;
	background: rgba(0, 0, 0, 0.05);
}

.wc-block-components-totals-item__value.kl-lz-loading * {
	visibility: hidden;
}

.wc-block-components-totals-item__value.kl-lz-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05) 50%, transparent);
	animation: wc-skeleton-shimmer 1.25s infinite;
}

@keyframes wc-skeleton-shimmer {
	to {
		transform: translateX(100%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wc-block-components-totals-item__value.kl-lz-loading::after {
		animation: none;
	}
}
