XML 59 R47.htm IDEA: XBRL DOCUMENT
v3.24.3

Organization and Principles of Consolidation - Additional Information (Details) | Dec. 31, 2023 state
--- | ---
Minimum [Member] |
Organization Consolidation And Presentation Of Financial Statements [Line Items] |
Number of states in which entity operates | 40
Sunoco LLC [Member] |
Organization Consolidation And Presentation Of Financial Statements [Line Items] |
Number of states in which entity operates | 40

X
- Definition Organization consolidation and presentation of financial statements. + References No definition available. + Details
Name: | sun_OrganizationConsolidationAndPresentationOfFinancialStatementsLineItems
Namespace Prefix: | sun_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition The number of states the entity operates in as of the balance sheet date. + References No definition available. + Details
Name: | us-gaap_NumberOfStatesInWhichEntityOperates
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=sun_SunocoLLCMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |