How do I change the system error message text colour in Wix Stores?

Question:
How do I change system error message text colour in wix stores via velo or css?
I’m trying to change the colour of system-generated error messages in Wix Stores (e.g., “This item is out of stock”). I’ve tried targeting .error-message, .wixui-error-message, and similar classes using CSS, but it doesn’t seem to apply.

I also attempted a Velo script to find and modify the error message dynamically, but it’s not working consistently. Is this inside an iframe, and if so, is there a workaround?

Any insights would be appreciated!

Product:

What are you trying to achieve:
[Explain the details of what you are trying to achieve. The more details you provide, the easier it is to understand what you need.]

What have you already tried:

  • Custom CSS (.error-message, .wixui-error-message, etc.)
  • Velo code snippet
._3jizv, ._errorText, .store-error-message { color: rgb(143, 170, 38) !important; /* Change this to the colour you want */ font-weight: bold; }

Additional information:
[Include any other pertinent details or information that might be helpful for people to know when trying to answer your question.]