Card mod remove icon background

Hello,

I am pretty new to YAML and cannot get this to work. I am using a cover card for my blinds. I have been able to change the icon color with card-mod, but I can’t change the icon background color.

I have searched in the forum but could not get to a solution.

This is my current code:

card_mod:
  style: |
    ha-card {
      --card-mod-icon-color:
        {%- set sensor = states('cover.screen_kamer') %}
        {%- if sensor == 'closed' %} firebrick
        {%- else %} goldenrod
        {%- endif %}
      }

I would like to make the icon background transparent, or remove it. What piece do I need to add?

Thanks!

Suggest to ask all card-mod related questions here.