/* Toggle Switches */

/* == Standard Toggle (44×24) == */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--color-1);
  border-radius: 24px;
  transition: background 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform 0.3s;  
}
.toggle-switch input:checked + .toggle-slider          { background: var(--color-5); }
.toggle-switch input:checked + .toggle-slider::before  { transform: translateX(20px); }
.toggle-switch input:disabled + .toggle-slider         { opacity: 0.5; cursor: not-allowed; }

/* == Klein Toggle (36×20) == */
.toggle-switch-sm {
  position: relative;
  width: 36px;
  height: 20px;
  display: inline-block;
}
.toggle-switch-sm input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-switch-sm .toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--color-1);
  border-radius: 20px;
  transition: background 0.3s;
}
.toggle-switch-sm .toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  bottom: 3px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform 0.3s;  
}
.toggle-switch-sm input:checked + .toggle-slider          { background: var(--color-5); }
.toggle-switch-sm input:checked + .toggle-slider::before  { transform: translateX(16px); }
.toggle-switch-sm input:disabled + .toggle-slider         { opacity: 0.5; cursor: not-allowed; }
