@-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; } }

@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0);
            transform: rotate(0); }
  to {
    -webkit-transform: rotate(-360deg);
            transform: rotate(-360deg); } }

@keyframes spin {
  from {
    -webkit-transform: rotate(0);
            transform: rotate(0); }
  to {
    -webkit-transform: rotate(-360deg);
            transform: rotate(-360deg); } }

.ty-switch {
  display: inline-block;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  position: relative;
  cursor: pointer; }
  .ty-switch__bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    font-family: "Open Sans", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
    background-color: rgba(0, 0, 0, 0.25);
    -webkit-transition: background-color 300ms;
    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: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: 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);
    -webkit-box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.2);
            box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.2);
    -webkit-transition: all 300ms;
    transition: all 300ms;
    color: rgba(0, 0, 0, 0.25); }
  .ty-switch__label {
    -webkit-box-sizing: border-box;
            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;
    -webkit-transition: all 300ms;
    transition: all 300ms; }
  .ty-switch_checked .ty-switch__bg {
    background-color: #4DBDB9; }
  .ty-switch_checked .ty-switch__thumb {
    left: 100%;
    border-color: #4DBDB9;
    color: #4DBDB9; }
  .ty-switch_checked .ty-switch__label {
    padding-left: 5px;
    padding-right: 11px; }
  .ty-switch_disabled {
    cursor: not-allowed;
    opacity: 0.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;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
        border-radius: 50%;
        width: 14px;
        height: 14px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-top-color: #fff;
        -webkit-animation: spin 600ms infinite linear;
                animation: spin 600ms infinite linear;
        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;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
        border-radius: 50%;
        width: 14px;
        height: 14px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-top-color: #fff;
        -webkit-animation: spin 600ms infinite linear;
                animation: spin 600ms infinite linear;
        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;
        -webkit-box-sizing: border-box;
                box-sizing: border-box;
        border-radius: 50%;
        width: 14px;
        height: 14px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-top-color: #fff;
        -webkit-animation: spin 600ms infinite linear;
                animation: spin 600ms infinite linear;
        display: none; }
    .ty-switch_lg .ty-switch__label {
      line-height: 20px; }
