.spyglass-statistics-widget {
	background-color: #f5f7fa;
	border-radius: 16px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 32px;
	font-family: "Helvetica Neue", Arial, sans-serif;
	color: #1a1a1a;
}

.spyglass-statistics-widget__header {
	text-align: left;
}

.spyglass-statistics-widget__title {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.spyglass-statistics-widget__body {
	display: flex;
	gap: 32px;
	align-items: stretch;
	justify-content: space-between;
	flex-wrap: wrap;
}

.spyglass-statistics-widget__details {
	flex: 1 1 0%;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.spyglass-statistics-widget__metrics {
	display: flex;
	gap: 48px;
	padding: 28px 32px;
	background-color: #ffffff;
	border-radius: 16px;
	box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
	border: 1px solid #e5e7eb;
}

.spyglass-statistics-widget__metrics-column {
	flex: 1 1 0%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.spyglass-statistics-widget__metric {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e7eb;
}

.spyglass-statistics-widget__metric:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.spyglass-statistics-widget__metric-label {
	font-size: 15px;
	color: #4b5563;
}

.spyglass-statistics-widget__metric-value {
	font-size: 22px;
	font-weight: 600;
	color: #111827;
}

.spyglass-statistics-widget__chart {
	flex: 0 0 320px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 12px 24px rgba(17, 24, 39, 0.06);
}

.spyglass-statistics-widget__donut {
	width: 260px;
	height: 260px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #d1d5db;
	position: relative;
}

.spyglass-statistics-widget__donut::after {
	content: "";
	position: absolute;
	width: 60%;
	height: 60%;
	background-color: #f5f7fa;
	border-radius: 50%;
}

.spyglass-statistics-widget__donut-label {
	position: relative;
	text-align: center;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: #1f2937;
	z-index: 1;
}

.spyglass-statistics-widget__legend {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px 24px;
	width: 100%;
}

.spyglass-statistics-widget__legend-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-radius: 8px;
	background-color: rgba(255, 255, 255, 0.7);
	box-shadow: 0 4px 12px rgba(17, 24, 39, 0.05);
}

.spyglass-statistics-widget__legend-swatch {
	width: 14px;
	height: 14px;
	border-radius: 4px;
}

.spyglass-statistics-widget__legend-label {
	flex: 1;
	font-size: 14px;
	color: #1f2937;
}

.spyglass-statistics-widget__legend-value {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

.spyglass-statistics-widget__message {
	padding: 16px 20px;
	border-radius: 8px;
	background-color: #fff4e6;
	color: #92400e;
}

@media (max-width: 767px) {
	.spyglass-statistics-widget {
		padding: 24px;
	}

	.spyglass-statistics-widget__body {
		flex-direction: column;
	}

	.spyglass-statistics-widget__metrics {
		flex-direction: column;
		gap: 24px;
		padding: 24px;
	}

	.spyglass-statistics-widget__chart {
		flex: 1 1 auto;
	}

	.spyglass-statistics-widget__donut {
		width: 220px;
		height: 220px;
	}

	.spyglass-statistics-widget__legend {
		grid-template-columns: 1fr;
	}
}

