.sso-language-nav {
	display: inline-flex;
	align-items: center;
	height: 34px;
	margin-right: 6px;
	position: relative;
	top: 5px;
}

.sso-topbar-user-wrap .sso-language-nav {
	margin-left: 8px;
	margin-right: 0;
	top: 0;
}

.sso-language-switcher {
	position: relative;
	display: inline-block;
	font-family: 'Manrope', 'Segoe UI', sans-serif;
}

.sso-language-switcher summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 34px;
	min-width: 68px;
	padding: 0 9px;
	border: 1px solid rgba(120, 190, 32, 0.88);
	border-radius: 4px;
	background: rgba(120, 190, 32, 0.16);
	color: #f2ffe8;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	list-style: none;
	transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.sso-language-switcher summary::-webkit-details-marker {
	display: none;
}

.sso-language-switcher.dark summary,
.navbar-custom-menu .sso-language-switcher summary {
	color: #f2ffe8;
}

.sso-language-switcher summary:hover,
.sso-language-switcher summary:focus {
	background: #78be20;
	border-color: #78be20;
	color: #ffffff;
	outline: none;
}

.sso-language-switcher[open] summary {
	background: #78be20;
	border-color: #78be20;
	color: #ffffff;
}

.sso-language-switcher .fa-globe {
	font-size: 14px;
}

.sso-language-current {
	min-width: 18px;
	text-align: center;
}

.sso-language-caret {
	font-size: 12px;
	transition: transform 0.16s ease;
}

.sso-language-switcher[open] .sso-language-caret {
	transform: rotate(180deg);
}

.sso-language-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 1050;
	display: grid;
	gap: 3px;
	min-width: 176px;
	padding: 7px;
	border: 1px solid #d7e3eb;
	border-radius: 4px;
	background: #ffffff;
	box-shadow: 0 14px 34px rgba(16, 33, 47, 0.18);
}

.sso-language-menu::before {
	content: '';
	position: absolute;
	top: -6px;
	right: 18px;
	width: 10px;
	height: 10px;
	border-top: 1px solid #d7e3eb;
	border-left: 1px solid #d7e3eb;
	background: #ffffff;
	transform: rotate(45deg);
}

.sso-language-menu a {
	position: relative;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) 16px;
	align-items: center;
	gap: 9px;
	min-height: 38px;
	padding: 6px 9px;
	border-radius: 4px;
	color: #243847;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.sso-language-switcher.dark .sso-language-menu a,
.navbar-custom-menu .sso-language-switcher .sso-language-menu a {
	color: #243847;
}

.sso-language-menu a:hover,
.sso-language-menu a:focus {
	background: #f2f7f4;
	color: #0b7f72;
	text-decoration: none;
	outline: none;
}

.sso-language-menu a.active {
	background: #e9f7df;
	color: #2e7a25;
}

.sso-language-code {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 24px;
	border-radius: 3px;
	background: #edf3f1;
	color: #4e6474;
	font-size: 11px;
	font-weight: 900;
}

.sso-language-menu a.active .sso-language-code {
	background: #78be20;
	color: #ffffff;
}

.sso-language-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sso-language-menu .fa-check {
	color: #78be20;
	font-size: 12px;
}

.sso-language-switcher.light {
	position: absolute;
	top: 22px;
	right: 24px;
}

.sso-language-switcher.light summary {
	min-width: 70px;
	border-color: #d9e5dd;
	background: #f7faf8;
	color: #4f6271;
}

.sso-language-switcher.light summary:hover,
.sso-language-switcher.light summary:focus {
	background: #edf5ef;
	border-color: #bdd8c3;
	color: #0b7f72;
}

.sso-language-switcher.light[open] summary {
	background: #323232;
	border-color: #323232;
	color: #ffffff;
}

.sso-language-switcher.light .sso-language-menu {
	right: 0;
}

@media (max-width: 767px) {
	.sso-language-nav {
		height: 34px;
		margin-right: 4px;
		top: 3px;
	}

	.sso-language-switcher summary {
		min-width: 56px;
		padding: 0 8px;
	}

	.sso-language-switcher .fa-globe {
		display: none;
	}

	.sso-language-switcher.light {
		top: 16px;
		right: 16px;
	}
}

@media (max-width: 420px) {
	.sso-language-switcher.light {
		position: static;
		margin: -2px 0 14px;
	}
}
