/*
 * WTS Reviews - base carousel styles.
 *
 * Relatively minimal basic CSS. Can be overridden for client specific styling.
 */


.wtsr-reviews {
	font-size: 16px;
	container-type: inline-size;
}
.wtsr-carousel {
	--col-count: 1;
	--review-lines-shown: 4;
}

.wtsr-carousel-attribution {
	padding: 18px;
	background-color: #f5f5f7;
	border-radius: 10px;
	margin-bottom: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.wtsr-carousel-attribution-right {
	text-align: right;
}

.wtsr-overall-rating {
	font-size: 20px;
}
.wtsr-overall-rating .wtsr-rating-number {
	font-weight: 600;
}
.reviews-as-of {
	font-size: 0.8em;
}
.wtsr-overall-stars {
	position: relative;
	display: inline-block;
}
.wtsr-overall-stars-bg {
	color: rgba(17, 17, 17, 0.2);
}
.wtsr-overall-stars-fill {
	color: #fcbf04;
	position: absolute;
	top: 0;
	left: 0;
	-webkit-mask-image: linear-gradient(to right, black var(--star-percent), transparent var(--star-percent));
	mask-image: linear-gradient(to right, black var(--star-percent), transparent var(--star-percent));
}
.wtsr-overall-count {
	font-size: 80%;
	color: #909090;
}

.wtsr-review {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	background-color: #f5f5f7;
	border-radius: 10px;
}
.wtsr-review-header {
	display: flex;
	gap: 8px;
}
.wtsr-review-author {
	font-weight: 600;
}
.wtsr-review-time {
	opacity: .6;
	font-size: 75%;
}
.wtsr-review-stars {
	color: #fcbf04;
	font-size: 18px;
}
.wtsr-review-stars .wtsr-empty-star {
	color: rgba(17, 17, 17, 0.2);
}
.wtsr-review-text {
	line-height: 1.3;
	margin: 0;
	text-overflow: ellipsis;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: var(--review-lines-shown);
	-webkit-box-orient: vertical;
}
.wtsr-review-text.wtsr-expanded {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}
.wtsr-read-more {
	background: none;
	border: none;
	padding: 0;
	margin-top: 0.25rem;
	cursor: pointer;
	text-decoration: underline;
	font: inherit;
}

.wtsr-carousel {
	max-width: calc(100vw - 30px);
	margin: auto;
}

.wtsr-carousel .splide__arrows {
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(100% + 30px);
	height: 0;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transform: translate(-50%,-50%);
}
.wtsr-carousel .splide__arrow {
	width: 28px;
	height: 28px;
	border: unset;
	border-radius: 50%;
	background-color: #f5f5f7;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1;
	transition: .2s ease-in-out all;
	box-shadow: 0 2px 6px rgb(0 0 0 / 22%);
	cursor: pointer;
}
.wtsr-carousel .splide__arrow:hover {
	background-color: #dedee0;
	box-shadow: 0 0px 1px rgb(0 0 0 / 22%);
}
.wtsr-carousel .splide__arrow.splide__arrow--prev {
	transform: scaleX(-1);
}
.wtsr-carousel .splide__arrows svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.wtsr-carousel .splide__pagination {
	width: 50%;
	padding: 0;
	margin: auto;
	background-color: #d3d3d3;
	border-radius: 5px;
	margin-top: 16px;
	overflow: hidden;
}
.wtsr-carousel .splide__pagination li {
	flex-grow: 1;
}
.wtsr-carousel .splide__pagination li button {
	display: block;
	height: 6px;
	width: 100%;
	border: unset;
	background-color: transparent;
	transition: .2s ease-in-out background-color;
	cursor: pointer;
}
.wtsr-carousel .splide__pagination li button.is-active {
	background-color: #7d7d7d;
}

.wtsr-carousel button:focus {
	outline: none;
}


.wtsr-review {
	width: calc((100% - (18px * (var(--col-count) - 1))) / var(--col-count));
}
/* Fallback for browsers without container query support */
@media (min-width: 480px) {
	.wtsr-carousel {
		--col-count: 2;
	}
}
@media (min-width: 768px) {
	.wtsr-carousel {
		--col-count: 3;
	}
}
@media (min-width: 992px) {
	.wtsr-carousel {
		--col-count: 4;
	}
}
@media (min-width: 1280px) {
	.wtsr-carousel {
		--col-count: 5;
	}
}
/* Container queries for browsers that support them */
@container (min-width: 0px) {
	.wtsr-carousel {
		--col-count: 1;
	}
}
@container (min-width: 480px) {
	.wtsr-carousel {
		--col-count: 2;
	}
}
@container (min-width: 768px) {
	.wtsr-carousel {
		--col-count: 3;
	}
}
@container (min-width: 992px) {
	.wtsr-carousel {
		--col-count: 4;
	}
}
@container (min-width: 1280px) {
	.wtsr-carousel {
		--col-count: 5;
	}
}
@container (max-width: 480px) {
	.wtsr-carousel-attribution {
		flex-direction: column;
		row-gap: 4px;
	}
	.wtsr-carousel-attribution > div {
		text-align: center;
	}
}
@media (max-width: 480px) {
	.wtsr-carousel-attribution {
		flex-direction: column;
		row-gap: 4px;
	}
	.wtsr-carousel-attribution > div {
		text-align: center;
	}
}