/**
 * Hide Product Collection pagination when infinite scroll is active.
 * Class is added by JS so pagination remains usable without JavaScript.
 */
body.pis-enabled .wp-block-woocommerce-product-collection .wp-block-query-pagination {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pis-sentinel {
	width: 100%;
	height: 1px;
	pointer-events: none;
}

.pis-loader {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	padding: 1.5rem 0 2rem;
	color: inherit;
	font-size: 0.925rem;
	opacity: 0.75;
}

.pis-loader.is-active {
	display: flex;
}

.pis-loader__spinner {
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: pis-spin 0.7s linear infinite;
}

@keyframes pis-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pis-loader__spinner {
		animation: none;
		border-right-color: currentColor;
		opacity: 0.5;
	}
}
