.airgreen-language-menu {
	position: relative;
}

.airgreen-language-switcher {
	--airgreen-language-accent: #0f766e;
	--airgreen-language-text: #18323f;
	--airgreen-language-muted: #687983;
	--airgreen-language-border: #d7e1e7;
	--airgreen-language-surface: #ffffff;
	position: relative;
	z-index: 9999;
	display: inline-block;
	color: var(--airgreen-language-text);
	font: 500 14px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	text-align: start;
}

.airgreen-language-toggle {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	gap: 7px;
	padding: 7px 10px;
	border: 1px solid rgba(15, 118, 110, .28);
	border-radius: 9px;
	background: rgba(255, 255, 255, .96);
	color: var(--airgreen-language-text);
	cursor: pointer;
	font: inherit;
	white-space: nowrap;
}

.airgreen-language-toggle:hover,
.airgreen-language-toggle:focus-visible,
.airgreen-language-toggle[aria-expanded="true"] {
	border-color: var(--airgreen-language-accent);
	outline: 2px solid rgba(15, 118, 110, .16);
	outline-offset: 1px;
}

.airgreen-language-icon {
	font-size: 16px;
	line-height: 1;
}

.airgreen-language-chevron {
	color: var(--airgreen-language-muted);
	font-size: 15px;
	transition: transform .16s ease;
}

.airgreen-language-toggle[aria-expanded="true"] .airgreen-language-chevron {
	transform: rotate(180deg);
}

.airgreen-language-panel {
	position: absolute;
	inset-block-start: calc(100% + 8px);
	inset-inline-end: 0;
	width: min(370px, calc(100vw - 24px));
	padding: 12px;
	border: 1px solid var(--airgreen-language-border);
	border-radius: 14px;
	background: var(--airgreen-language-surface);
	box-shadow: 0 20px 54px rgba(18, 48, 71, .22);
}

.airgreen-language-panel[hidden],
.airgreen-language-option-wrap[hidden] {
	display: none !important;
}

.airgreen-language-search {
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	margin: 0 0 9px;
	padding: 9px 11px;
	border: 1px solid var(--airgreen-language-border);
	border-radius: 9px;
	background: #fff;
	color: var(--airgreen-language-text);
	font: inherit;
}

.airgreen-language-search:focus {
	border-color: var(--airgreen-language-accent);
	outline: 2px solid rgba(15, 118, 110, .16);
}

.airgreen-language-list {
	display: grid;
	max-height: min(56vh, 430px);
	margin: 0 !important;
	padding: 0 !important;
	overflow: auto;
	overscroll-behavior: contain;
	list-style: none !important;
	scrollbar-gutter: stable;
}

.airgreen-language-option-wrap {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none !important;
}

.airgreen-language-option {
	box-sizing: border-box;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	width: 100%;
	min-height: 42px;
	padding: 8px 10px !important;
	border: 0 !important;
	border-radius: 8px;
	background: transparent !important;
	color: var(--airgreen-language-text) !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font: inherit !important;
	text-align: start;
}

a.airgreen-language-option {
	cursor: pointer;
}

.airgreen-language-option:hover,
.airgreen-language-option:focus-visible,
.airgreen-language-option-wrap.is-current .airgreen-language-option {
	background: #eef8f5 !important;
	outline: 0;
}

.airgreen-language-native,
.airgreen-language-english {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.airgreen-language-native {
	font-weight: 650;
}

.airgreen-language-english {
	color: var(--airgreen-language-muted);
	font-size: 12px;
	direction: ltr;
	text-align: start;
}

.airgreen-language-option.is-unavailable {
	cursor: not-allowed;
	opacity: .48;
}

.airgreen-language-note {
	margin: 9px 2px 0 !important;
	color: var(--airgreen-language-muted);
	font-size: 11px;
	line-height: 1.45;
}

.airgreen-gt-bridge,
li.menu-item-gtranslate,
li.trp-language-switcher-container {
	position: absolute !important;
	width: 1px !important;
	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;
	pointer-events: none !important;
}

.airgreen-language-switcher .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

html[dir="rtl"] .airgreen-language-switcher,
.airgreen-direction-rtl .airgreen-language-switcher {
	direction: rtl;
	text-align: start;
}

html[dir="rtl"] .airgreen-language-english,
.airgreen-direction-rtl .airgreen-language-english {
	direction: ltr;
}

html[data-airgreen-font="simplified_chinese"] body {
	font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

html[data-airgreen-font="traditional_chinese"] body {
	font-family: "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
}

html[data-airgreen-font="japanese"] body {
	font-family: "Yu Gothic", Meiryo, system-ui, sans-serif;
}

html[data-airgreen-font="korean"] body {
	font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}

html[data-airgreen-font="arabic"] body {
	font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

html[data-airgreen-font="hebrew"] body {
	font-family: Arial, "Segoe UI", sans-serif;
}

html[data-airgreen-font="devanagari"] body {
	font-family: "Nirmala UI", Mangal, system-ui, sans-serif;
}

html[data-airgreen-font="thai"] body {
	font-family: Tahoma, "Leelawadee UI", system-ui, sans-serif;
}

@media (max-width: 782px) {
	.airgreen-language-panel {
		position: fixed;
		inset: auto 12px 12px 12px;
		width: auto;
		max-height: 78vh;
	}

	.airgreen-language-list {
		max-height: 58vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.airgreen-language-chevron {
		transition: none;
	}
}
