<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="capl-20260506.xsd" xlink:type="simple"/>
    <context id="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001538849</identifier>
        </entity>
        <period>
            <startDate>2026-05-06</startDate>
            <endDate>2026-05-06</endDate>
        </period>
    </context>
    <dei:AmendmentFlag
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_feb98236-912b-4dd1-8793-1708d950c247">false</dei:AmendmentFlag>
    <dei:EntityCentralIndexKey
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_dd4cecf0-89b4-4a60-9e63-30ac0140b779">0001538849</dei:EntityCentralIndexKey>
    <dei:DocumentType
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_5229f958-133e-425b-b8bc-ca74fb3671fd">8-K</dei:DocumentType>
    <dei:DocumentPeriodEndDate
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_fd1692e3-b3b9-475d-b5b9-6dfcd1034339">2026-05-06</dei:DocumentPeriodEndDate>
    <dei:EntityRegistrantName
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_e9216dc0-e17b-41ca-992d-ee6b64d02e93">CrossAmerica Partners LP</dei:EntityRegistrantName>
    <dei:EntityIncorporationStateCountryCode
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_e6cd24fe-07f8-4305-b1d9-15cf80d8fd05">DE</dei:EntityIncorporationStateCountryCode>
    <dei:EntityFileNumber
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_39f5a70e-a2dd-4a4d-9694-64c28fdbf26e">001-35711</dei:EntityFileNumber>
    <dei:EntityTaxIdentificationNumber
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_4e3cf768-17aa-48b2-9491-476342faed11">45-4165414</dei:EntityTaxIdentificationNumber>
    <dei:EntityAddressAddressLine1
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_35e48261-7414-484a-ac21-b6e60f62045e">645 Hamilton Street</dei:EntityAddressAddressLine1>
    <dei:EntityAddressAddressLine2
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_92c55197-8e57-4e6a-a5dd-9cbba9140d4c">Suite 400</dei:EntityAddressAddressLine2>
    <dei:EntityAddressCityOrTown
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_0847c2e8-7615-4e17-9de9-085521fbdd67">Allentown</dei:EntityAddressCityOrTown>
    <dei:EntityAddressStateOrProvince
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_7054f17b-7855-4c20-9c3f-61006bd4d857">PA</dei:EntityAddressStateOrProvince>
    <dei:EntityAddressPostalZipCode
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_48d864bf-5fde-4b81-a79b-393b674147b7">18101</dei:EntityAddressPostalZipCode>
    <dei:CityAreaCode
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_c27a0030-8781-484e-8d55-458a75556372">610</dei:CityAreaCode>
    <dei:LocalPhoneNumber
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_5ea93215-56e8-4b43-928d-cd8112cd48ba">625-8000</dei:LocalPhoneNumber>
    <dei:WrittenCommunications
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_c878d0b1-4433-4570-8e71-6ab821322f9c">false</dei:WrittenCommunications>
    <dei:SolicitingMaterial
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_162d9a33-55b0-42f3-845d-1a3b970d531f">false</dei:SolicitingMaterial>
    <dei:PreCommencementTenderOffer
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_30f56009-91d6-4779-aeb0-309a3d67dff8">false</dei:PreCommencementTenderOffer>
    <dei:PreCommencementIssuerTenderOffer
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_6d8934c8-d903-4093-91d0-f37caba4a471">false</dei:PreCommencementIssuerTenderOffer>
    <dei:Security12bTitle
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_395720a4-c253-44dd-8d42-9fe601ec1ce7">Common Units</dei:Security12bTitle>
    <dei:TradingSymbol
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_58802aca-40a0-4b5d-88a9-e22b7692f826">CAPL</dei:TradingSymbol>
    <dei:SecurityExchangeName
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_fa161de1-1e40-4789-971d-dd4f2ef7ec22">NYSE</dei:SecurityExchangeName>
    <dei:EntityEmergingGrowthCompany
      contextRef="C_b662df87-7bd0-4140-a2f2-99eba90e8ad2"
      id="F_cfc46ff0-2dde-4af9-8a05-74b7d81fa860">false</dei:EntityEmergingGrowthCompany>
</xbrl>
