XML 67 R49.htm IDEA: XBRL DOCUMENT v3.24.0.1
Convertible Senior Notes and Capped Call Transactions - Narrative (Details)
$ / shares in Units, $ in Thousands
12 Months Ended
May 11, 2020
USD ($)
Dec. 31, 2023
USD ($)
$ / shares
Dec. 31, 2022
USD ($)
Jan. 01, 2022
USD ($)
Debt Instrument [Line Items]        
Accumulated deficit   $ (644,390) $ (543,474)  
Additional paid-in capital   $ (1,142,578) (1,055,048)  
Cap price (in usd per share) | $ / shares   $ 47.24    
Cumulative Effect, Period of Adoption, Adjustment        
Debt Instrument [Line Items]        
Accumulated deficit       $ 8,647
Additional paid-in capital       30,794
Liabilities       $ 22,147
2025 Senior Notes        
Debt Instrument [Line Items]        
Fair value of the notes   $ 386,201 $ 260,749  
Convertible Debt        
Debt Instrument [Line Items]        
Payments for capped calls $ 29,348      
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      
Interest rate, stated percentage 1.25%      
Debt instrument, convertible, conversion ratio   0.0325668    
Initial conversion price (in dollars per share) | $ / shares   $ 30.71    
Debt instrument, interest rate, effective percentage       1.87%