<?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:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="AsOf2025-09-19">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001412486</identifier>
        </entity>
        <period>
            <startDate>2025-09-19</startDate>
            <endDate>2025-09-19</endDate>
        </period>
    </context>
    <context id="From2025-09-192025-09-19_1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001412486</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>1</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-09-19</startDate>
            <endDate>2025-09-19</endDate>
        </period>
    </context>
    <context id="From2025-09-192025-09-19_2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001412486</identifier>
            <segment>
                <xbrldi:typedMember dimension="ffd:OfferingAxis">
                    <dei:lineNo>2</dei:lineNo>
                </xbrldi:typedMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-09-19</startDate>
            <endDate>2025-09-19</endDate>
        </period>
    </context>
    <unit id="USD">
        <measure>iso4217:USD</measure>
    </unit>
    <unit id="Shares">
        <measure>shares</measure>
    </unit>
    <unit id="USDPShares">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <unit id="Ratio">
        <measure>pure</measure>
    </unit>
    <dei:EntityCentralIndexKey contextRef="AsOf2025-09-19" id="Fact000003">0001412486</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp contextRef="AsOf2025-09-19" id="xdx2ixbrl0009">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FeeRate
      contextRef="From2025-09-192025-09-19_1"
      decimals="INF"
      id="xdx2ixbrl0023"
      unitRef="Ratio">0.0001531</ffd:FeeRate>
    <ffd:FeeRate
      contextRef="From2025-09-192025-09-19_2"
      decimals="INF"
      id="xdx2ixbrl0035"
      unitRef="Ratio">0.0001531</ffd:FeeRate>
    <ffd:TtlPrevslyPdAmt
      contextRef="AsOf2025-09-19"
      id="xdx2ixbrl0040"
      unitRef="USD"
      xsi:nil="true"/>
    <ffd:TtlOffsetAmt
      contextRef="AsOf2025-09-19"
      id="xdx2ixbrl0041"
      unitRef="USD"
      xsi:nil="true"/>
    <ffd:FormTp contextRef="AsOf2025-09-19" id="Fact000010">S-1</ffd:FormTp>
    <ffd:SubmissnTp contextRef="AsOf2025-09-19" id="Fact000011">S-1</ffd:SubmissnTp>
    <dei:EntityRegistrantName contextRef="AsOf2025-09-19" id="Fact000012">Cocrystal Pharma, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingSctyTp contextRef="From2025-09-192025-09-19_1" id="Fact000013">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="From2025-09-192025-09-19_1" id="Fact000014">Common Stock, par value $0.001 per share</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="From2025-09-192025-09-19_1" id="Fact000022">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="From2025-09-192025-09-19_1"
      decimals="INF"
      id="Fact000015"
      unitRef="Shares">2764710</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="From2025-09-192025-09-19_1"
      decimals="INF"
      id="Fact000016"
      unitRef="USDPShares">1.50</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="From2025-09-192025-09-19_1"
      decimals="INF"
      id="Fact000017"
      unitRef="USD">4147065.00</ffd:MaxAggtOfferingPric>
    <ffd:FeeAmt
      contextRef="From2025-09-192025-09-19_1"
      decimals="INF"
      id="Fact000018"
      unitRef="USD">634.92</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="From2025-09-192025-09-19_2" id="Fact000033">false</ffd:PrevslyPdFlg>
    <ffd:OfferingSctyTp contextRef="From2025-09-192025-09-19_2" id="Fact000024">Equity</ffd:OfferingSctyTp>
    <ffd:OfferingSctyTitl contextRef="From2025-09-192025-09-19_2" id="Fact000025">Warrants to Purchase Common Stock</ffd:OfferingSctyTitl>
    <ffd:FeesOthrRuleFlg contextRef="From2025-09-192025-09-19_2" id="Fact000034">true</ffd:FeesOthrRuleFlg>
    <ffd:AmtSctiesRegd
      contextRef="From2025-09-192025-09-19_2"
      decimals="INF"
      id="Fact000026"
      unitRef="Shares">207353</ffd:AmtSctiesRegd>
    <ffd:MaxOfferingPricPerScty
      contextRef="From2025-09-192025-09-19_2"
      decimals="INF"
      id="Fact000027"
      unitRef="USDPShares">2.125</ffd:MaxOfferingPricPerScty>
    <ffd:MaxAggtOfferingPric
      contextRef="From2025-09-192025-09-19_2"
      decimals="INF"
      id="Fact000028"
      unitRef="USD">440625.13</ffd:MaxAggtOfferingPric>
    <ffd:FeeAmt
      contextRef="From2025-09-192025-09-19_2"
      decimals="INF"
      id="Fact000029"
      unitRef="USD">67.46</ffd:FeeAmt>
    <ffd:PrevslyPdFlg contextRef="From2025-09-192025-09-19_1" id="Fact000036">false</ffd:PrevslyPdFlg>
    <ffd:PrevslyPdFlg contextRef="From2025-09-192025-09-19_2" id="Fact000037">false</ffd:PrevslyPdFlg>
    <ffd:TtlOfferingAmt
      contextRef="AsOf2025-09-19"
      decimals="INF"
      id="Fact000038"
      unitRef="USD">4587690.13</ffd:TtlOfferingAmt>
    <ffd:TtlFeeAmt
      contextRef="AsOf2025-09-19"
      decimals="INF"
      id="Fact000039"
      unitRef="USD">702.38</ffd:TtlFeeAmt>
    <ffd:NetFeeAmt
      contextRef="AsOf2025-09-19"
      decimals="INF"
      id="Fact000042"
      unitRef="USD">702.38</ffd:NetFeeAmt>
    <ffd:OfferingNote contextRef="From2025-09-192025-09-19_1" id="Fact000044">Consists of (i) 2,764,710 shares of common
stock issuable upon conversion of investor warrants held by investors (&#x201c;Investor Warrants&#x201d;); and (ii) 207,353 shares of common
stock issuable upon exercise of placement agent warrants (the &#x201c;PA Warrants&#x201d;), in each case as more particularly described
in the registration statement on Form S-1 to which this filing fee table relates. Also includes such indeterminate number of additional
shares of common stock issuable by reason of any stock dividend, stock split, recapitalization or other similar transaction, including,
but not limited to, as a result of the anti-dilution provisions contained in the securities.&lt;span id="xdx_C0E_gIFON-XOW_zNUAnpos9ee2"&gt;Pursuant to Rule 457(g) under the Securities
Act of 1933, and solely for the purpose of calculating the registration fee, the proposed maximum offering price per share of common stock
issuable upon exercise of the Investor Warrants which are exercisable at $1.50 per share and the PA Warrants which are exercisable at
$2.125 per share is in each case estimated based upon the higher of (a) the exercise price of such Warrants, as applicable, and (b) $1.385,
which is the average of the high and low sale prices of the shares of common stock as of September 15, 2025, as reported on The Nasdaq
Capital Market.&lt;/span&gt;</ffd:OfferingNote>
    <ffd:OfferingNote contextRef="From2025-09-192025-09-19_2" id="Fact000046">Consists of (i) 2,764,710 shares of common
stock issuable upon conversion of investor warrants held by investors (&#x201c;Investor Warrants&#x201d;); and (ii) 207,353 shares of common
stock issuable upon exercise of placement agent warrants (the &#x201c;PA Warrants&#x201d;), in each case as more particularly described
in the registration statement on Form S-1 to which this filing fee table relates. Also includes such indeterminate number of additional
shares of common stock issuable by reason of any stock dividend, stock split, recapitalization or other similar transaction, including,
but not limited to, as a result of the anti-dilution provisions contained in the securities.Pursuant to Rule 457(g) under the Securities
Act of 1933, and solely for the purpose of calculating the registration fee, the proposed maximum offering price per share of common stock
issuable upon exercise of the Investor Warrants which are exercisable at $1.50 per share and the PA Warrants which are exercisable at
$2.125 per share is in each case estimated based upon the higher of (a) the exercise price of such Warrants, as applicable, and (b) $1.385,
which is the average of the high and low sale prices of the shares of common stock as of September 15, 2025, as reported on The Nasdaq
Capital Market.</ffd:OfferingNote>
    <ffd:OffsetTableNa contextRef="AsOf2025-09-19" id="Fact000047">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa contextRef="AsOf2025-09-19" id="Fact000048">N/A</ffd:CombinedProspectusTableNa>
</xbrl>
