.window--settings {
    width: 300px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;

    border-bottom: 1px solid rgb(var(--text2) / 0.2);
}

.setting-row__label {
    width: 150px;
    font-size: 1.2rem;
}

.language-select {
    padding: 0.25rem;

    font-size: 1rem;
    text-align: center;
    color: inherit;
    background: rgb(var(--bg1));
    border: 1px solid rgb(var(--text1));
    border-radius: var(--radius-sm);
    appearance: none;

    cursor: pointer;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 1rem;
}

.switch__input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.switch__slider {
    position: absolute;
    inset: 0;

    background: rgb(var(--switch-off));
    border-radius: var(--radius-pill);

    cursor: pointer;
    transition: 0.4s;

    &::before {
        content: "";
        position: absolute;
        left: 4px;
        bottom: 4px;
        width: 25px;
        height: 25px;

        background: white;
        border-radius: 50%;

        transition: translate 0.4s;
    }
}

.switch__input:checked + .switch__slider {
    background: rgb(var(--accent-pink));

    &::before {
        translate: 25px;
    }
}

.switch__input:focus-visible + .switch__slider {
    outline: 2px solid rgb(var(--accent-pink));
    outline-offset: 2px;
}
