.ecw-chart-widget {
	box-sizing: border-box;
	max-width: 100%;
	position: relative;
}

.ecw-chart-widget *,
.ecw-chart-widget *::before,
.ecw-chart-widget *::after {
	box-sizing: border-box;
}

.ecw-chart-canvas-wrap {
	min-height: 160px;
	position: relative;
	width: 100%;
}

.ecw-chart-canvas-wrap.ecw-pie-3d {
	perspective: 900px;
}

.ecw-chart-canvas-wrap.ecw-pie-3d .ecw-chart-canvas {
	transform: rotateX(18deg);
	transform-origin: center center;
}

.ecw-chart-canvas {
	display: block;
	height: 100% !important;
	width: 100% !important;
}

.ecw-range-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 12px;
}

.ecw-range-legend-align-left .ecw-range-legend {
	justify-content: flex-start;
	text-align: left;
}

.ecw-range-legend-align-center .ecw-range-legend {
	justify-content: center;
	text-align: center;
}

.ecw-range-legend-align-right .ecw-range-legend {
	justify-content: flex-end;
	text-align: right;
}

.ecw-range-legend-item {
	align-items: center;
	color: inherit;
	display: inline-flex;
	font-size: 0.9em;
	gap: 6px;
	line-height: 1.3;
}

.ecw-range-legend-swatch {
	border: 1px solid rgba(17, 24, 39, 0.16);
	border-radius: 3px;
	display: inline-block;
	height: 12px;
	width: 20px;
}

.ecw-empty-state {
	background: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 8px;
	color: #4b5563;
	padding: 16px;
	text-align: center;
}

.ecw-import-control {
	margin-bottom: 8px;
}

.ecw-import-control .button.is-busy {
	cursor: wait;
	opacity: 0.7;
}

.ecw-control-help {
	color: #6b7280;
	font-size: 12px;
	margin: 6px 0 0;
}

.ecw-import-overlay {
	align-items: center;
	background: rgba(17, 24, 39, 0.56);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 999999;
}

.ecw-import-dialog {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
	color: #111827;
	max-width: 560px;
	padding: 26px;
	position: relative;
	width: min(100%, 560px);
}

.ecw-import-dialog h2 {
	font-size: 20px;
	line-height: 1.25;
	margin: 0 36px 8px 0;
}

.ecw-import-description {
	color: #4b5563;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 20px;
}

.ecw-import-close {
	align-items: center;
	background: #f3f4f6;
	border: 0;
	border-radius: 999px;
	color: #374151;
	cursor: pointer;
	display: inline-flex;
	font-size: 24px;
	height: 32px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: 18px;
	top: 18px;
	width: 32px;
}

.ecw-import-field {
	display: block;
	margin: 0 0 16px;
}

.ecw-import-field span {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.ecw-import-field input {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-shadow: none;
	font-size: 14px;
	min-height: 40px;
	padding: 8px 10px;
	width: 100%;
}

.ecw-import-field small {
	color: #6b7280;
	display: block;
	font-size: 12px;
	margin-top: 5px;
}

.ecw-import-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 22px;
}
