/* Customer Reviews Showcase */
.crs-wrap {
	--crs-bg: #f0f0f0;
	--crs-card: #fafafa;
	--crs-star: #f6bb42;
	--crs-star-empty: #dedede;
	--crs-link: #4a90e2;
	--crs-ink: #111;
	--crs-text: #333;
	--crs-muted: #555;
	--crs-faint: #9a9a9a;
	--crs-line: #e8e8e8;
	--crs-cols: 4;
	--crs-gap: 26px;

	background: var(--crs-bg);
	padding: 28px 16px 20px;
	font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--crs-text);
	direction: ltr;
	text-align: left;
	line-height: 1.4;
	box-sizing: border-box;
}
.crs-wrap *,
.crs-wrap *::before,
.crs-wrap *::after { box-sizing: border-box; }

.crs-inner { max-width: 1600px; margin: 0 auto; }

.crs-wrap .crs-heading {
	margin: 0 0 42px;
	padding: 0;
	text-align: center;
	font-family: inherit;
	font-size: 30px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--crs-ink);
}

/* ---------- Summary card (tabs + overall) ---------- */
.crs-summary {
	background: var(--crs-card);
	border-radius: 12px;
	margin-bottom: var(--crs-gap);
	overflow: hidden;
}

.crs-tabs {
	display: flex;
	justify-content: center;
	gap: 26px;
	border-bottom: 1px solid var(--crs-line);
	padding: 0 16px;
	overflow-x: auto;
	scrollbar-width: none;
}
.crs-tabs::-webkit-scrollbar { display: none; }

.crs-wrap .crs-tab,
.crs-wrap .crs-tab:hover,
.crs-wrap .crs-tab:focus,
.crs-wrap .crs-tab:active {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	padding: 18px 13px 16px;
	margin-bottom: -1px;
	border-bottom: 2.5px solid transparent;
	font-family: inherit;
	font-size: 18px;
	line-height: 1.2;
	color: #222;
	cursor: pointer;
	white-space: nowrap;
}
.crs-wrap .crs-tab.is-active { border-bottom-color: #222; }
.crs-wrap .crs-tab:focus-visible { outline: 2px solid var(--crs-link); outline-offset: -4px; border-radius: 4px; }
.crs-tab-num { font-weight: 600; }

.crs-tab-icon { display: inline-flex; width: 26px; height: 26px; color: #111; }
.crs-tab-icon svg { width: 100%; height: 100%; display: block; }
.crs-tab-icon--yelp { width: 25px; height: 25px; }

.crs-overall { padding: 34px 16px 38px; text-align: center; }
.crs-overall-title {
	font-size: 26px;
	font-weight: 500;
	color: var(--crs-ink);
	margin-bottom: 10px;
}
.crs-overall-row {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}
.crs-overall-num { font-size: 29px; font-weight: 500; color: var(--crs-ink); }
.crs-overall-count { font-size: 14px; color: #888; }

/* ---------- Stars (fractional fill via mask) ---------- */
.crs-stars {
	--crs-star-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.6l3.15 6.5 7.1 1.04-5.15 5.02 1.22 7.08L12 17.9l-6.32 3.34 1.22-7.08L1.75 9.14l7.1-1.04z'/%3E%3C/svg%3E");
	display: inline-block;
	width: 5.2em;
	height: 1em;
	font-size: 23px;
	vertical-align: middle;
	background: linear-gradient(90deg, var(--crs-star) var(--crs-fill, 100%), var(--crs-star-empty) var(--crs-fill, 100%));
	-webkit-mask: var(--crs-star-svg) 0 0 / 1.04em 1em repeat-x;
	mask: var(--crs-star-svg) 0 0 / 1.04em 1em repeat-x;
}
.crs-stars--lg { font-size: 28px; }

/* ---------- Reviews grid ---------- */
.crs-grid {
	display: grid;
	grid-template-columns: repeat(var(--crs-cols), minmax(0, 1fr));
	gap: var(--crs-gap);
}

.crs-card {
	background: var(--crs-card);
	border-radius: 12px;
	padding: 32px 32px 30px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 290px;
}
.crs-card[hidden] { display: none; }

.crs-card-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 26px;
	width: 100%;
}

.crs-avatar {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #fff;
	font-size: 27px;
	line-height: 1;
	text-transform: uppercase;
}
.crs-wrap .crs-avatar img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
	margin: 0;
}

.crs-who { min-width: 0; }
.crs-name {
	font-size: 20px;
	font-weight: 500;
	color: var(--crs-ink);
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.crs-meta { font-size: 15px; color: var(--crs-muted); margin-top: 3px; }
.crs-wrap .crs-src { color: var(--crs-link); text-decoration: none; box-shadow: none; }
.crs-wrap a.crs-src:hover { text-decoration: underline; }

.crs-card > .crs-stars { margin-bottom: 12px; }

.crs-wrap .crs-text {
	margin: 0;
	padding: 0;
	font-size: 20px;
	line-height: 1.5;
	color: var(--crs-text);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	overflow-wrap: anywhere;
	white-space: pre-line;
}
.crs-card.is-expanded .crs-text {
	-webkit-line-clamp: unset;
	line-clamp: none;
	display: block;
}

.crs-wrap .crs-more,
.crs-wrap .crs-more:hover,
.crs-wrap .crs-more:focus {
	all: unset;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 20px;
	line-height: 1.5;
	color: var(--crs-faint);
	cursor: pointer;
}
.crs-wrap .crs-more:hover { color: #666; }
.crs-wrap .crs-more:focus-visible { outline: 2px solid var(--crs-link); outline-offset: 2px; border-radius: 3px; }
.crs-wrap .crs-more[hidden] { display: none; }

.crs-empty { text-align: center; color: var(--crs-muted); margin: 20px 0 0; }
.crs-empty[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
	.crs-card { padding: 28px 26px 26px; }
	.crs-wrap .crs-text, .crs-wrap .crs-more { font-size: 18px; }
	.crs-name { font-size: 19px; }
}
@media (max-width: 1100px) {
	.crs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.crs-wrap { --crs-gap: 16px; padding: 24px 16px 16px; }
	.crs-wrap .crs-heading { font-size: 24px; margin-bottom: 24px; }
	.crs-grid { grid-template-columns: minmax(0, 1fr); }
	.crs-tabs { justify-content: flex-start; gap: 8px; }
	.crs-wrap .crs-tab { font-size: 16px; padding: 15px 10px 13px; gap: 8px; }
	.crs-tab-icon { width: 22px; height: 22px; }
	.crs-overall { padding: 24px 16px 26px; }
	.crs-overall-title { font-size: 22px; }
	.crs-overall-num { font-size: 25px; }
	.crs-stars--lg { font-size: 24px; }
	.crs-card { padding: 24px 22px 22px; min-height: 0; }
	.crs-card-head { margin-bottom: 18px; }
	.crs-wrap .crs-text, .crs-wrap .crs-more { font-size: 17px; }
}
