:root {
	--glsr-star-full: url('../assets/stars/star-full.svg');
	--glsr-star-empty: url('../assets/stars/star-empty.svg');
	--glsr-star-half: url('../assets/stars/star-half.svg');
	--glsr-primary: #4f8f29;
}
.glsr-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	line-height: 1;
}
.glsr-star {
	display: inline-block;
	width: 1.25em;
	height: 1.25em;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	vertical-align: middle;
}
.glsr-star-full {
	background-image: var(--glsr-star-full);
}
.glsr-star-empty {
	background-image: var(--glsr-star-empty);
}
.glsr-star-half {
	background-image: var(--glsr-star-half);
}
.glsr-summary-wrap {
	margin-bottom: 30px;
}
.glsr-summary {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.glsr-summary-rating {
	font-size: 42px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.1;
}
.glsr-summary-text {
	font-size: 14px;
	color: #64748b;
}
.glsr-summary-percentages {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 450px;
	margin-top: 8px;
}
.glsr-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #334155;
}
.glsr-bar-label {
	width: 90px;
	flex-shrink: 0;
}
.glsr-bar-background {
	flex: 1;
	height: 8px;
	background: #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
	display: block;
}
.glsr-bar-background-percent {
	display: block;
	height: 100%;
	background: #4f8f29;
	border-radius: 4px;
}
.glsr-bar-percent {
	width: 38px;
	text-align: right;
	font-weight: 600;
	color: #64748b;
	flex-shrink: 0;
}
.glsr-reviews-wrap {
	margin-top: 30px;
}
.glsr-reviews {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.glsr-review {
	padding: 20px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	display: grid;
	grid-template-columns: 44px 1fr auto;
	grid-template-rows: auto auto 1fr;
	column-gap: 14px;
	row-gap: 6px;
}
.glsr-review-avatar {
	grid-column: 1;
	grid-row: 1 / span 3;
}
.glsr-review-avatar img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.glsr-review-author {
	grid-column: 2;
	grid-row: 1;
	font-weight: 700;
	font-size: 15px;
	color: #0f172a;
}
.glsr-review-date {
	grid-column: 3;
	grid-row: 1;
	font-size: 13px;
	color: #94a3b8;
}
.glsr-review-rating {
	grid-column: 2 / span 2;
	grid-row: 2;
}
.glsr-review-title {
	grid-column: 2 / span 2;
	grid-row: 3;
	margin-top: 4px;
}
.glsr-review-title h4 {
	font-size: 15px;
	font-weight: 700;
	color: #1e293b;
	margin: 0;
}
.glsr-review-content {
	grid-column: 2 / span 2;
	grid-row: 4;
	font-size: 14px;
	line-height: 1.6;
	color: #334155;
	margin-top: 6px;
}
.glsr-review-content p {
	margin: 0 0 8px 0;
}
.glsr-review-content p:last-child {
	margin-bottom: 0;
}
.glsr-form-wrap {
	background: #f8fafc;
	padding: 24px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	margin-bottom: 30px;
}
.glsr-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.glsr-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.glsr-label {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}
.glsr-input,
.glsr-textarea,
.glsr-select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #ffffff;
	font-size: 14px;
	color: #0f172a;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}
.glsr-input:focus,
.glsr-textarea:focus,
.glsr-select:focus {
	border-color: #4f8f29;
	box-shadow: 0 0 0 3px rgba(79, 143, 41, 0.15);
}
.glsr-button {
	display: inline-block;
	align-self: flex-start;
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	background: #4f8f29;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}
.glsr-button:hover {
	background: #3e7520;
	transform: translateY(-1px);
}
.glsr-form-message {
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
}
.glsr-form-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}
.glsr-form-failed {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}
@media (max-width: 600px) {
	.glsr-review {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}
	.glsr-review-avatar {
		display: none;
	}
}
