.lgr-wrapper {
	max-width: 100%;
	font-family: inherit;
	box-sizing: border-box;
}

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

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

.lgr-summary {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 12px;
}

.lgr-summary-label {
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-size: 0.85em;
	color: #444;
}

.lgr-summary-rating {
	font-size: 1.1em;
	font-weight: 700;
}

.lgr-summary-count {
	font-weight: 600;
	font-size: 0.85em;
	text-transform: uppercase;
	color: #444;
}

.lgr-stars {
	color: #fbbc04;
	letter-spacing: 1px;
	font-size: 0.95em;
}

.lgr-google-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e0e0e0;
	font-weight: 700;
	font-size: 11px;
	color: #4285f4;
	flex-shrink: 0;
}

/* ---------- Track / outer wrapper (handles carousel nav buttons) ---------- */

.lgr-track-outer {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ---------- Reviews container — layout variants ---------- */

.lgr-reviews {
	display: grid;
	gap: 16px;
	width: 100%;
}

/* Grid layout: responsive auto-fit columns */
.lgr-layout-grid .lgr-reviews {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* List layout: single column, full width cards */
.lgr-layout-list .lgr-reviews {
	grid-template-columns: 1fr;
}

/* Carousel layout: horizontal scroll-snap row of fixed-width cards */
.lgr-layout-carousel .lgr-reviews {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none; /* Firefox */
	padding-bottom: 4px;
}

.lgr-layout-carousel .lgr-reviews::-webkit-scrollbar {
	display: none;
}

.lgr-layout-carousel .lgr-review {
	flex: 0 0 calc(33.333% - 11px);
	scroll-snap-align: start;
}

.lgr-nav {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	color: #444;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease;
}

.lgr-nav:hover:not(:disabled) {
	background: #f1f1f1;
}

.lgr-nav:disabled {
	opacity: 0.3;
	cursor: default;
}

/* ---------- Review card ---------- */

.lgr-review {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
}

.lgr-review-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	position: relative;
}

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

.lgr-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 1.1em;
}

.lgr-author-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.lgr-author-name {
	font-weight: 600;
	font-size: 0.95em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lgr-review-date {
	font-size: 0.8em;
	color: #80868b;
}

.lgr-review-google-icon {
	margin-left: auto;
}

.lgr-review-text {
	font-size: 0.9em;
	line-height: 1.5;
	margin: 8px 0 0;
	color: #3c4043;
}

.lgr-read-more,
.lgr-read-less {
	background: none;
	border: none;
	padding: 0;
	color: #1a73e8;
	font-size: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}

.lgr-error {
	color: #c5221f;
	font-style: italic;
}

/* ---------- Responsive breakpoints ---------- */

@media (max-width: 900px) {
	.lgr-layout-carousel .lgr-review {
		flex: 0 0 calc(50% - 8px);
	}
}

@media (max-width: 600px) {
	.lgr-layout-grid .lgr-reviews {
		grid-template-columns: 1fr;
	}

	.lgr-layout-carousel .lgr-review {
		flex: 0 0 calc(100% - 4px);
	}

	.lgr-nav {
		width: 32px;
		height: 32px;
	}

	.lgr-summary {
		gap: 6px;
	}
}
