.womm-lang {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.womm-lang__btn {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0 4px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    background: #fff;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.womm-lang__btn:hover,
.womm-lang.is-open .womm-lang__btn {
    border-color: #00afef;
    box-shadow: 0 0 0 1px #00afef;
    color: #00afef;
}

.womm-lang__flag {
    display: inline-block;
    width: 24px;
    height: 18px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    vertical-align: middle;
    position: relative;
}

.womm-lang__fallback {
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    color: #333;
    display: block;
    text-align: center;
}

.womm-lang__flag.fi {
    font-size: 0;
}

.womm-lang__flag.fi .womm-lang__fallback {
    font-size: 0 !important;
    line-height: 0;
    overflow: hidden;
    width: 0;
    height: 0;
    position: absolute;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.womm-lang__caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #666;
    transition: transform 0.2s, border-top-color 0.2s;
}

.womm-lang.is-open .womm-lang__caret {
    transform: rotate(180deg);
    border-top-color: #00afef;
}

.womm-lang__menu {
    display: none;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
    min-width: 56px;
    position: absolute;
    padding: 6px 0;
    z-index: 1200;
}

.womm-lang.is-open .womm-lang__menu {
    display: block;
}

.womm-lang__item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #333;
    padding: 12px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    cursor: pointer;
    transition: background 0.15s;
}

.womm-lang__item:hover {
    background: rgba(0, 175, 239, 0.08);
    color: #00afef;
}

.womm-lang__item.is-active {
    background: rgba(0, 175, 239, 0.12);
    color: #00afef;
    font-weight: 600;
    position: relative;
    padding-right: 36px;
}

.womm-lang__item.is-active::after {
    content: "✓";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    color: #00afef;
}
