/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.yg-switch {
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 12px;
  list-style: none;
  position: relative;
  display: inline-block;
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  min-width: 44px;
  height: 22px;
  line-height: 22px;
  vertical-align: middle;
  background-color: rgba(51, 51, 51, 0.25);
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  -webkit-transition: all 0.36s;
  transition: all 0.36s;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.yg-switch-inner {
  display: block;
  margin-right: 6px;
  margin-left: 24px;
  color: #fff;
  font-size: 12px;
}
.yg-switch-loading-icon,
.yg-switch::after {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  cursor: pointer;
  -webkit-transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86);
  transition: all 0.36s cubic-bezier(0.78, 0.14, 0.15, 0.86);
  content: ' ';
}
.yg-switch::after {
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2);
          box-shadow: 0 2px 4px 0 rgba(0, 35, 11, 0.2);
}
.yg-switch:active::before,
.yg-switch:active::after {
  width: 24px;
}
.yg-switch-loading-icon {
  z-index: 1;
  display: none;
  font-size: 12px;
  background: transparent;
}
.yg-switch-loading-icon svg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}
.yg-switch-loading .yg-switch-loading-icon {
  display: inline-block;
  color: #333;
}
.yg-switch-checked.yg-switch-loading .yg-switch-loading-icon {
  color: #00a1ff;
}
.yg-switch:focus {
  outline: 0;
  -webkit-box-shadow: 0 0 0 2px rgba(0, 161, 255, 0.2);
          box-shadow: 0 0 0 2px rgba(0, 161, 255, 0.2);
}
.yg-switch:focus:hover {
  -webkit-box-shadow: none;
          box-shadow: none;
}
.yg-switch-small {
  min-width: 28px;
  height: 16px;
  line-height: 14px;
}
.yg-switch-small .yg-switch-inner {
  margin-right: 3px;
  margin-left: 18px;
  font-size: 12px;
}
.yg-switch-small::after {
  width: 12px;
  height: 12px;
}
.yg-switch-small:active::before,
.yg-switch-small:active::after {
  width: 16px;
}
.yg-switch-small .yg-switch-loading-icon {
  width: 12px;
  height: 12px;
}
.yg-switch-small.yg-switch-checked .yg-switch-inner {
  margin-right: 18px;
  margin-left: 3px;
}
.yg-switch-small.yg-switch-checked .yg-switch-loading-icon {
  left: 100%;
  margin-left: -13px;
}
.yg-switch-small.yg-switch-loading .yg-switch-loading-icon {
  font-weight: bold;
  -webkit-transform: scale(0.66667);
      -ms-transform: scale(0.66667);
          transform: scale(0.66667);
}
.yg-switch-checked {
  background-color: #00a1ff;
}
.yg-switch-checked .yg-switch-inner {
  margin-right: 24px;
  margin-left: 6px;
}
.yg-switch-checked::after {
  left: 100%;
  margin-left: -1px;
  -webkit-transform: translateX(-100%);
      -ms-transform: translateX(-100%);
          transform: translateX(-100%);
}
.yg-switch-checked .yg-switch-loading-icon {
  left: 100%;
  margin-left: -19px;
}
.yg-switch-loading,
.yg-switch-disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.yg-switch-loading *,
.yg-switch-disabled * {
  cursor: not-allowed;
}
.yg-switch-loading::before,
.yg-switch-disabled::before,
.yg-switch-loading::after,
.yg-switch-disabled::after {
  cursor: not-allowed;
}
@-webkit-keyframes AntSwitchSmallLoadingCircle {
  0% {
    -webkit-transform: rotate(0deg) scale(0.66667);
            transform: rotate(0deg) scale(0.66667);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
  }
  100% {
    -webkit-transform: rotate(360deg) scale(0.66667);
            transform: rotate(360deg) scale(0.66667);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
  }
}
@keyframes AntSwitchSmallLoadingCircle {
  0% {
    -webkit-transform: rotate(0deg) scale(0.66667);
            transform: rotate(0deg) scale(0.66667);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
  }
  100% {
    -webkit-transform: rotate(360deg) scale(0.66667);
            transform: rotate(360deg) scale(0.66667);
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
  }
}
