.knobs,
.layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.button-check {
  position: relative;
  top: 50%;
  width: 67px;
  height: 26px;
  margin: -20px auto 0 auto;
  overflow: hidden;
}

.button-check.r,
.button-check.r .layer {
  border-radius: 100px;
}

.button-check.b2 {
  border-radius: 2px;
}

.checkbox-sino {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.pointer-default{
  cursor: default !important;
}

.knobs {
  z-index: 2;
}

.layer {
  width: 100%;
  background-color: #fcebeb;
  transition: 0.3s ease all;
  z-index: 1;
}

/* Button 1 */
#button-1 .knobs:before {
  content: "No";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 14px;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  text-align: center;
  line-height: 0;
  padding: 9px 4px;
  background-color: #f44336;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-1 .checkbox-sino:checked + .knobs:before {
  content: "Si";
  left: 40px;
  background-color: #03a9f4;
}

#button-1 .checkbox-sino:checked ~ .layer {
  background-color: #fcebeb;
  background-color: #ebf7fc;
}

#button-1 .knobs,
#button-1 .knobs:before,
#button-1 .layer {
  transition: 0.3s ease all;
}


/* Button 2 */
#button-2 .knobs:before {
  content: "No";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 14px;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  text-align: center;
  line-height: 0;
  padding: 9px 4px;
  background-color: #f44336;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

#button-2 .checkbox-sino:checked + .knobs:before {
  content: "Si";
  left: 40px;
  background-color: #03a9f4;
}

#button-2 .checkbox-sino:checked ~ .layer {
  background-color: #fcebeb;
  background-color: #ebf7fc;
}

#button-2 .knobs,
#button-2 .knobs:before,
#button-2 .layer {
  transition: 0.3s ease all;
}
