as-switch {
  --as--switch--color--background-active: var(--as--color--complementary, #47DB99);
  --as--switch--color--background-checked: var(--as--color--primary, #1785FB);
  --as--switch--color--background-default: var(--as--color--type-03, #BABABA);
  --as--switch--color--background-disabled: var(--as--color--ui-02, #F5F5F5);
  --as--switch--color--checked-thumb: var(--as--color--ui-01, #FFF);
  --as--switch--color--color-disabled: var(--as--color--ui-04, #D1D5D7);
  --as--switch--color--thumb: var(--as--color--ui-01, #FFF);
  display: inline-block;
  position: relative;
}
as-switch .as-switch {
  display: flex;
  align-items: center;
}
as-switch .as-switch__label {
  margin: 0 0 0 4px;
}
as-switch .as-switch__thumb {
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translate3d(0, -50%, 0);
  transition: opacity 0.2s ease;
  opacity: 0;
  color: var(--as--switch--color--thumb);
  pointer-events: none;
}
as-switch .as-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
as-switch .as-switch__input + .as-switch__toggle {
  display: block;
  position: relative;
  width: 32px;
  height: 16px;
  transition: all 0.4s ease;
  border-radius: 40px;
  outline: 0;
  background: var(--as--switch--color--background-default);
  cursor: pointer;
  user-select: none;
}
as-switch .as-switch__toggle:hover {
  background: var(--as--switch--color--background-active);
}
as-switch .as-switch__input + .as-switch__toggle::after {
  content: "";
  display: block;
  position: relative;
  top: 2px;
  width: 12px;
  height: 12px;
  transform: translateX(2px);
  transition: all 0.2s ease;
  border-radius: 50%;
  background: var(--as--switch--color--thumb);
}
as-switch .as-switch__input[disabled] + .as-switch__toggle {
  background: var(--as--switch--color--background-disabled);
  box-shadow: inset 0 0 0 1px var(--as--color--ui-03);
  cursor: not-allowed;
}
as-switch .as-switch__input[disabled] + .as-switch__toggle::after {
  background: var(--as--switch--color--color-disabled);
}
as-switch .as-switch__input:checked + .as-switch__toggle,
as-switch .as-switch__input:checked + .as-switch__toggle:hover {
  background: var(--as--switch--color--background-checked);
}
as-switch .as-switch__input:checked + .as-switch__toggle::after {
  transform: translateX(18px);
  background: var(--as--switch--color--checked-thumb);
}
as-switch .as-switch__input:checked ~ svg {
  opacity: 1;
  color: var(--as--switch--color--checked-thumb);
}