/* Pause / play button for the autoplaying carousels and the ticker (see js/autoplay-a11y.js) */

button.sggc-autoplay-toggle {
	position: absolute;
	top: 14px;
	right: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: #fff;
	box-shadow: none;
	color: #484A48;
	font: inherit;
	line-height: 0;
	cursor: pointer;
}

button.sggc-autoplay-toggle svg {
	display: block;
	fill: currentColor;
}

button.sggc-autoplay-toggle:focus-visible {
	outline: 2px solid #484A48;
	outline-offset: 2px;
}

/* next to Flickity's prev / next buttons when they are shown */
.wp-block-sg-gutenberg-customisations-static-carousel .flickity-prev-next-button ~ button.sggc-autoplay-toggle {
	right: 100px;
}

.sg-products-carousel .flickity-prev-next-button ~ button.sggc-autoplay-toggle {
	right: 90px;
}

.sg-reviews-carousel button.sggc-autoplay-toggle {
	top: 6px;
}

.sg-reviews-carousel .flickity-prev-next-button ~ button.sggc-autoplay-toggle {
	right: 110px;
}

/* ticker */
.wp-block-sg-gutenberg-customisations-ticker.marquee-init {
	position: relative;
}

.wp-block-sg-gutenberg-customisations-ticker > button.sggc-autoplay-toggle {
	top: 50%;
	right: 4px;
	margin-top: -14px;
}

@media (max-width: 767px) {
	/* products carousel hides its prev / next buttons on mobile */
	.sg-products-carousel .flickity-prev-next-button ~ button.sggc-autoplay-toggle {
		right: 0;
	}
}
