.ui-language-selector {
    direction: ltr;
    position: absolute;
    top: 8px;
    right: 24px;
    z-index: 20;
    text-align: left;
    color: #fff;
    font: 12px/1.4 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ui-language-status {
    position: absolute;
    right: 0;
    top: 100%;
    width: 220px;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
    color: #9c2020;
    box-shadow: 0 4px 12px #0003;
}

.ui-language-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 38px;
    max-width: calc(100vw - 32px);
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 24px;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .08);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.ui-language-trigger:hover,
.ui-language-trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, .17);
}

.ui-language-current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-language-globe {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.ui-language-chevron,
.ui-language-check {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ui-language-options {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    box-sizing: border-box;
    width: max-content;
    min-width: 136px;
    max-width: calc(100vw - 32px);
    max-height: min(320px, 70vh);
    overflow-y: auto;
    margin: 0;
    padding: 5px;
    list-style: none;
    border: 1px solid #e4e9f0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 20, 60, .22), 0 2px 5px rgba(0, 20, 60, .10);
    color: #23375c;
}

.ui-language-options[hidden] {
    display: none;
}

.ui-language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 29px;
    box-sizing: border-box;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.ui-language-option:hover,
.ui-language-option:focus-visible {
    background: #f0f5fc;
    outline: none;
}

.ui-language-option[aria-selected="true"] {
    background: #dceafe;
    color: #005bea;
    font-weight: 600;
}

.ui-language-check {
    visibility: hidden;
}

.ui-language-option[aria-selected="true"] .ui-language-check {
    visibility: visible;
}

.ui-language-trigger:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.ui-language-results > header {
    position: relative;
}

.ui-language-home > .container {
    box-sizing: border-box;
    min-height: 320px;
    padding-top: 76px;
}

@media (max-width: 1100px) {
    .ui-language-selector {
        right: 16px;
    }

    .ui-language-results > header {
        height: 198px;
        padding-top: 68px;
    }

    .ui-language-results > nav,
    .ui-language-results > .data {
        top: 198px;
    }
}
