/* Language switcher (top bar) - parts/lang-switcher.php */
.top-bar-right .lang-switcher {
    position: relative;
    display: flex;
    align-self: center;
    margin-left: 1rem;
}

.lang-switcher__current {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 4px;
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color .2s ease-in-out, border-color .2s ease-in-out;
}

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

.lang-switcher__current::after {
    content: "";
    width: 6px;
    height: 6px;
    margin: -3px 0 0 .15rem;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    transition: transform .2s ease-in-out;
}

.lang-switcher[open] .lang-switcher__current::after {
    margin-top: 3px;
    transform: rotate(225deg);
}

.lang-switcher__current:hover,
.lang-switcher[open] .lang-switcher__current {
    background-color: #005BE6;
    border-color: #FFAF37;
}

.lang-switcher__current:focus-visible {
    outline: 2px solid #FFAF37;
    outline-offset: 2px;
}

.lang-switcher__flag {
    display: flex;
    align-items: center;
}

.lang-switcher__flag img {
    display: block;
    width: 18px;
    height: auto;
}

.lang-switcher__list {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    z-index: 1010;
    min-width: 11rem;
    margin: 0;
    padding: .25rem 0;
    list-style: none;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(10, 10, 10, .15);
}

.lang-switcher__item {
    margin: 0;
}

.lang-switcher__item a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1rem;
    color: #191E23;
    font-size: .875rem;
    line-height: 1.2;
}

.lang-switcher__item a:hover,
.lang-switcher__item a:focus-visible {
    background-color: #eef3fb;
    color: #0047B3;
}

.lang-switcher__item.is-current a {
    font-weight: 700;
    color: #0047B3;
}

@media screen and (max-width: 39.9375em) {
    .top-bar-right .lang-switcher {
        margin-left: 0;
        margin-right: .75rem;
    }
}
