.language-switch {
    position: relative;
    display: flex;
    box-sizing: border-box;
    width: 87px;
    height: 46px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-family: var(--Pohifont, "Fredoka"), sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.language-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #f7fcf3;
    transition: transform 0.25s ease;
}

.language-switch--en .language-switch-thumb {
    transform: translateX(41px);
}

.language-switch-label {
    position: relative;
    display: flex;
    flex: 1 1 50%;
    align-items: center;
    justify-content: center;
    color: #f7fcf3;
    transition: color 0.25s ease;
}

.language-switch--et .language-switch-label[data-language="et"],
.language-switch--en .language-switch-label[data-language="en"] {
    color: #0f3d17;
}

.language-switch:focus-visible {
    outline: 2px solid #e9a03b;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .language-switch-thumb,
    .language-switch-label {
        transition: none;
    }
}
