.next-switch:after {
  content: " ";
  -webkit-transition: all 0.4s cubic-bezier(0.78, 0.14, 0.15, 0.86);
  transition: all 0.4s cubic-bezier(0.78, 0.14, 0.15, 0.86);
  -webkit-transform-origin: left center;
  -ms-transform-origin: left center;
  transform-origin: left center;
}

.next-switch-medium,
.next-switch-medium:after {
  border: 1px solid transparent;
  border-radius: 20px;
}

.next-switch-medium:after {
  position: absolute;
  left: 100%;
  -webkit-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  transform: translateX(-100%);
  width: 20px;
  height: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.next-switch-off:after {
  left: 0;
  -webkit-transform: translateX(0);
  -ms-transform: translateX(0);
  transform: translateX(0);
  -webkit-box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.12);
  background-color: #fff;
  border-color: transparent;
}

.next-switch {
  outline: none;
  text-align: left;
  -webkit-transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
  transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
  overflow: hidden;
  cursor: pointer;
}

.next-switch,
.next-switch *,
.next-switch :after,
.next-switch :before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.next-switch-medium {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.next-switch-medium,
.next-switch-medium:after {
  border: 1px solid transparent;
  border-radius: 20px;
}

.next-switch-off {
  background-color: #fff;
  border-color: #c4c6cf;
}

.next-switch {
  margin-right: 20px;
}

.large-width {
  width: 100px;
}

.next-switch-medium > .next-switch-children {
  font-size: 12px;
  position: absolute;
  height: 20px;
  line-height: 20px;
}

.next-switch-off > .next-switch-children {
  right: 10px;
  color: #999;
}

.next-switch-on > .next-switch-children {
  left: 10px;
  color: #fff;
}

.next-switch-off:focus,
.next-switch-off:hover {
  background-color: #f2f3f7;
  border-color: #c4c6cf;
}

.next-switch-on.next-switch-small .next-icon.next-icon-loading.next-small {
  margin-left: -6px;
}
.next-switch-on.next-switch-small span {
  margin-top: 1px;
  display: block;
}

.next-switch-off.next-switch-small .next-icon.next-icon-loading.next-small {
  margin-right: -5px;
}
.next-switch-off.next-switch-small span {
  margin-top: 1px;
  display: block;
}

.next-switch-small .next-switch-children div {
  margin-top: -2px;
}
.next-switch-small .next-switch-children div .next-icon.next-small:before {
  width: 12px;
  font-size: 12px;
  line-height: inherit;
}

.next-switch-on.next-switch-medium .next-icon.next-icon-loading.next-small {
  margin-left: -6px;
}

.next-switch-off.next-switch-medium .next-icon.next-icon-loading.next-small {
  margin-right: -5px;
}

.next-switch-medium .next-icon.next-small:before {
  width: 14px;
  font-size: 14px;
  line-height: inherit;
}
