Condensed Consolidated Statements of Mezzanine Equity and Stockholders' Equity (Unaudited) - USD ($) | Total | Common Stock [Member] | Additional Paid-in Capital [Member] | Retained Earnings [Member] | AOCI Attributable to Parent [Member] | Noncontrolling Interest [Member] | Temporary Equity, Including Portion Attributable to Noncontrolling Interests [Member] | Common Stock Outstanding [Member] | Treasury Stock, Common [Member] |
Balance (in shares) at Dec. 31, 2022 | | | | | | | | 185,277,588 | 4,189,750 |
Balance at Dec. 31, 2022 | $ 229,147,000 | $ 19,000 | $ 665,715,000 | $ (416,927,000) | $ 2,006,000 | | | | $ (21,666,000) |
Proceeds from exercise of options (in shares) | | | | | | | | 2,063,783 | 0 |
Proceeds from exercise of options | 3,865,000 | 0 | 3,865,000 | 0 | 0 | | | | $ 0 |
Common stock issued upon vesting of restricted stock units (in shares) | | | | | | | | 2,637,904 | 0 |
Common stock issued upon vesting of restricted stock units | 0 | 0 | 0 | 0 | 0 | | | | $ 0 |
Stock-based compensation expense | 26,975,000 | 0 | 26,975,000 | 0 | 0 | | | | 0 |
Reclassification of earn-out RSUs to earn-out shares | (439,000) | 0 | (439,000) | 0 | 0 | | | | 0 |
Net income | (25,937,000) | 0 | 0 | (25,937,000) | 0 | | | | |
Unrealized gain (loss) on available-for-sale securities | 0 | | | | | | | | |
Foreign currency translation adjustments | 301,000 | 0 | 0 | 0 | 301,000 | | | | 0 |
Balance, temporary equity, including noncontrolling interest at Dec. 31, 2022 | | | | | | $ 14,007,000 | $ 14,007,000 | | |
Repurchase and retirement of common stock (in shares) | | | | | | | | (5,983,651) | |
Repurchase and retirement of common stock | (33,744,000) | (1,000) | (36,224,000) | (19,185,000) | 0 | | | | |
Net loss attributable to and accretion of redeemable noncontrolling interest | | | | | | 57,000 | 57,000 | | |
Net loss attributable to and accretion of redeemable noncontrolling interest | (57,000) | 0 | 0 | (57,000) | 0 | | | | 0 |
Foreign currency translation adjustments | | | | | | (73,000) | (73,000) | | |
Foreign currency translation adjustments | $ 301,000 | 0 | 0 | $ 0 | 301,000 | | | | $ 0 |
Temporary Equity, Foreign Currency Translation Adjustments | | | | | | (73,000) | (73,000) | | |
Repurchase and retirement of common stock (in shares) | (5,983,651) | | | | | | | | (4,189,750) |
Repurchase and retirement of common stock | | | | | | | | | $ 21,666,000 |
Balance, temporary equity, including noncontrolling interest at Sep. 30, 2023 | | | | | | 13,991,000 | 13,991,000 | | |
Balance (in shares) at Sep. 30, 2023 | | | | (462,106) | | | | 183,995,624 | 0 |
Balance at Sep. 30, 2023 | $ 200,111,000 | 18,000 | 659,892,000 | $ (462,106,000) | 2,307,000 | | | | $ 0 |
Balance (in shares) at Jun. 30, 2023 | | | | (450,750) | | | | 185,723,183 | |
Balance at Jun. 30, 2023 | 211,124,000 | 19,000 | 659,604,000 | | 2,251,000 | | | | |
Proceeds from exercise of options (in shares) | | | | 0 | | | | 288,180 | |
Proceeds from exercise of options | 625,000 | 0 | 625,000 | | 0 | | | | |
Common stock issued upon vesting of restricted stock units (in shares) | | | | 0 | | | | 631,866 | |
Common stock issued upon vesting of restricted stock units | 0 | 0 | 0 | | 0 | | | | |
Stock-based compensation expense | 9,285,000 | 0 | 9,285,000 | | 0 | | | | |
Reclassification of earn-out RSUs to earn-out shares | (127,000) | 0 | (127,000) | | 0 | | | | |
Net income | (4,230,000) | 0 | 0 | | | | | | |
Unrealized gain (loss) on available-for-sale securities | 0 | | | | | | | | |
Foreign currency translation adjustments | 56,000 | 0 | 0 | | 56,000 | | | | |
Balance, temporary equity, including noncontrolling interest at Jun. 30, 2023 | | | | | | 14,009,000 | 14,009,000 | | |
Repurchase and retirement of common stock (in shares) | | | | | | | | (2,647,605) | |
Repurchase and retirement of common stock | (16,640,000) | (1,000) | (9,495,000) | $ (7,144) | 0 | | | | |
Net loss attributable to and accretion of redeemable noncontrolling interest | | | | | | (18,000) | (18,000) | | |
Net loss attributable to and accretion of redeemable noncontrolling interest | 18,000 | 0 | 0 | | 0 | | | | |
Foreign currency translation adjustments | | | | | | 0 | 0 | | |
Foreign currency translation adjustments | 56,000 | 0 | 0 | | 56,000 | | | | |
Temporary Equity, Foreign Currency Translation Adjustments | | | | | | 0 | 0 | | |
Balance, temporary equity, including noncontrolling interest at Sep. 30, 2023 | | | | | | 13,991,000 | 13,991,000 | | |
Balance (in shares) at Sep. 30, 2023 | | | | (462,106) | | | | 183,995,624 | 0 |
Balance at Sep. 30, 2023 | 200,111,000 | 18,000 | 659,892,000 | $ (462,106,000) | 2,307,000 | | | | $ 0 |
Balance (in shares) at Dec. 31, 2023 | | | | | | | | 184,652,402 | |
Balance at Dec. 31, 2023 | $ 218,806,000 | 18,000 | 667,881,000 | (460,496,000) | 3,196,000 | 8,207,000 | | | |
Proceeds from exercise of options (in shares) | 1,502,820 | | | | | | | 1,502,820 | |
Proceeds from exercise of options | $ 3,613,000 | 0 | 3,613,000 | 0 | 0 | 0 | | | |
Common stock issued upon vesting of restricted stock units (in shares) | | | | | | | | 3,905,299 | |
Common stock issued upon vesting of restricted stock units | 0 | 1,000 | (1,000) | 0 | 0 | 0 | | | |
Stock-based compensation expense | 29,807,000 | 0 | 29,807,000 | 0 | 0 | 0 | | | |
Reclassification of earn-out RSUs to earn-out shares | (378,000) | 0 | (378,000) | | 0 | 0 | | | |
Purchase of public warrants | $ (3,828,000) | 0 | (3,828,000) | 0 | 0 | 0 | | | |
Repurchase and retirement of common stock (in shares) | (2,629,978) | | | | | | | (2,629,978) | |
Repurchase and retirement of common stock | $ (21,704,000) | 0 | (9,654,000) | (12,050,000) | 0 | 0 | | | |
Net income | (11,959,000) | 0 | 0 | (12,004,000) | 0 | 45,000 | | | |
Unrealized gain (loss) on available-for-sale securities | (138,000) | 0 | 0 | 0 | (138,000) | 0 | | | |
Foreign currency translation adjustments | 1,403,000 | 0 | 0 | | 1,371,000 | 32,000 | | | |
Balance, temporary equity, including noncontrolling interest at Dec. 31, 2023 | 6,038,000 | | | | | 6,038,000 | 6,038,000 | | |
Foreign currency translation adjustments | | | | | | (8,000) | (8,000) | | |
Foreign currency translation adjustments | 1,403,000 | 0 | 0 | | 1,371,000 | 32,000 | | | |
Accretion of redeemable noncontrolling interest | 99,000 | | | 99,000 | | (99,000) | (99,000) | | |
Redemption of noncontrolling interest | | | | | | (5,926,000) | (5,926,000) | | |
Redemption of noncontrolling interest | 0 | $ 0 | 6,379,000 | 0 | 2,000 | (6,381,000) | | | |
Temporary Equity, Foreign Currency Translation Adjustments | | | | | | (8,000) | (8,000) | | |
Balance, temporary equity, including noncontrolling interest at Sep. 30, 2024 | 0 | | | | | 0 | 0 | | |
Balance (in shares) at Sep. 30, 2024 | | 187,430,543 | | | | | | 187,430,543 | |
Balance at Sep. 30, 2024 | 215,721,000 | $ 19,000 | 693,819,000 | (484,451,000) | 4,431,000 | 1,903,000 | | | |
Balance (in shares) at Jun. 30, 2024 | | 186,657,306 | | | | | | | |
Balance at Jun. 30, 2024 | 207,408,000 | $ 19,000 | 688,487,000 | (485,327,000) | 2,732,000 | 1,497,000 | | | |
Proceeds from exercise of options (in shares) | | 117,457 | | | | | | | |
Proceeds from exercise of options | 279,000 | $ 0 | 279,000 | 0 | 0 | 0 | | | |
Common stock issued upon vesting of restricted stock units (in shares) | | 874,326 | | | | | | | |
Common stock issued upon vesting of restricted stock units | 0 | $ 0 | 0 | 0 | 0 | 0 | | | |
Stock-based compensation expense | 9,811,000 | 0 | 9,811,000 | 0 | 0 | 0 | | | |
Reclassification of earn-out RSUs to earn-out shares | (120,000) | 0 | (120,000) | 0 | 0 | 0 | | | |
Purchase of public warrants | (3,828,000) | $ 0 | (3,828,000) | 0 | 0 | 0 | | | |
Repurchase and retirement of common stock (in shares) | | (218,546) | | | | | | | |
Repurchase and retirement of common stock | (2,554,000) | $ 0 | (810,000) | (1,744,000) | 0 | 0 | | | |
Net income | 2,928,000 | 0 | 0 | 2,620,000 | 0 | 308,000 | | | |
Unrealized gain (loss) on available-for-sale securities | 3,000 | 0 | 0 | 0 | 3,000 | 0 | | | |
Foreign currency translation adjustments | 1,794,000 | 0 | 0 | 0 | 1,696,000 | 98,000 | | | |
Foreign currency translation adjustments | 1,794,000 | $ 0 | 0 | 0 | 1,696,000 | 98,000 | | | |
Balance, temporary equity, including noncontrolling interest at Sep. 30, 2024 | 0 | | | | | 0 | $ 0 | | |
Balance (in shares) at Sep. 30, 2024 | | 187,430,543 | | | | | | 187,430,543 | |
Balance at Sep. 30, 2024 | $ 215,721,000 | $ 19,000 | $ 693,819,000 | $ (484,451,000) | $ 4,431,000 | $ 1,903,000 | | | |