
body.mm-body {
	--mm-util-bar-h: 40px;
	--mm-top-stack-h: var(--mm-util-bar-h);
	--mm-sticky-top: var(--mm-top-stack-h);
	--mm-radius-btn: 4px;
	padding-top: var(--mm-util-bar-h);
}

.mm-util {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1080;
	height: var(--mm-util-bar-h);
	background: linear-gradient(180deg, #24180f 0%, #1a120b 100%);
	border-bottom: 1px solid rgba(255, 180, 0, 0.32);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.mm-util__inner {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 100%;
	padding-inline: .75rem;
}

.mm-lang {
	position: relative;
}

.mm-lang__trigger {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	height: 28px;
	padding: 0 .55rem;
	margin: 0;
	border: 1px solid rgba(255, 196, 90, 0.4);
	border-radius: var(--mm-radius-btn, 4px);
	background: rgba(255, 196, 90, 0.12);
	color: #fff4dc;
	font: inherit;
	font-size: .76rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

.mm-lang__trigger:hover,
.mm-lang__trigger:focus-visible,
.mm-lang.show .mm-lang__trigger {
	outline: none;
	border-color: rgba(255, 196, 90, 0.75);
	background: rgba(255, 196, 90, 0.22);
	color: #fff;
}

.mm-lang__icon {
	display: inline-flex;
	color: #ffd27a;
	font-size: .78rem;
}

.mm-lang__current {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	min-width: 0;
}

.mm-lang__code {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.45rem;
	padding: .1rem .25rem;
	border-radius: 3px;
	background: #ef9217;
	color: #1a1200;
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .04em;
}

.mm-lang__name {
	max-width: 7rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mm-lang__caret {
	display: inline-flex;
	color: rgba(255, 226, 160, 0.85);
	font-size: .62rem;
	transition: transform .15s ease;
}

.mm-lang.show .mm-lang__caret {
	transform: rotate(180deg);
}

.mm-lang__menu {
	--bs-dropdown-min-width: 14.5rem;
	min-width: 14.5rem !important;
	max-height: min(70vh, 24rem);
	overflow: hidden;
	padding: 0 !important;
	margin-top: .35rem !important;
	border: 1px solid rgba(197, 111, 0, 0.28) !important;
	border-radius: 6px !important;
	background: #fffdf8 !important;
	box-shadow: 0 14px 32px rgba(26, 18, 11, 0.26) !important;
	z-index: 1090 !important;
}

.mm-lang__menu-head {
	padding: .55rem .75rem .45rem;
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #a16207;
	border-bottom: 1px solid rgba(197, 111, 0, 0.14);
	background: #fff8eb;
}

.mm-lang__list {
	list-style: none;
	margin: 0;
	padding: .3rem;
	max-height: min(58vh, 18.5rem);
	overflow-y: auto;
}

.mm-lang__option {
	display: flex;
	align-items: center;
	gap: .55rem;
	padding: .45rem .55rem;
	border-radius: 4px;
	color: #3f2a14;
	text-decoration: none;
	font-size: .84rem;
	font-weight: 600;
}

.mm-lang__option:hover {
	background: rgba(239, 146, 23, 0.12);
	color: #8a4b00;
}

.mm-lang__option.is-active {
	background: rgba(239, 146, 23, 0.2);
	color: #8a4b00;
}

.mm-lang__option-code {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.85rem;
	height: 1.35rem;
	padding: 0 .3rem;
	border-radius: 3px;
	background: #1f160c;
	color: #ffd27a;
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .05em;
}

.mm-lang__option.is-active .mm-lang__option-code {
	background: #ef9217;
	color: #1a1200;
}

.mm-lang__option-label {
	flex: 1;
	min-width: 0;
}

.mm-lang__check {
	color: #c56f00;
	font-size: .95rem;
}

@media (max-width: 575.98px) {
	.mm-lang__name {
		display: none;
	}
}
