.switch {
  position: relative;
  display: inline-block;
  width: 145px;
  height: 34px;
  border-radius: 70px;
  background-color: #646a62;
  border: solid 1px #c6c6c6;
  margin: 0;
}
  
.switch input {display:none;}

.switch-2 {
  position: relative;
  display: inline-block;
  width: 125px;
  height: 24px;
  border-radius: 70px;
  background-color: #646a62;
  border: solid 1px #c6c6c6;
}
  
.switch-2 input {display:none;}
  
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 145px;
  height: 34px;
  border-radius: 70px;
  display: flex;
  background-color: #646a62;
  border: solid 1px #c6c6c6;
  -webkit-transition: .4s;
  transition: .4s;    
}
  
.slider:before {
  position: absolute;
  content: "";
  top:2px;
  left: 3px;
  -webkit-transition: .4s;
  transition: .4s;
  width: 72px;
  height: 26px;
  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-2 {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 125px;
  height: 24px;
  border-radius: 70px;
  display: flex;
  background-color: #FFF;
  border: solid 1px #02688C;
  -webkit-transition: .4s;
  transition: .4s;    
}

.slider-2:before {
  position: absolute;
  content: "";
  -webkit-transition: .4s;
  transition: .4s;
  width: 63px;
  height: 20px;
  border-radius: 23px;
  border: solid 1px transparent;
  background: #02688C;
  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: 11px;
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
  color: #ffffff;
  transition: opacity 1s;
}

.slider-txt-2 {
  width: 50%;
  display:flex;
  justify-content: center;
  align-items: center;
  opacity: 0.8;
  position: relative;
  font-family: Roboto;
  font-size: 11px;
  font-weight: normal;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
  color: #02688C;
  transition: opacity 1s;
}

.slider-txt.highlight {
  opacity: unset;
  font-weight: 500;
}

.slider-txt-2.highlight {
  color: #FFF;
  font-weight: 500;
  opacity: unset;
}

input:checked + .slider:before {
  left: 1px;
  -webkit-transform: translateX(65px);
  -ms-transform: translateX(65px);
  transform: translateX(65px);
}
  
input:checked + .slider-2:before {
  -webkit-transform: translateX(58px);
  -ms-transform: translateX(58px);
  transform: translateX(58px);
}