XML 44 R31.htm IDEA: XBRL DOCUMENT
v3.22.0.1

Debt (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2021
Debt Disclosure [Abstract] |
Summary of Convertible Debt | The net carrying amount of the liability and equity components of the Notes was as follows (in thousands):
| As of December 31,
| 2021 |  | 2020
Liability component: |  |  |
Principal | $ | 345,000 |  |  | $ | 345,000 |
Unamortized discount | (41,193) |  | (49,346)
Unamortized issuance costs | (5,146) |  |  | (6,164) |
Net carrying amount | $ | 298,661 |  |  | $ | 289,490 |
Equity component, net of purchase discounts and issuance costs | $ | 58,560 |  |  | $ | 58,560 |
Interest expense related to the Notes is as follows (in thousands):
| Year ended December 31,
| 2021 |  | 2020 |  | 2019
Contractual interest expense | $ | 3,881 |  |  | $ | 3,880 |  |  | $ | 1,444 |
Amortization of debt discount | 8,153 |  |  | 7,901 |  |  | 2,900 |
Amortization of issuance costs | 1,018 |  |  | 988 |  |  | 362 |
Total interest expense | $ | 13,052 |  |  | $ | 12,769 |  |  | $ | 4,706 |

X
- Definition Tabular disclosure of convertible debt instrument. Includes, but is not limited to, principal amount and amortized premium or discount. + References No definition available. + Details
Name: | us-gaap_ConvertibleDebtTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_DebtDisclosureAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration