I have been working with a custom component and I have incorporated several instances of it within the parent markup. When I apply styles directly within the custom component, everything works as intended. However, when I try to set styles in the parent component for each individual custom component, the formatting does occur but seems to affect elements outside of the targeted custom component rather than within it.
In this example on StackBlitz, you can see that the border is not appearing around the custom components themselves, but rather surrounding them.
I am struggling to understand why this is happening and how to go about resolving it.