<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.23.3</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>349</ContextCount>
  <ElementCount>336</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>77</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFOPERATIONSUnaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>0000003 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMEUnaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>0000004 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSUnaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>0000005 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSUnauditedParenthetical</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>0000006 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWSUnaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>0000007 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS??? EQUITY (Unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYUnaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS??? EQUITY (Unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>0000008 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS??? EQUITY (Unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYUnauditedParenthetical</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS??? EQUITY (Unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>0000009 - Disclosure - Critical Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CriticalAccountingPolicies</Role>
      <ShortName>Critical Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>0000010 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>0000011 - Disclosure - Revenue Recognition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/RevenueRecognition</Role>
      <ShortName>Revenue Recognition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>0000012 - Disclosure - Segments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/Segments</Role>
      <ShortName>Segments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>0000013 - Disclosure - Net Income Per Share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/NetIncomePerShare</Role>
      <ShortName>Net Income Per Share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>0000014 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/Inventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>0000015 - Disclosure - Prepaid Expenses and Other Current Assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/PrepaidExpensesandOtherCurrentAssets</Role>
      <ShortName>Prepaid Expenses and Other Current Assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>0000016 - Disclosure - Property, Plant and Equipment, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/PropertyPlantandEquipmentNet</Role>
      <ShortName>Property, Plant and Equipment, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>0000017 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>0000018 - Disclosure - Distribution Agreements, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/DistributionAgreementsNet</Role>
      <ShortName>Distribution Agreements, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>0000019 - Disclosure - Customer Lists, Net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CustomerListsNet</Role>
      <ShortName>Customer Lists, Net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>0000020 - Disclosure - Supply Chain Finance Program</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/SupplyChainFinanceProgram</Role>
      <ShortName>Supply Chain Finance Program</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>0000021 - Disclosure - Other Accrued Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/OtherAccruedLiabilities</Role>
      <ShortName>Other Accrued Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>0000022 - Disclosure - Commodity Derivative Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CommodityDerivativeInstruments</Role>
      <ShortName>Commodity Derivative Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>0000023 - Disclosure - Fair Values of Financial Instruments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/FairValuesofFinancialInstruments</Role>
      <ShortName>Fair Values of Financial Instruments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>0000024 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/IncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>0000025 - Disclosure - Pension and Postretirement Benefit Obligations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/PensionandPostretirementBenefitObligations</Role>
      <ShortName>Pension and Postretirement Benefit Obligations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>0000026 - Disclosure - Other Liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/OtherLiabilities</Role>
      <ShortName>Other Liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>0000027 - Disclosure - Long-Term Debt</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/LongTermDebt</Role>
      <ShortName>Long-Term Debt</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>0000028 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>0000029 - Disclosure - Accumulated Other Comprehensive Income (Loss)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/AccumulatedOtherComprehensiveIncomeLoss</Role>
      <ShortName>Accumulated Other Comprehensive Income (Loss)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>0000030 - Disclosure - Supplemental Disclosures of Cash Flow Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/SupplementalDisclosuresofCashFlowInformation</Role>
      <ShortName>Supplemental Disclosures of Cash Flow Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>995410 - Disclosure - Pay vs Performance Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/PvpDisclosure</Role>
      <ShortName>Pay vs Performance Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9954471 - Disclosure - Critical Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CriticalAccountingPoliciesPolicies</Role>
      <ShortName>Critical Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/CriticalAccountingPolicies</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9954472 - Disclosure - Related Party Transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/RelatedPartyTransactionsTables</Role>
      <ShortName>Related Party Transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/RelatedPartyTransactions</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9954473 - Disclosure - Revenue Recognition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/RevenueRecognitionTables</Role>
      <ShortName>Revenue Recognition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/RevenueRecognition</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9954474 - Disclosure - Segments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/SegmentsTables</Role>
      <ShortName>Segments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/Segments</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9954475 - Disclosure - Net Income Per Share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/NetIncomePerShareTables</Role>
      <ShortName>Net Income Per Share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/NetIncomePerShare</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9954476 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/InventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/Inventories</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9954477 - Disclosure - Prepaid Expenses and Other Current Assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/PrepaidExpensesandOtherCurrentAssetsTables</Role>
      <ShortName>Prepaid Expenses and Other Current Assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/PrepaidExpensesandOtherCurrentAssets</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9954478 - Disclosure - Property, Plant and Equipment, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/PropertyPlantandEquipmentNetTables</Role>
      <ShortName>Property, Plant and Equipment, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/PropertyPlantandEquipmentNet</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9954479 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/Leases</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9954480 - Disclosure - Distribution Agreements, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/DistributionAgreementsNetTables</Role>
      <ShortName>Distribution Agreements, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/DistributionAgreementsNet</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9954481 - Disclosure - Customer Lists, Net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CustomerListsNetTables</Role>
      <ShortName>Customer Lists, Net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/CustomerListsNet</ParentRole>
      <Position>43</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9954482 - Disclosure - Other Accrued Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/OtherAccruedLiabilitiesTables</Role>
      <ShortName>Other Accrued Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/OtherAccruedLiabilities</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9954483 - Disclosure - Commodity Derivative Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CommodityDerivativeInstrumentsTables</Role>
      <ShortName>Commodity Derivative Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/CommodityDerivativeInstruments</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9954484 - Disclosure - Fair Values of Financial Instruments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/FairValuesofFinancialInstrumentsTables</Role>
      <ShortName>Fair Values of Financial Instruments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/FairValuesofFinancialInstruments</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9954485 - Disclosure - Pension and Postretirement Benefit Obligations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/PensionandPostretirementBenefitObligationsTables</Role>
      <ShortName>Pension and Postretirement Benefit Obligations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/PensionandPostretirementBenefitObligations</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9954486 - Disclosure - Other Liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/OtherLiabilitiesTables</Role>
      <ShortName>Other Liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/OtherLiabilities</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9954487 - Disclosure - Long-Term Debt (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/LongTermDebtTables</Role>
      <ShortName>Long-Term Debt (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/LongTermDebt</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9954488 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CommitmentsandContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/CommitmentsandContingencies</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9954489 - Disclosure - Accumulated Other Comprehensive Income (Loss) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/AccumulatedOtherComprehensiveIncomeLossTables</Role>
      <ShortName>Accumulated Other Comprehensive Income (Loss) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/AccumulatedOtherComprehensiveIncomeLoss</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9954490 - Disclosure - Supplemental Disclosures of Cash Flow Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/SupplementalDisclosuresofCashFlowInformationTables</Role>
      <ShortName>Supplemental Disclosures of Cash Flow Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/SupplementalDisclosuresofCashFlowInformation</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9954491 - Disclosure - Related Party Transactions - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/RelatedPartyTransactionsNarrativeDetails</Role>
      <ShortName>Related Party Transactions - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9954492 - Disclosure - Related Party Transactions - Summary of Significant Transactions between Company and the Coca-cola Company (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/RelatedPartyTransactionsSummaryofSignificantTransactionsbetweenCompanyandtheCocacolaCompanyDetails</Role>
      <ShortName>Related Party Transactions - Summary of Significant Transactions between Company and the Coca-cola Company (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9954493 - Disclosure - Related Party Transactions - Summary of Liability to Estimated Fair Value of Contingent Consideration (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/RelatedPartyTransactionsSummaryofLiabilitytoEstimatedFairValueofContingentConsiderationDetails</Role>
      <ShortName>Related Party Transactions - Summary of Liability to Estimated Fair Value of Contingent Consideration (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9954494 - Disclosure - Related Party Transactions - Summary of Rental Payments Related to Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/RelatedPartyTransactionsSummaryofRentalPaymentsRelatedtoLeasesDetails</Role>
      <ShortName>Related Party Transactions - Summary of Rental Payments Related to Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9954495 - Disclosure - Revenue Recognition - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/RevenueRecognitionNarrativeDetails</Role>
      <ShortName>Revenue Recognition - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9954496 - Disclosure - Revenue Recognition - Summary of Disaggregation of Revenue from Contracts With Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/RevenueRecognitionSummaryofDisaggregationofRevenuefromContractsWithCustomersDetails</Role>
      <ShortName>Revenue Recognition - Summary of Disaggregation of Revenue from Contracts With Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9954497 - Disclosure - Revenue Recognition - Summary of Activity for Allowance for Credit Losses (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/RevenueRecognitionSummaryofActivityforAllowanceforCreditLossesDetails</Role>
      <ShortName>Revenue Recognition - Summary of Activity for Allowance for Credit Losses (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9954498 - Disclosure - Segments - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/SegmentsNarrativeDetails</Role>
      <ShortName>Segments - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9954499 - Disclosure - Segments - Summary of Financial Information by Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/SegmentsSummaryofFinancialInformationbySegmentDetails</Role>
      <ShortName>Segments - Summary of Financial Information by Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9954500 - Disclosure - Net Income Per Share - Summary of Computation of Basic Net Income Per Share and Diluted Net Income Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/NetIncomePerShareSummaryofComputationofBasicNetIncomePerShareandDilutedNetIncomePerShareDetails</Role>
      <ShortName>Net Income Per Share - Summary of Computation of Basic Net Income Per Share and Diluted Net Income Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9954501 - Disclosure - Inventories - Summary of Inventories (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/InventoriesSummaryofInventoriesDetails</Role>
      <ShortName>Inventories - Summary of Inventories (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9954502 - Disclosure - Prepaid Expenses and Other Current Assets - Summary of Prepaid Expenses and Other Current Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/PrepaidExpensesandOtherCurrentAssetsSummaryofPrepaidExpensesandOtherCurrentAssetsDetails</Role>
      <ShortName>Prepaid Expenses and Other Current Assets - Summary of Prepaid Expenses and Other Current Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9954503 - Disclosure - Property, Plant and Equipment, Net - Summary of Principal Categories and Estimated Useful Lives of Property, Plant and Equipment, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/PropertyPlantandEquipmentNetSummaryofPrincipalCategoriesandEstimatedUsefulLivesofPropertyPlantandEquipmentNetDetails</Role>
      <ShortName>Property, Plant and Equipment, Net - Summary of Principal Categories and Estimated Useful Lives of Property, Plant and Equipment, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9954504 - Disclosure - Leases - Summary of Weighted Average Remaining Lease Term and Weighted Average Discount Rate for Population of Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/LeasesSummaryofWeightedAverageRemainingLeaseTermandWeightedAverageDiscountRateforPopulationofLeasesDetails</Role>
      <ShortName>Leases - Summary of Weighted Average Remaining Lease Term and Weighted Average Discount Rate for Population of Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9954505 - Disclosure - Leases - Summary of Balances Related to Lease Portfolio within Condensed Consolidated Statement of Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/LeasesSummaryofBalancesRelatedtoLeasePortfoliowithinCondensedConsolidatedStatementofOperationsDetails</Role>
      <ShortName>Leases - Summary of Balances Related to Lease Portfolio within Condensed Consolidated Statement of Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9954506 - Disclosure - Leases - Summary of Future Minimum Lease Payments For Noncancelable Operating And Financing Leases (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/LeasesSummaryofFutureMinimumLeasePaymentsForNoncancelableOperatingAndFinancingLeasesDetails</Role>
      <ShortName>Leases - Summary of Future Minimum Lease Payments For Noncancelable Operating And Financing Leases (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9954507 - Disclosure - Leases - Summary of Future Minimum Lease Payments For Noncancelable Operating And Financing Leases, Year End (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/LeasesSummaryofFutureMinimumLeasePaymentsForNoncancelableOperatingAndFinancingLeasesYearEndDetails</Role>
      <ShortName>Leases - Summary of Future Minimum Lease Payments For Noncancelable Operating And Financing Leases, Year End (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9954508 - Disclosure - Leases - Summary of Balances Related to Leases within Condensed Consolidated Statement of Cash Flow (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/LeasesSummaryofBalancesRelatedtoLeaseswithinCondensedConsolidatedStatementofCashFlowDetails</Role>
      <ShortName>Leases - Summary of Balances Related to Leases within Condensed Consolidated Statement of Cash Flow (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9954509 - Disclosure - Distribution Agreements, Net - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/DistributionAgreementsNetNarrativeDetails</Role>
      <ShortName>Distribution Agreements, Net - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9954510 - Disclosure - Distribution Agreements, Net - Summary of Distribution Agreements, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/DistributionAgreementsNetSummaryofDistributionAgreementsNetDetails</Role>
      <ShortName>Distribution Agreements, Net - Summary of Distribution Agreements, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9954511 - Disclosure - Distribution Agreements, Net - Summary of Reconciliation of Activity for Distribution Agreements, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/DistributionAgreementsNetSummaryofReconciliationofActivityforDistributionAgreementsNetDetails</Role>
      <ShortName>Distribution Agreements, Net - Summary of Reconciliation of Activity for Distribution Agreements, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9954512 - Disclosure - Customer Lists, Net - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CustomerListsNetNarrativeDetails</Role>
      <ShortName>Customer Lists, Net - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9954513 - Disclosure - Customer Lists, Net - Summary of Customer Lists, Net (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CustomerListsNetSummaryofCustomerListsNetDetails</Role>
      <ShortName>Customer Lists, Net - Summary of Customer Lists, Net (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9954514 - Disclosure - Supply Chain Finance Program (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/SupplyChainFinanceProgramDetails</Role>
      <ShortName>Supply Chain Finance Program (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/SupplyChainFinanceProgram</ParentRole>
      <Position>76</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9954515 - Disclosure - Other Accrued Liabilities - Summary of Other Accrued Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/OtherAccruedLiabilitiesSummaryofOtherAccruedLiabilitiesDetails</Role>
      <ShortName>Other Accrued Liabilities - Summary of Other Accrued Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9954516 - Disclosure - Commodity Derivative Instruments - Summary of Pre-tax Changes in Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CommodityDerivativeInstrumentsSummaryofPretaxChangesinFairValueDetails</Role>
      <ShortName>Commodity Derivative Instruments - Summary of Pre-tax Changes in Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9954517 - Disclosure - Commodity Derivative Instruments - Summary of Fair Values and Classification in Condensed Consolidated Balance Sheets of Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CommodityDerivativeInstrumentsSummaryofFairValuesandClassificationinCondensedConsolidatedBalanceSheetsofDerivativeInstrumentsDetails</Role>
      <ShortName>Commodity Derivative Instruments - Summary of Fair Values and Classification in Condensed Consolidated Balance Sheets of Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9954518 - Disclosure - Commodity Derivative Instruments - Summary of Outstanding Commodity Derivative Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CommodityDerivativeInstrumentsSummaryofOutstandingCommodityDerivativeInstrumentsDetails</Role>
      <ShortName>Commodity Derivative Instruments - Summary of Outstanding Commodity Derivative Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9954519 - Disclosure - Fair Values of Financial Instruments - Summary of Deferred Compensation Plan, Commodity Derivative Instruments, Debt and Acquisition Related Contingent Consideration (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/FairValuesofFinancialInstrumentsSummaryofDeferredCompensationPlanCommodityDerivativeInstrumentsDebtandAcquisitionRelatedContingentConsiderationDetails</Role>
      <ShortName>Fair Values of Financial Instruments - Summary of Deferred Compensation Plan, Commodity Derivative Instruments, Debt and Acquisition Related Contingent Consideration (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9954520 - Disclosure - Fair Values of Financial Instruments - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/FairValuesofFinancialInstrumentsNarrativeDetails</Role>
      <ShortName>Fair Values of Financial Instruments - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9954521 - Disclosure - Fair Values of Financial Instruments - Summary of Acquisition Related Contingent Consideration Liability (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/FairValuesofFinancialInstrumentsSummaryofAcquisitionRelatedContingentConsiderationLiabilityDetails</Role>
      <ShortName>Fair Values of Financial Instruments - Summary of Acquisition Related Contingent Consideration Liability (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9954522 - Disclosure - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/IncomeTaxesDetails</Role>
      <ShortName>Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/IncomeTaxes</ParentRole>
      <Position>84</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9954523 - Disclosure - Pension and Postretirement Benefit Obligations - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/PensionandPostretirementBenefitObligationsNarrativeDetails</Role>
      <ShortName>Pension and Postretirement Benefit Obligations - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9954524 - Disclosure - Pension and Postretirement Benefit Obligations - Summary of Components of Total Pension Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/PensionandPostretirementBenefitObligationsSummaryofComponentsofTotalPensionExpenseDetails</Role>
      <ShortName>Pension and Postretirement Benefit Obligations - Summary of Components of Total Pension Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>9954525 - Disclosure - Pension and Postretirement Benefit Obligations - Components of Net Periodic Postretirement Benefit Cost (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/PensionandPostretirementBenefitObligationsComponentsofNetPeriodicPostretirementBenefitCostDetails</Role>
      <ShortName>Pension and Postretirement Benefit Obligations - Components of Net Periodic Postretirement Benefit Cost (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>9954526 - Disclosure - Other Liabilities - Summary of Other Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/OtherLiabilitiesSummaryofOtherLiabilitiesDetails</Role>
      <ShortName>Other Liabilities - Summary of Other Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>9954527 - Disclosure - Long-Term Debt - Summary of Long-term Debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/LongTermDebtSummaryofLongtermDebtDetails</Role>
      <ShortName>Long-Term Debt - Summary of Long-term Debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>9954528 - Disclosure - Long-Term Debt - Summary of Debt, Footnotes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.cokeconsolidated.com/role/LongTermDebtSummaryofDebtFootnotesDetails</Role>
      <ShortName>Long-Term Debt - Summary of Debt, Footnotes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>9954529 - Disclosure - Long-Term Debt - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/LongTermDebtNarrativeDetails</Role>
      <ShortName>Long-Term Debt - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>9954530 - Disclosure - Commitments and Contingencies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CommitmentsandContingenciesNarrativeDetails</Role>
      <ShortName>Commitments and Contingencies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>9954531 - Disclosure - Commitments and Contingencies - Summary of Company's Purchases from Manufacturing Cooperatives (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/CommitmentsandContingenciesSummaryofCompanysPurchasesfromManufacturingCooperativesDetails</Role>
      <ShortName>Commitments and Contingencies - Summary of Company's Purchases from Manufacturing Cooperatives (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>9954532 - Disclosure - Accumulated Other Comprehensive Income (Loss) - Summary of Accumulated Other Comprehensive (Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/AccumulatedOtherComprehensiveIncomeLossSummaryofAccumulatedOtherComprehensiveLossDetails</Role>
      <ShortName>Accumulated Other Comprehensive Income (Loss) - Summary of Accumulated Other Comprehensive (Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.cokeconsolidated.com/role/AccumulatedOtherComprehensiveIncomeLossTables</ParentRole>
      <Position>94</Position>
    </Report>
    <Report instance="coke-20230929.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>9954533 - Disclosure - Supplemental Disclosures of Cash Flow Information - Summary of Changes in Current Assets and Current Liabilities Affecting Cash Flows (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.cokeconsolidated.com/role/SupplementalDisclosuresofCashFlowInformationSummaryofChangesinCurrentAssetsandCurrentLiabilitiesAffectingCashFlowsDetails</Role>
      <ShortName>Supplemental Disclosures of Cash Flow Information - Summary of Changes in Current Assets and Current Liabilities Affecting Cash Flows (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="coke-20230929.htm">coke-20230929.htm</File>
    <File>coke-20230929.xsd</File>
    <File>coke-20230929_cal.xml</File>
    <File>coke-20230929_def.xml</File>
    <File>coke-20230929_lab.xml</File>
    <File>coke-20230929_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="1128">http://fasb.org/us-gaap/2023</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2023</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2023</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
