I've had a similar issue, for me clip-path: inset(0 round 0.5rem); fixed it!
clip-path: inset(0 round 0.5rem);