.l-switch {
  --l-switch-height: 22px;
  --l-switch-width: 40px;
  display: inline-flex;
  width: var(--l-switch-width);
  height: var(--l-switch-height);
  align-items: center;
  justify-content: flex-start;
  background-color: #dcdfe6;
  border-radius: calc(var(--l-switch-height) / 2);
  padding: 2px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  vertical-align: middle;
  border: 1px solid #c2c2c2;
}

.l-switch:hover,
.l-switch.l-switch--checked:hover {
  border-color: var(--l-primary-color, #722ed1);
}

.l-switch--checked {
  background-color: var(--l-primary-color, #722ed1);
  border-color: var(--l-primary-color, #722ed1);
}

.l-switch-action {
  position: absolute;
  width: calc(var(--l-switch-height) - 6px);
  top: 2px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
  font-size: 12px;
}

.l-switch-text {
  color: #fff;
  padding-left: calc(var(--l-switch-width) - 20px);
  transition: padding-left 0.3s ease-in-out;
}

.l-switch--checked .l-switch-action {
  left: calc(var(--l-switch-width) - var(--l-switch-height) + 3px);
}
.l-switch--checked .l-switch-text {
  padding-left: 5px;
}
