DEBT - Schedule of Long-term debt (Details) - USD ($) $ in Thousands |
Mar. 31, 2025 |
Dec. 31, 2024 |
|---|---|---|
| Debt Instrument [Line Items] | ||
| Total carrying amount of debt | $ 1,201,891 | $ 1,302,380 |
| Less: debt, current | (630,677) | (101,291) |
| Debt, non-current | 571,214 | 1,201,089 |
| Convertible Notes | Notes due 2028 | ||
| Debt Instrument [Line Items] | ||
| Long-term debt, gross | 575,000 | 575,000 |
| Less: unamortized debt issuance costs | (3,786) | (4,102) |
| Total carrying amount of debt | 571,214 | 570,898 |
| Convertible Notes | Notes due 2026 | ||
| Debt Instrument [Line Items] | ||
| Long-term debt, gross | 632,500 | 632,500 |
| Less: unamortized debt issuance costs | (1,823) | (2,309) |
| Total carrying amount of debt | 630,677 | 630,191 |
| Convertible Notes | Notes due 2025 | ||
| Debt Instrument [Line Items] | ||
| Long-term debt, gross | 0 | 102,168 |
| Less: unamortized debt discount | 0 | (803) |
| Less: unamortized debt issuance costs | 0 | (74) |
| Total carrying amount of debt | $ 0 | $ 101,291 |
| X | ||||||||||
- Definition Amount, before unamortized (discount) premium and debt issuance costs, of long-term debt. Includes, but is not limited to, notes payable, bonds payable, commercial loans, mortgage loans, convertible debt, subordinated debt and other types of debt. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount, after accumulated amortization, of debt discount. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount, after accumulated amortization, of debt issuance costs. Includes, but is not limited to, legal, accounting, underwriting, printing, and registration costs. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt classified as current. Excludes lease obligation. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt classified as noncurrent. Excludes lease obligation. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|