/* Trifecta product review surfaces — summary stars + carousel. */

.tf-review-summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	line-height: 1;
	color: #1f2937;
}

.tf-review-summary__value {
	color: #B07B2C;
	font-size: 16px;
	font-weight: 600;
}

.tf-stars {
	position: relative;
	display: inline-block;
	color: #e5e7eb;
	line-height: 0;
}

.tf-stars__bg,
.tf-stars__fg {
	display: inline-flex;
	gap: 2px;
	white-space: nowrap;
}

.tf-stars__bg svg,
.tf-stars__fg svg {
	display: block;
}

.tf-stars__fg {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	color: #f5a623;
}

/* Carousel */

.tf-reviews-carousel {
	margin: 32px 0;
	padding: 24px 0;
}

.tf-reviews-carousel__head {
	margin-bottom: 16px;
}

.tf-reviews-carousel__title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 4px;
	color: #111827;
}

.tf-reviews-carousel__subtitle {
	color: #6b7280;
	font-size: 14px;
	margin: 0;
}

.tf-reviews-carousel__viewport {
	position: relative;
}

.tf-reviews-carousel__track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px 4px 16px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.tf-reviews-carousel__track::-webkit-scrollbar {
	display: none;
}

.tf-review-card {
	flex: 0 0 400px;
	max-width: 400px;
	scroll-snap-align: start;
	background: #f3f4f6;
	border-radius: 14px;
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tf-review-card__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.tf-review-card__author {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tf-review-card__name {
	font-weight: 600;
	color: #111827;
}

.tf-review-card__verified {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #6b7280;
	font-size: 13px;
	white-space: nowrap;
}

.tf-review-card__verified svg {
	color: #10b981;
}

.tf-review-card__date {
	color: #6b7280;
	font-size: 13px;
	white-space: nowrap;
}

.tf-review-card__body {
	margin: 0;
	color: #1f2937;
	font-size: 14px;
	line-height: 1.5;
}

.tf-reviews-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: #111827;
	color: #fff;
	border: 0;
	border-radius: 999px;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
	z-index: 2;
	transition: opacity 0.15s ease;
}

.tf-reviews-carousel__nav:hover {
	background: #000;
}

.tf-reviews-carousel__nav[hidden] {
	display: none;
}

.tf-reviews-carousel__nav--next {
	right: -30px;
}

.tf-reviews-carousel__nav--prev {
	left: -30px;
}

.tf-reviews-carousel__nav--prev svg {
	transform: rotate(180deg);
}

@media (max-width: 575px) {
	.tf-review-card {
		flex-basis: 85vw;
		max-width: 85vw;
		padding: 18px 20px;
	}

	.tf-review-card__author {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	.tf-reviews-carousel__nav {
		display: none;
	}
}
