.ml18-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

.ml18-current {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 24px;
    padding: 8px 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: box-shadow .2s;
    white-space: nowrap;
}

.ml18-current:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

.ml18-flag { font-size: 18px; line-height: 1; }
.ml18-name { font-weight: 500; color: #333; }
.ml18-arrow { font-size: 10px; color: #888; transition: transform .2s; }

.ml18-switcher.open .ml18-arrow { transform: rotate(180deg); }
.ml18-switcher.open .ml18-current { border-color: #0073aa; }

.ml18-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 320px;
    overflow-y: auto;
    min-width: 180px;
}

.ml18-switcher.open .ml18-dropdown { display: block; }

.ml18-dropdown li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background .15s;
}

.ml18-dropdown li a:hover { background: #f0f5ff; }
.ml18-dropdown li.ml18-active a { background: #e8f4fd; font-weight: 600; color: #0073aa; }

/* RTL support */
body.rtl .ml18-switcher { right: auto; left: 20px; }
body.rtl .ml18-dropdown { right: auto; left: 0; }
