window.addEventListener("Sellify::Countdown::Resized", function(e){
  if($(e.detail.holder).hasClass('position-top')){
    const css = `header{top: ${e.detail.holder.offsetHeight}px}`
    if(document.getElementById('sellify-uct-custom-css')){
      document.getElementById('sellify-uct-custom-css').innerHTML = css
    }else{
      document.head.appendChild(sellify.uct.createHtmlElement('style', {id: 'sellify-uct-custom-css', type: 'text/css', innerHTML: css}))
    }
  }  
})