.lang-switch-bar {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 100%;
    margin: 0 0 10px;
}

header.top {
    flex-wrap: wrap;
}

header.top > .lang-switch-bar {
    flex: 1 0 100%;
    order: -1;
}

.lang-switch {
    display: inline-flex;
    border: 1px solid #c5d0dc;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgb(15 23 42 / 6%);
}

.lang-switch button {
    appearance: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #243247;
    font: 600 13px/1 "Segoe UI", "Microsoft YaHei", sans-serif;
    min-width: 44px;
    min-height: 36px;
    padding: 8px 12px;
    cursor: pointer;
}

.lang-switch button + button {
    border-left: 1px solid #c5d0dc;
}

.lang-switch button:hover {
    background: #f3f7fb;
}

.lang-switch button[aria-pressed="true"] {
    background: #0078d4;
    color: #fff;
}

.lang-switch button[aria-pressed="true"]:hover {
    background: #106ebe;
}

.lang-switch button:focus-visible {
    outline: 2px solid #0078d4;
    outline-offset: -2px;
    z-index: 1;
}

@media (max-width: 1023px) {
    .lang-switch button {
        min-height: 44px;
        min-width: 48px;
        font-size: 16px;
    }
}
