﻿
.flag-icon {
    width: 24px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
    object-fit: cover; 
}


.btn-lang {
    padding: 5px 10px;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 120px; 
    width: auto;
    cursor: pointer;
    white-space: nowrap;
}

.i-drop {
    margin-left: 5px;
}

.dropdown-menu.menu-cus {
    padding: 0.5rem 0;
    min-width: 120px;
    margin-top: 2px; 
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.15);
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}


    .dropdown-menu .dropdown-item:hover {
        background-color: #f8f9fa;
    }


#btn-lang-display, #btn-lang-display-mobile {
    display: flex;
    align-items: center;
    gap: 5px;
}


@media (max-width: 768px) {
    .lang-mobile {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    #btn-lang-display-mobile {
        padding: 4px 8px;
        min-width: 100px;
    }
}

/*.dropdown-menu-tip-nw:before {
    content: '';
    position: absolute;
    top: -6px;
    left: 10px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0,0,0,0.15);
    border-left: 1px solid rgba(0,0,0,0.15);
}*/


.dropdown {
    position: relative;
    display: inline-block;
}

.btn-cus {
    margin-top: 20px;
    color: #fff;
}

.dropdown-menu .dropdown-item + .dropdown-item {
    margin-top: 1px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.mg-a-top {
    margin-top: -3px !important;
}