Income Taxes - Unrecognized Tax Benefits (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2021 |
Dec. 31, 2020 |
Dec. 31, 2019 |
|
| Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward] | |||
| Balance at beginning of period | $ 507,865 | $ 336,726 | $ 69,837 |
| Gross increases related to prior year tax positions | 13,568 | 2,223 | 237,972 |
| Gross decreases related to prior year tax positions | (1,772) | (5,970) | (5,029) |
| Gross increases related to current year tax positions | 84,990 | 196,492 | 36,502 |
| Reductions due to settlements with taxing authorities | (1,313) | (21,240) | (2,296) |
| Reduction due to lapse in statute of limitations | (6,776) | (366) | (260) |
| Balance at end of period | $ 596,562 | $ 507,865 | $ 336,726 |