/**
 * The Language field and its dropdown.
 *
 * Styled to match the Tour Type control beside it — same white card, same
 * 1px #DEDEDE border, same 20px radius. It used to be a native <select>, whose
 * popup ignores every style on the page and, on a phone, dropped a grey system
 * list on top of the bar.
 *
 * @package Sarisara_Child
 */

.ss-lang-field {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 104px;
}

.ss-lang-field__inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

.ss-lang-field__label {
    margin: 0;
    font-family: 'Google Sans', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #090920;
    line-height: 1.3;
    cursor: pointer;
}

.ss-lang-field__value {
    font-family: 'Google Sans', system-ui, sans-serif;
    font-size: 14px;
    color: #6b6b7b;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The menu — same card as .field-tour-type .dropdown-menu */
.ss-lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 20px 0 0;
    padding: 15px 10px;
    list-style: none;
    min-width: 140px;
    background: #FFFFFF;
    border: 1px solid #DEDEDE;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .05);
    z-index: 1050;
    max-height: 320px;
    overflow-y: auto;
}

.ss-lang-field.is-open .ss-lang-menu {
    display: block;
}

.ss-lang-menu__item {
    padding: 7px 11px;
    border-radius: 10px;
    font-family: 'Google Sans', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #090920;
    line-height: 1.4;
    cursor: pointer;
    transition: background .14s ease, color .14s ease;
}

.ss-lang-menu__item:hover {
    background: #f6f2ff;
    color: #7700FF;
}

.ss-lang-menu__item.is-on {
    color: #7700FF;
    font-weight: 600;
}
