Stockholders’ Equity and Stock-Based Compensation - Warrant Activity (Details) - USD ($) $ / shares in Units, shares in Thousands, $ in Thousands |
6 Months Ended | 12 Months Ended |
|---|---|---|
Jun. 30, 2021 |
Dec. 31, 2020 |
|
| Shares of Stock under Warrants | ||
| Beginning balance (in shares) | 15,174 | |
| Granted (in shares) | 0 | |
| Exercised (in shares) | (10,789) | |
| Canceled (in shares) | (24) | |
| Ending balance (in shares) | 4,361 | 15,174 |
| Weighted- Average Exercise Price | ||
| Beginning balance (in USD per share) | $ 2.34 | |
| Granted (in USD per share) | ||
| Exercised (in USD per share) | 0.88 | |
| Ending balance (in USD per share) | $ 5.95 | $ 2.34 |
| Weighted- Average Remaining Contractual Term | ||
| Balance | 2 years 3 months 7 days | 3 years 9 months 3 days |
| Granted | ||
| Aggregate Intrinsic Value | ||
| Beginning balance | $ 26,841 | |
| Exercised | 58,175 | |
| Ending balance | $ 6,904 | $ 26,841 |