/* Taalkiezer in de bovenbalk (rechtsboven) */
/* Staat als laatste kind in .sunny-service-links (display:flex, align-items:center).
   De tussenruimte komt van de margin-right van .sunny-online-link, dus hier geen
   eigen marge: anders schuift de rij scheef ten opzichte van de rechterrand. */
.sunny-lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    line-height: 1;
}

/* Het thema geeft elke link in .sunny-service-links 15px rechtermarge
   (.sunny-service-links a:not(:last-child)). Binnen de kiezer moet die weg,
   anders staan de vlaggen ongelijk: 21px tussen de links, 6px rond de huidige
   site (dat is een span, geen link). De ruimte komt hier alleen van 'gap'. */
.sunny-service-links .sunny-lang-switch a,
.sunny-service-links .sunny-lang-switch a:not(:last-child),
.sunny-lang-switch > * {
    margin: 0;
    padding: 0;
}

.sunny-lang-switch .sunny-lang {
    display: inline-flex;
    line-height: 0;
    border-radius: 2px;
    opacity: .55;
    transition: opacity .15s ease, transform .15s ease;
}

.sunny-lang-switch .sunny-lang:hover,
.sunny-lang-switch .sunny-lang:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
}

.sunny-lang-switch .sunny-lang.is-current {
    opacity: 1;
    outline: 1px solid rgba(255, 255, 255, .85);
    outline-offset: 1px;
}

.sunny-lang-switch svg {
    display: block;
    width: 21px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}

@media (max-width: 767px) {
    .sunny-lang-switch {
        gap: 5px;
    }
    .sunny-lang-switch svg {
        width: 18px;
        height: 12px;
    }
}
