.lang-switcher { position: relative; display: inline-block; }

.lang-switcher__current {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(0,0,0,.15); border-radius: 8px;
    cursor: pointer; user-select: none; list-style: none;
    color: inherit;
}
.lang-switcher__current::-webkit-details-marker { display: none; }

.lang-switcher__current::marker { content: ""; }

.lang-switcher__chevron {
    width: 8px; height: 8px; margin-left: 2px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .2s ease;
}
.lang-switcher[open] .lang-switcher__chevron { transform: rotate(-135deg); }

.lang-switcher__menu {
    position: absolute; top: calc(100% + 6px); right: 0; z-index: 100;
    margin: 0; padding: 6px; min-width: 100%;
    list-style: none; background: #fff;
    border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.lang-switcher__item + .lang-switcher__item { margin-top: 2px; }

.lang-switcher__link {
    display: flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 6px 10px; border-radius: 6px;
    color: inherit; text-decoration: none;
}
.lang-switcher__link:hover,
.lang-switcher__link:focus-visible { background: rgba(0,0,0,.06); }

.lang-switcher__flag {
    display: inline-flex; flex-shrink: 0;
    width: 20px; height: 20px; overflow: hidden; border-radius: 2px;
}
.lang-switcher__flag svg { width: 100%; height: 100%; display: block; }

.lang-switcher__current {
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
}