/* ─────────────────────────────────────────────
   BV — Language Switcher  (v1.8.3)
   Minimal Weglot language toggle
   Supports hover + click modes, responsive
───────────────────────────────────────────── */

/* ── Outer wrapper (alignment via Elementor) ── */

.bv-ls-outer {
    display: flex;
    width: 100%;
}

.bv-ls-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ── Trigger ── */

.bv-ls-trigger {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.bv-ls-trigger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Arrow ── */

.bv-ls-arrow {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    pointer-events: none;
    flex-shrink: 0;
}

/* ── Dropdown ── */

.bv-ls-dropdown {
    display: none;
    flex-direction: column;
    position: relative;
    z-index: 100;
    min-width: 100%;
}

/* Show dropdown when open class is present */
.bv-ls--open .bv-ls-dropdown {
    display: flex;
}

/* ── Items ── */

.bv-ls-item {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    text-align: left;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.bv-ls-item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ── Code text ── */

.bv-ls-code {
    line-height: 1;
}

/* ── Responsive: Touch target sizing ── */

@media (max-width: 1024px) {
    .bv-ls-trigger {
        min-height: 36px;
        min-width: 36px;
        justify-content: center;
    }
    .bv-ls-item {
        min-height: 36px;
    }
}

@media (max-width: 767px) {
    .bv-ls-trigger {
        min-height: 44px;
        min-width: 44px;
    }
    .bv-ls-item {
        min-height: 40px;
    }
}
