/* Lucci Show Google Reviews */

.lsgr,
.lsgr-badge {
	--lsgr-bg: transparent;
	--lsgr-card: #f4f4f4;
	--lsgr-text: #222;
	--lsgr-muted: #8c8c8c;
	--lsgr-star: #f6bb06;
	--lsgr-star-empty: #dadada;
	--lsgr-verified: #1a73e8;
	--lsgr-nav: #fff;
	--lsgr-nav-shadow: 0 2px 8px rgb(0 0 0 / 18%);
	--lsgr-radius: 8px;
	--lsgr-gap: 16px;
	--lsgr-lines: 4;
	box-sizing: border-box;
	color: var(--lsgr-text);
	font-size: 15px;
	line-height: 1.5;
}

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

.lsgr--dark,
.lsgr-badge.lsgr--dark {
	--lsgr-card: #2b2b2b;
	--lsgr-text: #f1f1f1;
	--lsgr-muted: #a8a8a8;
	--lsgr-star-empty: #555;
	--lsgr-nav: #3a3a3a;
}

.lsgr {
	container-type: inline-size;
	width: 100%;
	margin: 24px 0;
	background: var(--lsgr-bg);
}

.lsgr-inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ---------- Summary ---------- */

.lsgr-summary {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}

.lsgr-summary__word {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.lsgr-summary__count {
	color: var(--lsgr-text);
	font-size: 14px;
}

.lsgr-gword {
	display: inline-flex;
	margin-top: 4px;
	font-family: "Product Sans", Arial, Helvetica, sans-serif;
	font-size: 28px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -.5px;
}

.lsgr--dark .lsgr-gword span:first-child,
.lsgr--dark .lsgr-gword span:nth-child(4) {
	color: #8ab4f8 !important;
}

.lsgr-write {
	display: inline-block;
	margin-top: 10px;
	padding: 7px 16px;
	border: 1px solid var(--lsgr-star-empty);
	border-radius: 999px;
	color: var(--lsgr-text) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background .2s, border-color .2s;
}

.lsgr-write:hover,
.lsgr-write:focus-visible {
	border-color: var(--lsgr-muted);
	background: var(--lsgr-card);
}

/* ---------- Stars ---------- */

.lsgr-stars {
	display: inline-flex;
	gap: 1px;
	color: var(--lsgr-star, #f6bb06);
	line-height: 1;
	vertical-align: middle;
}

.lsgr-star {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.lsgr-star--empty {
	fill: var(--lsgr-star-empty, #dadada);
}

.lsgr-stars--lg .lsgr-star {
	width: 28px;
	height: 28px;
}

/* ---------- Body / track ---------- */

.lsgr-body {
	position: relative;
	min-width: 0;
	flex: 1;
}

.lsgr-track {
	display: grid;
	gap: var(--lsgr-gap);
}

.lsgr--grid .lsgr-track {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	align-items: start;
}

.lsgr--list .lsgr-track {
	grid-template-columns: 1fr;
}

/* Slider */
.lsgr--slider .lsgr-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 2px;
	outline: none;
}

.lsgr--slider .lsgr-track::-webkit-scrollbar {
	display: none;
}

.lsgr--slider .lsgr-card {
	--per-view: 1;
	flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--lsgr-gap)) / var(--per-view));
	scroll-snap-align: start;
}

/* Nuolille varataan oma tila korttien sivuilta, etteivät ne peitä kortteja. */
.lsgr--slider .lsgr-body {
	container-type: inline-size;
	padding: 0 var(--lsgr-nav-space);
	--lsgr-nav-size: 32px;
	--lsgr-nav-space: 38px;
}

@container (min-width: 600px) {
	.lsgr--slider .lsgr-body {
		--lsgr-nav-size: 36px;
		--lsgr-nav-space: 46px;
	}
}

/* Korttien määrä riippuu slider-alueen leveydestä. */
@container (min-width: 520px) {
	.lsgr--slider .lsgr-card { --per-view: 2; }
}

@container (min-width: 780px) {
	.lsgr--slider .lsgr-card { --per-view: 3; }
}

@container (min-width: 1060px) {
	.lsgr--slider .lsgr-card { --per-view: 4; }
}

/* Leveällä yhteenveto sliderin vasemmalle puolelle. */
@container (min-width: 860px) {
	.lsgr--slider.lsgr--has-summary .lsgr-inner {
		flex-direction: row;
		align-items: center;
		gap: 28px;
	}

	.lsgr--slider.lsgr--has-summary .lsgr-summary {
		flex: 0 0 200px;
	}
}

/* ---------- Card ---------- */

.lsgr-card {
	min-width: 0;
}

.lsgr-card__inner {
	height: 100%;
	padding: 20px;
	border-radius: var(--lsgr-radius);
	background: var(--lsgr-card);
}

.lsgr-card__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.lsgr-avatar {
	flex: 0 0 40px;
	width: 40px !important;
	height: 40px !important;
	border-radius: 50%;
	object-fit: cover;
}

.lsgr-avatar--initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
}

.lsgr-card__meta {
	flex: 1;
	min-width: 0;
}

.lsgr-card__name {
	overflow: hidden;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.lsgr-card__date {
	color: var(--lsgr-muted);
	font-size: 13px;
}

.lsgr-card__source .lsgr-gicon {
	display: block;
	width: 20px;
	height: 20px;
}

.lsgr-card__rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.lsgr-verified svg {
	display: block;
	width: 15px;
	height: 15px;
}

.lsgr-verified circle {
	fill: var(--lsgr-verified);
}

.lsgr-verified path {
	fill: none;
	stroke: #fff;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lsgr-card__text {
	max-height: calc(1.5em * var(--lsgr-lines));
	padding-right: 6px;
	overflow-y: auto;
	overflow-wrap: anywhere;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--lsgr-star-empty) transparent;
}

.lsgr--full-text .lsgr-card__text {
	max-height: none;
	padding-right: 0;
	overflow: visible;
}

.lsgr-card__text::-webkit-scrollbar {
	width: 4px;
}

.lsgr-card__text::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background: var(--lsgr-star-empty);
}

.lsgr-card__text:focus-visible {
	outline: 2px solid var(--lsgr-verified);
	outline-offset: 2px;
}

/* ---------- Nav ---------- */

.lsgr-nav {
	position: absolute;
	top: calc(50% - 22px);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--lsgr-nav-size, 36px);
	height: var(--lsgr-nav-size, 36px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lsgr-nav) !important;
	box-shadow: var(--lsgr-nav-shadow);
	color: var(--lsgr-text);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity .2s;
}

.lsgr-nav svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--lsgr-text);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lsgr-nav--prev { left: 0; }
.lsgr-nav--next { right: 0; }

.lsgr-nav:disabled {
	opacity: 0;
	pointer-events: none;
}

.lsgr-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
}

.lsgr-dots button {
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--lsgr-star-empty) !important;
	cursor: pointer;
	transition: transform .2s, background .2s;
}

.lsgr-dots button.is-active {
	background: var(--lsgr-muted) !important;
	transform: scale(1.25);
}

/* ---------- Badge ---------- */

.lsgr-badge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px 10px 12px;
	border-top: 4px solid #34a853;
	border-radius: var(--lsgr-radius);
	background: #fff;
	box-shadow: 0 2px 10px rgb(0 0 0 / 12%);
	color: var(--lsgr-text) !important;
	text-decoration: none !important;
	transition: box-shadow .2s;
}

.lsgr-badge.lsgr--dark {
	background: #2b2b2b;
}

a.lsgr-badge:hover {
	box-shadow: 0 4px 16px rgb(0 0 0 / 18%);
}

.lsgr-badge__icon .lsgr-gicon {
	display: block;
	width: 34px;
	height: 34px;
}

.lsgr-badge__body {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.lsgr-badge__title {
	font-size: 14px;
	font-weight: 600;
}

.lsgr-badge__score {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lsgr-badge__score strong {
	color: #e7711b;
	font-size: 17px;
}

.lsgr-badge__count {
	color: var(--lsgr-muted);
	font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
	.lsgr--slider .lsgr-track { scroll-behavior: auto; }
}
