v3.25.1
Debt - Convertible Senior Notes (Details)
$ / shares in Units, $ in Thousands
3 Months Ended
Mar. 31, 2022
USD ($)
$ / shares
Aug. 07, 2017
USD ($)
$ / shares
Mar. 31, 2025
USD ($)
Mar. 31, 2024
USD ($)
Mar. 31, 2022
USD ($)
$ / shares
Dec. 31, 2024
USD ($)
Debt            
Debt discount and issuance costs, net     $ (4,615)     $ (5,156)
Total debt, net     448,885     448,344
Less: Current portion of long-term debt, net     192,215     192,028
Net carrying amount     $ 448,885     448,344
2025 Notes            
Debt            
Common stock price to current conversion price ratio     130.00%      
Average trading price percentage     98.00%      
2028 Notes            
Debt            
Debt instrument, covenant terms description     The indenture governing the 2028 Notes contains customary terms and covenants, including a merger covenant and that upon certain events of default occurring and continuing, either the Trustee or the holders of at least 25% of the aggregate principal amount of the outstanding Notes may declare 100% of the principal of, and accrued and unpaid interest, if any, on, all the Notes to be due and payable immediately.      
Convertible senior notes | 2025 Notes            
Debt            
Ratio of repurchase price to the principal amount     100.00%      
Effective interest rate     2.88%      
Principal     $ 192,500     192,500
Debt discount and issuance costs, net     (285)     (472)
Total debt, net     192,215     192,028
Net carrying amount     192,215     192,028
Interest expense            
Contractual interest expense     1,203 $ 1,203    
Amortization of debt issuance costs     187 181    
Total interest and amortization expense     $ 1,390 1,384    
Convertible senior notes | 2025 Notes | Over-Allotment Option            
Debt            
Loan amount   $ 17,500        
Portion of debt instrument face amount, Exercised   17,500        
Convertible senior notes | 2025 Notes | Private Placement            
Debt            
Loan amount   $ 192,500        
Debt Instrument, annual interest rate   2.50%        
Convertible senior notes | 2025 Notes | Common stock            
Debt            
Conversion rate for shares of common stock per $1,000 principal   57.924        
Conversion price (dollars per share) | $ / shares   $ 17.26        
Debt instrument maturity date   Aug. 15, 2025        
Convertible senior notes | 2028 Notes            
Debt            
Loan amount $ 261,000       $ 261,000  
Debt instrument maturity date         Mar. 15, 2028  
Common stock price to current conversion price ratio         130.00%  
Average trading price percentage         98.00%  
Ratio of repurchase price to the principal amount         100.00%  
Effective interest rate     2.70%      
Principal     $ 261,000     261,000
Debt discount and issuance costs, net     (4,330)     (4,684)
Total debt, net     256,670     256,316
Net carrying amount     256,670     $ 256,316
Interest expense            
Contractual interest expense     1,387 1,387    
Amortization of debt issuance costs     354 344    
Total interest and amortization expense     $ 1,741 $ 1,731    
Convertible senior notes | 2028 Notes | Privately-negotiated capped call option            
Debt            
Strike price for the underlying number of shares (in dollars per share) | $ / shares $ 33.985          
Convertible senior notes | 2028 Notes | Private Placement            
Debt            
Debt Instrument, annual interest rate 2.125%       2.125%  
Convertible senior notes | 2028 Notes | Common stock            
Debt            
Conversion rate for shares of common stock per $1,000 principal         38.1432  
Conversion price (dollars per share) | $ / shares $ 26.22       $ 26.22