* {
    margin: 0;
    padding: 0;
}
body {
    color:green;
}
.icheckbox {
    
    width: 36px;
    height: 20px;

    background: #444;
    border-radius: 16px;
}
.icheckbox input {
    position: relative;
    appearance: none;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 16px;
    z-index: 1;
    cursor: pointer;
}

.icheckbox input:checked
{
    left: 18px;
    background: #0f0;

}

input[type="checkbox"].toggle {
    appearance: none;
}
input[type="checkbox"].toggle + label {
    position: relative;
    display: flex;
    align-items: center;
}
input[type="checkbox"].toggle + label::before {
    content: "";
    width: 2em;
    height: 1em;
    background-color: hsl(0, 80%, 90%);
    border-radius: 1em;
    margin-right: .25em;
}
input[type="checkbox"].toggle + label::after {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    content: "\2715";
    font-size: .5em;
    left: .2em;
    width: 1.8em;
    height: 1.8em;
    background-color: hsl(0, 80%, 60%);
    color: white;
    border-radius: 1em;
    transition: 200ms;
}
input[type="checkbox"].toggle:focus + label::before{
    outline: 1px solid black;
}
input[type="checkbox"].toggle:checked + label::before {
    background-color: hsl(100, 80%, 90%);
}
input[type="checkbox"].toggle:checked + label::after {
    content: "\2713";
    transform: translateX(100%);
    background-color: hsl(100, 70%, 60%);
}
input[type="checkbox"].toggle:disabled + label {
    filter: grayscale(90%);
}


input[type="checkbox"].vbox {
    background: green;
}
input[type="checkbox"].vbox:checked {
    background: red;
}

input[type="checkbox"].vbox::after {
    content: "ccccc";
    background-color: hsl(100, 70%, 60%);
    color: red;
}
label.vbox {
        display: flex;
    background-color: #eeeeee;
    border: 1px outset #666666;
    padding: 1px 2px;
    margin: 2px 1px;
    white-space: nowrap;
}
label.vbox + input[type="checkbox"]:checked {
    background-color: #ceffce;
}