Quarterly report pursuant to Section 13 or 15(d)

Stock-Based Compensation - Summary of Stock-based Compensation Expense Recognized for all Stock-based Awards (Details)

v3.22.2.2
Stock-Based Compensation - Summary of Stock-based Compensation Expense Recognized for all Stock-based Awards (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2022
Sep. 30, 2021
Sep. 30, 2022
Sep. 30, 2021
Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation expense recognized $ 498 $ 13,939 $ (980) $ 43,427
Cost of sales [Member]        
Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation expense recognized 445 109 1,137 179
General and administrative [Member]        
Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation expense recognized (3,337) 13,096 58 13,953
Selling and Marketing Expense [Member]        
Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation expense recognized 1,717 451 (6,870) 28,411
Research and Development Expense [Member]        
Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items]        
Share-based compensation expense recognized $ 1,673 $ 283 $ 4,695 $ 884