/* ============ Customer Reviews slider ([cpgt_reviews] shortcode) ============
   Reuses .cpgt-slider-wrap / .cpgt-slider-arrow / .cpgt-slider-track from
   _base.css for the arrows and scroll-snap behaviour; this file only styles
   the review cards themselves. */

.cpgt-reviews-track.cpgt-slider-track {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	scroll-snap-type: x mandatory !important;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	list-style: none !important;
	margin: 0 !important;
	padding: 4px 4px 10px !important;
	gap: 24px;
}
.cpgt-reviews-track.cpgt-slider-track::-webkit-scrollbar {
	display: none;
	height: 0;
}

.cpgt-review-card {
	flex: 0 0 calc((100% - 48px) / 3);
	width: auto;
	scroll-snap-align: start;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cpgt-review-stars {
	color: #111;
	font-size: 15px;
	letter-spacing: 2px;
}

.cpgt-review-text {
	margin: 0;
	color: #333;
	font-size: 14px;
	line-height: 1.6;
	flex: 1 0 auto;
}

.cpgt-review-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.cpgt-review-avatar {
	width: 44px !important;
	height: 44px !important;
	min-width: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.cpgt-review-avatar-initial {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #111;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
}

.cpgt-review-author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cpgt-review-name {
	font-size: 14px;
	font-weight: 600;
	color: #111;
}

.cpgt-review-subtitle {
	font-size: 12px;
	color: #777;
}

/* Tablet: 2 cards per view */
@media (min-width: 768px) and (max-width: 1024px) {
	.cpgt-review-card {
		flex: 0 0 calc((100% - 24px) / 2);
	}
}

/* Phone: one card, with a peek of the next one to hint it's swipeable */
@media (max-width: 767px) {
	.cpgt-reviews-track.cpgt-slider-track {
		gap: 14px;
	}
	.cpgt-review-card {
		flex: 0 0 85%;
		padding: 20px;
	}
}
