.gra-reviews {
	--gra-columns: 3;
	--gra-gap: 24px;
}

/* Header: badge + leave button */
.gra-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}
.gra-badge {
	display: flex;
	align-items: center;
	gap: 10px;
}
.gra-badge-average {
	font-size: 2em;
	font-weight: 700;
	line-height: 1;
}
.gra-badge-count {
	font-size: 0.9em;
	opacity: 0.7;
}

/* Stars */
.gra-stars {
	display: inline-flex;
	gap: 2px;
	line-height: 1;
}
.gra-star {
	color: #d0d0d0;
	font-size: 1.1em;
}
.gra-star-filled {
	color: #fbbc05;
}

/* Layouts */
.gra-layout-grid .gra-list {
	display: grid;
	grid-template-columns: repeat(var(--gra-columns), minmax(0, 1fr));
	gap: var(--gra-gap);
}
.gra-layout-list .gra-list {
	display: flex;
	flex-direction: column;
	gap: var(--gra-gap);
}
.gra-carousel-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.gra-track {
	display: flex;
	gap: var(--gra-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px;
	scrollbar-width: none;
	flex: 1;
}
.gra-track::-webkit-scrollbar {
	display: none;
}
.gra-layout-carousel .gra-card {
	flex: 0 0 calc((100% - (var(--gra-columns) - 1) * var(--gra-gap)) / var(--gra-columns));
	scroll-snap-align: start;
}
.gra-carousel-nav {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	z-index: 2;
	transition: background 0.15s ease;
}
.gra-carousel-nav:hover {
	background: #f2f2f2;
}
.gra-prev { margin-right: 8px; }
.gra-next { margin-left: 8px; }

/* Card */
.gra-card {
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}
.gra-card-head {
	display: flex;
	align-items: center;
	gap: 10px;
}
.gra-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}
.gra-avatar-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e8eaed;
	color: #5f6368;
	font-weight: 700;
	font-size: 1.1em;
}
.gra-author {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}
.gra-author-name {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.gra-date {
	font-size: 0.82em;
	opacity: 0.65;
}
.gra-google-icon {
	flex: 0 0 auto;
	display: inline-flex;
}
.gra-text {
	font-size: 0.95em;
	line-height: 1.6;
	white-space: pre-line;
}
.gra-readmore {
	background: none;
	border: none;
	padding: 0;
	margin-left: 4px;
	color: #1a73e8;
	cursor: pointer;
	font: inherit;
	font-size: 0.9em;
}
.gra-readmore:hover {
	text-decoration: underline;
}
.gra-reply {
	background: rgba(0, 0, 0, 0.04);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.88em;
	line-height: 1.5;
}
.gra-reply-label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

/* Leave a review */
.gra-leave-wrap {
	position: relative;
}
.gra-leave-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #1a73e8;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 18px;
	font-size: 0.95em;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease;
}
.gra-leave-btn:hover {
	filter: brightness(1.08);
	color: #fff;
}
.gra-leave-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	min-width: 220px;
	z-index: 50;
	overflow: hidden;
}
.gra-leave-menu a {
	display: block;
	padding: 10px 14px;
	text-decoration: none;
	color: inherit;
	font-size: 0.92em;
}
.gra-leave-menu a:hover {
	background: rgba(0, 0, 0, 0.05);
}
/* Load More */
.gra-card[hidden] {
	display: none !important;
}
.gra-loadmore-wrap {
	text-align: center;
	margin-top: 24px;
}
.gra-loadmore {
	display: inline-flex;
	align-items: center;
	background: transparent;
	color: #1a73e8;
	border: 1px solid #1a73e8;
	border-radius: 8px;
	padding: 10px 22px;
	font-size: 0.95em;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
}
.gra-loadmore:hover {
	background: #1a73e8;
	color: #fff;
}

.gra-empty {
	opacity: 0.7;
	font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
	.gra-reviews { --gra-columns: 2; }
}
@media (max-width: 640px) {
	.gra-reviews { --gra-columns: 1; }
	.gra-header { flex-direction: column; align-items: flex-start; }
}
