/* LC Google Reviews — stili frontend */

.lcgr-wrap {
	--lcgr-bg: #ffffff;
	--lcgr-text: #202124;
	--lcgr-muted: #5f6368;
	--lcgr-border: #e0e0e0;
	--lcgr-star: #fbbc05;
	--lcgr-star-empty: #dadce0;
	--lcgr-accent: #1a73e8;

	color: var(--lcgr-text);
	font-size: 15px;
	line-height: 1.5;
	margin: 1.5em 0;
}

.lcgr-wrap.lcgr-dark {
	--lcgr-bg: #202124;
	--lcgr-text: #e8eaed;
	--lcgr-muted: #9aa0a6;
	--lcgr-border: #3c4043;
	--lcgr-star-empty: #5f6368;
	--lcgr-accent: #8ab4f8;
}

/* Header */
.lcgr-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.lcgr-google-logo {
	display: inline-flex;
	flex-shrink: 0;
}

.lcgr-header-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.lcgr-business-name {
	font-weight: 600;
	font-size: 17px;
}

.lcgr-summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.lcgr-summary-rating {
	font-weight: 700;
}

.lcgr-total {
	color: var(--lcgr-muted);
	font-size: 13px;
}

.lcgr-write-review {
	margin-left: auto;
	color: var(--lcgr-accent);
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
}

.lcgr-write-review:hover {
	text-decoration: underline;
}

/* Stelle */
.lcgr-stars {
	display: inline-flex;
	gap: 1px;
	line-height: 1;
}

.lcgr-star {
	color: var(--lcgr-star-empty);
	font-size: 16px;
}

.lcgr-star-filled {
	color: var(--lcgr-star);
}

/* Card recensione */
.lcgr-item {
	background: var(--lcgr-bg);
	border: 1px solid var(--lcgr-border);
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-sizing: border-box;
}

.lcgr-item-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

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

.lcgr-item-meta {
	display: flex;
	flex-direction: column;
}

.lcgr-author {
	font-weight: 600;
	color: var(--lcgr-text);
	text-decoration: none;
}

a.lcgr-author:hover {
	text-decoration: underline;
}

.lcgr-date {
	color: var(--lcgr-muted);
	font-size: 13px;
}

.lcgr-text {
	margin: 0;
	color: var(--lcgr-text);
}

/* Layout: griglia */
.lcgr-layout-grid .lcgr-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

/* Layout: lista */
.lcgr-layout-list .lcgr-items {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Layout: carosello */
.lcgr-layout-carousel .lcgr-items {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
}

.lcgr-layout-carousel .lcgr-item {
	flex: 0 0 min(320px, 85%);
	scroll-snap-align: start;
}

.lcgr-nav {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 8px;
}

.lcgr-nav button {
	background: var(--lcgr-bg);
	border: 1px solid var(--lcgr-border);
	border-radius: 50%;
	width: 36px;
	height: 36px;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--lcgr-text);
	transition: background 0.15s ease;
}

.lcgr-nav button:hover {
	background: var(--lcgr-border);
}

/* Errore (visibile solo agli admin) */
.lcgr-error {
	border: 1px dashed #d63638;
	color: #d63638;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
}

@media (max-width: 480px) {
	.lcgr-write-review {
		margin-left: 0;
		width: 100%;
	}
}
