/**
 * Flo Web testimonial slider.
 *
 * Everything below .is-enhanced only applies once slider.js has run, so with
 * JavaScript off the quotes stay as a readable stacked list.
 */

#steel-testimonials {
	margin: 2em 0;
	position: relative;
}

#steel-testimonials h2 {
	margin-bottom: 1em;
}

#steel-testimonials .testimonial-track {
	list-style: none;
	margin: 0;
	padding: 0;
}

#steel-testimonials .testimonial-slide {
	margin-bottom: 1.5em;
}

#steel-testimonials blockquote {
	border: 0;
	border-top: 3px solid #ccc;
	margin: 0;
	padding: 1em 0 0;
	font-size: 1em;
}

#steel-testimonials .testimonial-quote p:last-child {
	margin-bottom: .75em;
}

#steel-testimonials cite {
	font-style: normal;
}

#steel-testimonials .testimonial-name {
	display: block;
	font-weight: bold;
}

#steel-testimonials .testimonial-location {
	display: block;
	color: #666;
	font-size: .9em;
}

/* Slider mode */

#steel-testimonials.is-enhanced .testimonial-viewport {
	overflow: hidden;
}

#steel-testimonials.is-enhanced .testimonial-track {
	display: flex;
	transition: transform .4s ease;
}

#steel-testimonials.is-enhanced .testimonial-slide {
	flex: 0 0 100%;
	max-width: 100%;
	margin-bottom: 0;
	padding: 0 .5em;
	box-sizing: border-box;
}

/* Controls */

#steel-testimonials .testimonial-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1em;
}

#steel-testimonials .testimonial-arrow {
	background: none;
	border: 1px solid #ccc;
	border-radius: 50%;
	width: 2.2em;
	height: 2.2em;
	line-height: 1;
	font-size: 1.1em;
	color: #444;
	cursor: pointer;
	padding: 0;
}

#steel-testimonials .testimonial-arrow:hover,
#steel-testimonials .testimonial-arrow:focus {
	background: #f2f2f2;
	color: #000;
}

#steel-testimonials .testimonial-dots {
	list-style: none;
	display: flex;
	margin: 0 1em;
	padding: 0;
}

#steel-testimonials .testimonial-dots li {
	margin: 0 .25em;
}

#steel-testimonials .testimonial-dots button {
	width: 11px;
	height: 11px;
	padding: 0;
	border: 1px solid #999;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	text-indent: -9999px;
	overflow: hidden;
}

#steel-testimonials .testimonial-dots button.is-current {
	background: #444;
	border-color: #444;
}

#steel-testimonials button:focus-visible {
	outline: 2px solid #005a9c;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	#steel-testimonials .testimonial-arrow {
		width: 2.6em;
		height: 2.6em;
	}
}

@media (prefers-reduced-motion: reduce) {
	#steel-testimonials.is-enhanced .testimonial-track {
		transition: none;
	}
}
