.text_switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

#onair .text_switch {
  width: 65px;
  height: 30px;
}

.text_switch input {
  display: none;
}

.text_switch .custom_slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #aaa;
  -webkit-transition: .4s;
  transition: .4s;
}

.text_switch .custom_slider:before {
  position: absolute;
  content: "";
  height: 1.5em;
  width: 1.5em;
  left: 0.333em;
  top: calc(50% - 0.75em);
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .custom_slider {
  background-color: #2ab934;
}

#onair input:checked + .custom_slider {
  background-color: red;
}

input:focus + .custom_slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .custom_slider:before {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
}

#onair input:checked + .custom_slider:before {
  -webkit-transform: translateX(135%);
  -ms-transform: translateX(135%);
  transform: translateX(135%);
}

/*------ ADDED CSS ---------*/
.text_switch_txt {
  color: white;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  font-size: 0.75em;
  user-select:none;
}

.text_switch_txt.text_switch_on {
  display: none;
  left: 1.25em;
  top:51%;
}

#onair .text_switch_txt.text_switch_on {
  left: 20px;
}

.text_switch_txt.text_switch_off {
  right: -4px;
}

#onair .text_switch_txt.text_switch_off {
  right: -2px;
}

input:checked + .custom_slider .text_switch_on {
  display: block;
}

input:checked + .custom_slider .text_switch_off {
  display: none;
}

/*--------- END --------*/

/* Rounded sliders */
.custom_slider.border_rounded {
  border-radius: 1em;
}

.custom_slider.border_rounded:before {
  border-radius: 50%;
}
