/* Frill Thrills — multi-card Google reviews carousel */

.ft-gr {
	--ft-gr-card: #f0f2f5;
	--ft-gr-text: #1f1f1f;
	--ft-gr-muted: #9aa0a6;
	--ft-gr-gap: 14px;
	--ft-gr-cols: 2;
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ft-gr__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	container-type: inline-size;
	container-name: ft-gr-vp;
}

.ft-gr__track {
	display: flex;
	gap: var(--ft-gr-gap);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
	width: max-content;
}

.ft-gr__card {
	flex: 0 0 calc((100cqw - (var(--ft-gr-gap) * (var(--ft-gr-cols) - 1))) / var(--ft-gr-cols));
	width: calc((100cqw - (var(--ft-gr-gap) * (var(--ft-gr-cols) - 1))) / var(--ft-gr-cols));
	max-width: calc((100cqw - (var(--ft-gr-gap) * (var(--ft-gr-cols) - 1))) / var(--ft-gr-cols));
	box-sizing: border-box;
	background: var(--ft-gr-card);
	border-radius: 12px;
	padding: 18px 16px 16px;
	min-height: 210px;
	display: flex;
	flex-direction: column;
	border: 0;
	box-shadow: none;
}

/* Fallback when cqw unsupported */
@supports not (width: 1cqw) {
	.ft-gr__card {
		flex: 0 0 calc((100% - var(--ft-gr-gap)) / 2);
		width: calc((100% - var(--ft-gr-gap)) / 2);
		max-width: calc((100% - var(--ft-gr-gap)) / 2);
	}
}

.ft-gr__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.ft-gr__author {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.ft-gr__avatar {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.78rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
	background: #6b7280;
}

.ft-gr__name {
	font-weight: 700;
	font-size: 16px;
	color: var(--ft-gr-text);
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ft-gr__source {
	flex: 0 0 auto;
	line-height: 0;
	opacity: 0.95;
}

.ft-gr__source:hover {
	opacity: 1;
}

.ft-gr__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.ft-gr__stars {
	display: flex;
	gap: 1px;
	line-height: 1;
}

.ft-gr__star {
	color: #d1d5db;
	font-size: 1rem;
}

.ft-gr__star.is-on {
	color: #fbbc04;
}

.ft-gr__badge {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #1a73e8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.ft-gr__body {
	flex: 1;
	min-height: 0;
}

.ft-gr__text {
	margin: 0;
	color: #3c4043;
	font-size: 15px !important;
	line-height: 1.55;
}

.ft-gr__body.is-clamp .ft-gr__text {
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ft-gr__body.is-open .ft-gr__text {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

.ft-gr__more {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ft-gr-muted);
	font-size: 14px;
	cursor: pointer;
	text-align: left;
}

.ft-gr__more:hover {
	color: #5f6368;
	text-decoration: underline;
}

.ft-gr__nav {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e0e0e0;
	background: #fff;
	color: #5f6368;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ft-gr__nav:hover {
	background: #f8f9fa;
	color: #202124;
	border-color: #cfcfcf;
}

.ft-gr__nav:disabled {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.ft-gr__footer {
	display: none;
}

/* Widen Elementor column hosting the reviews when possible */
.elementor-widget-html:has(.ft-gr),
.elementor-widget-html:has([data-ft-gr-swapped="1"]) {
	width: 100%;
}

@media (max-width: 640px) {
	.ft-gr {
		gap: 4px;
	}

	.ft-gr__nav {
		width: 34px;
		height: 34px;
	}

	.ft-gr__card {
		min-height: 190px;
		padding: 16px 14px 14px;
	}
}
