﻿.lm-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: inherit;
    transition: background 0.12s;
}

    .lm-trigger:hover {
        background: rgba(0,0,0,0.04);
    }

    .lm-trigger .lm-globe {
        font-size: 17px;
    }

    .lm-trigger .ti {
        font-size: 12px;
        opacity: 0.45;
    }

.lm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

    .lm-overlay.open {
        display: flex;
    }

.lm-modal {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.lm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.lm-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.lm-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    color: inherit;
    opacity: 0.45;
    transition: background 0.1s, opacity 0.1s;
}

    .lm-close:hover {
        background: rgba(0,0,0,0.06);
        opacity: 1;
    }

.lm-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    transition: background 0.1s;
}

    .lm-item:hover {
        background: rgba(0,0,0,0.04);
    }

    .lm-item.active {
        background: rgba(0,0,0,0.04);
    }

.lm-flag {
    font-size: 20px;
    line-height: 1;
    width: 28px;
    text-align: center;
}

.lm-info {
    flex: 1;
}

.lm-name {
    font-size: 13px;
    font-weight: 500;
    display: block;
}

.lm-native {
    font-size: 12px;
    opacity: 0.45;
    display: block;
    margin-top: 1px;
}

.lm-check {
    font-size: 15px;
    opacity: 0;
}

.lm-item.active .lm-check {
    opacity: 1;
}
