/**
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License version 3.0
* that is bundled with this package in the file LICENSE.md
* It is also available through the world-wide-web at this URL:
* https://opensource.org/license/osl-3-0-php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to support@qloapps.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this module to a newer
* versions in the future. If you wish to customize this module for your needs
* please refer to https://store.webkul.com/customisation-guidelines for more information.
*
* @author Webkul IN
* @copyright Since 2010 Webkul
* @license https://opensource.org/license/osl-3-0-php Open Software License version 3.0
*/

.languages-block-wrap button.dropdown-toggle {
    padding: 0;
    background-color: transparent;
    color: #fff;
}

.languages-block-wrap .caret {
    border-top-color: white;
}

.languages-block-wrap .dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

/* popup - start */
.fancybox-blocklanguages .fancybox-inner {
    border-radius: 4px;
}

.fancybox-blocklanguages .list-group {
    margin-bottom: 0;
}

.fancybox-blocklanguages .list-group-item {
    border: none;
    min-width: 160px;
    font-size: 14px;
}

.fancybox-blocklanguages .list-group-item.active {
    background-color: #379BF0;
}
/* popup - end */
/* Language Toggle Button Styling */
.lang-toggle-container {
    display: flex;
    align-items: center;
    gap: 0;
    direction: ltr;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    border-radius: 0;
    transition: all 0.2s ease;
    min-width: 32px;
    text-align: center;
    line-height: 1.4;
}

/* Active language - filled */
.lang-btn-active {
    background-color: #c9a96e;
    color: #ffffff !important;
    border: 1px solid #c9a96e;
}

/* Inactive language - outline */
.lang-btn-inactive {
    background-color: transparent;
    color: #666666 !important;
    border: 1px solid #cccccc;
}

.lang-btn-inactive:hover {
    background-color: #c9a96e;
    color: #ffffff !important;
    border-color: #c9a96e;
}

.lang-toggle-divider {
    color: #cccccc;
    font-size: 14px;
    padding: 0 2px;
    font-weight: 300;
    line-height: 1;
}

/* For RTL pages - flip the toggle */
html[dir="rtl"] .lang-toggle-container {
    direction: ltr;
}

/* Mobile popup styling */
#language-selector-popup .list-group-item {
    font-weight: 500;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
}

#language-selector-popup .list-group-item.active {
    background-color: #c9a96e;
    color: #fff;
    border-color: #c9a96e;
}

#language-selector-popup .list-group-item:not(.active):hover {
    background-color: #f8f5ef;
    color: #c9a96e;
}

/* Remove caret from mobile */
.btn-language-selector-popup .caret {
    display: none;
}
