Stock-based Compensation (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
---|---|---|---|---|
Sep. 30, 2022 |
Sep. 30, 2021 |
Sep. 30, 2022 |
Sep. 30, 2021 |
|
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
Stock-based compensation | $ 5,467 | $ 11,571 | $ 17,495 | $ 31,248 |
SG&A | ||||
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
Stock-based compensation | 5,315 | 11,211 | 16,989 | 29,583 |
COGS | ||||
Share-based Compensation Arrangement by Share-based Payment Award [Line Items] | ||||
Stock-based compensation | $ 152 | $ 360 | $ 506 | $ 1,665 |