.switch {
  position: relative;
  display: inline-block;
  width: 67px;
  height: 30px;
  vertical-align: bottom;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #979797;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 25px;
  padding: 0 3px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 60px;
  background: url(../images/switch.png) right center no-repeat;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider-yes-no {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #979797;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 25px;
  padding: 0 3px;
}

.slider-yes-no:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 60px;
  background: url(../images/switch-yes-no.png) right center no-repeat;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #ffc400;
}

input:checked + .slider:before {
  background-position: left center;
}

input:checked + .slider-yes-no {
  background-color: #ffc400;
}

input:checked + .slider-yes-no:before {
  background-position: left center;
}
