Warrant Liability (Tables)  | 
12 Months Ended | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Dec. 31, 2021  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Class of Warrant or Right [Line Items] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of fair value of warrant liabilities by Level 3 inputs | 
 The following table provides a roll forward of the fair value of our warrant liabilities, the fair value of which was determined by Level 3 inputs for the year ended December 31, 2020 (in thousands): 
 
  | 
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| January 2020 Private Placement Warrant | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Class of Warrant or Right [Line Items] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of weighted-average key assumptions used to calculate the fair value of the warrants | 
 The warrant liability associated with the January 2020 Warrants was classified within Level 3 of the fair value hierarchy. The following table presents the weighted-average key assumptions used to calculate the fair value of the January 2020 Warrants: 
  | 
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| August 2019 Placement Warrants | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Class of Warrant or Right [Line Items] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Schedule of weighted-average key assumptions used to calculate the fair value of the warrants | 
 The warrant liability associated with the August 2019 Warrants was classified within Level 3 of the fair value hierarchy. The following table presents the weighted-average key assumptions used to calculate the fair value of the August 2019 Warrants: 
  | 
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||