XML 45 R35.htm IDEA: XBRL DOCUMENT v3.22.2
Convertible Senior Notes and Capped Call Transactions - Narrative (Details)
6 Months Ended
May 11, 2020
USD ($)
Jun. 30, 2022
USD ($)
$ / shares
Jan. 01, 2022
USD ($)
Dec. 31, 2021
USD ($)
Debt Instrument [Line Items]        
Accumulated deficit   $ (504,009,000)   $ (427,603,000)
Additional paid-in capital   $ 1,038,250,000   1,018,005,000
Cap price (in dollars per share) | $ / shares   $ 47.24    
Cumulative Effect, Period of Adoption, Adjustment        
Debt Instrument [Line Items]        
Accumulated deficit     $ 8,647,000  
Additional paid-in capital     (30,794,000)  
Liabilities     $ 22,147,000  
2025 Senior Notes        
Debt Instrument [Line Items]        
Fair value of the notes   $ 296,326,000    
Convertible Debt        
Debt Instrument [Line Items]        
Purchases of capped calls $ 29,348,000      
Convertible Debt | 2025 Senior Notes        
Debt Instrument [Line Items]        
Principal 253,000      
Proceeds from issuance of convertible senior notes, net of issuance costs $ 245,158,000      
Interest rate, stated percentage 1.25%      
Debt instrument, convertible, conversion ratio   0.0325668    
Initial conversion price (in dollars per share) | $ / shares   $ 30.71    
Carrying amount of equity component       31,779,000
Debt issuance costs of liability component       $ 6,857,000
Interest rate, effective percentage     1.87% 4.51%
Convertible Debt | 2025 Senior Notes | Additional paid-in capital        
Debt Instrument [Line Items]        
Debt issuance costs of equity component       $ 985,000