STOCKHOLDERS' EQUITY AND NET LOSS PER SHARE - Antidilutive Securities (Details) - shares shares in Millions |
3 Months Ended | 6 Months Ended | ||
|---|---|---|---|---|
Jun. 30, 2023 |
Jun. 30, 2022 |
Jun. 30, 2023 |
Jun. 30, 2022 |
|
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Antidilutive securities (in shares) | 222 | 116 | 222 | 116 |
| 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) | 61 | 63 | 61 | 63 |
| RSUs, ESPP, and other stock-based awards | ||||
| Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items] | ||||
| Antidilutive securities (in shares) | 74 | 41 | 74 | 41 |