.df-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
}

.df-switch__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.df-switch__track {
  display: inline-block;
  flex-shrink: 0;
  width: 2em;
  height: 1em;
  border: 1px solid currentColor;
  border-radius: 1em;
  position: relative;
  transition: background 0.15s ease;
}

.df-switch__track::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: calc(1em - 4px);
  height: calc(1em - 4px);
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.15s ease;
}

.df-switch__input:checked ~ .df-switch__track::after {
  transform: translateX(1em);
}

.df-switch__input:focus-visible ~ .df-switch__track {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.df-switch {
  color: #0f0f0f;
  user-select: none;
}
