XML 27 R1.htm IDEA: XBRL DOCUMENT v3.24.0.1
Document and Entity Information
12 Months Ended
Dec. 31, 2023
Document and Entity Information [Abstract]  
Document Type DEF 14A
Entity Registrant Name C & F FINANCIAL CORP
Entity Central Index Key 0000913341
Amendment Flag false