.checkbox-switch {
    margin: 0;
    display: flex;
    align-items: center;
    width: auto;
}

.checkbox-input {
    display: none
}

.checkbox {
    font-size: 0;
    line-height: 0;
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
    background-color: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 3px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin: 0 5px;
}

.checkbox-input:checked + .checkbox {
    background-color: #57ad68;
}

.checkbox-input:checked + .checkbox:after {

    box-shadow: 0 0 4px #57ad68;
    color: #fff;
    content: "\2714";
    display: inline-block;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 12px;
    font-family: monospace;
    line-height: 16px;
}


.switch-slide-label {
    display: block;
    width: 34px;
    height: 18px;
    background: #ccc;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}

.switch-slide-label:after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 100%;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
    position: absolute;
    left: 1px;
    top: 1px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-transition:0.3s ease;
    transition:0.3s ease;
}

.switch-slide input:checked+label {
    background: #34bf49;
    transition: 0.3s ease;
}
.switch-slide input:checked+label:after {
    left: 17px;
}