XML 44 R35.htm IDEA: XBRL DOCUMENT
v3.23.2

Summary of Significant Accounting Policies - Nature of Operations and Derivative Financial Instruments (Details) | Jun. 30, 2023 subsidiary
--- | ---
Nature of Operations |
Derivative Asset, Statement of Financial Position [Extensible Enumeration] | Other assets.
Derivative Liability, Statement of Financial Position [Extensible Enumeration] | Other liabilities
C&F Bank |
Nature of Operations |
Number of wholly owned subsidiaries | 5
C&F Mortgage | C&F Select LLC |
Nature of Operations |
Interest owned (as a percent) | 51.00%

X
- Definition The number of subsidiaries owned by the company. + References No definition available. + Details
Name: | cffi_NumberOfWhollyOwnedSubsidiaries
Namespace Prefix: | cffi_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_ConsolidationLessThanWhollyOwnedSubsidiaryParentOwnershipInterestEffectsOfChangesNetLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Indicates line item in statement of financial position that includes derivative asset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4A -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959 + Details
Name: | us-gaap_DerivativeAssetStatementOfFinancialPositionExtensibleEnumeration
Namespace Prefix: | us-gaap_
Data Type: | enum2:enumerationSetItemType
Balance Type: | na
Period Type: | instant

X
- Definition Indicates line item in statement of financial position that includes derivative liability. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 10 -Section 50 -Paragraph 4A -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=125515794&loc=SL5618551-113959 + Details
Name: | us-gaap_DerivativeLiabilityStatementOfFinancialPositionExtensibleEnumeration
Namespace Prefix: | us-gaap_
Data Type: | enum2:enumerationSetItemType
Balance Type: | na
Period Type: | instant

X
- Definition The parent entity's interest in net assets of the subsidiary, expressed as a percentage. + References No definition available. + Details
Name: | us-gaap_MinorityInterestOwnershipPercentageByParent
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | dei_LegalEntityAxis=cffi_CAndFBankMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | dei_LegalEntityAxis=cffi_CFMortgageMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_OwnershipAxis=cffi_CFSelectLlcMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |