v3.21.2
Convertible Senior Notes - Schedule of Interest Expense Related to 2023 Notes (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2021
Sep. 30, 2020
Sep. 30, 2021
Sep. 30, 2020
Debt Instrument [Line Items]        
Amortization of debt issuance costs     $ 1,550 $ 1,427
Amortization of debt discount     19,398 15,381
Convertible Senior Notes Due February 2023 | Convertible Debt        
Debt Instrument [Line Items]        
Contractual interest expense $ 20 $ 431 172 1,294
Amortization of debt issuance costs 45 276 197 819
Amortization of debt discount 127 2,506 1,088 7,422
Total $ 192 $ 3,213 $ 1,457 $ 9,535