/**
 * Loading state of a category page while blocks/shared-js/category-refresh.js refreshes it in place.
 *
 * The content stays visible but dimmed, and cannot be clicked into a second, conflicting state meanwhile. The
 * transition is delayed, so a fast response swaps the content without the page flickering.
 */
.oneboxshop-pages-category-page-out.obs-is-refreshing {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s ease 0.15s;
}

@media (prefers-reduced-motion: reduce) {
	.oneboxshop-pages-category-page-out.obs-is-refreshing {
		transition: none;
	}
}

/* The live region announcing a refresh, visually hidden but read by screen readers. */
.obs-category-refresh-status {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/*
 * The wrapper receives the focus when the focused element did not survive a refresh (see `restoreFocus()`).
 * No outline around the whole content for that, unless the visitor navigates by keyboard.
 */
.oneboxshop-pages-category-page-out[tabindex="-1"]:focus:not(:focus-visible) {
	outline: none;
}
