.lang-switcher-desktop {
    margin-left: 24px;
}

.lang-switcher-mobile {
    margin: 12px 0 12px 0;
}

.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px 7px 9px;
    border: 1.5px solid rgba(0, 0, 0, .13);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1;
    transition: border-color .15s, box-shadow .15s;
    user-select: none;
}

.lang-trigger:hover {
    border-color: rgba(0, 0, 0, .28);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}

.lang-trigger.open {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.lang-flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.lang-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lang-chevron {
    width: 14px;
    height: 14px;
    color: #888;
    transition: transform .2s cubic-bezier(.4, 0, .2, 1), color .15s;
    flex-shrink: 0;
}

.lang-trigger.open .lang-chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1.5px solid rgba(0, 0, 0, .1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .06);
    padding: 5px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-6px) scale(.97);
    pointer-events: none;
    transition: opacity .18s cubic-bezier(.4, 0, .2, 1), transform .18s cubic-bezier(.4, 0, .2, 1);
}

.lang-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Up direction */
[data-direction="up"] .lang-dropdown {
    top: auto;
    bottom: calc(100% + 7px);
    right: auto;
    left: 0;
    transform: translateY(6px) scale(.97);
}

[data-direction="up"] .lang-dropdown.open {
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    transition: background .12s;
    border: none;
    background: none;
    width: 100%;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
}

.lang-option:hover {
    background: #f4f4f4;
}

.lang-option.active {
    background: #eff6ff;
    color: #2563eb;
}

.lang-option .lang-flag {
    width: 20px;
    height: 20px;
}

.lang-option-check {
    width: 14px;
    height: 14px;
    color: #2563eb;
    opacity: 0;
    transition: opacity .12s;
    margin-left: auto;
}

.lang-option.active .lang-option-check {
    opacity: 1;
}

.lang-divider {
    height: 1px;
    background: rgba(0, 0, 0, .06);
    margin: 4px 2px;
}