.zp-testimonial-cards {
	width: 100%;
}

.zp-tc-container {
	margin: 0 auto;
	width: 100%;
}

.zp-tc-slider-wrapper {
	position: relative;
}

.zp-tc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: stretch;
}

.zp-tc-card {
	background: #ffffff;
	border: 1px solid transparent;
	border-radius: 16px;
	padding: 20px;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	gap: 24px;
	transition: box-shadow 0.2s ease;
}

.zp-tc-card--featured {
	box-shadow: none;
}

.zp-tc-card:hover {
	border-color: rgba(13, 14, 52, 0.25);
	box-shadow: 0 14px 6.1px rgba(0, 0, 0, 0.15);
}

.zp-tc-card-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
}

.zp-tc-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.zp-tc-card-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
	width: 100%;
}

.zp-tc-stars {
	display: flex;
	gap: 2px;
	justify-content: center;
	align-items: center;
	height: 24px;
}

.zp-tc-star {
	color: #FFD200;
	font-size: 22px;
	line-height: 1;
}

.zp-tc-text {
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: center;
	color: #0d0e34;
	width: 100%;
	word-break: break-word;
}

.zp-tc-quote {
	font-size: 18px;
	line-height: 1.5;
	margin: 0;
}

.zp-tc-body {
	font-size: 18px;
	line-height: 1.5;
	margin: 0;
}

.zp-tc-name {
	font-size: 19px;
	font-weight: 800;
	line-height: 1.5;
	margin: 0;
}

/* Arrow buttons — hidden on desktop */
.zp-tc-btn {
	display: none;
}

@media (max-width: 1024px) {
	.zp-tc-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	/* Switch grid to horizontal scroll-snap track */
	.zp-tc-grid {
		display: flex;
		grid-template-columns: unset;
		overflow-x: scroll;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 12px;
		scroll-padding-left: 16px;
		/* Clearance keeps a hovered card's shadow inside the scrolling viewport. */
		padding: 8px 10px 24px;
	}

	.zp-tc-grid::-webkit-scrollbar {
		display: none;
	}

	.zp-tc-card {
		flex-shrink: 0;
		/* 324px per Figma, but never wider than viewport minus peek */
		width: 324px;
		max-width: calc(100% - 48px);
		scroll-snap-align: start;
		padding: 12px;
	}

	/* Keep the card aligned 16px from the viewport edge at every snap point. */
	.zp-tc-card:first-child {
		margin-left: 16px;
	}

	.zp-tc-grid::after {
		content: '';
		flex: 0 0 var(--zp-tc-end-spacer, 0px);
	}

	.zp-tc-card:hover {
		border-color: transparent;
		box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.12);
	}

	/* Fixed image height on mobile to match Figma */
	.zp-tc-card-image {
		height: 226px;
		aspect-ratio: unset;
	}

	.zp-tc-quote,
	.zp-tc-body {
		font-size: 14px;
		line-height: 1.55;
	}

	.zp-tc-name {
		font-size: 12px;
	}

	/* Arrow buttons */
	.zp-tc-btn {
		display: flex;
		position: absolute;
		/* Vertically centered on the image: 12px card padding + 226px image / 2 − half button height */
		top: 200px;
		width: 46px;
		height: 46px;
		border-radius: 50%;
		border: none;
		background: #FF7A1A;
		cursor: pointer;
		align-items: center;
		justify-content: center;
		z-index: 10;
	}

	.zp-tc-btn--next {
		right: 10px;
	}

	.zp-tc-btn--prev {
		left: 10px;
		opacity: 0;
		pointer-events: none;
	}

	.zp-tc-btn--prev.zp-tc-btn--visible {
		opacity: 1;
		pointer-events: auto;
	}

	.zp-tc-btn--next.zp-tc-btn--hidden {
		opacity: 0;
		pointer-events: none;
	}
}
