.checkbox {
    visibility: hidden;
}

.checkbox-group {
    position: relative;
    width: 80px;
    height: 28px;
    background-color: #333;
    border-radius: 50px;
    box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2);
}

.checkbox-group:after {
    content: '';
    position: absolute;
    top: 13px;
    left: 14px;
    height: 2px;
    width: 52px;
    background-color: #111;
    border-radius: 50px;
    box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.5), 0px 1px 0px rgba(255, 255, 255, 0.2);
}

.checkbox-label {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #5c5f75;
    position: absolute;
    top: 3px;
    z-index: 1;
    left: 4px;
    box-shadow: 0px 2px 5px 0px rgb(0 0 0 / 30%);
    background: linear-gradient(to bottom, #5f6480 0%, #4b4e64 40%, #444964 100%);
    transition: all 0.4s ease;
    cursor: pointer;
}

.checkbox-label:after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #333;
    position: absolute;
    top: 6px;
    left: 6px;
    box-shadow: inset 0px 1px 1px rgb(0 0 0 / 90%), 0px 1px 0px #ffffff54;
}

.checkbox:checked+.checkbox-label {
    left: 54px;
}

.checkbox:checked+.checkbox-label:after {
    background-color: #27ae60;
}