/* Testimonials Manager — self-contained styles.
   Override the --tsm-* custom properties in your theme to match any site's
   brand instead of editing this file. */

:root {
	--tsm-primary: #3667d8;
	--tsm-ink: #16213a;
	--tsm-body: #4a5568;
	--tsm-body-light: #7a8699;
	--tsm-border: #e2e6ee;
	--tsm-bg-card: #fff;
	--tsm-radius: 16px;
	--tsm-shadow: 0 10px 30px rgba(22, 33, 58, 0.08);
	--tsm-star: #f5a623;
}

.tsm-heading {
	text-align: center;
	margin-bottom: 24px;
}

.tsm-empty-notice {
	border: 1px dashed var(--tsm-border);
	border-radius: var(--tsm-radius);
	padding: 20px;
	text-align: center;
	color: var(--tsm-body-light);
	font-size: 14px;
}
.tsm-empty-notice a { color: var(--tsm-primary); }

.tsm-stars { display: flex; justify-content: center; gap: 3px; margin-bottom: 14px; }
.tsm-tile .tsm-stars { justify-content: flex-start; }
.tsm-stars__icon { width: 18px; height: 18px; color: var(--tsm-border); }
.tsm-stars__icon.is-filled { color: var(--tsm-star); }
.tsm-stars__icon svg { width: 100%; height: 100%; display: block; }

/* Carousel ---------------------------------------------------------------- */

.tsm-carousel { overflow: hidden; border-radius: var(--tsm-radius); }
.tsm-carousel__track {
	display: flex;
	transition: transform 0.4s ease;
}
.tsm-card {
	width: 100%;
	flex: 0 0 100%;
	box-sizing: border-box;
	background: var(--tsm-bg-card);
	border-radius: var(--tsm-radius);
	box-shadow: var(--tsm-shadow);
	padding: 40px;
	margin: 0;
	text-align: center;
}
.tsm-card blockquote {
	margin: 0 0 20px;
	font-size: 19px;
	font-weight: 600;
	color: var(--tsm-ink);
	line-height: 1.5;
	overflow-wrap: break-word;
}
.tsm-card figcaption span { display: block; color: var(--tsm-body-light); font-size: 14px; margin-top: 4px; }
.tsm-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.tsm-carousel__dot {
	width: 9px; height: 9px; border-radius: 50%;
	border: none; background: var(--tsm-border); cursor: pointer; padding: 0;
}
.tsm-carousel__dot.is-active { background: var(--tsm-primary); }

/* Grid ---------------------------------------------------------------------*/

.tsm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}
.tsm-tile {
	text-align: left;
	background: var(--tsm-bg-card);
	border-radius: var(--tsm-radius);
	box-shadow: var(--tsm-shadow);
	padding: 28px;
	margin: 0;
}
.tsm-tile blockquote {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 600;
	color: var(--tsm-ink);
	overflow-wrap: break-word;
}
.tsm-tile figcaption span { display: block; color: var(--tsm-body-light); font-size: 13px; margin-top: 2px; }
