v3.22.2.2
Summary of significant accounting policies - Narrative (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended 9 Months Ended
May 17, 2022
Sep. 30, 2022
Sep. 30, 2021
Jun. 30, 2021
Jun. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
Aug. 14, 2022
May 13, 2022
Dec. 31, 2021
Unusual or Infrequent Item, or Both [Line Items]                    
Accounts receivable, after allowance for credit loss   $ 2,000       $ 2,000        
Utilization warrant (percent)   50.00%       50.00%     50.00%  
Contract asset, current   $ 15,300       $ 15,300       $ 4,300
Contract asset, non-current   22,200       22,200       18,400
Contract with customer, asset, allowance for credit loss, write off   500 $ 0     800 $ 0      
Deferred costs to obtain and fulfill contracts   12,800       12,800       $ 13,800
Amortization of deferred costs   1,400 600     3,000 1,300      
Impairment charges recognized   900       1,400        
Cumulative catch-up revenue recognized       $ 2,200 $ 2,200          
Advertising expense   2,500 3,000     15,000 10,600      
Rebates From Suppliers                    
Unusual or Infrequent Item, or Both [Line Items]                    
Revenue from related parties   1,300 0     5,800 0      
Reduction of inventory   200       200        
United States                    
Unusual or Infrequent Item, or Both [Line Items]                    
Additional revenue recognized       1,300 $ 1,300          
Deferred State Contracts                    
Unusual or Infrequent Item, or Both [Line Items]                    
Additional revenues recognized       $ 1,700            
Franchise                    
Unusual or Infrequent Item, or Both [Line Items]                    
Revenue from related parties   $ 2,188 $ 2,724     $ 7,164 $ 3,329      
Franchise Renewal Fees                    
Unusual or Infrequent Item, or Both [Line Items]                    
Agreement terms           10 years        
Minimum | Franchise                    
Unusual or Infrequent Item, or Both [Line Items]                    
Agreement terms           3 years        
Maximum | Franchise                    
Unusual or Infrequent Item, or Both [Line Items]                    
Agreement terms           5 years        
Immediately Exercisable Warrant                    
Unusual or Infrequent Item, or Both [Line Items]                    
Exercise of warrants (in shares) 346,192                  
Class Of Warrant Or Right, 50% Utilization Warrant                    
Unusual or Infrequent Item, or Both [Line Items]                    
Utilization warrant (percent)   50.00%       50.00%   50.00% 50.00%  
Customer Concentration Risk | Accounts receivable | One Customer                    
Unusual or Infrequent Item, or Both [Line Items]                    
Revenue concentration by customer (in percentage)           22.00%        
Customer Concentration Risk | Revenue | One Customer                    
Unusual or Infrequent Item, or Both [Line Items]                    
Revenue concentration by customer (in percentage)   20.00%