/* Currency Selector Styles */
#currency {
    float: right;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    height: 60px;
    padding-left: 15px;
    margin-left: 20px;
    border-left: 1px solid #D3D3D3;
}

#currency img {
    width: 20px;
    min-width: 20px;
    height: 20px;
}

#currency .dropBtn img {
    width: 26px;
    min-width: 26px;
    height: 26px;
    margin-right: 24px;
}

#currency .dropBtn:before {
    content: '\e93d';
    position: absolute;
    top: 50%;
    right: 0;
    display: block;
    color: #7E7E7E;
    font-size: 14px;
    font-family: 'font-icon';
    font-weight: bold;
    line-height: 1;
    margin-top: -5px;
}

#currency .dropCnt {
    top: 100%;
    left: initial;
    right: 0;
    background: #ffffff !important;
    min-width: 154px;
    border: 1px solid #ececec;
    border-top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#currency .dropCnt > li {
    display: block;
    border-top: 1px solid #ececec;
}

#currency .dropCnt > li a {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    color: #000000;
    font-size: 14px;
    font-family: 'lite';
    padding: 15px 20px;
}

#currency .dropCnt > li a:hover {
    background: #ececec;
}

#currency .dropCnt > li span {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

#currency .dropCnt > li img {
    margin-left: 16px;
}

/* Mobile Styles */
@media (max-width: 991px) {
    /* Hide currency dropdown on mobile */
    #currency {
        display: none !important;
    }

    /* Hide WAZO link on mobile */
    nav > ul > li:not(.currency):not(.lang) {
        display: none !important;
    }

    /* Show currency links in mobile menu */
    nav > ul > li.currency {
        display: block !important;
        border-top: 1px solid #cdcdcd;
    }

    /* Style currency links like language links */
    nav > ul > li.currency > a {
        height: 50px;
        display: block !important;
        padding-top: 16px;
    }

    /* Perfect alignment for currency and language links - CENTERED */
    nav > ul > li.currency > a span,
    nav > ul > li.lang > a span {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
        -webkit-box-align: center !important;
            -ms-flex-align: center !important;
                align-items: center !important;
        -webkit-box-pack: center !important;
            -ms-flex-pack: center !important;
                justify-content: center !important;
    }

    /* Align all icons perfectly */
    nav > ul > li.currency a img,
    nav > ul > li.lang a img {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        max-width: 20px !important;
        margin-right: 12px !important;
        flex-shrink: 0 !important;
        display: block !important;
    }

    /* Ensure text starts at the same position */
    nav > ul > li.currency a span,
    nav > ul > li.lang a span {
        font-size: 14px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    /* Highlight active currency and language */
    nav > ul > li.currency.active,
    nav > ul > li.lang.active {
        background-color: #E3F7FD !important;
    }

    nav > ul > li.currency.active a,
    nav > ul > li.lang.active a {
        color: #333333 !important;
    }

    nav > ul > li.currency.active a span,
    nav > ul > li.lang.active a span {
        color: #333333 !important;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    /* Hide currency links in desktop menu */
    #nav li.currency {
        display: none !important;
    }
}
