.bd-lang-switcher {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.bd-lang-switcher-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.bd-lang-switcher-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bd-lang-switcher .bd-lang-switcher-options .bd-lang-switcher-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    min-width: 0;
    min-height: 0;
    width: auto;
    height: auto;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.bd-lang-switcher-btn {
    text-decoration: none;
}

.bd-lang-switcher .bd-lang-switcher-options .bd-lang-switcher-btn:hover,
.bd-lang-switcher .bd-lang-switcher-options .bd-lang-switcher-btn:focus-visible {
    border-color: #1f8f7a;
    background: #ecfdf8;
    color: #0f172a;
    outline: none;
}

.bd-lang-switcher .bd-lang-switcher-options .bd-lang-switcher-btn.is-active {
    background: #1f8f7a;
    border-color: #1f8f7a;
    color: #ffffff;
}

.bd-lang-switcher.is-compact {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
}

.bd-lang-switcher.is-compact .bd-lang-switcher-label {
    font-size: 0.8125rem;
}

.bd-lang-switcher.is-compact .bd-lang-switcher-options .bd-lang-switcher-btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
}

html[dir="rtl"] .bd-lang-switcher {
    direction: rtl;
}

html[dir="ltr"] .bd-lang-switcher {
    direction: ltr;
}
