


.toggle-button-cover {
    display: table-cell;
    /*width: 200px;*/
    /*height: 140px;*/
    box-sizing: border-box;
    position: absolute;
    top: 85%;
    left: 23%;
    transform: translate(-50%, -50%);
}

.button-cover {
    height: 100px;
    /*margin: 20px;*/
    /*background-color: #fff;*/
    /*box-shadow: 0 10px 20px -8px #c5d6d6;*/
    border-radius: 4px;
}



.button-cover,
.knobs,
.layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.button {
    position: relative;
    top: 50%;
    width: 57px;
    height: 11px;
    margin: -20px auto 0 auto;
    overflow: hidden;
}

.button.r,
.button.r .layer {
    overflow: unset;
    border-radius: 100px;
}

.button.b2 {
    border-radius: 2px;
}

.checkbox {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    top: -4px;
}

.knobs {
    z-index: 2;
}

.layer {
    width: 100%;
    background: linear-gradient(0deg, #EDEDED 7.19%, #999999 98.9%);

    transition: 0.3s ease all;
    z-index: 1;
}

.layer:before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 90%;
    height: 60%;
    background: linear-gradient(0deg, #505050 7.2%, #000000 98.89%);
    border-radius: 30px;

}


/* Button 1 */
#button-1 .knobs:after {
    background: url("Group 460.svg");
    content: "";
    position: absolute;
    top: -5px;
    left: 1px;
    width: 15px;
    height: 14px;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    /* line-height: 1; */
    padding: 10px 9.5px;
    overflow: unset;
    /* background-color: #03a9f4; */
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-1 .checkbox:checked + .knobs:after {
    content: "";
    left: 36px;
    /*background-color: #f44336;*/
}

#button-1 .checkbox:checked ~ .layer {
    background-color: #fcebeb;
}

#button-1 .knobs,
#button-1 .knobs:before,
#button-1 .layer {
    transition: 0.3s ease all;
}




.mobile  .toggle-button-cover {

    display: table-cell;
    /* width: 200px; */
    /* height: 140px; */
    box-sizing: border-box;
    position: absolute;

    transform: translate(-50%, -50%);
}

.mobile{
    top: 81%!important;
    left: 13%!important;
}

.button-cover {
    height: 100px;
    /*margin: 20px;*/
    /*background-color: #fff;*/
    /*box-shadow: 0 10px 20px -8px #c5d6d6;*/
    border-radius: 4px;
}



.button-cover,
.knobs,
.layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.mobile .button {
    position: relative;
    top: 50%;
    width: 128px;
    height: 27px;
    margin: -20px auto 0 auto;
}

.button.r,
.button.r .layer {
    overflow: unset;
    border-radius: 100px;
}

.button.b2 {
    border-radius: 2px;
}

.checkbox {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.knobs {
    z-index: 2;
}

.layer {
    width: 100%;
    background: linear-gradient(0deg, #EDEDED 7.19%, #999999 98.9%);

    transition: 0.3s ease all;
    z-index: 1;
}

.layer:before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 90%;
    height: 60%;
    background: linear-gradient(0deg, #505050 7.2%, #000000 98.89%);
    border-radius: 30px;

}


/* Button 1 */
.mobile #button-1 .knobs:after {
    background: url("Group 460.svg");
    content: "";
    position: absolute;
    top: -5px;
    left: 1px;
    width: 44px;
    height: 44px;
    color: #fff;
    font-size: 44px;
    font-weight: bold;
    text-align: center;
    background-repeat: no-repeat;
    /* line-height: 1; */
    padding: 9px 9.5px;
    overflow: unset;
    /* background-color: #03a9f4; */
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
    background-size: 100%;
}

.mobile #button-1 .checkbox:checked + .knobs:after {
    content: "";
    left: 69%;
    /*background-color: #f44336;*/
}

#button-1 .checkbox:checked ~ .layer {
    background-color: #fcebeb;
}

#button-1 .knobs,
#button-1 .knobs:before,
#button-1 .layer {
    transition: 0.3s ease all;
}
