<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="rc">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001045520</identifier>
        </entity>
        <period>
            <startDate>2025-11-25</startDate>
            <endDate>2025-11-25</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="pure">
        <measure>pure</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <ffd:FormTp contextRef="rc" id="ixv-36">F-3</ffd:FormTp>
    <ffd:SubmissnTp contextRef="rc" id="ixv-37">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp contextRef="rc" id="ixv-38">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb contextRef="rc" id="ixv-39">333-272447</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey contextRef="rc" id="ixv-40">0001045520</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-41">CANADIAN IMPERIAL BANK OF COMMERCE /CAN/</dei:EntityRegistrantName>
    <ffd:OfferingTableNa contextRef="rc" id="hiddenrcOfferingTableNa">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa contextRef="rc" id="hiddenrcOffsetTableNa">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="rc" id="hiddenrcCombinedProspectusTableNa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp contextRef="rc" id="ixv-42">F-3</ffd:FormTp>
    <dei:EntityRegistrantName contextRef="rc" id="ixv-43">CANADIAN IMPERIAL BANK OF COMMERCE /CAN/</dei:EntityRegistrantName>
    <ffd:NrrtvMaxAggtOfferingPric contextRef="rc" decimals="INF" id="ixv-44" unitRef="USD">11272800.00</ffd:NrrtvMaxAggtOfferingPric>
    <ffd:FnlPrspctsFlg contextRef="rc" id="ixv-45">true</ffd:FnlPrspctsFlg>
    <ffd:NrrtvDsclsr contextRef="rc" id="ixv-46"> </ffd:NrrtvDsclsr>
</xbrl>
