.ls-switcher {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.ls-switcher.ls-pos-bottom-right { right: 18px; bottom: 18px; align-items: flex-end; }
.ls-switcher.ls-pos-bottom-left  { left: 18px;  bottom: 18px; align-items: flex-start; }
.ls-switcher.ls-pos-top-right    { right: 18px; top: 18px;    align-items: flex-end; }
.ls-switcher.ls-pos-top-left     { left: 18px;  top: 18px;    align-items: flex-start; }

.ls-switcher.ls-pos-inline {
    position: static;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
}

.ls-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 13px;
    font-weight: 600;
    color: #222;
}
.ls-toggle:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.22); }
.ls-toggle .ls-flag { width: 22px; height: 16px; border-radius: 2px; overflow: hidden; flex-shrink: 0; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }
.ls-toggle .ls-flag svg { display: block; width: 100%; height: 100%; }
.ls-toggle .ls-caret { font-size: 10px; opacity: 0.6; margin-left: 2px; }

.ls-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    margin-top: 8px;
    padding: 4px;
    min-width: 150px;
}
.ls-switcher.ls-pos-top-right .ls-menu,
.ls-switcher.ls-pos-top-left .ls-menu {
    margin-top: 0;
    margin-bottom: 8px;
    order: -1;
}
.ls-switcher.ls-pos-inline .ls-menu {
    position: absolute;
    margin-top: 44px;
}
.ls-switcher.ls-open .ls-menu { display: flex; }

.ls-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #222;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.ls-option:hover { background: #f2f2f2; color: #111; }
.ls-option.ls-active { background: #eef6ee; font-weight: 700; }
.ls-option .ls-flag { width: 22px; height: 16px; border-radius: 2px; overflow: hidden; flex-shrink: 0; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }
.ls-option .ls-flag svg { display: block; width: 100%; height: 100%; }

.ls-switcher.ls-pos-inline { position: relative; }

/* Wanneer de switcher als menu-item staat (i.p.v. zwevend): geen vaste
   positionering, gewoon meelopen met de rest van de menubalk. */
.ls-switcher-menu-item {
    display: flex;
    align-items: center;
    list-style: none;
}
.ls-switcher-menu-item .ls-toggle {
    box-shadow: none;
    border-color: transparent;
    background: transparent;
    padding: 6px 10px;
}
.ls-switcher-menu-item .ls-toggle:hover { background: rgba(0,0,0,0.05); }
