| Debt - Summary of Balances of Exchangeable Notes (Details) - USD ($) $ in Thousands | 12 Months Ended | |
|---|---|---|
| Dec. 31, 2021 | Dec. 31, 2020 | |
| Debt Instrument [Line Items] | ||
| Exchangeable Notes | $ 14,332 | |
| January 2020 $1,000 Exchangeable Notes due January 31, 2025 | ||
| Debt Instrument [Line Items] | ||
| Exchangeable Notes | 51,588 | $ 51,588 | 
| Exchangeable Notes, Accrued Interest | 4,246 | 3,176 | 
| September 2020 $1,000 Exchangeable Notes due January 31, 2025 | ||
| Debt Instrument [Line Items] | ||
| Exchangeable Notes | 220 | 220 | 
| Exchangeable Notes, Accrued Interest | 12 | 4 | 
| Conversion of $1,000 Exchangeable Notes due January 31, 2025 | ||
| Debt Instrument [Line Items] | ||
| Exchangeable Notes, Conversion | (39,201) | |
| Exchangeable Notes, Accrued Interest Write off | (2,697) | |
| 2025 Exchangeable Notes | ||
| Debt Instrument [Line Items] | ||
| Exchangeable Notes | 12,607 | 51,808 | 
| Unamortized discount and debt issuance costs | (7,238) | (34,152) | 
| Exchangeable Notes, net | 5,369 | 17,656 | 
| Exchangeable Notes, Accrued Interest | $ 1,561 | $ 3,180 | 
| X | ||||||||||
| 
- Definition Debt instrument accrued interest. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Debt instrument accrued interest write-off. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Debt repayment or conversion amount. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of unamortized debt discount (premium) and debt issuance costs. Reference 1: http://www.xbrl.org/2003/role/exampleRef 
 | 
| X | ||||||||||
| 
- Definition Amount, after unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but not limited to, notes payable, bonds payable, debentures, mortgage loans and commercial paper. Excludes capital lease obligations. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |