/* Product slider (#slidernav): previous/next arrows, added by scripts/atc-slidernav.js when the strip overflows. */

.slidernav-wrap {
	position: relative;
	/* The strip is a scroll container, so it sits below the floated sub-navigation links above it.
	   The wrapper needs the same clearance, or it overlaps those links and blocks their clicks. */
	clear: both;
}

.slidernav-arrow {
	position: absolute;
	top: 50%; /* scripts/atc-slidernav.js centres it on the product images */
	z-index: 1001; /* above the product name labels (1000) */
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: -18px 0 0;
	padding: 0;
	border: 1px solid #999;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	color: #313755;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	/* Visibility flips at once when the arrow appears (so it can take focus) and after the fade when it goes. */
	transition: opacity 0.2s ease-in-out, visibility 0s, background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.propages .slidernav-arrow {
	color: #CA1414;
}

.slidernav-arrow--prev {
	left: 6px;
}

.slidernav-arrow--next {
	right: 6px;
}

.slidernav-arrow:hover,
.slidernav-arrow:focus-visible {
	background: #313755;
	border-color: #313755;
	color: #fff;
}

.propages .slidernav-arrow:hover,
.propages .slidernav-arrow:focus-visible {
	background: #CA1414;
	border-color: #CA1414;
}

.slidernav-arrow:focus-visible {
	outline: 2px solid #313755;
	outline-offset: 2px;
}

.propages .slidernav-arrow:focus-visible {
	outline-color: #CA1414;
}

.slidernav-arrow.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease-in-out, visibility 0s 0.2s, background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
	.slidernav-arrow {
		transition: none;
	}
}
