STOCKHOLDERS' EQUITY AND NET LOSS PER SHARE - Antidilutive Securities (Details) - shares shares in Millions |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Sep. 30, 2023 |
Sep. 30, 2022 |
Sep. 30, 2023 |
Sep. 30, 2022 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Antidilutive securities (in shares) | 219 | 121 | 219 | 121 |
| 2029 Green Convertible Notes | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Antidilutive securities (in shares) | 75 | 0 | 75 | 0 |
| Stock warrants | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Antidilutive securities (in shares) | 12 | 12 | 12 | 12 |
| Stock options | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Antidilutive securities (in shares) | 62 | 63 | 62 | 63 |
| RSUs, ESPP, and other stock-based awards | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Antidilutive securities (in shares) | 70 | 46 | 70 | 46 |