.checkbox {
    display: none;
}

.switch {
    align-items: center;
    background-color: gray;
    border-radius: 500px;
    cursor: pointer;
    display: flex;
    height: 14px;
    justify-content: space-between;
    padding: 0 10px;
    /*position: relative;*/
    user-select: none;
    width: 24px;
    box-sizing: border-box;
    /*font-size: 13px;
    font-weight: 400;*/
}

.checkbox:checked ~ .switch {
    background-color: #1892f1;
}

.checkbox:not(:checked) ~ .switch {
    background-color: gray;
}

.switch__left,
.switch__right {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.checkbox:checked ~ .switch .switch__right {
    visibility: hidden;
}

.checkbox:not(:checked) ~ .switch .switch__left {
    visibility: hidden;
}

.switch__circle {
    height: 14px;
    position: absolute;
    transition: all 0.1s linear;
    width: 14px;
}

.checkbox:checked ~ .switch .switch__circle {
    right: 0;
    left: calc(100% - 14px);
}

.checkbox:not(:checked) ~ .switch .switch__circle {
    right: calc(100% - 14px);
    left: 0;
}

.switch__circle-inner {
    background-color: white;
    border-radius: 50%;
    display: block;
    height: 100%;
    width: 100%;
}
