.language-picker {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    font-family: inherit;
    z-index: 30;
}

.language-picker-trigger,
.language-picker-option {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(140,170,210,.35);
    border-radius: 9px;
    background: #20314a;
    color: #edf4ff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    min-height: 36px;
    padding: 7px 10px;
    white-space: nowrap;
}

.language-picker-trigger img,
.language-picker-option img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.language-picker-chevron {
    margin-left: 3px;
    opacity: .7;
}

.language-picker-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 110px;
    padding: 5px;
    border: 1px solid rgba(140,170,210,.35);
    border-radius: 10px;
    background: #17253a;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    z-index: 100;
}

.language-picker-menu[hidden] {
    display: none !important;
}

.language-picker-menu form {
    margin: 0;
}

.language-picker-option {
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 6px;
    text-align: left;
}

.language-picker-option:hover,
.language-picker-option[aria-current="true"] {
    background: #304a6c;
}

.language-picker-trigger:hover {
    background: #2c4361;
}

.language-picker-trigger:focus-visible,
.language-picker-option:focus-visible {
    outline: 2px solid #7aa2f7;
    outline-offset: 2px;
}

.profile-language-row {
    display: flex;
    justify-content: center;
    margin: 0 0 18px;
}

.auth-language-row {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 16px;
}
