/* ShopGen Testimonials — Warm Clay friendly defaults */

.sgt-wrap {
	--sgt-clay: #a84524;
	--sgt-clay-hover: #8f3a1e;
	--sgt-cream: #fdf2e9;
	--sgt-surface: #ffffff;
	--sgt-text: #1c1b19;
	--sgt-muted: #6e675e;
	--sgt-border: #e5ddd0;
	--sgt-radius: 14px;
	--sgt-gap: 18px;
	box-sizing: border-box;
	width: 100%;
	margin: 0 auto;
}

.sgt-wrap *,
.sgt-wrap *::before,
.sgt-wrap *::after {
	box-sizing: border-box;
}

.sgt-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sgt-gap);
}

.sgt-wrap.sgt-cols-2 .sgt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sgt-wrap.sgt-cols-3 .sgt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sgt-wrap.sgt-cols-4 .sgt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
	.sgt-wrap.sgt-cols-3 .sgt-grid,
	.sgt-wrap.sgt-cols-4 .sgt-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.sgt-wrap.sgt-cols-2 .sgt-grid,
	.sgt-wrap.sgt-cols-3 .sgt-grid,
	.sgt-wrap.sgt-cols-4 .sgt-grid {
		grid-template-columns: 1fr;
	}
}

.sgt-card {
	background: var(--sgt-surface);
	border: 1px solid var(--sgt-border);
	border-radius: var(--sgt-radius);
	padding: 22px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	box-shadow: 0 8px 24px rgba(28, 27, 25, 0.05);
}

.sgt-style-minimal .sgt-card {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 8px 0;
	border-bottom: 1px solid var(--sgt-border);
	border-radius: 0;
}

.sgt-style-quote .sgt-card {
	background: var(--sgt-cream);
	border-color: transparent;
	position: relative;
	padding-top: 28px;
}

.sgt-mark {
	position: absolute;
	top: 6px;
	left: 16px;
	font-size: 48px;
	line-height: 1;
	color: var(--sgt-clay);
	opacity: 0.35;
	font-family: Georgia, "Times New Roman", serif;
}

.sgt-stars {
	color: var(--sgt-clay);
	letter-spacing: 0.08em;
	font-size: 14px;
	line-height: 1;
}

.sgt-quote {
	color: var(--sgt-text);
	font-size: 15px;
	line-height: 1.65;
	flex: 1;
}

.sgt-quote p {
	margin: 0 0 0.75em;
}

.sgt-quote p:last-child {
	margin-bottom: 0;
}

.sgt-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

.sgt-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 48px;
	background: var(--sgt-cream);
}

.sgt-avatar--fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--sgt-clay);
	border: 1px solid var(--sgt-border);
}

.sgt-name {
	font-weight: 700;
	color: var(--sgt-text);
	font-size: 14px;
	line-height: 1.3;
}

.sgt-role {
	color: var(--sgt-muted);
	font-size: 13px;
	line-height: 1.3;
	margin-top: 2px;
}

.sgt-empty {
	color: var(--sgt-muted);
	font-size: 14px;
}

/* Carousel (Slick) — kill grid; never lock a short slick-list height */
.sgt-wrap.sgt-layout-carousel {
	position: relative;
	padding: 8px 40px 36px;
	width: 100%;
	max-width: 100%;
}

.sgt-wrap.sgt-layout-carousel .sgt-carousel,
.sgt-wrap.sgt-layout-carousel .sgt-grid.sgt-carousel,
.sgt-wrap.sgt-cols-2.sgt-layout-carousel .sgt-grid,
.sgt-wrap.sgt-cols-3.sgt-layout-carousel .sgt-grid,
.sgt-wrap.sgt-cols-4.sgt-layout-carousel .sgt-grid {
	display: block;
	grid-template-columns: none !important;
	gap: 0;
	width: 100%;
	max-width: 100%;
}

.sgt-wrap.sgt-layout-carousel .sgt-carousel:not(.slick-initialized) {
	display: flex;
	gap: 18px;
	overflow: hidden;
}

.sgt-wrap.sgt-layout-carousel .sgt-carousel:not(.slick-initialized) .sgt-card {
	flex: 0 0 calc(33.333% - 12px);
	min-width: 0;
	width: auto;
}

/* Critical: Slick often writes a tiny inline height — override it */
.sgt-wrap.sgt-layout-carousel .slick-list {
	margin: 0 -10px;
	width: 100%;
	height: auto !important;
	overflow: hidden;
}

.sgt-wrap.sgt-layout-carousel .slick-track {
	display: flex !important;
	align-items: stretch;
	height: auto !important;
}

.sgt-wrap.sgt-layout-carousel .slick-slide {
	padding: 8px 10px 12px;
	height: auto !important;
	float: none;
	box-sizing: border-box;
}

.sgt-wrap.sgt-layout-carousel .slick-slide > div,
.sgt-wrap.sgt-layout-carousel .sgt-slide-item {
	height: 100%;
	display: flex;
	flex-direction: column;
	width: 100%;
}

.sgt-wrap.sgt-layout-carousel .slick-slide .sgt-card {
	width: 100%;
	min-width: 0;
	min-height: 100%;
	height: auto;
	flex: 1 1 auto;
	box-sizing: border-box;
	overflow: visible;
}

.sgt-wrap.sgt-layout-carousel .slick-slide .sgt-quote {
	flex: 1 1 auto;
	overflow: visible;
}

.sgt-wrap.sgt-layout-carousel .slick-prev,
.sgt-wrap.sgt-layout-carousel .slick-next {
	width: 40px;
	height: 40px;
	z-index: 2;
	background: var(--sgt-clay) !important;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(168, 69, 36, 0.28);
	top: 50%;
	transform: translateY(-50%);
}

.sgt-wrap.sgt-layout-carousel .slick-prev { left: 0; }
.sgt-wrap.sgt-layout-carousel .slick-next { right: 0; }

.sgt-wrap.sgt-layout-carousel .slick-prev:before,
.sgt-wrap.sgt-layout-carousel .slick-next:before {
	color: #fff;
	opacity: 1;
	font-size: 18px;
	line-height: 1;
}

.sgt-wrap.sgt-layout-carousel .slick-dots {
	bottom: -4px;
	position: relative;
	margin-top: 8px;
}

.sgt-wrap.sgt-layout-carousel .slick-dots li button:before {
	color: var(--sgt-clay);
	opacity: 0.35;
	font-size: 10px;
}

.sgt-wrap.sgt-layout-carousel .slick-dots li.slick-active button:before {
	opacity: 1;
	color: var(--sgt-clay);
}

@media (max-width: 900px) {
	.sgt-wrap.sgt-layout-carousel {
		padding: 8px 12px 32px;
	}
	.sgt-wrap.sgt-layout-carousel .slick-prev { left: -4px; }
	.sgt-wrap.sgt-layout-carousel .slick-next { right: -4px; }
}
