Quarterly report pursuant to Section 13 or 15(d)

Debt - Convertible Debt (Details)

v3.20.2
Debt - Convertible Debt (Details) - Convertible Senior Notes - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2020
Jun. 30, 2019
May 22, 2020
Dec. 31, 2019
Interest Expense, Debt [Abstract]            
Contractual interest expense $ 1,854 $ 1,294 $ 3,148 $ 2,588    
Amortization of debt discount 4,183 2,717 7,021 5,393    
Amortization of debt issuance costs 479 348 842 691    
Interest expense, net 6,516 $ 4,359 11,011 $ 8,672    
2022 Convertible Notes            
Convertible Debt [Abstract]            
Principal amount 344,995   344,995     $ 344,995
Unamortized discount (29,569)   (29,569)     (35,287)
Unamortized debt issuance costs (3,788)   (3,788)     (4,520)
Convertible notes, net 311,638   311,638     305,188
Equity component, net of issuance costs and deferred tax: 61,390   61,390     $ 61,390
2025 Convertible Notes            
Convertible Debt [Abstract]            
Principal amount 345,000   345,000      
Unamortized discount (55,697)   (55,697)      
Unamortized debt issuance costs (6,181)   (6,181)      
Convertible notes, net 283,122   283,122      
Equity component, net of issuance costs and deferred tax: $ 51,821   $ 51,821   $ 57,000