.awd-lm-switcher {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f8fafc;
    box-sizing: border-box;
}

.awd-lm-switcher *,
.awd-lm-switcher *::before,
.awd-lm-switcher *::after {
    box-sizing: border-box;
}

.awd-lm-fixed {
    position: fixed;
    z-index: 2147483000;
}

.admin-bar .awd-lm-top-right,
.admin-bar .awd-lm-top-left {
    top: 44px;
}

.awd-lm-top-right {
    top: 14px;
    right: 18px;
}

.awd-lm-top-left {
    top: 14px;
    left: 18px;
}

.awd-lm-bottom-right {
    right: 18px;
    bottom: 18px;
}

.awd-lm-bottom-left {
    left: 18px;
    bottom: 18px;
}

.awd-lm-inline {
    position: relative;
    display: inline-block;
}

.awd-lm-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 172px;
    max-width: 245px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    color: #f8fafc;
    box-shadow: 0 14px 35px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.awd-lm-current:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 172, 237, 0.65);
    box-shadow: 0 18px 45px rgba(0,0,0,0.30), 0 0 0 3px rgba(0,172,237,0.14), inset 0 1px 0 rgba(255,255,255,0.1);
}

.awd-lm-current-flag {
    font-size: 18px;
    line-height: 1;
}

.awd-lm-current-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: left;
}

.awd-lm-current-caret {
    color: #7dd3fc;
    font-size: 12px;
    transition: transform 0.18s ease;
}

.awd-lm-switcher.is-open .awd-lm-current-caret {
    transform: rotate(180deg);
}

.awd-lm-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    width: 275px;
    max-height: min(430px, 75vh);
    overflow-y: auto;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 25px 75px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
}

.awd-lm-top-left .awd-lm-menu,
.awd-lm-bottom-left .awd-lm-menu {
    left: 0;
    right: auto;
    transform-origin: top left;
}

.awd-lm-bottom-right .awd-lm-menu,
.awd-lm-bottom-left .awd-lm-menu {
    top: auto;
    bottom: calc(100% + 9px);
    transform-origin: bottom right;
}

.awd-lm-bottom-left .awd-lm-menu {
    transform-origin: bottom left;
}

.awd-lm-switcher.is-open .awd-lm-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.awd-lm-option {
    width: 100%;
    min-height: 42px;
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #e2e8f0;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    font-weight: 750;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.awd-lm-option:hover,
.awd-lm-option.is-active {
    background: rgba(0, 172, 237, 0.14);
    color: #ffffff;
}

.awd-lm-option.is-active {
    box-shadow: inset 3px 0 0 #00aced;
}

.awd-lm-flag {
    font-size: 18px;
    line-height: 1;
}

.awd-lm-native {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.awd-lm-code {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.4px;
}

.awd-lang-ar .awd-lm-current-name,
.awd-lang-ar .awd-lm-native {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.awd-lang-rtl body {
    direction: rtl;
}

.awd-lang-rtl .awd-lm-switcher,
.awd-lang-rtl .awd-lm-switcher * {
    direction: rtl;
}

@media (max-width: 600px) {
    .awd-lm-fixed {
        right: 12px;
        left: auto;
    }

    .awd-lm-top-right,
    .awd-lm-top-left {
        top: 10px;
    }

    .admin-bar .awd-lm-top-right,
    .admin-bar .awd-lm-top-left {
        top: 56px;
    }

    .awd-lm-current {
        min-width: 148px;
        max-width: calc(100vw - 24px);
        height: 40px;
        font-size: 12px;
        padding: 0 11px;
    }

    .awd-lm-menu {
        width: min(275px, calc(100vw - 24px));
        max-height: 65vh;
    }
}
