/* ── FLGB Locale Switcher ────────────────────────────────────────── */
/* All selectors use .flgb-lr-switcher prefix to beat the
   .flgb-pb-page * { padding:0; margin:0 } reset in adv-blocks.css. */

.flgb-lr-switcher {
    position: relative;
    display: inline-block;
    font-size: 15px;
    line-height: 1.4;
    width: 160px;
    max-width: 100%;
}

/* Toggle button */
.flgb-lr-switcher .flgb-lr-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 14px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    white-space: nowrap;
}
.flgb-lr-switcher .flgb-lr-switcher__toggle:hover {
    border-color: rgba(255, 255, 255, 0.45);
}

/* Arrow */
.flgb-lr-switcher .flgb-lr-switcher__arrow {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.flgb-lr-switcher[data-open] .flgb-lr-switcher__arrow {
    transform: rotate(180deg);
}

/* Flag images */
.flgb-lr-switcher .flgb-lr-switcher__flag {
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: cover;
}

/* Dropdown menu */
.flgb-lr-switcher .flgb-lr-switcher__menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin: 0 0 6px;
    padding: 6px;
    list-style: none;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    width: 100%;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}
.flgb-lr-switcher[data-open] .flgb-lr-switcher__menu {
    display: block;
}

/* Menu items */
.flgb-lr-switcher .flgb-lr-switcher__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    white-space: nowrap;
}
.flgb-lr-switcher .flgb-lr-switcher__item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
}
.flgb-lr-switcher .flgb-lr-switcher__item--active {
    color: #fff;
    font-weight: 600;
}

/* ── No-JS hover fallback ───────────────────────────────────────── */
/* When JS hasn't loaded (no data-js attribute), show menu on hover. */
.flgb-lr-switcher:not([data-js]):hover .flgb-lr-switcher__menu {
    display: block;
}
