NEW YORK — It’s like Sephora or Starbucks now offered a checking account.

After years of closing or mostly neglecting physical bank branches across the country, the nation’s largest banks are spending hundreds of millions of dollars on refurbishing old locations or building new ones, and in the process changing the look, feel and purpose of the local bank branch.

Many of these branches are larger, airier and meant to feel more comfortable for those walking in with difficult financial questions.

Others are being designed as “third spaces” to allow local nonprofits or community representatives to hold workshops or seminars for customers or neighbors. They are a contrast to the marble-clad temples to finance built 50 or 75 years ago and the stale cookie-cutter branches that more recently cluttered suburban malls.

“Coming into a branch can be intimidating. We’re now creating these spaces so everyone can feel welcome,” said Diedra Porché, head of community and business development of consumer banking at JPMorgan Chase & Co.

Porché heads a team of 150 employees who work at what JPMorgan now calls “community centers,” which are larger branches that have areas for nonprofits to do presentations for local residents and provide workshops for those seeking advice. The latest of these community centers opened in The Bronx in April, attended by New York local and state politicians as well as JPMorgan Chairman and CEO, Jamie Dimon.

JPMorgan isn’t alone in designing branches that are focused less on sales and more on providing advice. Capital One opened its latest “cafe” in Union Square in May, a space that serves coffee and baked goods and allows anyone, Capital One customer or not, to sit inside the cafe and work and network.

“Banking shouldn’t be that experience of someone sitting in a suit behind a desk talking about your loan application, but it should be someone who is sitting with you, offering to help you through those questions about money and finances,” said Jennifer Windbeck, head of Capital One’s retail bank channels and operations.

Banks such as JPMorgan Chase, Bank of America and Wells Fargo had been steadily closing branches since the 2008 financial crisis. They saw little need for their networks of thousands of physical locations when fewer Americans were entering a branch regularly for routine banking needs and ATMs had largely replaced tellers.

In the branches that remained, customers often noticed threadbare carpet and well-worn office furniture and cubicles.

It seemed like the fate of the bank branch was sealed when the technological gains during the pandemic made it possible to buy a home or car without interacting physically with another human being. The U.S. banking industry is estimated to have closed roughly 4,000 branches since 2020, according to the National Community Reinvestment Coalition.

Policymakers and community advocates criticized the industry for closing so many branches after the financial crisis, particularly branches located in low-income neighborhoods where financial services were often limited to check cashing stores, pawn shops and payday lending storefronts.

Local bank branches are so important that even Congress got involved in the issue during the Civil Rights Era, passing the Community Reinvestment Act, a law partially designed to make sure banks had branches in poor neighborhoods the same way they did in rich neighborhoods.

Despite the spread of digital banking, bankers and community groups still emphasize that physical branches are a necessity.

Industry and independent research have shown Americans still want to enter a branch when it comes to big financial issues like buying a home or car, preparing for retirement, dealing with the financial impacts of marriage or divorce, or having a new child.