XML 62 R51.htm IDEA: XBRL DOCUMENT v3.22.0.1
Convertible Notes (Details)
1 Months Ended 12 Months Ended
Nov. 03, 2021
shares
Oct. 22, 2021
USD ($)
$ / shares
Nov. 16, 2020
USD ($)
day
$ / shares
shares
Nov. 30, 2020
USD ($)
day
Dec. 31, 2021
USD ($)
$ / shares
Dec. 31, 2020
USD ($)
$ / shares
Dec. 31, 2019
USD ($)
Jan. 01, 2021
USD ($)
Debt Instrument [Line Items]                
Payments for Derivative Instrument, Financing Activities     $ 46,000,000   $ 0 $ 46,004,000 $ 0  
Payments for Repurchase of Common Stock     $ 55,000,000   $ 0 $ 55,000,000 $ 0  
Common stock, par value (in dollars per share) | $ / shares         $ 0.001 $ 0.001    
Additional paid-in capital         $ (964,401,000) $ (797,655,000)    
Accumulated deficit         $ 1,106,377,000 838,817,000    
Exercise price (in dollars per share) | $ / shares         $ 9.00      
Underlying common stock | shares     1,994,198          
Adoption of new accounting pronouncement                
Debt Instrument [Line Items]                
Additional paid-in capital               $ 93,500,000
Accumulated deficit               1,500,000
Capped Call | Common stock                
Debt Instrument [Line Items]                
Exercise price (in dollars per share) | $ / shares     $ 55.16          
Class of warrant or right, premium percentage     100.00%          
Convertible Senior Notes Due 2025 | Convertible Debt                
Debt Instrument [Line Items]                
Debt instrument, face amount     $ 280,000,000         $ 280,000,000
Debt instrument, stated interest rate     4.00%          
Proceeds from debt, net of issuance costs     $ 271,100,000     271,100,000    
Debt instrument, convertible, conversion ratio     30.2151          
Debt instrument, convertible, conversion price (in dollars per share) | $ / shares     $ 33.096          
Debt instrument, redemption price, percentage       100.00%        
Debt issuance costs gross       $ 8,900,000        
Debt instrument, term       5 years        
Long-term debt       $ 177,600,000 $ 258,280,000 179,367,000    
Debt instrument, convertible, carrying amount of equity component       $ 93,500,000        
Debt interest expense         12,400,000 3,100,000    
Debt instrument, fair value disclosure         140,300,000 $ 283,400,000    
Aggregate principal amount   $ 15,000,000            
Floor price (in dollars per share) | $ / shares   $ 5.62            
Trading day averaging period   5 days            
Common stock exchanged (in shares) | shares 1,094,848              
Other income         $ 2,600,000      
Convertible Senior Notes Due 2025 | Convertible Debt | Period One                
Debt Instrument [Line Items]                
Common stock, par value (in dollars per share) | $ / shares     $ 0.001          
Debt instrument, convertible, threshold percentage of stock price trigger     130.00%          
Debt instrument, convertible, threshold trading days | day     20          
Debt instrument, convertible, threshold consecutive trading days | day     30          
Number of business days | day     5          
Number of consecutive trading days | day     5          
Debt instrument, convertible, threshold percentage of last reported sale price     98.00%          
Convertible Senior Notes Due 2025 | Convertible Debt | Period Two                
Debt Instrument [Line Items]                
Debt instrument, convertible, threshold percentage of stock price trigger       130.00%        
Debt instrument, convertible, threshold trading days | day       20        
Debt instrument, convertible, threshold consecutive trading days | day       30        
Debt instrument, redemption price, percentage       100.00%        
Debt instrument, required amount outstanding       $ 125,000,000        
Convertible Senior Notes Due 2025 | Convertible Debt | Long-term Debt                
Debt Instrument [Line Items]                
Debt issuance costs gross       5,800,000        
Convertible Senior Notes Due 2025 | Convertible Debt | Additional Paid-In Capital                
Debt Instrument [Line Items]                
Debt issuance costs gross       $ 3,100,000