.dp-lang { position: relative; flex: none; font-size: 14px; }

.dp-lang summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	border: 1px solid #dde5e7;
	background: #fff;
	border-radius: 999px;
	padding: 6px 30px 6px 10px;
	color: #263234;
	position: relative;
	user-select: none;
}

.dp-lang summary::-webkit-details-marker { display: none; }

.dp-lang summary::after {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	margin-top: -2px;
	border: 5px solid transparent;
	border-top-color: #66777a;
	border-bottom: 0;
}

.dp-lang[open] summary::after { transform: rotate(180deg); }

.dp-lang img { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); object-fit: cover; flex: none; }

.dp-lang ul {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 20;
	min-width: 170px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(20, 40, 45, .16), 0 0 0 1px rgba(20, 40, 45, .06);
}

.dp-lang li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	color: #263234;
	text-decoration: none;
	white-space: nowrap;
}

.dp-lang li a:hover { background: #f2f6f7; }
.dp-lang li a[aria-current] { background: #e5f5fa; font-weight: 600; }

@media (max-width: 380px) {
	.dp-lang summary span { display: none; }
	.dp-lang summary { padding-right: 26px; }
}
