<style>
  .flash-cart {
    transition: all 0.2s linear;
  }

  .global-popup .gp-inner.flash-cart-inner .close {
    width: 12px;
    height: 12px;
    top: -4px;
  }

  .flash-cart .close svg path {
    fill: var(--black);
  }

  .flash-cart-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;

  }
  @media only screen and (min-width: 430px) {
    .flash-cart-title-wrapper {
      flex-direction: row;
      justify-content: space-between;
      gap: 0;
    }
  }
  @media only screen and (min-width: 1024px) {
    .global-popup .gp-inner.flash-cart-inner {
      top: 25px;
      right: 25px;
      transform: none;
      left: auto;
      width: 432px;
    }
  }
</style>

<div id="flashing-cart">
  {% capture popup_content %}
    <div class="flash-cart hide-m bg-white w-full  relative zi-6">
        <div class="inner"></div>
    </div>
  {% endcapture %}
  <Teleport to="body">
    {%- render 'global-popup'
      , wrapper_class: 'flash-cart-popup zi-8'
      , vue_close_popup_on_overlay: 'handleClosePopupOverlay($event)'
      , show_popup_model: 'showPopup'
      , fade_out_model: 'fadeOutPopup'
      , vue_close_popup: 'handleClosePopup'
      , inner_class: 'flash-cart-inner bg-off-white'
      , disable_close_button: true
      , popup_content: popup_content
    -%}
  </Teleport>
</div>
{%- assign global_settings = shop.metafields.global -%}