.switch {
  position: relative;
  width: 175px;
  height: 30px;
  background-color: white;
  border: 0px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 175px;
  height: 35px;
  border-radius: 20px;
  display: flex;
  background-color: white;
  border: solid 1px #c6c6c6;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  -webkit-transition: 0.4s;
  transition: 0.4s;
  width: 50%;
  height: 100%;
  border-radius: 20px;
  background-image: linear-gradient(to top, #cc0a0a, #cc0a0a),
    linear-gradient(to bottom, #cc0a0a, #cc0a0a);
  background-origin: border-box;
  background-clip: content-box, border-box;
}

.slider-txt {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-family: Roboto;
  font-size: 9px;
  font-weight: 600;
  font-style: normal;
  font-stretch: normal;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
  transition: opacity 1s;
  color: #555555;
}

.highlight {
  font-weight: 500;
  color: white;
  transition: 0.4s;
}

input:checked + .slider:before {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
}
