.lcps-google-reviews {
	--lcps-brand: #e85d2b;
	--lcps-brand-dark: #c94d23;
	--lcps-brand-light: #fdf0eb;
	--lcps-brand-border: #f5c4b0;
	--lcps-brand-shadow: rgba(232, 93, 43, 0.12);
	margin: 2.5rem 0;
}

.lcps-google-reviews__title {
	margin-bottom: 1.5rem;
}

.lcps-google-reviews__summary {
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	padding: 1.25rem 1.5rem;
}

.lcps-google-reviews__score {
	color: #0f172a;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
}

.lcps-google-reviews__score span {
	color: #64748b;
	font-size: 1.125rem;
	font-weight: 500;
}

.lcps-google-reviews__meta {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.lcps-google-reviews__count {
	color: #475569;
	font-size: 0.95rem;
	margin: 0;
}

.lcps-google-reviews__link {
	color: var(--lcps-brand);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.lcps-google-reviews__link:hover {
	color: var(--lcps-brand-dark);
	text-decoration: underline;
}

/* --- Carrousel (défaut) --- */
.lcps-google-reviews__carousel {
	position: relative;
}

.lcps-google-reviews__viewport {
	cursor: grab;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	touch-action: pan-x;
}

.lcps-google-reviews__viewport::-webkit-scrollbar {
	display: none;
}

.lcps-google-reviews__viewport.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
	user-select: none;
}

.lcps-google-reviews__track {
	display: flex;
	gap: 1rem;
	padding: 0.25rem 0.125rem 0.75rem;
}

.lcps-google-reviews--carousel .lcps-google-reviews__item {
	flex: 0 0 clamp(260px, 78vw, 340px);
	scroll-snap-align: start;
}

.lcps-carousel__btn {
	align-items: center;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
	color: #0f172a;
	cursor: pointer;
	display: none;
	font-size: 1.5rem;
	height: 2.5rem;
	justify-content: center;
	line-height: 1;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.5rem;
	z-index: 2;
}

.lcps-carousel__btn:hover:not(:disabled) {
	background: var(--lcps-brand-light);
	border-color: var(--lcps-brand-border);
	color: var(--lcps-brand);
}

.lcps-carousel__btn:disabled {
	cursor: default;
	opacity: 0.35;
}

.lcps-carousel__btn--prev {
	left: -0.5rem;
}

.lcps-carousel__btn--next {
	right: -0.5rem;
}

.lcps-carousel__dots {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 0.75rem;
}

.lcps-carousel__dot {
	background: #cbd5e1;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	height: 0.5rem;
	padding: 0;
	transition: width 0.2s ease, background 0.2s ease;
	width: 0.5rem;
}

.lcps-carousel__dot.is-active {
	background: var(--lcps-brand);
	width: 1.25rem;
}

/* --- Grille / stack (layout alternatif) --- */
.lcps-google-reviews__list {
	display: grid;
	gap: 1rem;
}

.lcps-google-reviews--grid .lcps-google-reviews__list {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lcps-google-reviews__item {
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-height: 180px;
	padding: 1.25rem;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lcps-google-reviews__item:hover {
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.lcps-google-reviews__item-header {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	justify-content: space-between;
}

.lcps-google-reviews__author {
	color: #0f172a;
	font-weight: 600;
}

.lcps-google-reviews__text-wrap {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.65rem;
	position: relative;
}

.lcps-google-reviews__text-wrap.has-toggle::after {
	background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #f8fafc 78%);
	bottom: 2.35rem;
	content: "";
	height: 2.5rem;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	transition: opacity 0.25s ease;
}

.lcps-google-reviews__text-wrap.has-toggle.is-expanded::after {
	opacity: 0;
}

.lcps-google-reviews__text {
	border: 0;
	color: #334155;
	font-size: 0.95rem;
	font-style: normal;
	line-height: 1.65;
	margin: 0;
}

.lcps-google-reviews__text.is-truncated {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.lcps-google-reviews__text.is-expanded {
	-webkit-line-clamp: unset;
	display: block;
	overflow: visible;
}

.lcps-google-reviews__toggle {
	align-items: center;
	align-self: flex-start;
	background: linear-gradient(135deg, var(--lcps-brand-light) 0%, #fff 100%);
	border: 1px solid var(--lcps-brand-border);
	border-radius: 999px;
	box-shadow: 0 2px 8px var(--lcps-brand-shadow);
	color: var(--lcps-brand);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	gap: 0.4rem;
	letter-spacing: 0.01em;
	line-height: 1;
	padding: 0.5rem 0.9rem;
	position: relative;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
	z-index: 1;
}

.lcps-google-reviews__toggle:hover {
	background: linear-gradient(135deg, #fce8df 0%, var(--lcps-brand-light) 100%);
	border-color: var(--lcps-brand);
	box-shadow: 0 4px 12px rgba(232, 93, 43, 0.2);
	color: var(--lcps-brand-dark);
	transform: translateY(-1px);
}

.lcps-google-reviews__toggle:focus-visible {
	outline: 2px solid var(--lcps-brand);
	outline-offset: 2px;
}

.lcps-google-reviews__toggle-more,
.lcps-google-reviews__toggle-less {
	align-items: center;
	display: inline-flex;
	gap: 0.4rem;
}

.lcps-google-reviews__toggle-icon {
	display: inline-flex;
	line-height: 0;
	transition: transform 0.25s ease;
}

.lcps-google-reviews__toggle-less {
	display: none;
}

.lcps-google-reviews__toggle-less .lcps-google-reviews__toggle-icon {
	transform: rotate(180deg);
}

.lcps-google-reviews__toggle[aria-expanded="true"] .lcps-google-reviews__toggle-more {
	display: none;
}

.lcps-google-reviews__toggle[aria-expanded="true"] .lcps-google-reviews__toggle-less {
	display: inline-flex;
}

.lcps-google-reviews__date {
	color: #94a3b8;
	font-size: 0.85rem;
	margin-top: auto;
}

.lcps-stars {
	display: inline-flex;
	gap: 0.1rem;
	letter-spacing: 0.05em;
}

.lcps-star {
	font-size: 1rem;
	line-height: 1;
}

.lcps-star--full {
	color: #f59e0b;
}

.lcps-star--half {
	color: #f59e0b;
	opacity: 0.55;
}

.lcps-star--empty {
	color: #cbd5e1;
}

.lcps-google-reviews--empty {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	color: #9a3412;
	padding: 1rem;
}

@media (min-width: 768px) {
	.lcps-carousel__btn {
		display: inline-flex;
	}

	.lcps-google-reviews--carousel .lcps-google-reviews__item {
		flex-basis: clamp(280px, 32vw, 360px);
	}
}

@media (max-width: 640px) {
	.lcps-google-reviews__summary {
		align-items: flex-start;
		flex-direction: column;
	}

	.lcps-carousel__btn--prev {
		left: 0;
	}

	.lcps-carousel__btn--next {
		right: 0;
	}
}
