The issues are to do with CSS. Specifically the <div> containing the cart item has no CSS applicable to it, so it reverts to default bahaviour display: block. You could specify display: flex or inherit this flex from the parent node with display: inherit. You can test this in the browser too.
Often running in development mode locally, these issues don’t show up. I suggest if you build locally (npm run build) and browse the built site (e.g.npx serve <output-directory>) you will likely see the same issues you are seeing on the Netlify deploy.