:root {
	--dlt-switcher-accent: #2563eb;
}

.dlt-menu-language-switcher,
.dlt-floating-switcher-inner,
.dlt-inline-language-switcher {
	--dlt-surface: #fff;
	--dlt-surface-soft: #f8fafc;
	--dlt-text: #172033;
	--dlt-muted: #64748b;
	--dlt-border: rgba(15, 23, 42, .13);
	--dlt-shadow: 0 18px 44px rgba(15, 23, 42, .18);
	position: relative;
	box-sizing: border-box;
}

.dlt-theme-dark,
.dlt-dark-context {
	--dlt-surface: #172033;
	--dlt-surface-soft: #202b40;
	--dlt-text: #f8fafc;
	--dlt-muted: #aebbd0;
	--dlt-border: rgba(255, 255, 255, .15);
	--dlt-shadow: 0 20px 48px rgba(0, 0, 0, .38);
}

button.dlt-switcher-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .52rem;
	min-height: 2.55rem;
	margin: 0;
	padding: .52rem .78rem;
	box-sizing: border-box;
	border: 1px solid var(--dlt-border);
	border-radius: .72rem;
	background: var(--dlt-surface) !important;
	color: var(--dlt-text) !important;
	font: inherit;
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.dlt-menu-language-switcher > button.dlt-switcher-toggle {
	border-color: currentColor;
	border-color: color-mix(in srgb, currentColor 24%, transparent);
	background: transparent !important;
	color: inherit !important;
	box-shadow: none;
}

.dlt-menu-language-switcher[class*="dlt-theme-"] > button.dlt-switcher-toggle,
.dlt-menu-language-switcher[class*="dlt-theme-"] > button.dlt-switcher-toggle:hover,
.dlt-menu-language-switcher[class*="dlt-theme-"] > button.dlt-switcher-toggle:focus,
.dlt-menu-language-switcher[class*="dlt-theme-"].dlt-open > button.dlt-switcher-toggle {
	border-color: currentColor !important;
	border-color: color-mix(in srgb, currentColor 24%, transparent) !important;
	background: transparent !important;
	color: inherit !important;
}

button.dlt-switcher-toggle:hover,
button.dlt-switcher-toggle:focus-visible {
	border-color: var(--dlt-switcher-accent) !important;
	background: var(--dlt-surface) !important;
	color: var(--dlt-text) !important;
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dlt-switcher-accent) 18%, transparent);
}

.dlt-menu-language-switcher > button.dlt-switcher-toggle:hover,
.dlt-menu-language-switcher > button.dlt-switcher-toggle:focus-visible {
	background: color-mix(in srgb, currentColor 8%, transparent) !important;
}

.dlt-switcher-globe {
	width: 1.08rem;
	height: 1.08rem;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.dlt-current-language-label {
	overflow: hidden;
	max-width: 9rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dlt-switcher-chevron {
	width: .4rem;
	height: .4rem;
	margin: -.15rem .05rem 0 .08rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform .16s ease;
}

.dlt-open > .dlt-switcher-toggle .dlt-switcher-chevron,
.dlt-open .dlt-switcher-toggle .dlt-switcher-chevron {
	margin-top: .12rem;
	transform: rotate(225deg);
}

.dlt-switcher-panel[hidden] {
	display: none !important;
}

ul.dlt-switcher-panel {
	position: absolute;
	z-index: 100001;
	top: calc(100% + .55rem);
	right: 0;
	min-width: 13rem;
	margin: 0 !important;
	padding: .42rem !important;
	box-sizing: border-box;
	list-style: none !important;
	border: 1px solid var(--dlt-border);
	border-radius: .85rem;
	background: var(--dlt-surface) !important;
	color: var(--dlt-text) !important;
	box-shadow: var(--dlt-shadow);
}

ul.dlt-switcher-panel:not([hidden]) {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	transform: none !important;
	pointer-events: auto !important;
}

.dlt-switcher-panel li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.dlt-switcher-panel li + li {
	margin-top: .12rem !important;
}

.dlt-switcher-panel a,
.dlt-language-unavailable {
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr) auto;
	align-items: center;
	gap: .65rem;
	min-height: 2.55rem;
	padding: .48rem .58rem !important;
	box-sizing: border-box;
	border: 0;
	border-radius: .58rem;
	background: transparent !important;
	color: var(--dlt-text) !important;
	font: inherit;
	font-size: .91rem;
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none !important;
	text-transform: none;
	white-space: nowrap;
}

.dlt-language-code {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 1.55rem;
	border-radius: .42rem;
	background: var(--dlt-surface-soft) !important;
	color: var(--dlt-muted) !important;
	font-size: .66rem;
	font-weight: 750;
	letter-spacing: .05em;
}

.dlt-language-name {
	overflow: hidden;
	text-overflow: ellipsis;
	background: transparent !important;
	color: inherit !important;
}

.dlt-current-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--dlt-switcher-accent) 13%, transparent);
	color: var(--dlt-switcher-accent);
	font-size: .72rem;
	font-weight: 800;
}

.dlt-language-unavailable {
	background: transparent !important;
	color: var(--dlt-muted) !important;
	cursor: not-allowed;
}

.dlt-language-unavailable small {
	padding: .17rem .4rem;
	border-radius: 999px;
	background: var(--dlt-surface-soft) !important;
	color: var(--dlt-muted) !important;
	font-size: .62rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .02em;
}

.dlt-language-unavailable-inline {
	display: inline-flex;
	min-height: 0;
	padding: 0 !important;
	white-space: normal;
}

.dlt-language-unavailable-inline small {
	margin-left: .35rem;
}

.dlt-switcher-panel a:hover,
.dlt-switcher-panel a:focus-visible {
	background: var(--dlt-surface-soft) !important;
	color: var(--dlt-switcher-accent) !important;
	outline: none;
}

.dlt-switcher-panel a.dlt-current-language {
	background: #eef4ff !important;
	background: color-mix(in srgb, var(--dlt-switcher-accent) 10%, var(--dlt-surface)) !important;
	color: var(--dlt-switcher-accent) !important;
	font-weight: 650;
}

.dlt-menu-language-switcher .dlt-switcher-panel a,
.dlt-floating-language-switcher .dlt-switcher-panel a,
.dlt-inline-language-switcher .dlt-switcher-panel a {
	border: 0 !important;
	background: transparent !important;
	color: var(--dlt-text) !important;
	box-shadow: none !important;
}

.dlt-menu-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel a {
	border: 0 !important;
	background: transparent !important;
	color: var(--dlt-text) !important;
	box-shadow: none !important;
}

.dlt-menu-language-switcher .dlt-switcher-panel a:hover,
.dlt-menu-language-switcher .dlt-switcher-panel a:focus-visible,
.dlt-floating-language-switcher .dlt-switcher-panel a:hover,
.dlt-floating-language-switcher .dlt-switcher-panel a:focus-visible,
.dlt-inline-language-switcher .dlt-switcher-panel a:hover,
.dlt-inline-language-switcher .dlt-switcher-panel a:focus-visible {
	background: var(--dlt-surface-soft) !important;
	color: var(--dlt-switcher-accent) !important;
}

.dlt-menu-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel a:hover,
.dlt-menu-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel a:focus-visible {
	background: var(--dlt-surface-soft) !important;
	color: var(--dlt-switcher-accent) !important;
}

.dlt-menu-language-switcher .dlt-switcher-panel a.dlt-current-language,
.dlt-floating-language-switcher .dlt-switcher-panel a.dlt-current-language,
.dlt-inline-language-switcher .dlt-switcher-panel a.dlt-current-language {
	background: #eef4ff !important;
	background: color-mix(in srgb, var(--dlt-switcher-accent) 10%, var(--dlt-surface)) !important;
	color: var(--dlt-switcher-accent) !important;
}

.dlt-menu-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel a.dlt-current-language {
	background: #eef4ff !important;
	background: color-mix(in srgb, var(--dlt-switcher-accent) 10%, var(--dlt-surface)) !important;
	color: var(--dlt-switcher-accent) !important;
}

.dlt-menu-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-language-name,
.dlt-menu-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-language-unavailable,
.dlt-floating-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-language-name,
.dlt-floating-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-language-unavailable,
.dlt-inline-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-language-name,
.dlt-inline-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-language-unavailable {
	background: transparent !important;
	color: var(--dlt-text) !important;
}

.dlt-menu-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-language-code,
.dlt-floating-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-language-code,
.dlt-inline-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-language-code,
.dlt-menu-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-language-unavailable small,
.dlt-floating-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-language-unavailable small,
.dlt-inline-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-language-unavailable small {
	background: var(--dlt-surface-soft) !important;
	color: var(--dlt-muted) !important;
}

.dlt-menu-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-current-check,
.dlt-floating-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-current-check,
.dlt-inline-language-switcher[class*="dlt-theme-"] .dlt-switcher-panel .dlt-current-check {
	background: color-mix(in srgb, var(--dlt-switcher-accent) 13%, transparent) !important;
	color: var(--dlt-switcher-accent) !important;
}

.dlt-floating-language-switcher {
	position: fixed;
	z-index: 100000;
	bottom: max(1rem, env(safe-area-inset-bottom));
}

.dlt-floating-language-switcher.dlt-position-right {
	right: max(1rem, env(safe-area-inset-right));
}

.dlt-floating-language-switcher.dlt-position-left {
	left: max(1rem, env(safe-area-inset-left));
}

.dlt-floating-language-switcher button.dlt-switcher-toggle {
	min-height: 3rem;
	padding-inline: .95rem;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, .18);
}

.dlt-floating-language-switcher button.dlt-switcher-toggle,
.dlt-floating-language-switcher button.dlt-switcher-toggle:hover,
.dlt-floating-language-switcher button.dlt-switcher-toggle:focus,
.dlt-floating-language-switcher .dlt-open > button.dlt-switcher-toggle,
.dlt-inline-language-switcher button.dlt-switcher-toggle,
.dlt-inline-language-switcher button.dlt-switcher-toggle:hover,
.dlt-inline-language-switcher button.dlt-switcher-toggle:focus,
.dlt-inline-language-switcher .dlt-open > button.dlt-switcher-toggle {
	border-color: var(--dlt-border) !important;
	background: var(--dlt-surface) !important;
	color: var(--dlt-text) !important;
}

.dlt-floating-language-switcher[class*="dlt-theme-"] button.dlt-switcher-toggle,
.dlt-floating-language-switcher[class*="dlt-theme-"] button.dlt-switcher-toggle:hover,
.dlt-floating-language-switcher[class*="dlt-theme-"] button.dlt-switcher-toggle:focus,
.dlt-floating-language-switcher[class*="dlt-theme-"] .dlt-open > button.dlt-switcher-toggle {
	border-color: var(--dlt-border) !important;
	background: var(--dlt-surface) !important;
	color: var(--dlt-text) !important;
}

.dlt-floating-language-switcher button.dlt-switcher-toggle:hover,
.dlt-floating-language-switcher button.dlt-switcher-toggle:focus-visible,
.dlt-inline-language-switcher button.dlt-switcher-toggle:hover,
.dlt-inline-language-switcher button.dlt-switcher-toggle:focus-visible {
	border-color: var(--dlt-switcher-accent) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dlt-switcher-accent) 18%, transparent), 0 10px 30px rgba(15, 23, 42, .16) !important;
}

.dlt-floating-language-switcher .dlt-switcher-panel {
	top: auto;
	bottom: calc(100% + .65rem);
}

.dlt-floating-language-switcher.dlt-position-left .dlt-switcher-panel {
	right: auto;
	left: 0;
}

@media (prefers-color-scheme: dark) {
	.dlt-floating-language-switcher.dlt-theme-auto,
	.dlt-inline-language-switcher.dlt-theme-auto {
		--dlt-surface: #172033;
		--dlt-surface-soft: #202b40;
		--dlt-text: #f8fafc;
		--dlt-muted: #aebbd0;
		--dlt-border: rgba(255, 255, 255, .15);
		--dlt-shadow: 0 20px 48px rgba(0, 0, 0, .38);
	}
}

@media (max-width: 600px) {
	.dlt-floating-language-switcher { bottom: max(.75rem, env(safe-area-inset-bottom)); }
	.dlt-floating-language-switcher.dlt-position-right { right: max(.75rem, env(safe-area-inset-right)); }
	.dlt-floating-language-switcher.dlt-position-left { left: max(.75rem, env(safe-area-inset-left)); }
	.dlt-floating-language-switcher button.dlt-switcher-toggle { min-height: 2.75rem; }
	ul.dlt-switcher-panel { min-width: 12rem; }
}

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