.switch {
  display: inline-block;
  height: 14px;
  position: relative;
  width: 24px;
}

.switch input {
  height: 0;
  opacity: 0;
  width: 0;
}

.switch-slider {
  background-color: var(--orange-100);
  border-radius: 14px;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
}

.switch-slider:before {
  background-color: var(--dark-100);
  border-radius: 50%;
  bottom: 2px;
  content: "";
  height: 10px;
  right: 3px;
  position: absolute;
  transition: 0.4s;
  width: 10px;
}

.switch input:checked + .switch-slider:before {
  transform: translateX(-10px);
  right: 1px;
}
