.aps-agg-rating {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 24px;
	margin: 16px 0 20px;
}

.aps-agg-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f3f4f6;
}

.aps-agg-score-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 80px;
	padding: 12px 16px;
	border-radius: 6px;
	background: var(--cs-light-accent-color, #2958ff);
	color: #fff;
	flex-shrink: 0;
}

.aps-agg-score {
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
}

.aps-agg-scale {
	font-size: 11px;
	font-weight: 500;
	opacity: 0.9;
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.aps-agg-info {
	flex: 1;
}

.aps-agg-title {
	font-size: 18px;
	font-weight: 600;
	color: #111827;
	margin: 0 0 6px;
	line-height: 1.3;
}

.aps-agg-count {
	display: block;
	font-size: 13px;
	color: #6b7280;
}

.aps-agg-bars {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aps-agg-bar-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.aps-agg-bar-item:last-child {
	margin-bottom: 0;
}

.aps-agg-bar-label {
	flex: 0 0 100px;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
}

.aps-agg-bar-track {
	flex: 1;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
}

.aps-agg-bar-fill {
	height: 100%;
	border-radius: 4px;
	background: var(--cs-light-accent-color, #2958ff);
}

.aps-agg-bar-score {
	flex: 0 0 28px;
	text-align: right;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

[data-scheme=dark] .aps-agg-rating {
	background: #1e2023;
	border-color: #3a3d42;
}

[data-scheme=dark] .aps-agg-header {
	border-bottom-color: #3a3d42;
}

[data-scheme=dark] .aps-agg-title {
	color: #e8e8e8;
}

[data-scheme=dark] .aps-agg-count {
	color: #9ca3af;
}

[data-scheme=dark] .aps-agg-bar-label {
	color: #d1d5db;
}

[data-scheme=dark] .aps-agg-bar-track {
	background: #3a3d42;
}

[data-scheme=dark] .aps-agg-bar-score {
	color: #d1d5db;
}

@media (max-width: 600px) {
	.aps-agg-rating {
		padding: 16px;
	}

	.aps-agg-header {
		gap: 14px;
	}

	.aps-agg-score-block {
		min-width: 64px;
		padding: 10px 12px;
	}

	.aps-agg-score {
		font-size: 26px;
	}

	.aps-agg-title {
		font-size: 16px;
	}

	.aps-agg-bar-label {
		flex: 0 0 72px;
		font-size: 12px;
	}

	.aps-agg-bar-score {
		flex: 0 0 24px;
		font-size: 12px;
	}
}
