/* ===== Front-end : avis Google ===== */
.grs-reviews {
	--grs-primary: #1a73e8;
	--grs-star: #fbbc04;
	--grs-border: #e6e6e6;
	--grs-text: #202124;
	--grs-text-muted: #5f6368;
	margin: 24px 0;
}

.grs-layout-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}

.grs-layout-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.grs-layout-carousel {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 10px;
}
.grs-layout-carousel .grs-review-card {
	min-width: 280px;
	scroll-snap-align: start;
	flex: 0 0 auto;
}

.grs-review-card {
	background: #fff;
	border: 1px solid var(--grs-border);
	border-radius: 12px;
	padding: 18px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.grs-review-header {
	display: flex;
	align-items: center;
	gap: 10px;
}

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

.grs-avatar-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--grs-primary);
	color: #fff;
	font-weight: 600;
	text-transform: uppercase;
}

.grs-author-block {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	min-width: 0;
}

.grs-author {
	font-weight: 600;
	color: var(--grs-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.grs-stars {
	color: var(--grs-star);
	font-size: 14px;
	letter-spacing: 1px;
}

.grs-google-logo {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--grs-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
	color: var(--grs-primary, #1a73e8);
}

.grs-review-text {
	color: var(--grs-text);
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.grs-review-date {
	color: var(--grs-text-muted);
	font-size: 12px;
}

/* Badge */
.grs-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid var(--grs-border, #e6e6e6);
	border-radius: 30px;
	background: #fff;
	text-decoration: none;
	color: var(--grs-text, #202124);
	font-size: 14px;
}
.grs-badge:hover { box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.grs-badge-rating { font-weight: 700; }
.grs-badge-total { color: var(--grs-text-muted, #5f6368); font-size: 12px; }

/* ===== Admin ===== */
.grs-wrap .grs-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 20px;
	margin: 20px 0;
	max-width: 900px;
}
.grs-card-info { background: #f0f6fc; border-color: #c3d9ed; }
.grs-summary { display: flex; flex-direction: column; gap: 4px; }
.grs-avatar-thumb { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.grs-reviews-table td, .grs-reviews-table th { vertical-align: middle; }
#grs-refresh-feedback { margin: 10px 0; }
#grs-refresh-feedback .notice { padding: 8px 12px; }

.grs-layout-picker {
	display: flex;
	gap: 12px;
}
.grs-layout-option {
	cursor: pointer;
}
.grs-layout-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.grs-layout-option-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 90px;
	padding: 14px 10px;
	border: 2px solid #dcdcde;
	border-radius: 8px;
	color: #50575e;
	font-size: 13px;
	transition: border-color .15s, background .15s;
}
.grs-layout-option-box .dashicons {
	font-size: 22px;
	width: 22px;
	height: 22px;
}
.grs-layout-option input[type="radio"]:checked + .grs-layout-option-box {
	border-color: var(--grs-primary, #1a73e8);
	background: #f0f6fc;
	color: #1a73e8;
	font-weight: 600;
}

.grs-password-field {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.grs-toggle-visibility {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px !important;
	height: 30px;
}

/* ===== Carrousel "Avis Clients" ===== */
.grs-carousel-wrap {
	position: relative;
}

.grs-title {
	text-align: center;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.5px;
	color: var(--grs-text, #202124);
	margin: 0 0 28px;
	text-transform: uppercase;
}
.grs-title-dot {
	color: var(--grs-primary, #1a73e8);
}

.grs-carousel-track {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	margin-bottom: 18px;
}

.grs-carousel-card {
	background: var(--grs-surface, #f7f7f8);
	border-radius: 10px;
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	transition: opacity .2s;
}
.grs-carousel-card[hidden] { display: none; }

.grs-avatar-lg {
	width: 64px;
	height: 64px;
	margin-bottom: 6px;
}
.grs-avatar-lg.grs-avatar-placeholder {
	font-size: 24px;
}

.grs-author-centered {
	font-weight: 600;
	font-size: 15px;
	color: var(--grs-text, #202124);
}

.grs-carousel-card .grs-stars {
	font-size: 15px;
	margin-bottom: 4px;
}

.grs-review-text-clamped {
	font-size: 13px;
	color: var(--grs-text-muted, #5f6368);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 4px 0;
}

.grs-read-more {
	background: none;
	border: none;
	color: var(--grs-primary, #1a73e8);
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	padding: 0;
	margin-top: -2px;
}

.grs-carousel-card .grs-review-date {
	font-size: 12px;
	color: var(--grs-text-muted, #5f6368);
	margin-top: 6px;
}

.grs-carousel-card .grs-google-logo {
	margin-top: 8px;
}

.grs-carousel-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 30px;
}
.grs-dot {
	display: inline-block;
	width: 8px !important;
	height: 8px !important;
	border-radius: 50% !important;
	background: #d6d6d6 !important;
	cursor: pointer;
	transition: background .2s, transform .2s;
}
.grs-dot.is-active {
	background: var(--grs-text-muted, #8a8a8a) !important;
	transform: scale(1.3);
}

.grs-carousel-strip {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 4px 4px 12px;
}
.grs-strip-card {
	flex: 0 0 auto;
	scroll-snap-align: start;
	min-width: 320px;
	max-width: 380px;
	background: #fff;
	border: 1px solid var(--grs-border, #e6e6e6);
	border-radius: 10px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.grs-strip-header {
	display: flex;
	align-items: center;
	gap: 10px;
}
.grs-strip-author-block {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	min-width: 0;
}
.grs-strip-card .grs-review-text {
	font-size: 14px;
	color: var(--grs-text, #202124);
}
.grs-google-logo-round {
	border-radius: 50%;
}

@media (max-width: 640px) {
	.grs-carousel-track {
		display: flex !important;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 12px;
		padding-bottom: 6px;
		scrollbar-width: none;
	}
	.grs-carousel-track::-webkit-scrollbar {
		display: none;
	}
	.grs-carousel-card {
		flex: 0 0 85%;
		scroll-snap-align: center;
	}
	.grs-carousel-card[hidden] {
		display: flex !important;
	}
}

.grs-badge-source {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
}
.grs-badge-manual {
	background: #fef3e2;
	color: #9a6700;
}
.grs-badge-google {
	background: #e8f0fe;
	color: #1a73e8;
}
.grs-delete-review {
	color: #b32d2e;
	text-decoration: none;
}
.grs-delete-review:hover {
	color: #dc3232;
}
.grs-toggle-manual-form {
	background: none;
	border: none;
	color: #1a73e8;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}

