/* Switch Toggle component from old timey w3schools of all places */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
}

.switch, .switch-wrap {
  height: 34px;
  line-height: 34px;
}

.switch input[type='checkbox'] {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-wrap {
  cursor: pointer;
  vertical-align: middle;
  white-space: nowrap;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color-faded);
  transition: 400ms;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 400ms;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

input:checked + .slider {
  background-color: var(--primary-color);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
