.topbar__right {
	display: inline-flex;
	align-items: center;
	gap: 20px;
}

.yibao-lang {
	position: relative;
	flex: none;
}

.yibao-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(255,255,255,.72);
	font-family: 'Manrope', 'Segoe UI', Helvetica, Arial, sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	line-height: 1;
}

.yibao-lang__toggle svg {
	width: 13px;
	height: 13px;
	color: #d81f2a;
}

.yibao-lang__chevron {
	width: 10px !important;
	height: 10px !important;
	color: currentColor !important;
	transition: transform .25s ease;
}

.yibao-lang.is-open .yibao-lang__chevron { transform: rotate(180deg); }
.yibao-lang__toggle:hover { color: #fff; }

.yibao-lang__menu {
	position: absolute;
	top: calc(100% + 14px);
	right: 0;
	z-index: 999;
	min-width: 190px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border-top: 2px solid #d81f2a;
	box-shadow: 0 22px 48px rgba(8, 20, 33, .18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .22s ease, transform .22s ease, visibility .22s;
}

.yibao-lang:hover .yibao-lang__menu,
.yibao-lang:focus-within .yibao-lang__menu,
.yibao-lang.is-open .yibao-lang__menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.yibao-lang__menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 16px;
	color: #1a2c40;
	font-family: 'Manrope', 'Segoe UI', Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
}

.yibao-lang__menu a:hover,
.yibao-lang__menu a.is-active {
	background: #f4f6f8;
	color: #d81f2a;
}

.yibao-lang__menu a.is-active { font-weight: 800; }

.yibao-lang__menu em {
	font-style: normal;
	font-size: 9px;
	letter-spacing: .1em;
	color: #8a96a3;
}

.yibao-lang__menu a.is-active em { color: #d81f2a; }

@media (max-width: 1024px) {
	.topbar__right { gap: 14px; }
}

@media (max-width: 640px) {
	.yibao-lang__toggle span { font-size: 10px; }
	.yibao-lang__menu {
		right: -6px;
		min-width: 170px;
		max-height: 70vh;
		overflow-y: auto;
	}
}

/* RTL adjustments */
[dir="rtl"] .yibao-lang__menu {
	right: auto;
	left: 0;
}

[dir="rtl"] .yibao-lang__menu a {
	flex-direction: row-reverse;
}
