<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>278</ContextCount>
  <ElementCount>569</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>87</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>9</UnitCount>
  <MyReports>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>100000 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document And Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>100010 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_StatementConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>100020 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_StatementConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>100030 - Statement - Consolidated Statements of Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_StatementConsolidatedStatementsOfIncome</Role>
      <ShortName>Consolidated Statements of Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>100040 - Statement - Consolidated Statements of Income (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/StatementConsolidatedStatementsOfIncomeParenthetical</Role>
      <ShortName>Consolidated Statements of Income (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>100050 - Statement - Consolidated Statements of Comprehensive Income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_StatementConsolidatedStatementsOfComprehensiveIncome</Role>
      <ShortName>Consolidated Statements of Comprehensive Income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>100060 - Statement - Consolidated Statements of Comprehensive Income (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_StatementConsolidatedStatementsOfComprehensiveIncomeParenthetical</Role>
      <ShortName>Consolidated Statements of Comprehensive Income (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>100070 - Statement - Consolidated Statements of Changes in Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Changes in Stockholders' Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>100080 - Statement - Consolidated Statements of Changes in Stockholders' Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_StatementConsolidatedStatementsOfChangesInStockholdersEquityParenthetical</Role>
      <ShortName>Consolidated Statements of Changes in Stockholders' Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>100090 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_StatementConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>100100 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>100110 - Disclosure - Acquisition</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureAcquisition</Role>
      <ShortName>Acquisition</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>100120 - Disclosure - Investment Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureInvestmentSecurities</Role>
      <ShortName>Investment Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>100130 - Disclosure - Loans and Allowance for Loan Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureLoansAndAllowanceForLoanLosses</Role>
      <ShortName>Loans and Allowance for Loan Losses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>100140 - Disclosure - Premises and Equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosurePremisesAndEquipment</Role>
      <ShortName>Premises and Equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>100150 - Disclosure - Deposits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureDeposits</Role>
      <ShortName>Deposits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>100160 - Disclosure - Borrowings</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureBorrowings</Role>
      <ShortName>Borrowings</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>100170 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>100180 - Disclosure - Employee Stock Ownership Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureEmployeeStockOwnershipPlan</Role>
      <ShortName>Employee Stock Ownership Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>100190 - Disclosure - Benefit Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureBenefitPlans</Role>
      <ShortName>Benefit Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>100200 - Disclosure - Stock-Based Compensation Plans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureStockBasedCompensationPlans</Role>
      <ShortName>Stock-Based Compensation Plans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>100210 - Disclosure - Regulatory Matters</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureRegulatoryMatters</Role>
      <ShortName>Regulatory Matters</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>100220 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>100230 - Disclosure - Commitments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureCommitments</Role>
      <ShortName>Commitments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>100240 - Disclosure - Fair Value Measurements and Disclosures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureFairValueMeasurementsAndDisclosures</Role>
      <ShortName>Fair Value Measurements and Disclosures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>100250 - Disclosure - Condensed Parent Company Only Financial Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureCondensedParentCompanyOnlyFinancialInformation</Role>
      <ShortName>Condensed Parent Company Only Financial Information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>100270 - Disclosure - Summary of Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>100280 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>100290 - Disclosure - Acquisition (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureAcquisitionTables</Role>
      <ShortName>Acquisition (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureAcquisition</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>100300 - Disclosure - Investment Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureInvestmentSecuritiesTables</Role>
      <ShortName>Investment Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureInvestmentSecurities</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>100310 - Disclosure - Loans and Allowance for Loan Losses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureLoansAndAllowanceForLoanLossesTables</Role>
      <ShortName>Loans and Allowance for Loan Losses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureLoansAndAllowanceForLoanLosses</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>100320 - Disclosure - Premises and Equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosurePremisesAndEquipmentTables</Role>
      <ShortName>Premises and Equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosurePremisesAndEquipment</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>100330 - Disclosure - Deposits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureDepositsTables</Role>
      <ShortName>Deposits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureDeposits</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>100340 - Disclosure - Borrowings (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureBorrowingsTables</Role>
      <ShortName>Borrowings (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureBorrowings</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>100350 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureIncomeTaxes</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>100360 - Disclosure - Stock-Based Compensation Plans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureStockBasedCompensationPlansTables</Role>
      <ShortName>Stock-Based Compensation Plans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureStockBasedCompensationPlans</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>100370 - Disclosure - Regulatory Matters (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureRegulatoryMattersTables</Role>
      <ShortName>Regulatory Matters (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureRegulatoryMatters</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>100380 - Disclosure - Related Party Transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsTables</Role>
      <ShortName>Related Party Transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureRelatedPartyTransactions</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>100390 - Disclosure - Commitments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureCommitmentsTables</Role>
      <ShortName>Commitments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureCommitments</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>100400 - Disclosure - Fair Value Measurements and Disclosures (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureFairValueMeasurementsAndDisclosuresTables</Role>
      <ShortName>Fair Value Measurements and Disclosures (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureFairValueMeasurementsAndDisclosures</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>100410 - Disclosure - Condensed Parent Company Only Financial Information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureCondensedParentCompanyOnlyFinancialInformationTables</Role>
      <ShortName>Condensed Parent Company Only Financial Information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureCondensedParentCompanyOnlyFinancialInformation</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>100420 - Disclosure - Summary of Significant Accounting Policies - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesAdditionalInformationDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>100430 - Disclosure - Summary of Significant Accounting Policies - Schedule of Estimated Useful for Premises and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureSummaryOfSignificantAccountingPoliciesScheduleOfEstimatedUsefulForPremisesAndEquipmentDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Schedule of Estimated Useful for Premises and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>100440 - Disclosure - Acquisition - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureAcquisitionAdditionalInformationDetails</Role>
      <ShortName>Acquisition - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>100450 - Disclosure - Acquisition - Schedule of Fair Value of Assets Acquired and Liabilities Assumed (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureAcquisitionScheduleOfFairValueOfAssetsAcquiredAndLiabilitiesAssumedDetails</Role>
      <ShortName>Acquisition - Schedule of Fair Value of Assets Acquired and Liabilities Assumed (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>100460 - Disclosure - Acquisition - Schedule of Unaudited Proforma Information Results of Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureAcquisitionScheduleOfUnauditedProformaInformationResultsOfOperationsDetails</Role>
      <ShortName>Acquisition - Schedule of Unaudited Proforma Information Results of Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>100470 - Disclosure - Investment Securities - Schedule of Investment Securities Available-for-Sale (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfInvestmentSecuritiesAvailableForSaleDetails</Role>
      <ShortName>Investment Securities - Schedule of Investment Securities Available-for-Sale (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>100480 - Disclosure - Investment Securities - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureInvestmentSecuritiesAdditionalInformationDetails</Role>
      <ShortName>Investment Securities - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>100490 - Disclosure - Investment Securities - Schedule of Amortized Cost and Estimated Fair Value of Investment Securities Available-for-Sale by Contractual Maturity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureInvestmentSecuritiesScheduleOfAmortizedCostAndEstimatedFairValueOfInvestmentSecuritiesAvailableForSaleByContractualMaturityDetails</Role>
      <ShortName>Investment Securities - Schedule of Amortized Cost and Estimated Fair Value of Investment Securities Available-for-Sale by Contractual Maturity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>100500 - Disclosure - Loans and Allowance for Loan Losses - Summary of Major Classifications of Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureLoansAndAllowanceForLoanLossesSummaryOfMajorClassificationsOfLoansDetails</Role>
      <ShortName>Loans and Allowance for Loan Losses - Summary of Major Classifications of Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>100510 - Disclosure - Loans and Allowance for Loan Losses - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureLoansAndAllowanceForLoanLossesAdditionalInformationDetails</Role>
      <ShortName>Loans and Allowance for Loan Losses - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>100520 - Disclosure - Loans and Allowance for Loan Losses - Summary of Allowance for Loan Losses and Recorded Investment in Loans by Portfolio Segment and Based on Impairment Method (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureLoansAndAllowanceForLoanLossesSummaryOfAllowanceForLoanLossesAndRecordedInvestmentInLoansByPortfolioSegmentAndBasedOnImpairmentMethodDetails</Role>
      <ShortName>Loans and Allowance for Loan Losses - Summary of Allowance for Loan Losses and Recorded Investment in Loans by Portfolio Segment and Based on Impairment Method (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>100530 - Disclosure - Loans and Allowance for Loan Losses - Summary of Allowance for Loan Losses and Recorded Investment in Loans by Portfolio Segment and Based on Impairment Method (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/DisclosureLoansAndAllowanceForLoanLossesSummaryOfAllowanceForLoanLossesAndRecordedInvestmentInLoansByPortfolioSegmentAndBasedOnImpairm1</Role>
      <ShortName>Loans and Allowance for Loan Losses - Summary of Allowance for Loan Losses and Recorded Investment in Loans by Portfolio Segment and Based on Impairment Method (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>100540 - Disclosure - Loans and Allowance for Loan Losses - Summary of Impaired Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureLoansAndAllowanceForLoanLossesSummaryOfImpairedLoansDetails</Role>
      <ShortName>Loans and Allowance for Loan Losses - Summary of Impaired Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>100550 - Disclosure - Loans and Allowance for Loan Losses - Summary of Recorded Investment in Past Due Loans, as Well as Nonaccrual Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureLoansAndAllowanceForLoanLossesSummaryOfRecordedInvestmentInPastDueLoansAsWellAsNonaccrualLoansDetails</Role>
      <ShortName>Loans and Allowance for Loan Losses - Summary of Recorded Investment in Past Due Loans, as Well as Nonaccrual Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>100560 - Disclosure - Loans and Allowance for Loan Losses - Summary of Troubled Debt Restructurings (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureLoansAndAllowanceForLoanLossesSummaryOfTroubledDebtRestructuringsDetails</Role>
      <ShortName>Loans and Allowance for Loan Losses - Summary of Troubled Debt Restructurings (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>100570 - Disclosure - Loans and Allowance for Loan Losses - Summary of Risk Category of Loans by Class of Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureLoansAndAllowanceForLoanLossesSummaryOfRiskCategoryOfLoansByClassOfLoansDetails</Role>
      <ShortName>Loans and Allowance for Loan Losses - Summary of Risk Category of Loans by Class of Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>100580 - Disclosure - Premises and Equipment - Summary of Premises and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosurePremisesAndEquipmentSummaryOfPremisesAndEquipmentDetails</Role>
      <ShortName>Premises and Equipment - Summary of Premises and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>100590 - Disclosure - Premises and Equipment - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosurePremisesAndEquipmentAdditionalInformationDetails</Role>
      <ShortName>Premises and Equipment - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>100600 - Disclosure - Premises and Equipment - Schedule of Minimum Annual Rentals Under Non-Cancelable Agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosurePremisesAndEquipmentScheduleOfMinimumAnnualRentalsUnderNonCancelableAgreementsDetails</Role>
      <ShortName>Premises and Equipment - Schedule of Minimum Annual Rentals Under Non-Cancelable Agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>100610 - Disclosure - Deposits - Summary of Contractual Maturities of Certificate of Deposits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureDepositsSummaryOfContractualMaturitiesOfCertificateOfDepositsDetails</Role>
      <ShortName>Deposits - Summary of Contractual Maturities of Certificate of Deposits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>100620 - Disclosure - Deposits - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureDepositsAdditionalInformationDetails</Role>
      <ShortName>Deposits - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>100630 - Disclosure - Deposits - Summary of Interest Expense on Deposits (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureDepositsSummaryOfInterestExpenseOnDepositsDetails</Role>
      <ShortName>Deposits - Summary of Interest Expense on Deposits (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>100640 - Disclosure - Borrowings - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureBorrowingsAdditionalInformationDetails</Role>
      <ShortName>Borrowings - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>100650 - Disclosure - Borrowings - Schedule of Federal Home Loan Bank of Atlanta (FHLB) Advances (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureBorrowingsScheduleOfFederalHomeLoanBankOfAtlantaFHLBAdvancesDetails</Role>
      <ShortName>Borrowings - Schedule of Federal Home Loan Bank of Atlanta (FHLB) Advances (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>100660 - Disclosure - Income Taxes - Summary of Components of Income Tax Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/DisclosureIncomeTaxesSummaryOfComponentsOfIncomeTaxExpenseDetails</Role>
      <ShortName>Income Taxes - Summary of Components of Income Tax Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>100670 - Disclosure - Income Taxes - Schedule of Difference Between Income Tax Expense and Amount Computed by Applying Statutory Federal Income Taxes Rate to Income Before Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/DisclosureIncomeTaxesScheduleOfDifferenceBetweenIncomeTaxExpenseAndAmountComputedByApplyingStatutoryFederalIncomeTaxesRateToIncomeBefore</Role>
      <ShortName>Income Taxes - Schedule of Difference Between Income Tax Expense and Amount Computed by Applying Statutory Federal Income Taxes Rate to Income Before Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>100680 - Disclosure - Income Taxes - Schedule of Difference Between Income Tax Expense and Amount Computed by Applying Statutory Federal Income Taxes Rate to Income Before Taxes (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/DisclosureIncomeTaxesScheduleOfDifferenceBetweenIncomeTaxExpenseAndAmountComputedByApplyingStatutoryFederalIncomeTaxesRateToIncomeBefore1</Role>
      <ShortName>Income Taxes - Schedule of Difference Between Income Tax Expense and Amount Computed by Applying Statutory Federal Income Taxes Rate to Income Before Taxes (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>100690 - Disclosure - Income Taxes - Schedule of Net Deferred Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureIncomeTaxesScheduleOfNetDeferredTaxesDetails</Role>
      <ShortName>Income Taxes - Schedule of Net Deferred Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>100700 - Disclosure - Income Taxes - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureIncomeTaxesAdditionalInformationDetails</Role>
      <ShortName>Income Taxes - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>100710 - Disclosure - Employee Stock Ownership Plan - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureEmployeeStockOwnershipPlanAdditionalInformationDetails</Role>
      <ShortName>Employee Stock Ownership Plan - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>100720 - Disclosure - Benefit Plans - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureBenefitPlansAdditionalInformationDetails</Role>
      <ShortName>Benefit Plans - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>100730 - Disclosure - Stock-Based Compensation Plans - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureStockBasedCompensationPlansAdditionalInformationDetails</Role>
      <ShortName>Stock-Based Compensation Plans - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>100740 - Disclosure - Stock-Based Compensation Plans - Schedule of Weighted Average Assumptions used in Black-Scholes Model for Valuing Stock Option Grants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureStockBasedCompensationPlansScheduleOfWeightedAverageAssumptionsUsedInBlackScholesModelForValuingStockOptionGrantsDetails</Role>
      <ShortName>Stock-Based Compensation Plans - Schedule of Weighted Average Assumptions used in Black-Scholes Model for Valuing Stock Option Grants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>100750 - Disclosure - Stock-Based Compensation Plans - Summary of Stock Option Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/DisclosureStockbasedCompensationPlansSummaryOfStockOptionActivityDetails</Role>
      <ShortName>Stock-Based Compensation Plans - Summary of Stock Option Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>100760 - Disclosure - Stock-Based Compensation Plans - Summary of Restricted Stock Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/DisclosureStockbasedCompensationPlansSummaryOfRestrictedStockActivityDetails</Role>
      <ShortName>Stock-Based Compensation Plans - Summary of Restricted Stock Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>100770 - Disclosure - Stock-Based Compensation Plans - Summary of Restricted Stock Activity (Parenthetical) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/DisclosureStockbasedCompensationPlansSummaryOfRestrictedStockActivityParentheticalDetails</Role>
      <ShortName>Stock-Based Compensation Plans - Summary of Restricted Stock Activity (Parenthetical) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>100780 - Disclosure - Regulatory Matters - Schedule of Bank's Actual Capital Amounts And Ratios (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureRegulatoryMattersScheduleOfBankSActualCapitalAmountsAndRatiosDetails</Role>
      <ShortName>Regulatory Matters - Schedule of Bank's Actual Capital Amounts And Ratios (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>100790 - Disclosure - Regulatory Matters - Schedule of Reconciliation For Bank's Equity Capital Amounts Under GAAP To Tier 1 and Total Risk-based Capital (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureRegulatoryMattersScheduleOfReconciliationForBankSEquityCapitalAmountsUnderGAAPToTier1AndTotalRiskBasedCapitalDetails</Role>
      <ShortName>Regulatory Matters - Schedule of Reconciliation For Bank's Equity Capital Amounts Under GAAP To Tier 1 and Total Risk-based Capital (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>100800 - Disclosure - Related Party Transactions - Summary of Activity for Related Party Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsSummaryOfActivityForRelatedPartyLoansDetails</Role>
      <ShortName>Related Party Transactions - Summary of Activity for Related Party Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>100810 - Disclosure - Related Party Transactions - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureRelatedPartyTransactionsAdditionalInformationDetails</Role>
      <ShortName>Related Party Transactions - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>100820 - Disclosure - Commitments - Schedule of Financial Instruments Contract Amounts Represent Credit Risk (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureCommitmentsScheduleOfFinancialInstrumentsContractAmountsRepresentCreditRiskDetails</Role>
      <ShortName>Commitments - Schedule of Financial Instruments Contract Amounts Represent Credit Risk (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>100830 - Disclosure - Commitments - Schedule of Dollar Amount and Ranges of Rates of Commitments to Fund Fixed Rate Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureCommitmentsScheduleOfDollarAmountAndRangesOfRatesOfCommitmentsToFundFixedRateLoansDetails</Role>
      <ShortName>Commitments - Schedule of Dollar Amount and Ranges of Rates of Commitments to Fund Fixed Rate Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>100840 - Disclosure - Fair Value Measurements and Disclosures - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureFairValueMeasurementsAndDisclosuresAdditionalInformationDetails</Role>
      <ShortName>Fair Value Measurements and Disclosures - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>100850 - Disclosure - Fair Value Measurements and Disclosures - Schedule of Assets Measured at Fair Value on Nonrecurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureFairValueMeasurementsAndDisclosuresScheduleOfAssetsMeasuredAtFairValueOnNonrecurringBasisDetails</Role>
      <ShortName>Fair Value Measurements and Disclosures - Schedule of Assets Measured at Fair Value on Nonrecurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>100860 - Disclosure - Fair Value Measurements and Disclosures - Schedule of Carrying Amounts and Estimated Fair Values of Company's Financial Instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureFairValueMeasurementsAndDisclosuresScheduleOfCarryingAmountsAndEstimatedFairValuesOfCompanySFinancialInstrumentsDetails</Role>
      <ShortName>Fair Value Measurements and Disclosures - Schedule of Carrying Amounts and Estimated Fair Values of Company's Financial Instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>100870 - Disclosure - Condensed Parent Company Only Financial Information - Summary of Condensed Balance Sheets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureCondensedParentCompanyOnlyFinancialInformationSummaryOfCondensedBalanceSheetsDetails</Role>
      <ShortName>Condensed Parent Company Only Financial Information - Summary of Condensed Balance Sheets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>100880 - Disclosure - Condensed Parent Company Only Financial Information - Summary of Condensed Statements of Income (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureCondensedParentCompanyOnlyFinancialInformationSummaryOfCondensedStatementsOfIncomeDetails</Role>
      <ShortName>Condensed Parent Company Only Financial Information - Summary of Condensed Statements of Income (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="afbi-20211231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>100890 - Disclosure - Condensed Parent Company Only Financial Information - Summary of Condensed Statements of Cash Flows (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.affinitybankshares.com/20211231/taxonomy/role/Role_DisclosureCondensedParentCompanyOnlyFinancialInformationSummaryOfCondensedStatementsOfCashFlowsDetails</Role>
      <ShortName>Condensed Parent Company Only Financial Information - Summary of Condensed Statements of Cash Flows (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" original="afbi-20211231.htm">afbi-20211231.htm</File>
    <File>afbi-20211231.xsd</File>
    <File>afbi-20211231_cal.xml</File>
    <File>afbi-20211231_def.xml</File>
    <File>afbi-20211231_lab.xml</File>
    <File>afbi-20211231_pre.xml</File>
    <File>afbi-ex10_15.htm</File>
    <File>afbi-ex10_16.htm</File>
    <File>afbi-ex21.htm</File>
    <File>afbi-ex23.htm</File>
    <File>afbi-ex31_1.htm</File>
    <File>afbi-ex31_2.htm</File>
    <File>afbi-ex32.htm</File>
  </InputFiles>
  <SupplementalFiles>
    <File>img258107453_0.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="1197">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="38">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
