v3.25.2
Debt - Additional Information (Details)
$ / shares in Units, $ in Thousands
1 Months Ended 6 Months Ended
Aug. 31, 2024
USD ($)
$ / shares
Jun. 30, 2025
USD ($)
$ / shares
Dec. 31, 2024
USD ($)
Sep. 30, 2021
0.25% Convertible Senior Notes Due 2026        
Debt Instrument [Line Items]        
Debt principal amount $ 161,200      
Contractual Interest Rate   0.25%   0.25%
Outstanding principal   $ 4,060 $ 63,132  
Maturity date   Oct. 01, 2026    
Debt instrument, initial conversion price | $ / shares   $ 73.11    
Debt instrument, effective interest rate   0.84%    
Date of Issuance   2021-09    
Debt instrument, conversion ratio   0.01368    
0.25% Convertible Senior Notes Due 2026 | Repurchase Transactions        
Debt Instrument [Line Items]        
Outstanding principal   $ 4,000    
2028 Convertible Notes        
Debt Instrument [Line Items]        
Debt principal amount $ 150,000      
Contractual Interest Rate 7.50% 7.50%    
Outstanding principal   $ 150,000 $ 150,000  
Debt instrument, payment terms   semi-annually in arrears on April 1 and October 1 of each year    
Maturity date Oct. 01, 2028 Oct. 01, 2028    
Debt instrument, initial conversion price | $ / shares $ 16 $ 16    
Debt instrument, effective interest rate   8.00%    
Date of Issuance   2024-08    
Debt repurchase cash consideration $ 100      
Debt instrument, conversion ratio 0.0625 0.0625    
Debt instrument, convertible, type of equity security The 2028 Convertible Notes will be convertible with an initial conversion rate of 62.5000 shares of common stock per $1,000 principal amount of 2028 Convertible Notes, which represents an initial conversion price of $16.00 per share of common stock, when certain conditions are met.      
Debt Instrument, redemption, description   The Company may not redeem the 2028 Convertible Notes prior to October 7, 2026. The 2028 Convertible Notes will be redeemable, in whole or in part (subject to certain limitations), for cash at the Company’s option at any time, and from time to time, on or after October 7, 2026 and on or before the 25th scheduled trading day immediately before the maturity date, but only if the last reported sale price per share of the Company’s common stock exceeds 130 percent of the conversion price for a specified period of time and certain other conditions are satisfied. The redemption price will be equal to the principal amount of the 2028 Convertible Notes to be redeemed, plus accrued and unpaid interest, if any, up to, but excluding, the redemption date. In addition, calling any 2028 Convertible Note for redemption will constitute a Make-Whole Fundamental Change with respect to that 2028 Convertible Note, in which case the conversion rate applicable to the conversion of that 2028 Convertible Note will be increased in certain circumstances if it is converted after it is called for redemption. Pursuant to the Partial Redemption Limitation, the Company may not elect to redeem less than all of the outstanding 2028 Convertible Notes unless at least $100.0 million aggregate principal amount of 2028 Convertible Notes are outstanding and not subject to redemption as of the time the Company sends the related redemption notice.    
Debt instrument, unamortization of premium effective interest rate   6.00%    
2028 Convertible Notes | Minimum        
Debt Instrument [Line Items]        
Debt instrument, limited redemption amount $ 100,000