/* =============================================================
   LX Group — Language Switcher
   ============================================================= */

.lx-ls {
    display: inline-block;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

.lx-ls-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lx-ls-trigger:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.55);
}
.lx-ls-trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.65);
}
.lx-ls-trigger[aria-expanded="true"] .lx-ls-caret {
    transform: rotate(180deg);
}
.lx-ls-flag  { font-size: 1.1em; line-height: 1; }
.lx-ls-label { font-size: 0.875rem; font-weight: 500; }
.lx-ls-caret {
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dropdown portalled to <body> by JS */
.lx-ls-menu {
    position: fixed;
    min-width: 210px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(11, 31, 36, 0.08);
    box-shadow: 0 8px 32px -4px rgba(11, 31, 36, 0.20), 0 2px 8px rgba(11, 31, 36, 0.07);
    padding: 8px 6px;
    list-style: none;
    margin: 0;
    z-index: 99999;
    animation: lxLsDropIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.lx-ls-menu[hidden] { display: none; }

@keyframes lxLsDropIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lx-ls-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
    outline: none;
    user-select: none;
}
.lx-ls-item:hover,
.lx-ls-item:focus-visible { background: #f3f6f8; color: #0b1f24; }
.lx-ls-item:focus-visible { box-shadow: inset 0 0 0 2px rgba(25, 156, 170, 0.45); }
.lx-ls-item--active { color: #157f8b; font-weight: 600; }
.lx-ls-item--active:hover { background: rgba(25, 156, 170, 0.07); }
.lx-ls-item-flag  { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.lx-ls-item-label { flex: 1 1 auto; }
.lx-ls-item-check { flex-shrink: 0; color: #199caa; margin-left: auto; }

/* =============================================================
   PLACEMENT

   The .lx-ls sits as a direct child of .container
   which already has position:relative in lx-group.css.

   Desktop + Tablet (≥ 768px):
     absolute top-right of the banner container — stays there.

   Mobile (< 768px):
     relative positioning, floated to the right of the logo
     by making the logo's parent row a flex container.
   ============================================================= */

/* Desktop + Tablet: pin to top-right of .container */
@media (min-width: 768px) {
    .lx-banner-lx-group .lx-ls {
        position: absolute;
        top: 1rem;
        right: 0;
        z-index: 100;
    }
}

/* Mobile: pin to the top-right of the banner container.
   NOTE: lx-group.css also styles the switcher at this breakpoint
   (see "Logo row + switcher side by side"). Whichever stylesheet is
   enqueued last wins — check before editing either. */
@media (max-width: 767px) {
    .lx-banner-lx-group .lx-ls {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 100;
    }
    .lx-banner-lx-group .container {
        position: relative;
    }
    .lx-banner-lx-group-logo {
        margin-top: 0 !important;
    }
    .lx-banner-lx-group-logo img {
        max-width: 120px !important;
    }
}