/* RETHYMNON_LIST_LANGUAGE_FLAGS_V1 */

.list-language-picker {
    position: relative;
    z-index: 80;
    flex: 0 0 auto;
    align-self: center;
}

.list-language-picker__button {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    min-width: 150px;
    height: 44px;
    margin: 0;
    padding: 0 .72rem;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 13px;
    background: rgba(255, 255, 255, .96);
    color: #0a3158;
    box-shadow: 0 6px 18px rgba(0, 28, 58, .16);
    cursor: pointer;
    font: inherit;
    font-size: .79rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: none;
}

.list-language-picker__button:hover,
.list-language-picker__button:focus-visible {
    border-color: #8ec0e6;
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, .22),
        0 7px 20px rgba(0, 28, 58, .2);
}

.list-lang-flag {
    display: inline-block !important;
    width: 20px !important;
    height: 15px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 15px !important;
    max-height: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(10, 49, 88, .15) !important;
    border-radius: 2px !important;
    object-fit: cover !important;
    box-shadow: 0 1px 3px rgba(10, 49, 88, .15) !important;
    flex: 0 0 20px !important;
    transform: none !important;
}

.list-language-picker__code {
    color: #6a7e93;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.list-language-picker__name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-language-picker__chevron {
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-right: 2px solid #0a3158;
    border-bottom: 2px solid #0a3158;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .16s ease;
}

.list-language-picker.is-open
.list-language-picker__chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.list-language-picker__menu {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: 210px;
    margin: 0;
    padding: 6px;
    border: 1px solid #d4e0ea;
    border-radius: 13px;
    background: #fff;
    opacity: 1;
    box-shadow: 0 18px 42px rgba(8, 36, 66, .22);
    overflow: hidden;
    backdrop-filter: none;
}

.list-language-picker.is-open
.list-language-picker__menu {
    display: block;
}

.list-language-picker__option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: .58rem;
    min-height: 38px;
    padding: .5rem .58rem;
    border-radius: 8px;
    background: #fff;
    color: #0a3158;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 750;
}

.list-language-picker__option:hover,
.list-language-picker__option:focus-visible {
    background: #edf6fd;
    outline: none;
}

.list-language-picker__option[aria-current="true"] {
    background: #e4f2fd;
    color: #0057b8;
    font-weight: 900;
}

.list-language-picker__option small {
    color: #6a7e93;
    font-size: .64rem;
    font-weight: 900;
}

.list-category-header,
.list-category-header__inner {
    overflow: visible !important;
}

@media (max-width: 900px) {
    .list-language-picker {
        margin-left: auto;
    }

    .list-language-picker__button {
        min-width: 76px;
        height: 40px;
        padding: 0 .58rem;
    }

    .list-language-picker__name {
        display: none;
    }

    .list-language-picker__menu {
        width: 196px;
    }
}
