/* No Smoke No Fire — Review Cards widget.
   Scroll-snap slider (native touch), Trustindex-style cards. Dots/arrows carry
   the same kit armor as the glitch carousel — theme/kit button styles cannot
   reshape them. */

.sg-reviews { position: relative; }

/* ── track ── */
.sg-reviews__track {
	display: flex;
	gap: var(--sgrv-gap, 20px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 6px 2px 10px; /* room for card shadows */
}
.sg-reviews__track::-webkit-scrollbar { display: none; }

/* ── card ── */
.sg-reviews__card {
	flex: 0 0 calc((100% - (var(--sgrv-per, 2) - 1) * var(--sgrv-gap, 20px)) / var(--sgrv-per, 2));
	scroll-snap-align: start;
	background: #ffffff;
	border-radius: 14px;
	padding: 22px 24px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	min-width: 0;
	box-sizing: border-box;
}

.sg-reviews__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}
.sg-reviews__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	overflow: hidden;
}
.sg-reviews__who { min-width: 0; }
.sg-reviews__name {
	font-weight: 700;
	font-size: 15px;
	color: #16232e;
	line-height: 1.3;
	overflow-wrap: anywhere;
}
.sg-reviews__date { font-size: 13px; color: #8a939b; line-height: 1.4; }
.sg-reviews__g { margin-left: auto; flex: none; }
.sg-reviews__g svg { width: 22px; height: 22px; display: block; }

.sg-reviews__stars {
	display: flex;
	align-items: center;
	gap: 3px;
	margin-bottom: 10px;
}
.sg-reviews__star svg { display: block; width: var(--sgrv-star, 18px); height: var(--sgrv-star, 18px); }
.sg-reviews__verified { margin-left: 6px; }
.sg-reviews__verified svg { display: block; width: calc(var(--sgrv-star, 18px) * 0.9); height: calc(var(--sgrv-star, 18px) * 0.9); }

.sg-reviews__text {
	font-size: 15px;
	line-height: 1.55;
	color: #3a4148;
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--sgrv-lines, 4);
	overflow: hidden;
}
.sg-reviews__card.is-expanded .sg-reviews__text {
	display: block;
	-webkit-line-clamp: none;
	overflow: visible;
}

.sg-reviews__more {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin-top: 12px;
	align-self: flex-start;
	font-size: 14px;
	color: #8a939b;
	cursor: pointer;
	text-decoration: none;
}
.sg-reviews__more:hover { text-decoration: underline; }
.sg-reviews__card:not(.is-clamped):not(.is-expanded) .sg-reviews__more { display: none; }

/* ── arrows (kit-armored) ── */
.sg-reviews__nav {
	appearance: none !important;
	-webkit-appearance: none !important;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0;
	border-radius: 50%;
	background-color: #ffffff;
	color: #16232e;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
	background-image: none !important;
	text-shadow: none !important;
	cursor: pointer;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.sg-reviews__nav svg { display: block; width: 16px; height: 16px; }
.sg-reviews__nav--prev { left: -14px; }
.sg-reviews__nav--next { right: -14px; }
.sg-reviews__nav[disabled] { opacity: 0.35; cursor: default; }
.sg-reviews__nav:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ── dots (kit-armored) ── */
.sg-reviews__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--sgrv-dotgap, 8px);
	margin-top: 18px;
	flex-wrap: wrap;
}
.sg-reviews__dot {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 10px;
	height: 10px;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	line-height: 0 !important;
	font-size: 0 !important;
	box-shadow: none !important;
	background-image: none !important;
	text-shadow: none !important;
	flex: none;
	background-color: #cccccc;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.sg-reviews__dot:hover { transform: scale(1.2); }
.sg-reviews__dot.is-active { background-color: #16232e; }
.sg-reviews__dot:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.sg-reviews__track { scroll-behavior: auto; }
}

/* ── review modal (v1.11.2): "Read more" opens the full review in a popup ── */
.sg-reviews__modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sg-reviews__modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
.sg-reviews__modal-scrim {
	position: absolute;
	inset: 0;
	background: rgba(10, 12, 14, 0.82);
}
.sg-reviews__modal .sg-reviews__card--modal {
	position: relative;
	z-index: 2;
	flex: none;
	width: min(560px, 100%);
	max-height: 82vh;
	overflow-y: auto;
	cursor: default;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	transform: translateY(16px) scale(0.97);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.sg-reviews__modal.is-open .sg-reviews__card--modal { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.sg-reviews__modal,
	.sg-reviews__modal .sg-reviews__card--modal { transition: none; }
}
.sg-reviews__card--modal .sg-reviews__text {
	display: block;
	-webkit-line-clamp: none;
	overflow: visible;
}
.sg-reviews__modal-close {
	appearance: none !important;
	-webkit-appearance: none !important;
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	min-width: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: none !important;
	background-image: none !important;
	color: inherit;
	opacity: 0.45;
	cursor: pointer;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
	font-size: 0;
	transition: opacity 0.15s ease;
}
.sg-reviews__modal-close:hover { opacity: 1; background: none !important; }
.sg-reviews__modal-close svg { width: 15px; height: 15px; display: block; }
body.sg-rv-lock { overflow: hidden; }
