.wb-language-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    position: relative;
}

.wb-language-item > .wb-item-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.wb-language-item:not(.wb-active) > .wb-item-link:hover {
    background: #8CD7F1;
    color: #fff;
}
li.wb-language-item.wb-active > a > span.wb-native {
    display: none;
}
li.wb-language-item.wb-active { 
 padding-right: 6px;
}
.rtl li.wb-language-item.wb-active { 
 padding-right: 0;
 padding-left : 6px;
}

span.wb-native	{
	font-size:16px;
}
li.wb-language-item {
	list-style:none;
}
.wb-language-submenu {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 12px;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #EDEDED;
    box-shadow: 0px 4px 32px rgba(167, 174, 186, 0.43);
    width: 355px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    z-index: 999;
}

.wb-language-item.wb-active:hover > .wb-language-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.wb-language-item.wb-active > .wb-item-link::after {
    content: "";
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
       background: url("icons/language_toggle.svg") no-repeat center center;
    background-size: contain;
    transition: transform 0.5s ease;
}
.rtl .wb-language-item.wb-active > .wb-item-link::after {
    right: unset;
	left:0px;
}

.wb-language-item.wb-active:hover > .wb-item-link::after {
    transform: translateY(-50%) rotate(180deg);
}
.wb-language-submenu::before {
    content: "";
    position: absolute;
    top: -10px;          
    right: 13px;         
    border-bottom: 10px solid #fff; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    z-index: 1000;
}

.wb-language-submenu li a.wb-item-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.wb-language-submenu li a.wb-item-link:hover {
   background-color: #8CD7F1 ;
}

.wb-language-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
}

.wb-native {
    font-size: 14px;
}

@media only screen and (max-width: 768px) {
    ul.wb-language-submenu {
        position: fixed;
        top: 70px;
        left: 0;
		right: 0;
        width: 100%;
        border-top-right-radius: 0px;
        border-top-left-radius: 0px;
        box-shadow: none;
    }
	.wb-language-submenu::before {
		display:none;
}
.wb-language-submenu li a.wb-item-link {
    gap: 10px;
}
}