/* ==========================================
   Language Selector Widget (WPML Dropdown)
   Riverly_Language_Selector_Widget
   ========================================== */

.wpml-language-dropdown {
    position: relative;
    display: inline-block;
    font-weight: 600;
    font-family: "Outfit", Sans-serif;
    font-size: 16px;
    text-transform: none;
    font-style: normal;
    text-decoration: none;
    line-height: 1;
}

.wpml-lang-select {
    padding: 8px 12px;
    /* border: 1px solid #ddd; */
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
}

.wpml-lang-current {
    display: flex;
    align-items: center;
    padding: 4px 0px 4px 4px;
    gap: 0px;
    cursor: pointer;
    user-select: none;
    color: #ffffff;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
}

.wpml-lang-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 70px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 999;
}

/* Gap bridge to prevent hover loss */
.wpml-lang-list::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

/* Multiple hover targets for reliability */
.wpml-language-dropdown:hover .wpml-lang-list,
.wpml-language-dropdown:focus-within .wpml-lang-list,
.wpml-lang-current:hover+.wpml-lang-list,
.wpml-lang-list:hover {
    display: block;
}

.wpml-lang-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
}

.wpml-lang-list li a:hover {
    background: #f5f5f5;
}

.v2_main_header .wpml-language-dropdown{
    font-size: 14px;
}

.v2_main_header .wpml-lang-current{
    gap: 5px;
}

.v2_main_header .wpml-lang-current svg {
    width: 10px;
}

.v2_main_header .wpml-lang-current,
.v2_main_header .wpml-lang-list li a {
    color: #1D6C54;
}

.v2_main_header .wpml-lang-current svg path {
    fill: #1D6C54;
}

.dropdown-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}