Net Income (Loss) per Share - Schedule of securities with antidilutive effect (Details) - shares shares in Millions |
3 Months Ended | |
|---|---|---|
Mar. 31, 2023 |
Mar. 31, 2022 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Antidilutive securities (in shares) | 9.0 | 71.0 |
| 2026 Notes | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Antidilutive securities (in shares) | 0.0 | 11.1 |
| Warrants | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Antidilutive securities (in shares) | 0.0 | 8.0 |
| Stock options | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Antidilutive securities (in shares) | 1.0 | 24.0 |
| RSUs | ||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||
| Antidilutive securities (in shares) | 8.0 | 28.0 |