v3.23.2
Financial Instruments - Narrative (Details) - USD ($)
$ in Millions
3 Months Ended 6 Months Ended
Jun. 30, 2023
Jun. 30, 2022
Jun. 30, 2023
Jun. 30, 2022
Dec. 31, 2022
Financial Instruments and Fair Value [Line Items]          
Non-marketable equity securities $ 29,129   $ 29,129   $ 28,529
Gross realized gain on debt securities 28 $ 29 85 $ 69  
Gross realized losses on the sale of our marketable securities 303 $ 368 795 $ 639  
Equity method investments 1,500   1,500   $ 1,500
Foreign currency gain to be reclassified during next 12 months $ 24   $ 24    
Derivative Asset, Statement of Financial Position [Extensible Enumeration] Other current assets   Other current assets    
Derivative Liability, Statement of Financial Position [Extensible Enumeration] Other long-term liabilities   Other long-term liabilities    
Cash flow hedges | Foreign exchange contracts          
Financial Instruments and Fair Value [Line Items]          
Foreign exchange option contracts, maximum maturities 24 months   24 months    
Valuation, Market Approach          
Financial Instruments and Fair Value [Line Items]          
Non-marketable equity securities $ 1,500   $ 1,500