/* Language Selector Styles */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.language-selector-wrapper {
    display: inline-block;
}

.language-selector-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    outline: none;
}

.language-selector-trigger:hover,
.language-selector-trigger:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

.language-selector-trigger .flag {
    font-size: 18px;
    line-height: 1;
}

.language-selector-trigger .label {
    font-family: 'Mulish', sans-serif;
}

.language-selector-trigger .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    outline: none;
}

.language-option:hover,
.language-option:focus {
    background: #f5f5f5;
    outline: none;
}

.language-option.active {
    background: #e8f4f8;
    color: #0066cc;
}

.language-option .flag {
    font-size: 20px;
    line-height: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 10px;
    }

    .language-selector-trigger {
        width: 100%;
        justify-content: center;
    }

    .language-dropdown-content {
        left: 0;
        right: 0;
        width: 100%;
    }
}

/* For mobile menu */
.grax_tm_mobile_menu .language-selector-mobile {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.grax_tm_mobile_menu .language-selector-mobile button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Mulish', sans-serif;
    outline: none;
}

.grax_tm_mobile_menu .language-selector-mobile button:hover,
.grax_tm_mobile_menu .language-selector-mobile button:focus {
    background: rgba(255, 255, 255, 0.05);
    outline: none;
}

.grax_tm_mobile_menu .language-selector-mobile .flag {
    font-size: 20px;
}
