/* `--progress` is written by script.view.js from Swiper's autoplay timer; 1 = fully filled. */
.nomon-hero-slider {
	--progress: 1;
}

/* Swiper's `.swiper-pagination-horizontal` pins the row full width at left: 0. */
.nomon-hero-slider .nomon-hero-slider__pagination.swiper-pagination-horizontal {
	left: 50%;
	width: auto;
}

/* Mirrors Swiper's own selectors to beat its round 8 px bullets. */
.nomon-hero-slider .nomon-hero-slider__pagination .swiper-pagination-bullet {
	position: relative;
	width: 40px;
	height: 20px;
	margin: 0;
	border-radius: 0;
	background: none;
	opacity: 1;
	cursor: pointer;
}

.nomon-hero-slider .swiper-pagination-bullet::before,
.nomon-hero-slider .swiper-pagination-bullet-active::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: calc(50% - 2.5px);
	height: 5px;
	background: var(--wp--preset--color--border);
}

.nomon-hero-slider .swiper-pagination-bullet-active::after {
	background: var(--wp--preset--color--accent);
	transform: scaleX(var(--progress));
	transform-origin: left;
}

@media (width < 48rem) {
	.nomon-hero-slider .nomon-hero-slider__pagination .swiper-pagination-bullet { width: 24px; }
}

.nomon-hero-slider .swiper-pagination-bullet:focus-visible {
	outline: 2px solid var(--wp--preset--color--background);
	outline-offset: 2px;
}

