@-webkit-keyframes ty-rotate {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg); }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg); } }

@keyframes ty-rotate {
  0% {
    -webkit-transform: rotate(0deg);
            transform: rotate(0deg); }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg); } }

@-webkit-keyframes ty-processing {
  0% {
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
    opacity: 0.5; }
  100% {
    -webkit-transform: scale(2.8);
            transform: scale(2.8);
    opacity: 0; } }

@keyframes ty-processing {
  0% {
    -webkit-transform: scale(0.8);
            transform: scale(0.8);
    opacity: 0.5; }
  100% {
    -webkit-transform: scale(2.8);
            transform: scale(2.8);
    opacity: 0; } }

.ty-switch {
  display: inline-block;
  box-sizing: border-box;
  position: relative;
  cursor: pointer; }
  .ty-switch__bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    font-family: Helvetica Neue For Number, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif;
    background-color: rgba(0, 0, 0, 0.25);
    transition: background-color 300ms;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none; }
  .ty-switch__thumb {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    left: 0;
    top: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
            transform: translateX(-50%) translateY(-50%);
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.2);
    transition: all 300ms;
    color: rgba(0, 0, 0, 0.25); }
  .ty-switch__label {
    box-sizing: border-box;
    display: block;
    color: #fff;
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
    padding-left: 11px;
    padding-right: 5px;
    transition: all 300ms; }
  .ty-switch_checked .ty-switch__bg {
    background-color: #6E41BF; }
  .ty-switch_checked .ty-switch__thumb {
    left: 100%;
    border-color: #6E41BF;
    color: #6E41BF; }
  .ty-switch_checked .ty-switch__label {
    padding-left: 5px;
    padding-right: 11px; }
  .ty-switch_disabled {
    cursor: not-allowed;
    opacity: .4; }
  .ty-switch_loading .ty-switch__thumb:before {
    display: inline-block !important; }
  .ty-switch_sm {
    margin: 0 10px;
    font-size: 9px;
    width: 29px;
    height: 14px; }
    .ty-switch_sm .ty-switch__bg {
      border-radius: 18px; }
    .ty-switch_sm .ty-switch__thumb {
      width: 18px;
      height: 18px;
      border-radius: 18px; }
      .ty-switch_sm .ty-switch__thumb:before {
        content: '';
        width: 8px;
        height: 8px;
        border: 1px solid;
        border-radius: 50%;
        border-right-color: transparent;
        border-top-color: transparent;
        display: inline-block;
        -webkit-animation: ty-rotate 500ms linear infinite;
                animation: ty-rotate 500ms linear infinite;
        pointer-events: none;
        display: none; }
    .ty-switch_sm .ty-switch__label {
      line-height: 14px; }
  .ty-switch_md {
    margin: 0 12px;
    font-size: 12px;
    width: 36px;
    height: 16px; }
    .ty-switch_md .ty-switch__bg {
      border-radius: 22px; }
    .ty-switch_md .ty-switch__thumb {
      width: 22px;
      height: 22px;
      border-radius: 22px; }
      .ty-switch_md .ty-switch__thumb:before {
        content: '';
        width: 10px;
        height: 10px;
        border: 1px solid;
        border-radius: 50%;
        border-right-color: transparent;
        border-top-color: transparent;
        display: inline-block;
        -webkit-animation: ty-rotate 500ms linear infinite;
                animation: ty-rotate 500ms linear infinite;
        pointer-events: none;
        display: none; }
    .ty-switch_md .ty-switch__label {
      line-height: 17px; }
  .ty-switch_lg {
    margin: 0 14px;
    font-size: 14px;
    width: 42px;
    height: 20px; }
    .ty-switch_lg .ty-switch__bg {
      border-radius: 26px; }
    .ty-switch_lg .ty-switch__thumb {
      width: 26px;
      height: 26px;
      border-radius: 26px; }
      .ty-switch_lg .ty-switch__thumb:before {
        content: '';
        width: 12px;
        height: 12px;
        border: 1px solid;
        border-radius: 50%;
        border-right-color: transparent;
        border-top-color: transparent;
        display: inline-block;
        -webkit-animation: ty-rotate 500ms linear infinite;
                animation: ty-rotate 500ms linear infinite;
        pointer-events: none;
        display: none; }
    .ty-switch_lg .ty-switch__label {
      line-height: 20px; }
