v3.22.0.1
Income Taxes - Tax Rate Reconciliation (Details) - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Income Tax Disclosure [Abstract]      
Federal statutory income tax rate 21.00% 21.00% 21.00%
State income tax expense (2.30%) (0.10%) (0.10%)
Foreign rate differential 10.30% 10.80% (3.80%)
Non-deductible expenses (5.20%) (1.30%) (1.30%)
Stock-based compensation 4.50% 1.30% 1.20%
Interest on convertible notes (0.10%) 0.00% (0.30%)
Gain on convertible notes 0.00% 0.00% 1.10%
Federal research and development credits 7.80% 2.90% 3.10%
Deferred tax on foreign investments 48.70% 0.90% 0.00%
Entity restructuring (2.00%) (1.70%) 92.30%
Change in unrecognized tax benefits (27.80%) (3.70%) (17.00%)
Valuation allowance (33.70%) (45.80%) (97.30%)
US tax on foreign income (10.80%) 0.00% (1.60%)
Tax rate change 22.40% 14.40% 0.00%
Other interest 16.80% 3.20% 1.80%
Other, net (1.60%) 0.90% 0.40%
Effective income tax rate 48.00% 2.80% (0.50%)
Income Tax Contingency [Line Items]      
Gross increases - current year tax positions $ 239 $ 353 $ 1,566
Foreign Tax Authority      
Income Tax Contingency [Line Items]      
Gross increases - current year tax positions     6,400
Unrecognized tax benefits, decrease from current period tax positions     $ 1,400