/* The Waffle - TranslatePress language switcher v15.11 */
.waffle-language-switcher {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    font: inherit;
}

.waffle-language-switcher__details {
    position: relative;
    margin: 0;
}

.waffle-language-switcher__trigger {
    box-sizing: border-box;
    min-height: 40px;
    padding: 0 12px 0 7px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: #212627;
    color: hsla(0,0%,100%,.8);
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
    user-select: none;
    transition: color .18s ease;
}

.waffle-language-switcher__trigger::-webkit-details-marker { display: none; }
.waffle-language-switcher__trigger::marker { display: none; content: ''; }

.waffle-language-switcher__trigger:hover,
.waffle-language-switcher__trigger:focus-visible,
.waffle-language-switcher__details[open] > .waffle-language-switcher__trigger {
    color: #fff;
    outline: none;
}

.waffle-language-switcher__flag {
    display: block;
    width: 22px;
    height: 15px;
    object-fit: contain;
    flex: 0 0 22px;
    filter: saturate(.72) brightness(.96);
}

.waffle-language-switcher__current-name {
    color: inherit;
    line-height: 1;
}

.waffle-language-switcher__chevron {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: transform .18s ease;
}

.waffle-language-switcher__details[open] .waffle-language-switcher__chevron {
    transform: rotate(225deg) translate(-1px,-1px);
}

.waffle-language-switcher__menu {
    position: absolute;
    z-index: 99999;
    top: calc(100% + 7px);
    right: 0;
    width: max-content;
    min-width: 190px;
    max-height: 320px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: #212627;
    box-shadow: 0 12px 30px rgba(0,0,0,.24);
}

.waffle-language-switcher__option {
    min-height: 38px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    color: hsla(0,0%,100%,.8) !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}

.waffle-language-switcher__option:hover,
.waffle-language-switcher__option:focus-visible,
.waffle-language-switcher__option.is-current {
    color: #fff !important;
    background: rgba(255,255,255,.07);
    outline: none;
}

@media (max-width: 849px) {
    .waffle-language-switcher__trigger {
        width: 34px;
        min-width: 34px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        justify-content: center;
        background: #2d3436;
    }

    .waffle-language-switcher__current-name,
    .waffle-language-switcher__chevron {
        display: none;
    }

    .waffle-language-switcher__menu {
        background: #2d3436;
        right: 0;
        min-width: 190px;
        max-width: calc(100vw - 20px);
    }
}
