/* Interface language switch (resources/views/partials/language-switch.blade.php) */

.lang-switch {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0;
}

.lang-switch--menu {
    justify-content: space-between;
    padding: .55rem .75rem;
}

.lang-switch__label {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ess-text-2, #334155);
}

.lang-switch__seg {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border-radius: 999px;
    background: #eef2f7;
}

.lang-switch__btn {
    min-width: 40px;
    min-height: 30px;
    padding: 0 .65rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ess-muted, #5b6b80);
    font: inherit;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.lang-switch__btn:hover {
    color: var(--ess-700, #1d4ed8);
}

.lang-switch__btn.is-active {
    background: var(--ess-surface, #fff);
    color: var(--ess-700, #1d4ed8);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .14);
}

.lang-switch__btn:focus-visible {
    outline: 2px solid var(--ess-focus-border, #2563eb);
    outline-offset: 2px;
}

/* screen-reader-only text (pages without Bootstrap's .visually-hidden) */
.lang-switch__sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* console navbar: compact, on the coloured bar */
.lang-switch--navbar .lang-switch__seg {
    background: rgba(255, 255, 255, .18);
}

.lang-switch--navbar .lang-switch__btn {
    min-height: 26px;
    min-width: 34px;
    color: rgba(255, 255, 255, .85);
}

.lang-switch--navbar .lang-switch__btn:hover {
    color: #fff;
}

.lang-switch--navbar .lang-switch__btn.is-active {
    background: #fff;
    color: var(--ess-700, #1d4ed8);
}
