.zoyero-language-switcher {
    position: relative;
    display: inline-block;
    max-inline-size: 100%;
    color: inherit;
}

.zoyero-language-toggle,
.zoyero-language-options a {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-block-size: 44px;
    padding: .5rem .75rem;
    color: inherit;
    line-height: 1.25;
    text-align: start;
    white-space: normal;
}

.zoyero-language-toggle {
    --btn-bgcolor: transparent;
    --btn-bgcolor-hover: transparent;
    border: 1px solid currentColor;
    border-radius: .25rem;
    background: transparent;
    text-transform: none;
    cursor: pointer;
}

.zoyero-language-switcher img {
    flex: none;
}

.zoyero-language-toggle:focus-visible,
.zoyero-language-options a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.zoyero-language-chevron {
    margin-inline-start: auto;
    padding-inline-start: .75rem;
}

.zoyero-language-toggle[aria-expanded="true"] .zoyero-language-chevron {
    transform: rotate(180deg);
}

.zoyero-language-options {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-start: 0;
    z-index: 100;
    min-width: 100%;
    margin: 0;
    padding: .25rem 0;
    list-style: none;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: .25rem;
}

.zoyero-language-options > li {
    background: #fff;
    margin-bottom: 0;
}

.zoyero-language-options[hidden] {
    display: none;
}

.zoyero-language-options a:hover,
.zoyero-language-options a:focus-visible,
.zoyero-language-options a[aria-current] {
    text-decoration: underline;
}

.zoyero-language-options a[aria-current="true"]::after {
    content: "✓";
    margin-inline-start: auto;
}

@media (hover: none) {
    .zoyero-language-options {
        position: static;
    }
}

.mpmw-mobile-navigation.mpmw-mobile-navigation-with-languages {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    max-block-size: 100dvh;
    overflow: hidden;
}

.mpmw-mobile-navigation-with-languages > .mpmw-mobile-navigation-content {
    flex: 1 1 auto;
    min-block-size: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

.mpmw-language-switcher-mobile {
    flex: none;
    padding: .75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}

.mpmw-language-switcher-mobile .zoyero-language-switcher {
    display: block;
}

.mpmw-language-switcher-mobile .zoyero-language-toggle {
    inline-size: 100%;
    min-block-size: 52px;
}

.mpmw-language-switcher-mobile .zoyero-language-options {
    position: static;
    margin-block-start: .375rem;
    max-block-size: 15rem;
    max-block-size: min(15rem, 40dvh);
    overflow-y: auto;
    overscroll-behavior-y: contain;
}
