v3.22.0.1

Portfolio Loans Receivable - Trouble Debt Restructuring (Details) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2021 USD ($) contract | Dec. 31, 2020 USD ($) contract
Financing Receivable, Modifications [Line Items] |  |
Number of Contracts | contract | 5 | 5
Recorded Investment | $ 533 | $ 439
Residential | Real estate: |  |
Financing Receivable, Modifications [Line Items] |  |
Number of Contracts | contract | 4 | 3
Recorded Investment | $ 450 | $ 145
Residential | Real estate: | New T D R Member |  |
Financing Receivable, Modifications [Line Items] |  |
Number of Contracts | contract | 1 |
Recorded Investment | $ 319 |
Commercial |  |
Financing Receivable, Modifications [Line Items] |  |
Number of Contracts | contract | 1 | 2
Recorded Investment | $ 83 | $ 294
Commercial | Paid Off T D R |  |
Financing Receivable, Modifications [Line Items] |  |
Number of Contracts | contract | 1 |
Recorded Investment | $ 200 |
Performing |  |
Financing Receivable, Modifications [Line Items] |  |
Recorded Investment | 0 | 0
Performing | Residential | Real estate: |  |
Financing Receivable, Modifications [Line Items] |  |
Recorded Investment | 0 | 0
Performing | Commercial |  |
Financing Receivable, Modifications [Line Items] |  |
Recorded Investment | 0 | 0
Nonperforming |  |
Financing Receivable, Modifications [Line Items] |  |
Recorded Investment | 533 | 439
Nonperforming | Residential | Real estate: |  |
Financing Receivable, Modifications [Line Items] |  |
Recorded Investment | 450 | 145
Nonperforming | Commercial |  |
Financing Receivable, Modifications [Line Items] |  |
Recorded Investment | $ 83 | $ 294

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_FinancingReceivableModificationsLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of financing receivables that have been modified by troubled debt restructurings. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 33 -URI http://asc.fasb.org/extlink&oid=123577603&loc=SL6953676-111524 + Details
Name: | us-gaap_FinancingReceivableModificationsNumberOfContracts2
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of financing receivable modified as troubled debt restructuring. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 10 -Section 50 -Paragraph 33 -URI http://asc.fasb.org/extlink&oid=123577603&loc=SL6953676-111524 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 40 -Section 50 -Paragraph 4 -URI http://asc.fasb.org/extlink&oid=121585226&loc=d3e18845-111554 + Details
Name: | us-gaap_FinancingReceivableModificationsRecordedInvestment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Details
Name: | us-gaap_FinancingReceivablePortfolioSegmentAxis=us-gaap_ResidentialPortfolioSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancingReceivableRecordedInvestmentByClassOfFinancingReceivableAxis=us-gaap_RealEstateLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | cbnk_FinancingReceivableModificationStatusAxis=cbnk_NewTDRMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancingReceivablePortfolioSegmentAxis=us-gaap_CommercialPortfolioSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | cbnk_FinancingReceivableModificationStatusAxis=cbnk_PaidOffTDRMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentPerformanceStatusAxis=us-gaap_PerformingFinancingReceivableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentPerformanceStatusAxis=us-gaap_NonperformingFinancingReceivableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |