.tl-language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 18px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
    z-index: 1001;
}

/* Allow the desktop menu to open below the slim social/top bar. */
.top-bar-control,
.top-bar-control .header-element,
.top-bar-left-control,
.top-bar,
.top-bar > .header-container {
    overflow: visible !important;
}

.top-bar > .header-container {
    position: relative;
}

.top-bar-left-control .tl-language-switcher {
    position: absolute;
    top: 50%;
    right: 0;
    margin: 0;
    transform: translateY(-50%);
}

.top-bar-left-control .tl-language-switcher__menu {
    right: 0;
    left: auto;
}

.tl-language-switcher summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 4px;
    color: inherit;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.tl-language-switcher summary::-webkit-details-marker {
    display: none;
}

.tl-language-switcher__chevron {
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
}

.tl-language-switcher[open] .tl-language-switcher__chevron {
    transform: translateY(2px) rotate(225deg);
}

.tl-language-switcher__menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 150px;
    margin: 0;
    padding: 7px 0;
    background: #303030;
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    list-style: none;
}

.tl-language-switcher__menu li {
    margin: 0;
    padding: 0;
}

.tl-language-switcher__menu a {
    display: block;
    padding: 10px 16px;
    color: #f1f1f1;
    font-size: 12px;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.tl-language-switcher__flag {
    display: inline-block;
    min-width: 1.35em;
    margin-right: 5px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 15px;
    font-style: normal;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    vertical-align: -1px;
}

.tl-language-switcher summary .tl-language-switcher__flag {
    margin-right: 0;
}

.tl-language-switcher__menu a:hover,
.tl-language-switcher__menu a:focus,
.tl-language-switcher__menu a[aria-current="page"] {
    background: #3d3d3d;
    color: #fff;
}

.tl-language-switcher summary:focus-visible,
.tl-language-switcher__menu a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (max-width: 991px) {
    .site-header {
        z-index: 10000 !important;
    }

    .tl-language-switcher--desktop {
        display: none;
    }

    .tl-language-switcher--mobile {
        margin-left: 10px;
    }

    .tl-language-switcher--mobile summary {
        min-height: 36px;
    }

    .tl-language-switcher--mobile .tl-language-switcher__menu {
        position: fixed;
        top: 94px;
        right: 12px;
        left: auto;
        z-index: 10001;
    }
}

@media (min-width: 992px) {
    .tl-language-switcher--mobile {
        display: none;
    }
}
