.toggle-wrap {
  display: flex;
  align-items: center;
  height: 40px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 28px;
  margin-top: 4px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #9999995b;
  border-radius: 34px;
  transition:
    background 0.25s,
    box-shadow 0.2s;
  box-shadow: inset 0 0 0 1px var(--card-border);
}

.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  border-radius: 50%;
  background-color: white;
  transition:
    transform 0.25s ease,
    background-color 0.25s;
}

.switch input:checked + .slider {
  background: #1c737a;
  box-shadow: none;
}

.switch input:checked + .slider::before {
  transform: translateX(26px);
}
