<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>7</ContextCount>
  <ElementCount>74</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>6</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>2</UnitCount>
  <MyReports>
    <Report instance="abcfi-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>000000 - Document - Document and Entity Information {Elements}</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.abfunds.com/role/DocumentDocumentandEntityInformationElements000000</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory></MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="abcfi-20230228.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>000201 - Disclosure - Risk/Return Detail Data {Elements} - AB All China Equity Portfolio</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.abfunds.com/role/DisclosureRiskReturnDetailDataElementsABAllChinaEquityPortfolio000201</Role>
      <ShortName>Risk/Return Detail Data- AB All China Equity Portfolio</ShortName>
      <MenuCategory></MenuCategory>
      <Position>2</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <Logs>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000009974Member declared as a domainItemType element. abcfi-20230228.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000009999Member declared as a domainItemType element. abcfi-20230228.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010080Member declared as a domainItemType element. abcfi-20230228.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010124Member declared as a domainItemType element. abcfi-20230228.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010125Member declared as a domainItemType element. abcfi-20230228.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010411Member declared as a domainItemType element. abcfi-20230228.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010412Member declared as a domainItemType element. abcfi-20230228.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000010413Member declared as a domainItemType element. abcfi-20230228.xsd </Log>
    <Log type="Warning">[dq-0541-Series-Id-Member-Not-Declared] Submission type 497 should have S000045542Member declared as a domainItemType element. abcfi-20230228.xsd </Log>
    <Log type="Warning">[ix-0514-Hidden-Fact-Not-Referenced] WARN: 6 fact(s) appearing in ix:hidden were not referenced by any -sec-ix-hidden style property: rr:AnnualReturn2013, rr:AnnualReturn2014, rr:AnnualReturn2015, rr:AnnualReturn2016, rr:AnnualReturn2017, rr:AnnualReturn2018 -  abcfi-20230228.htm 21, 22, 23, 24, 25, 26</Log>
  </Logs>
  <InputFiles>
    <File doctype="497" original="abcfi-20230228.htm">abcfi-20230228.htm</File>
    <File>abcfi-20230228.xsd</File>
    <File>abcfi-20230228_cal.xml</File>
    <File>abcfi-20230228_def.xml</File>
    <File>abcfi-20230228_lab.xml</File>
    <File>abcfi-20230228_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>g1g02n49.jpg</File>
    <File>g1g03q80.jpg</File>
    <File>g1g09f84.jpg</File>
    <File>g1g12c59.jpg</File>
    <File>g1g16g28.jpg</File>
    <File>g1g19l43.jpg</File>
    <File>g1g22c48.jpg</File>
    <File>g1g26s35.jpg</File>
    <File>g1g30k11.jpg</File>
    <File>g1g47h26.jpg</File>
    <File>g1g54u18.jpg</File>
    <File>g1g62h96.jpg</File>
    <File>g1g67z55.jpg</File>
    <File>image_001.jpg</File>
    <File>image_002.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="8">http://xbrl.sec.gov/dei/2021</BaseTaxonomy>
    <BaseTaxonomy items="90">http://xbrl.sec.gov/rr/2021</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
