/* Prototype styles for the injected cover-video pause toggle. */
.eqd-cover-video-toggle {
	position: absolute;
	inset-inline-end: 1rem;
	bottom: 1rem;
	z-index: 20;
	display: none;
	align-items: center;
	gap: .25rem;
	padding: .5rem;
	border: 0;
	border-radius: 999px;
	background: #1d2327;
	color: #fff;
	cursor: pointer;
	line-height: 0;
}

.wp-block-cover[data-eqd-video-ready] .eqd-cover-video-toggle {
	display: inline-flex;
}

.eqd-cover-video-toggle:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	/* A single white ring can blend into a light-coloured Cover; the dark
	   ring right outside it keeps the focus indicator visible either way. */
	box-shadow: 0 0 0 5px #1d2327;
}

.eqd-cover-video-toggle svg {
	fill: currentColor;
}

.eqd-cover-video-toggle .eqd-cover-video-toggle__icon--play {
	display: none;
}

.eqd-cover-video-toggle[data-state="paused"] .eqd-cover-video-toggle__icon--pause {
	display: none;
}

.eqd-cover-video-toggle[data-state="paused"] .eqd-cover-video-toggle__icon--play {
	display: inline;
}

/* The eqd-native-controls escape hatch hands control to the browser's own
   <video controls>, but core's dim overlay sits on top of the video and
   still accepts pointer events -- without this, clicks meant for the
   native controls land on the overlay instead. Scoped to that one class so
   every other Cover's overlay behaves exactly as before. */
.wp-block-cover.eqd-native-controls .wp-block-cover__background {
	pointer-events: none;
}

.eqd-cover-video-toggle__text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
