/* assets/css/switcher.css */
.mll-switcher {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    line-height: 1;
}

.mll-switcher .mll-lang {
    font-size: 1.4em;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.mll-switcher .mll-lang:hover {
    opacity: 1;
}

.mll-switcher .mll-active {
    font-size: 1.4em;
    opacity: 1;
    cursor: default;
}

.mll-switcher .mll-fallback {
    opacity: 0.35;
}

/* Screenreader-only — visueel verborgen, wel beschikbaar voor AT */
.mll-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Dropdown-variant ────────────────────────────────────────────────────── */

.mll-switcher--dropdown {
    position: relative;
    display: inline-block;
}

.mll-switcher__toggle {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font-size: 1.2rem;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
}

.mll-switcher__toggle:hover {
    background: rgba(0, 0, 0, .06);
}

.mll-switcher__toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.mll-switcher__chevron {
    display: block !important;
    margin-left: 4px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.mll-switcher__toggle[aria-expanded="true"] .mll-switcher__chevron {
    transform: rotate(180deg);
}

.mll-switcher__options {
    position: absolute;
    /* top: calc(100% + 2px); */
    top: 75%;
    left: 0;
    z-index: 200;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    min-width: 100%;
}

.mll-switcher__option a {
    display: block;
    padding: 6px 12px;
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    white-space: nowrap;
    text-align: center;
}

.mll-switcher__option a:hover {
    background: #eef0f1;
}
