.go-toggle {
  width: 35px;
  height: 20px;
  border-radius: 10px;

  input[type=checkbox] {
    visibility: hidden;
    position: absolute;
  }

  label {
    transition: all 0.25s;
    background: $gray;
    cursor: pointer;
    width: 35px;
    height: 20px;
    border-radius: 10px;
    position: relative;

    &:after {
      transition: all 0.25s;
      content: '';
      display: block;
      width: 14px;
      height: 14px;
      border-radius: 7px;
      position: absolute;
      top: 3px;
      left: 3px;
      background: white;
      z-index: 1;
    }

    .icon {
      transition: all 0.25s;
      color: transparent;
      width: 14px;
      height: 14px;
      position: absolute;
      top: 50%;
      left: 3px;
      transform: translateY(-50%);
      display: block;
      z-index: 3;
      font-size: 15px;
    }

    &.primary {
      background-color: $brand-primary;
    }

    &.info {
      background-color: $brand-info;
    }

    &.success {
      background-color: $brand-success;
    }

    &.warning {
      background-color: $brand-warning;
    }

    &.danger {
      background-color: $brand-danger;
    }
  }

  input[type=checkbox]:checked {
    &+label {
      &:after {
        transition: all 0.25s;
        left: 18px;
      }

      .icon {
        transition: all 0.25s;
        color: white;
      }
    }
  }

  input[type=checkbox]:disabled {
    &+label {
      opacity: 0.4;
      cursor: not-allowed;
    }
  }
}
