/* Block - Testimonials: WordPress additions for Google reviews (not in the design system). */

/* Reviewer name links to their Google profile, styled like the plain name */
.cs-testi__author strong a {
	color: inherit;
	text-decoration: none;
}
.cs-testi__author strong a:hover {
	color: var(--primary);
}

/* Long reviews: the text scrolls after 6 lines, so one long review doesn't stretch every card in the row */
.cs-testi__quote {
	flex: 0 1 auto;
	max-height: 9em; /* 6 lines at line-height 1.5, where lh isn't supported */
	max-height: calc(6 * 1lh);
	overflow-y: auto;
	overscroll-behavior: contain;
	margin-right: -10px; /* Scrollbar sits in the card padding: text keeps the design's width */
	padding-right: 10px;
	scrollbar-width: thin;
	scrollbar-color: var(--border) transparent;
}
.cs-testi__quote::-webkit-scrollbar {
	width: 4px;
}
.cs-testi__quote::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background: var(--border);
}
.cs-testi--dark .cs-testi__quote {
	scrollbar-color: rgba(255, 255, 255, .25) transparent;
}
.cs-testi--dark .cs-testi__quote::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, .25);
}
.cs-testi__author {
	margin-top: auto; /* Author stays at the bottom of equal-height cards */
}
