XML 49 R37.htm IDEA: XBRL DOCUMENT v3.21.2
Long-term Debt - Schedule of Interest (Details) - Convertible Notes - 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]        
Contractual interest expense $ 1,509 $ 1,493 $ 4,528 $ 3,388
Amortization of debt discount and issuance costs 361 2,655 1,069 5,910
Total interest expense $ 1,870 4,148 $ 5,597 9,298
Cumulative Effect, Period of Adoption, Adjustment        
Debt Instrument [Line Items]        
Amortization of debt discount and issuance costs   (2,335)   (5,167)
Total interest expense   (2,335)   (5,167)
Cumulative Effect, Period of Adoption, Adjusted Balance        
Debt Instrument [Line Items]        
Contractual interest expense   1,493   3,388
Amortization of debt discount and issuance costs   320   743
Total interest expense   $ 1,813   $ 4,131