v3.24.2.u1
Warrant Transaction Agreements - Amazon.com, Inc. Transaction Agreement (Details)
$ in Thousands
3 Months Ended 6 Months Ended
Aug. 24, 2022
USD ($)
$ / shares
D
shares
Jul. 20, 2020
D
Jun. 30, 2024
USD ($)
$ / shares
shares
Jun. 30, 2023
USD ($)
shares
Jun. 30, 2024
USD ($)
$ / shares
shares
Jun. 30, 2023
USD ($)
shares
May 31, 2024
shares
Dec. 31, 2023
shares
Apr. 04, 2017
shares
Class of Warrant or Right [Line Items]                  
Shares of common stock that can be purchased from warrants issued (in shares)             3,461,371    
Selling, general and administrative | $     $ 85,144 $ 101,154 $ 163,103 $ 205,170      
Provision | $         $ 7,292 $ 856      
2017 Amazon Transaction Agreement                  
Class of Warrant or Right [Line Items]                  
Shares of common stock that can be purchased from warrants issued (in shares)                 55,286,696
Number of warrants exercised to date     34,917,912 34,917,912 34,917,912 34,917,912      
Number of warrants exercised (in shares)     0 0 0 0      
Warrant shares vested (in shares)     55,286,696 55,286,696 55,286,696 55,286,696      
Provision for common stock warrants | $       $ 100 $ 200 $ 200      
2017 Amazon Transaction Agreement | Maximum                  
Class of Warrant or Right [Line Items]                  
Shares of common stock that can be purchased from warrants issued (in shares)                 55,286,696
2017 Amazon Transaction Agreement | Tranche three                  
Class of Warrant or Right [Line Items]                  
Threshold trading days | D   30              
2017 Amazon Transaction Agreement | Amazon                  
Class of Warrant or Right [Line Items]                  
Number of warrants exercised (in shares)         34,917,912 34,917,912      
Tranche one of warrants issued with the Amazon.com, Inc transaction agreement | Tranche one                  
Class of Warrant or Right [Line Items]                  
Contract asset | $     $ 19,000   $ 19,000        
Tranche one of warrants issued with the Amazon.com, Inc transaction agreement | Tranche two                  
Class of Warrant or Right [Line Items]                  
Contract asset | $     19,000   19,000        
Warrant Issued With Amazon                  
Class of Warrant or Right [Line Items]                  
Provision for common stock warrants | $     $ 1,700   $ 2,400        
2022 Amazon transaction agreement                  
Class of Warrant or Right [Line Items]                  
Minimum percentage of warrants vested and exercisable automatically 60.00%                
Shares of common stock that can be purchased from warrants issued (in shares) 16,000,000                
Number of warrants exercised to date     0 0 0 0      
Number of warrants exercised (in shares)     0 0 0 0      
Warrant shares vested (in shares)     2,500,000   2,500,000     2,000,000  
Provision for common stock warrants | $       $ 1,500   $ 2,600      
2022 Amazon transaction agreement | Maximum                  
Class of Warrant or Right [Line Items]                  
Shares of common stock that can be purchased from warrants issued (in shares) 16,000,000                
2022 Amazon transaction agreement | Warrants Tranches One Through Three                  
Class of Warrant or Right [Line Items]                  
Warrant shares vested (in shares) 9,000,000                
Exercise price of warrants (in dollars per share) | $ / shares $ 22.9841                
Fair value of warrants per share | $ / shares $ 20.36                
2022 Amazon transaction agreement | Warrants Tranches One Through Three | Risk-free interest rate                  
Class of Warrant or Right [Line Items]                  
Warrants and rights outstanding measurement input 3.15                
2022 Amazon transaction agreement | Warrants Tranches One Through Three | Volatility                  
Class of Warrant or Right [Line Items]                  
Warrants and rights outstanding measurement input 75.00                
2022 Amazon transaction agreement | Warrants Tranches One Through Three | Expected average term (years)                  
Class of Warrant or Right [Line Items]                  
Expected average term (years) 7 years                
2022 Amazon transaction agreement | Warrants Tranches One Through Three | Exercise price                  
Class of Warrant or Right [Line Items]                  
Warrants and rights outstanding measurement input | $ / shares 22.98                
2022 Amazon transaction agreement | Warrants Tranches One Through Three | Stock price                  
Class of Warrant or Right [Line Items]                  
Warrants and rights outstanding measurement input | $ / shares 20.36                
2022 Amazon transaction agreement | Tranche one                  
Class of Warrant or Right [Line Items]                  
Warrant shares vested (in shares) 1,000,000                
Warrant charge capitalized | $ $ 20,400                
2022 Amazon transaction agreement | Tranche two                  
Class of Warrant or Right [Line Items]                  
Warrant shares vested (in shares)       1,000,000   1,000,000      
Warrant charge capitalized | $ 20,400                
2022 Amazon transaction agreement | Tranche three                  
Class of Warrant or Right [Line Items]                  
Cash payments to be received under agreement | $ $ 1,000,000                
Contract asset | $     $ 1,500   $ 1,500        
2022 Amazon transaction agreement | Tranche four                  
Class of Warrant or Right [Line Items]                  
Warrant shares vested (in shares) 7,000,000                
Warrant percentage weighted average share price 90.00%                
Threshold trading days | D 30                
2022 Amazon transaction agreement | Tranche four | Risk-free interest rate                  
Class of Warrant or Right [Line Items]                  
Warrants and rights outstanding measurement input     4.24   4.24        
2022 Amazon transaction agreement | Tranche four | Volatility                  
Class of Warrant or Right [Line Items]                  
Warrants and rights outstanding measurement input     90.00   90.00        
2022 Amazon transaction agreement | Tranche four | Expected average term (years)                  
Class of Warrant or Right [Line Items]                  
Expected average term (years)         1 year 1 month 24 days        
2022 Amazon transaction agreement | Tranche four | Exercise price                  
Class of Warrant or Right [Line Items]                  
Warrants and rights outstanding measurement input | $ / shares     2.10   2.10        
2022 Amazon transaction agreement | Tranche four | Stock price                  
Class of Warrant or Right [Line Items]                  
Warrants and rights outstanding measurement input | $ / shares     2.33   2.33        
2022 Amazon transaction agreement | Share-Based Payment Arrangement, Tranche Two                  
Class of Warrant or Right [Line Items]                  
Vesting period 7 years                
Cash payments to be received under agreement | $ $ 2,100,000                
Warrant shares vested (in shares) 15,000,000