.cgp-globe-container {
	overflow: hidden;
	position: relative;
}

.cgp-globe-container:fullscreen,
.cgp-globe-container:-webkit-full-screen {
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
}

.cgp-globe-container .cgp-globe-legend {
	position: absolute;
	top: auto !important;
	right: auto !important;
	bottom: 10px;
	left: 10px;
	z-index: 10;
}

.cgp-globe-container .cesium-viewer-infoBoxContainer {
	z-index: 20;
}

.cgp-globe-container .cesium-viewer,
.cgp-globe-container .cesium-widget,
.cgp-globe-container .cesium-widget canvas {
	width: 100% !important;
	height: 100% !important;
}

.cgp-globe-error {
	padding: 1rem;
	margin: 0;
	font-family: system-ui, sans-serif;
	font-size: 14px;
	color: #666;
}

.cgp-globe-error--overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	z-index: 2;
}

.cgp-globe-legend {
	position: absolute;
	top: auto;
	right: auto;
	bottom: 10px;
	left: 10px;
	z-index: 10;
	max-width: min(280px, 42vw);
	max-height: calc(100% - 20px);
	overflow: auto;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	padding: 10px 12px;
	font-family: system-ui, -apple-system, sans-serif;
	font-size: 13px;
	line-height: 1.35;
}

.cgp-globe-legend__title {
	font-weight: 600;
	margin: 0 0 8px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #444;
}

.cgp-globe-legend__group {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 4px;
	font-weight: 600;
	font-size: 12px;
	color: #222;
}

.cgp-globe-legend__group:first-of-type {
	margin-top: 2px;
}

.cgp-globe-legend__group-bar {
	width: 4px;
	height: 14px;
	border-radius: 2px;
	flex-shrink: 0;
}

.cgp-globe-legend__group-title {
	min-width: 0;
}

.cgp-globe-legend__row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.cgp-globe-legend__row:last-child {
	margin-bottom: 0;
}

.cgp-globe-legend__sym {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cgp-globe-legend__swatch {
	display: block;
	width: 18px;
	height: 18px;
	border-radius: 3px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
}

.cgp-globe-legend__swatch--arrow {
	width: 22px;
	height: 6px;
	border-radius: 1px;
}

.cgp-globe-legend__icon {
	display: block;
	object-fit: contain;
	border-radius: 2px;
}

.cgp-globe-legend__textwrap {
	flex: 1;
	min-width: 0;
}

.cgp-globe-legend__text {
	color: #333;
}

.cgp-globe-legend__desc {
	font-size: 11px;
	color: #555;
	margin-top: 2px;
	line-height: 1.3;
	max-height: 4.2em;
	overflow: hidden;
}

.cgp-globe-legend__hint {
	font-size: 11px;
	color: #666;
	margin: 0 0 8px;
	line-height: 1.35;
}

.cgp-globe-legend__details {
	margin-bottom: 6px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	padding-bottom: 4px;
}

.cgp-globe-legend__details:last-child {
	border-bottom: none;
}

.cgp-globe-legend__summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 12px;
	color: #222;
	padding: 2px 0;
}

.cgp-globe-legend__summary::-webkit-details-marker {
	display: none;
}

.cgp-globe-legend__summary-label {
	min-width: 0;
}

.cgp-globe-legend__items {
	margin-top: 6px;
	padding-left: 2px;
}

.cgp-globe-legend__row--clickable {
	cursor: pointer;
	border-radius: 4px;
	padding: 2px 4px;
	margin-left: -4px;
	margin-right: -4px;
}

.cgp-globe-legend__row--clickable:hover {
	background: rgba(0, 100, 200, 0.08);
}

.cgp-globe-legend__row--clickable:focus {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}
