v3.26.1
Balance Sheet Components - Additional Information (Details) - USD ($)
1 Months Ended 12 Months Ended
Nov. 30, 2025
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Jun. 30, 2022
Jun. 30, 2021
Intangible Asset, Finite-Lived [Line Items]            
Accounts receivable, net   $ 284,350,000 $ 426,177,000      
Receivables from contracts with customers   88,000,000.0 76,900,000      
Allowance for accounts receivable   22,700,000 18,800,000      
Depreciation   302,000,000.0 223,700,000 $ 148,200,000    
Goodwill impairment loss   0 0 $ 1,000,000.0    
Goodwill, Impairment Loss, Statement of Income or Comprehensive Income [Extensible Enumeration]       General and administrative    
Amortization of intangible assets   200,000 1,300,000 $ 20,800,000    
Impairment of intangible assets   0 0 0    
Amortization of commercial agreement assets   18,884,000 47,392,000 73,070,000    
Shopify Inc. | Related Party            
Intangible Asset, Finite-Lived [Line Items]            
Amortization of commercial agreement assets   11,200,000 26,700,000 35,900,000    
Commercial Agreement - Amazon            
Intangible Asset, Finite-Lived [Line Items]            
Warrants vested fully upon grant, asset recognized   4,600,000     $ 133,500,000  
Asset amortization period 9 years       4 years  
Amortization of sales and marketing expense   7,600,000 $ 20,700,000 $ 32,900,000    
Accumulated amortization   $ 129,000,000.0        
Commercial agreement asset, remaining useful life   4 years 6 months        
Commercial Agreement - Shopify            
Intangible Asset, Finite-Lived [Line Items]            
Warrants vested fully upon grant, asset recognized   $ 33,900,000       $ 270,600,000
Accumulated amortization   $ 236,700,000        
Commercial agreement asset, remaining useful life   3 years