v3.22.2.2
Debt - Schedule of Interest Expense Recognized Related to the Notes (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
Debt Instrument [Line Items]        
Total interest expense $ 7,465 $ 7,167 $ 22,501 $ 22,697
Convertible Senior Secured Notes due December 2024        
Debt Instrument [Line Items]        
Contractual interest expense 3,105 3,105 9,315 9,315
Amortization of debt issuance costs 291 243 834 698
Amortization of debt discount 3,797 3,179 10,902 9,130
Total interest expense $ 7,193 $ 6,527 $ 21,051 19,143
Convertible Senior Notes due September 2021        
Debt Instrument [Line Items]        
Contractual interest expense       428
Amortization of debt issuance costs       95
Amortization of debt discount       934
Total interest expense       $ 1,457