.toggle-switch {
  display: none;
}
.toggle-switch + label {
  display: inline-block;
  position: relative;
  font-weight: inherit;
  cursor: pointer;
  -webkit-touch-callout: none;
  margin-right: 0;
  margin-bottom: 0;
  padding-left: 47px;
  line-height: 20px;
  box-sizing: border-box;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.toggle-switch + label:before {
  position: absolute;
  display: inline-block;
  left: 0;
  content: '';
  border-style: solid;
  width: 37px;
  height: 20px;
  border-width: 0;
  border-color: transparent;
  background-color: #afafaf;
  box-sizing: border-box;
  box-shadow: 0;
  border-radius: 10px;
  transition: all 0.3s;
}
.toggle-switch + label:after {
  position: absolute;
  content: '';
  width: 18px;
  height: 18px;
  top: 1px;
  left: 1px;
  background-color: white;
  box-sizing: border-box;
  box-shadow: 0 2px 5px 0 rgba(51, 51, 51, 0.25);
  border-radius: 20px;
  transition: left 0.3s, right 0.3s;
}
.toggle-switch:checked + label:before {
  background-color: #4db446;
  transition: all 0.3s;
}
.toggle-switch:checked + label:after {
  left: 18px;
  transition: left 0.3s, right 0.3s;
}
.toggle-switch:disabled + label {
  cursor: no-drop;
}
.toggle-switch:disabled + label:before {
  opacity: 0.3;
}
.preload .toggle-switch + *,
.preload .toggle-switch + *:before,
.preload .toggle-switch + *:after {
  transition: 0 !important;
}
