.switch {
  position: relative;
  display: inline-block;
  width: 192px;
  height: 38px;
  border-radius: 70px;
  background-color: #646a62;
  border: solid 1px #c6c6c6;
}
  
.switch input {
  display:none;
}
  
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 192px;
  height: 40px;
  border-radius: 70px;
  display: flex;
  background-color: #646a62;
  border: solid 1px #c6c6c6;
  -webkit-transition: .4s;
  transition: .4s;    
}
  
.slider:before {
  position: absolute;
  content: "";
  left: 4px;
  top:2px;
  -webkit-transition: .4s;
  transition: .4s;
  width: 94px;
  height: 32px;
  border-radius: 23px;
  border: solid 1px transparent;
  background-image: linear-gradient(to top, #83d888, #4caf50), linear-gradient(to bottom, #caf6cb, #5c8c5d);
  background-origin: border-box;
  background-clip: content-box, border-box;
}

.slider-txt {
  width: 50%;
  display:flex;
  justify-content: center;
  align-items: center;
  opacity: 0.3;
  position: relative;
  font-family: Roboto;
  font-size: 13px;
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
  color: #ffffff;
  transition:opacity 1s;
}

.highlight {
  opacity: unset;
  font-weight: 500;
}

input:checked + .slider:before {
  -webkit-transform: translateX(85px);
  -ms-transform: translateX(85px);
  transform: translateX(85px);
}
  