.mt-toggle {
  margin-bottom: 10px;

  [class^="icon-"],
  [class*=" icon-"] {
    font-size: 16px;
  }

  strong {
    font-style: normal;
  }
}

.mt-toggle__label {
  display: inline-block;
  cursor: pointer;
  width: 46px;
  height: 24px;
  margin: 0px auto;
  border-radius: 100px;
  transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  background-color: @grey-12;
  position: relative;
  top: 4px;

  .mt-toggle__small & {
    width: 36px;
    height: 18px;
    top: 3px;
  }

  &:hover {
    .mt-toggle__disabled & {
      cursor: not-allowed;
    }
  }

  &:hover > .mt-toggle__toggle {
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.20);
    transform: scale(1.01);
  }

  &:active {
    background-color: @gray-4;
  }

  &:active > .mt-toggle__toggle {
    width: 24px;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.20);

    .mt-toggle__small & {
      width: 18px;
    }
  }

}

.mt-toggle__input {
  display: none;

  &:checked + label > .mt-toggle__toggle {
    margin-left: 24px;

    .mt-toggle__small & {
      margin-left: 20px;
    }
  }

  &:checked + label:active > .mt-toggle__toggle {
    margin-left: 18px;

    .mt-toggle__small & {
      margin-left: 16px;
    }
  }

  &:checked + label {
    background-color: @blue-3;
  }
}

.mt-toggle__toggle {
  height: 20px;
  width: 20px;
  background: transparent;
  border: 4px solid @white;
  display: inline-block;
  border-radius: 100px;
  margin-top: 2px;
  margin-left: 2px;
  transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  pointer-events: none;
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0);

  .mt-toggle__small & {
    height: 14px;
    width: 14px;
  }
}

.mt-toggle__input:checked + label .mt-toggle__toggle {
  border: 4px solid @blue;
}