v3.24.1.u1
Long-Term Debt - Narrative (Details) - USD ($)
1 Months Ended 12 Months Ended
Dec. 31, 2023
Jan. 31, 2023
Oct. 31, 2021
Jan. 31, 2024
Jan. 31, 2023
Jan. 31, 2022
Nov. 30, 2023
Mar. 31, 2020
Nov. 30, 2019
Jul. 31, 2018
Debt Instrument [Line Items]                    
Principal repayments on long-term debt       $ 0 $ 0 $ 135,000,000.0        
Exercise price of common stock warrants (in usd per share)       $ 0.01            
Liquidity maintenance covenant $ 30,000,000           $ 50,000,000      
Loss on debt extinguishment       $ 0 0 $ 12,200,000        
2023 Amended Temasek Facility                    
Debt Instrument [Line Items]                    
Liquidity maintenance covenant       30,000,000     $ 50,000,000      
Maximum inventory capital expenditures, debt covenant 51,000,000                  
Maximum fixed operating expenditures, debt covenant 100,000,000                  
Debt instrument, covenant terms, specified exclusions 10,000,000                  
Maximum marketing expenditures, debt covenant $ 30,000,000                  
Term Loan | Temasek Term Loan                    
Debt Instrument [Line Items]                    
Effective interest rate (in percent)     15.95%              
Long-term debt   $ 271,600,000   $ 271,600,000 $ 271,600,000          
Term Loan | Initial Temasek Committment                    
Debt Instrument [Line Items]                    
Debt instrument, face amount               $ 50,000,000 $ 50,000,000 $ 100,000,000
Debt instrument, additional borrowing capacity                   $ 100,000,000
Interest rate, paid in kind (in percent)                   15.00%
Term Loan | Subsequent Temasek Commitment                    
Debt Instrument [Line Items]                    
Debt instrument, face amount               $ 30,000,000    
Debt instrument, additional borrowing capacity                 $ 30,000,000  
Interest rate, cash (in percent)                 13.00%  
Principal repayments on long-term debt     $ 30,000,000.0              
Term Loan | Temasek Facility Amendment                    
Debt Instrument [Line Items]                    
Debt instrument, face amount     $ 271,600,000              
Interest rate, paid in kind (in percent)     5.00%              
Principal repayments on long-term debt     $ 30,000,000.0              
Amended interest rate (in percent)   13.00% 12.00%   13.00%          
Effective interest rate (in percent)   15.15%   8.44% 15.15%          
Debt discount   $ 6,900,000 $ 15,300,000   $ 6,900,000          
Closing fees paid     200,000              
Allocation of proceeds to warrants issued     5,300,000              
Extension of term warrants     1,000,000.0              
Amendment fee     8,800,000              
Term Loan | Temasek Facility Amendment Two                    
Debt Instrument [Line Items]                    
Effective interest rate (in percent)   14.29%     14.29%          
Cash portion of interest rate, through July 2024 (in percent)   2.00%     2.00%          
Cash portion of interest rate, July 2024 and thereafter (in percent)   5.00%     5.00%          
Increase (decrease) in the total interest rate (in percent)   1.00%                
Number of securities called by warrant (in shares)   100,000     100,000          
Exercise price of common stock warrants (in usd per share)   $ 100,000,000.00     $ 100,000,000.00          
Term Loan | Initial Temasek Facility and Amended Temasek Facility                    
Debt Instrument [Line Items]                    
Principal repayments on long-term debt     $ 60,000,000.0              
Term Loan | Ares Term Loan                    
Debt Instrument [Line Items]                    
Long-term debt   $ 0   $ 0 $ 0