.bx-language-switch {
    align-items: center;
    background: rgba(18, 18, 20, .92);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
    display: inline-flex;
    gap: .15rem;
    padding: .22rem;
    position: relative;
    z-index: 1040;
}

.bx-language-switch button,
.bx-language-switch a {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: rgba(255, 255, 255, .68);
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1;
    min-width: 2.25rem;
    padding: .58rem .66rem;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
    text-align: center;
    text-decoration: none;
}

.bx-language-switch button:hover,
.bx-language-switch button:focus-visible,
.bx-language-switch a:hover,
.bx-language-switch a:focus-visible {
    color: #fff;
}

.bx-language-switch button:focus-visible,
.bx-language-switch a:focus-visible {
    outline: 2px solid #ff4d57;
    outline-offset: 2px;
}

.bx-language-switch button[aria-pressed="true"],
.bx-language-switch a[aria-pressed="true"] {
    background: #e43d48;
    box-shadow: 0 5px 14px rgba(228, 61, 72, .32);
    color: #fff;
}

.bx-language-switch--nav {
    box-shadow: none;
    margin: 0 .65rem;
}

.bx-language-switch--floating {
    position: fixed;
    right: 1.25rem;
    top: 1.1rem;
}

.bilionx-topbar-primary {
    display: flex;
    align-items: center;
    gap: .72rem;
}

.customer-dashboard-language-switch {
    background: #e7eef6;
    border: 1px solid #c7d4e3;
    border-radius: 9px;
    box-shadow: inset 0 1px 2px rgba(22, 52, 92, .08);
    gap: 3px;
    min-height: 38px;
    padding: 3px;
}

.customer-dashboard-language-switch a,
.customer-dashboard-language-switch button {
    border-radius: 6px;
    color: #52657d;
    font-size: 12px;
    letter-spacing: .055em;
    min-width: 39px;
    padding: 8px 10px;
}

.customer-dashboard-language-switch a:hover,
.customer-dashboard-language-switch a:focus-visible,
.customer-dashboard-language-switch button:hover,
.customer-dashboard-language-switch button:focus-visible {
    background: rgba(255, 255, 255, .72);
    color: #102f55;
}

.customer-dashboard-language-switch a[aria-pressed="true"],
.customer-dashboard-language-switch button[aria-pressed="true"] {
    background: #123b6d;
    box-shadow: 0 2px 5px rgba(18, 59, 109, .28);
    color: #fff;
}

.bx-language-switch--topbar {
    flex: 0 0 auto;
    padding: 3px;
}

.bx-language-switch--topbar button,
.bx-language-switch--topbar a {
    min-width: 2rem;
    padding: .48rem .56rem;
}

.customer-nav-bar .bx-language-switch {
    margin-left: auto;
    margin-right: .7rem;
}

body.customer-trading-inline-open .customer-dashboard-language-switch {
    display: none !important;
}

@media (max-width: 767.98px) {
    .bx-language-switch--nav {
        margin: .75rem 0 .4rem;
        width: max-content;
    }

    .bx-language-switch--floating {
        right: .8rem;
        top: .8rem;
    }

    .customer-nav-bar .bx-language-switch {
        margin-left: auto;
        margin-right: .5rem;
    }

    .customer-dashboard-language-switch {
        min-height: 36px;
    }
}
