XML 47 R35.htm IDEA: XBRL DOCUMENT v3.21.2
Long-term Debt - Additional Information (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 3 Months Ended 6 Months Ended
Mar. 31, 2020
USD ($)
$ / shares
Mar. 31, 2021
Jun. 30, 2021
USD ($)
day
$ / shares
Jun. 30, 2020
USD ($)
Dec. 31, 2020
USD ($)
$ / shares
Sep. 30, 2020
Line of Credit Facility [Line Items]            
Common stock, par value (in dollars per share) | $ / shares     $ 0.0001   $ 0.0001  
Share price (in usd per share) | $ / shares     $ 64.79      
Reduction to accumulated deficit / increase to retained earnings     $ (589,231)   $ (542,030)  
Cumulative Effect, Period of Adoption, Adjustment            
Line of Credit Facility [Line Items]            
Decrease in deferred tax liabilities       $ 12,000    
Reduction to accumulated deficit / increase to retained earnings         $ 7,500  
Convertible Notes            
Line of Credit Facility [Line Items]            
Convertible debt fair value       169,500    
Interest rate of debt 9.35%          
Unamortized discount       60,500    
Debt issuance costs       7,400    
Debt issuance cost, equity component     1,900      
Debt issuance cost, liability component     $ 5,500      
Debt term     5 years      
Effective interest rate   9.90% 3.30%      
Term Loan Agreement            
Line of Credit Facility [Line Items]            
Repayments of debt $ 88,600          
Senior Notes | Convertible Notes            
Line of Credit Facility [Line Items]            
Debt instrument face amount       $ 230,000    
Debt instrument stated rate           2.625%
Proceeds from issuance of debt $ 222,600          
Common stock, par value (in dollars per share) | $ / shares $ 0.0001          
Conversion ratio 20.9161          
Conversion price | $ / shares $ 47.81          
Threshold consecutive trading days | day     30      
Redemption price percentage     100.00%      
Triggering Event 1 | Senior Notes | Convertible Notes            
Line of Credit Facility [Line Items]            
Threshold trading days | day     20      
Threshold consecutive trading days | day     30      
Threshold percentage of stock price trigger     130.00%      
Triggering Event 2 | Senior Notes | Convertible Notes            
Line of Credit Facility [Line Items]            
Threshold trading days | day     5      
Threshold consecutive trading days | day     5      
Threshold percentage of stock price trigger     98.00%