Condensed Consolidated Statements of Stockholders’ Equity (Unaudited) - USD ($) shares in Thousands, $ in Thousands | Total | Impact of adoption of Topic 606 | Common Stock | Additional Paid-In Capital | Accumulated Deficit | Accumulated DeficitImpact of adoption of Topic 606 | Accumulated Other Comprehensive Loss | Previously Reported | Previously ReportedCommon Stock | Previously ReportedAdditional Paid-In Capital | Previously ReportedAccumulated Deficit | Previously ReportedAccumulated Other Comprehensive Loss | Retroactive application of recapitalization | Retroactive application of recapitalizationCommon Stock | Retroactive application of recapitalizationAdditional Paid-In Capital | Retroactive application of recapitalizationAccumulated Deficit | Retroactive application of recapitalizationAccumulated Other Comprehensive Loss |
Beginning balance (in shares) at Dec. 31, 2019 | 0 | | | | | | | 66,433 | | | | | (66,433) | | | | |
Beginning balance at Dec. 31, 2019 | $ 0 | | | | | | | $ 134,567 | | | | | $ (134,567) | | | | |
Ending balance (in shares) at Mar. 31, 2020 | 0 | | | | | | | | | | | | | | | | |
Ending balance at Mar. 31, 2020 | $ 0 | | | | | | | | | | | | | | | | |
Beginning balance (in shares) at Dec. 31, 2019 | | | 71,901 | | | | | | 5,468 | | | | | 66,433 | | | |
Beginning balance at Dec. 31, 2019 | 51,698 | $ 519 | $ 7 | $ 135,299 | $ (83,395) | $ 519 | $ (213) | $ (82,869) | $ 1 | $ 738 | $ (83,395) | $ (213) | $ 134,567 | $ 6 | $ 134,561 | $ 0 | $ 0 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | 132 | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of stock options | 29 | | | 29 | | | | | | | | | | | | | |
Stock-based compensation expense | 287 | | | 287 | | | | | | | | | | | | | |
Comprehensive (loss) income | (12,621) | | | | (12,079) | | (542) | | | | | | | | | | |
Ending balance (in shares) at Mar. 31, 2020 | | | 72,033 | | | | | | | | | | | | | | |
Ending balance at Mar. 31, 2020 | $ 39,912 | | $ 7 | 135,615 | (94,955) | | (755) | | | | | | | | | | |
Beginning balance (in shares) at Dec. 31, 2019 | 0 | | | | | | | 66,433 | | | | | (66,433) | | | | |
Beginning balance at Dec. 31, 2019 | $ 0 | | | | | | | $ 134,567 | | | | | $ (134,567) | | | | |
Ending balance (in shares) at Sep. 30, 2020 | 0 | | | | | | | | | | | | | | | | |
Ending balance at Sep. 30, 2020 | $ 0 | | | | | | | | | | | | | | | | |
Beginning balance (in shares) at Dec. 31, 2019 | | | 71,901 | | | | | | 5,468 | | | | | 66,433 | | | |
Beginning balance at Dec. 31, 2019 | 51,698 | $ 519 | $ 7 | 135,299 | (83,395) | $ 519 | (213) | $ (82,869) | $ 1 | 738 | (83,395) | (213) | $ 134,567 | $ 6 | 134,561 | 0 | 0 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | | | | | | |
Comprehensive (loss) income | (42,286) | | | | | | | | | | | | | | | | |
Ending balance (in shares) at Sep. 30, 2020 | | | 92,051 | | | | | | | | | | | | | | |
Ending balance at Sep. 30, 2020 | $ 91,247 | | $ 9 | 216,613 | (124,645) | | (730) | | | | | | | | | | |
Beginning balance (in shares) at Mar. 31, 2020 | 0 | | | | | | | | | | | | | | | | |
Beginning balance at Mar. 31, 2020 | $ 0 | | | | | | | | | | | | | | | | |
Ending balance (in shares) at Jun. 30, 2020 | 0 | | | | | | | | | | | | | | | | |
Ending balance at Jun. 30, 2020 | $ 0 | | | | | | | | | | | | | | | | |
Beginning balance (in shares) at Mar. 31, 2020 | | | 72,033 | | | | | | | | | | | | | | |
Beginning balance at Mar. 31, 2020 | 39,912 | | $ 7 | 135,615 | (94,955) | | (755) | | | | | | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | 37 | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of stock options | 8 | | | 8 | | | | | | | | | | | | | |
Stock-based compensation expense | 217 | | | 217 | | | | | | | | | | | | | |
Comprehensive (loss) income | (12,389) | | | | (12,749) | | 360 | | | | | | | | | | |
Ending balance (in shares) at Jun. 30, 2020 | | | 72,070 | | | | | | | | | | | | | | |
Ending balance at Jun. 30, 2020 | $ 27,748 | | $ 7 | 135,840 | (107,704) | | (395) | | | | | | | | | | |
Ending balance (in shares) at Sep. 30, 2020 | 0 | | | | | | | | | | | | | | | | |
Ending balance at Sep. 30, 2020 | $ 0 | | | | | | | | | | | | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | 126 | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of stock options | 25 | | | 25 | | | | | | | | | | | | | |
Stock-based compensation expense | 247 | | | 247 | | | | | | | | | | | | | |
Sale of Series D redeemable convertible preferred stock, net of issuance costs (in shares) | | | 19,855 | | | | | | | | | | | | | | |
Sale of Series D redeemable convertible preferred stock, net of issuance costs of $1,730 | 80,503 | | $ 2 | 80,501 | | | | | | | | | | | | | |
Comprehensive (loss) income | (17,276) | | | | (16,941) | | (335) | | | | | | | | | | |
Ending balance (in shares) at Sep. 30, 2020 | | | 92,051 | | | | | | | | | | | | | | |
Ending balance at Sep. 30, 2020 | $ 91,247 | | $ 9 | 216,613 | (124,645) | | (730) | | | | | | | | | | |
Beginning balance (in shares) at Dec. 31, 2020 | 0 | | | | | | | 102,899 | | | | | (102,899) | | | | |
Beginning balance at Dec. 31, 2020 | $ 0 | | | | | | | $ 287,323 | | | | | $ (287,323) | | | | |
Ending balance (in shares) at Mar. 31, 2021 | 0 | | | | | | | | | | | | | | | | |
Ending balance at Mar. 31, 2021 | $ 0 | | | | | | | | | | | | | | | | |
Beginning balance (in shares) at Dec. 31, 2020 | | | 108,697 | | | | | | 5,798 | | | | | 102,899 | | | |
Beginning balance at Dec. 31, 2020 | 132,682 | | $ 11 | 287,318 | (154,322) | | (325) | $ (154,641) | $ 1 | 5 | (154,322) | (325) | $ 287,323 | $ 10 | 287,313 | 0 | 0 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | 136 | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of stock options | 85 | | | 85 | | | | | | | | | | | | | |
Stock-based compensation expense | 647 | | | 647 | | | | | | | | | | | | | |
Other | (16) | | | (15) | (1) | | | | | | | | | | | | |
Comprehensive (loss) income | (22,552) | | | | (22,347) | | (205) | | | | | | | | | | |
Ending balance (in shares) at Mar. 31, 2021 | | | 108,833 | | | | | | | | | | | | | | |
Ending balance at Mar. 31, 2021 | $ 110,846 | | $ 11 | 288,035 | (176,670) | | (530) | | | | | | | | | | |
Beginning balance (in shares) at Dec. 31, 2020 | 0 | | | | | | | 102,899 | | | | | (102,899) | | | | |
Beginning balance at Dec. 31, 2020 | $ 0 | | | | | | | $ 287,323 | | | | | $ (287,323) | | | | |
Ending balance (in shares) at Sep. 30, 2021 | 0 | | | | | | | | | | | | | | | | |
Ending balance at Sep. 30, 2021 | $ 0 | | | | | | | | | | | | | | | | |
Beginning balance (in shares) at Dec. 31, 2020 | | | 108,697 | | | | | | 5,798 | | | | | 102,899 | | | |
Beginning balance at Dec. 31, 2020 | 132,682 | | $ 11 | 287,318 | (154,322) | | (325) | $ (154,641) | $ 1 | $ 5 | $ (154,322) | $ (325) | $ 287,323 | $ 10 | $ 287,313 | $ 0 | $ 0 |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | | | | | | |
Comprehensive (loss) income | (84,063) | | | | | | | | | | | | | | | | |
Ending balance (in shares) at Sep. 30, 2021 | | | 178,059 | | | | | | | | | | | | | | |
Ending balance at Sep. 30, 2021 | $ 289,947 | | $ 18 | 528,640 | (238,363) | | (348) | | | | | | | | | | |
Beginning balance (in shares) at Mar. 31, 2021 | 0 | | | | | | | | | | | | | | | | |
Beginning balance at Mar. 31, 2021 | $ 0 | | | | | | | | | | | | | | | | |
Ending balance (in shares) at Jun. 30, 2021 | 0 | | | | | | | | | | | | | | | | |
Ending balance at Jun. 30, 2021 | $ 0 | | | | | | | | | | | | | | | | |
Beginning balance (in shares) at Mar. 31, 2021 | | | 108,833 | | | | | | | | | | | | | | |
Beginning balance at Mar. 31, 2021 | 110,846 | | $ 11 | 288,035 | (176,670) | | (530) | | | | | | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | 581 | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of stock options | 409 | | | 409 | | | | | | | | | | | | | |
Stock-based compensation expense | 709 | | | 709 | | | | | | | | | | | | | |
Comprehensive (loss) income | (27,291) | | | | (27,419) | | 128 | | | | | | | | | | |
Ending balance (in shares) at Jun. 30, 2021 | | | 109,414 | | | | | | | | | | | | | | |
Ending balance at Jun. 30, 2021 | $ 84,673 | | $ 11 | 289,153 | (204,089) | | (402) | | | | | | | | | | |
Ending balance (in shares) at Sep. 30, 2021 | 0 | | | | | | | | | | | | | | | | |
Ending balance at Sep. 30, 2021 | $ 0 | | | | | | | | | | | | | | | | |
Increase (Decrease) in Stockholders' Equity [Roll Forward] | | | | | | | | | | | | | | | | | |
Merger and PIPE Shares, net of transaction costs of $39,684 (in shares) | | | 68,069 | | | | | | | | | | | | | | |
Merger and PIPE Shares, net of transaction costs of $36,770 | 233,340 | | $ 7 | 233,333 | | | | | | | | | | | | | |
Conversion of warrants into common stock and issuance of equity classified warrants upon Merger (in shares) | | | 325 | | | | | | | | | | | | | | |
Conversion of warrants into common stock and issuance of equity classified warrants upon Merger | 4,576 | | | 4,576 | | | | | | | | | | | | | |
Issuance of common stock upon exercise of stock options (in shares) | | | 251 | | | | | | | | | | | | | | |
Issuance of common stock upon exercise of stock options | 166 | | | 166 | | | | | | | | | | | | | |
Stock-based compensation expense | 1,413 | | | 1,413 | | | | | | | | | | | | | |
Other | (1) | | | (1) | 0 | | | | | | | | | | | | |
Comprehensive (loss) income | (34,220) | | | | (34,274) | | 54 | | | | | | | | | | |
Ending balance (in shares) at Sep. 30, 2021 | | | 178,059 | | | | | | | | | | | | | | |
Ending balance at Sep. 30, 2021 | $ 289,947 | | $ 18 | $ 528,640 | $ (238,363) | | $ (348) | | | | | | | | | | |