.switch {
  width: 40px;
  border-radius: 50px;
  background-color: #ccc;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: background-color 0.2s ease-in-out;
}

.switch-handle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  transition: transform 0.2s ease-in-out;
}

input[data-type="switch"] {
  display: none;
}

input:checked + .switch {
  background-color: var(--ast-global-color-0, #00da24);
}

input:checked + .switch .switch-handle {
  transform: translateX(16px);
}
