/* OTIF – niezależny od motywu, stały przełącznik języków */
.otif-ls,
.otif-ls * {
    box-sizing: border-box;
}
.otif-ls {
    position: fixed !important;
    z-index: 99999;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: auto;
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(27, 32, 40, .13);
    border-radius: 15px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 26px rgba(19, 25, 33, .14);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.2;
}
.otif-ls--left {
    right: auto;
    left: 14px;
}
.otif-ls a.otif-ls__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 52px;
    min-height: 51px;
    margin: 0;
    padding: 6px 5px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: #39434d;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .055em;
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.otif-ls a.otif-ls__link:hover {
    background: #ecedef;
    color: #171b22;
}
.otif-ls a.otif-ls__link:focus-visible {
    outline: 3px solid #427aff;
    outline-offset: 2px;
}
.otif-ls a.otif-ls__link--active,
.otif-ls a.otif-ls__link--active:hover {
    background: #242830;
    border-color: #242830;
    color: #fff;
    cursor: default;
}
.otif-ls .otif-ls__flag {
    display: block;
    width: 32px;
    height: 21px;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
    object-fit: cover;
}
.otif-ls .otif-ls__code {
    display: block;
    font: inherit;
    color: inherit;
    line-height: 1;
}
@media (max-width: 640px) {
    .otif-ls,
    .otif-ls--left {
        top: auto;
        right: 10px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: auto;
        transform: none;
        flex-direction: row;
        gap: 2px;
        padding: 5px;
        border-radius: 12px;
    }
    .otif-ls--left {
        right: auto;
        left: 10px;
    }
    .otif-ls a.otif-ls__link {
        width: 45px;
        min-height: 45px;
        gap: 3px;
        padding: 5px 3px;
        font-size: 10px;
    }
    .otif-ls .otif-ls__flag {
        width: 29px;
        height: 19px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .otif-ls a.otif-ls__link { transition: none; }
}
