Scraping text under style condition

Hi again,

I am trying to scrape from here a price:

I have this selector:
"id":"price_1m","parentSelectors":["open"],"type":"SelectorText","selector":".sidebar-cost span[data-behavior='price-amount']","multiple":false,"regex":""}

pulling from this code line
span data-behavior="price-amount" style="display: none;" class="">€5,940 /span

However, I only want to scrape the price if style IS NOT "display: none;" and I can't figure it out how to add this condition. Can you help? Thanks a lot!