.yk-switch {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: none;
  background-color: var(--bgColor4);
  outline: none;
  transition: background-color 0.2s ease-in-out;
  box-sizing: border-box;
  vertical-align: middle;
  cursor: pointer;
}
.yk-switch--m {
  min-width: 40px;
  height: 22px;
  line-height: 22px;
  border-radius: 11px;
}
.yk-switch--s {
  min-width: 32px;
  height: 18px;
  line-height: 18px;
  border-radius: 10px;
}
.yk-switch-dot {
  position: absolute;
  top: 3px;
  left: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: #ffffff;
  background-color: #ffffff;
  transition: all 0.2s ease-in-out;
}
.yk-switch--m .yk-switch-dot {
  width: 16px;
  height: 16px;
}
.yk-switch--s .yk-switch-dot {
  width: 12px;
  height: 12px;
}
.yk-switch--checked {
  background-color: var(--pcolor);
}
.yk-switch--m.yk-switch--checked .yk-switch-dot {
  left: calc(100% - 19px);
}
.yk-switch--s.yk-switch--checked .yk-switch-dot {
  left: calc(100% - 15px);
}
.yk-switch[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
}
.yk-switch--loading {
  opacity: 0.72 !important;
}
.yk-switch--loading svg {
  width: 16px;
  transform-origin: center;
  animation: rotate4 2s linear infinite;
}
.yk-switch--loading circle {
  fill: none;
  stroke: var(--pcolor);
  stroke-width: 3;
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: dash4 1.5s ease-in-out infinite;
}
@keyframes rotate4 {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes dash4 {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dashoffset: -125px;
  }
}
