label.switch > input[type=checkbox] {
  opacity: 0;
  display: none;
}

label.switch > div.switch-btn {
  position: relative;
  width: 21px;
  height: 13px;
  background: #e5e5e5;
  border-radius: 25.5px;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.15);
}

label.switch > div.switch-btn:before {
  content: "";
  position: absolute;
  height: 9px;
  width: 9px;
  background: linear-gradient(white, #f2f2f2);
  left: 2px;
  top: 50%;
  transition: all 200ms ease-out;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 8px 6px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-50%);
}

label.switch > input[type=checkbox]:checked + div.switch-btn {
  background: rgba(87, 74, 226, 1);
}

label.switch > input[type=checkbox]:checked + div.switch-btn:before {
  left: 10px;
}
