Income Taxes - Summary of Activity Related to Gross Unrecognized Tax Benefits (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
Dec. 31, 2021 |
Dec. 31, 2020 |
|
| Income Tax Uncertainties [Abstract] | ||
| Beginning balance of unrecognized tax benefits | $ 344,971 | $ 286,605 |
| Additions for current year tax positions | 119,938 | 56,226 |
| Additions for prior year tax positions | 180 | 3,218 |
| Reductions for prior year tax positions | (996) | (712) |
| Changes due to lapse of statute of limitations | (2,077) | (570) |
| Changes due to foreign currency translation adjustments | (357) | 204 |
| U.K. corporate rate increase | 7,914 | |
| Ending balance of unrecognized tax benefits (excluding interest and penalties) | 469,573 | 344,971 |
| Interest and penalties associated with unrecognized tax benefits | 124 | 357 |
| Ending balance of unrecognized tax benefits (including interest and penalties) | $ 469,697 | $ 345,328 |