/* Branded progressive enhancement for public single-choice selects. */
html body select.klima-native-select--enhanced {
	position: absolute !important;
	inset: auto !important;
	width: 1px !important;
	min-width: 1px !important;
	max-width: 1px !important;
	height: 1px !important;
	min-height: 1px !important;
	max-height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.klima-select-trigger {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 24px;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 15px;
	border: 1px solid #cbd5e3;
	border-radius: 11px;
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	box-shadow: 0 1px 2px rgba(8, 20, 45, 0.05);
	color: #15233b;
	font: inherit;
	font-weight: 750;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.klima-select-trigger > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.klima-select-trigger > svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: #66758b;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 160ms ease;
}

.klima-select-trigger:is(:hover, :focus-visible),
.klima-select-trigger[aria-expanded="true"],
.klima-select-trigger[aria-invalid="true"] {
	border-color: var(--klima-action, #ff3556);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(255, 53, 86, 0.13), 0 8px 22px rgba(8, 20, 45, 0.1);
	outline: 0;
}

.klima-select-trigger[aria-expanded="true"] > svg { transform: rotate(180deg); }
.klima-select-trigger:disabled { opacity: 0.55; cursor: not-allowed; }

.klima-select-popup__scrim {
	position: fixed;
	inset: 0;
	z-index: 999970;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(7, 12, 34, 0.12);
	cursor: default;
}

.klima-select-popup {
	position: fixed;
	z-index: 999980;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 8px;
	border: 1px solid rgba(134, 153, 180, 0.3);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 24px 70px rgba(4, 12, 35, 0.28), 0 4px 14px rgba(4, 12, 35, 0.12);
	opacity: 0;
	transform: translateY(-6px) scale(0.985);
	transform-origin: top center;
	transition: opacity 140ms ease, transform 140ms ease;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: #b8c3d3 transparent;
}

.klima-select-popup.opens-above {
	transform: translateY(6px) scale(0.985);
	transform-origin: bottom center;
}

.klima-select-popup.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.klima-select-popup__group {
	padding: 11px 12px 6px;
	color: #728097;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.klima-select-popup__option {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 22px;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 11px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #1d2a40;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.klima-select-popup__option > svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentcolor;
	stroke-width: 2.3;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0;
}

.klima-select-popup__option:is(:hover, :focus-visible) {
	background: #f1f5fb;
	color: #0e5fab;
	outline: 0;
}

.klima-select-popup__option[aria-selected="true"] {
	background: linear-gradient(135deg, #fff0f3, #f5f8ff);
	color: #c81e42;
}

.klima-select-popup__option[aria-selected="true"] > svg { opacity: 1; }
.klima-select-popup__option:disabled { color: #929daf; cursor: not-allowed; }

@media (max-width: 782px) {
	.klima-select-popup__scrim {
		background: rgba(6, 10, 31, 0.28);
		backdrop-filter: blur(1.5px);
	}

	.klima-select-popup {
		padding: 7px;
		border-radius: 18px;
		box-shadow: 0 28px 80px rgba(4, 10, 30, 0.38);
	}

	.klima-select-popup__option { min-height: 54px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.klima-select-popup,
	.klima-select-trigger,
	.klima-select-trigger > svg { transition: none; }
}
