/* PA v22: Desktop share popover must not be clipped or flow into the next content block. */
@media (min-width:768px){
  .pa-offer-facts-grid,
  .pa-offer-content-box,
  .pa-offer-status-panel,
  .pa-offer-product-card,
  .pa-offer-product-card__body,
  .pa-media-original,
  .pa-media-original--product,
  .pa-offer-actions-under-image{
    overflow:visible !important;
  }

  .pa-offer-facts-grid,
  .pa-offer-content-box,
  .pa-offer-status-panel{
    position:relative !important;
    z-index:20 !important;
  }

  .pa-offer-product-card{
    position:relative !important;
    z-index:60 !important;
  }

  .pa-offer-actions-under-image{
    position:relative !important;
    z-index:100000 !important;
  }

  .pa-offer-actions-under-image .pa-share-panel,
  .pa-share-panel{
    top:auto !important;
    bottom:calc(100% + 10px) !important;
    left:auto !important;
    right:0 !important;
    transform:none !important;
    z-index:100001 !important;
    overflow:hidden !important;
    width:max-content !important;
    min-width:230px !important;
    max-width:min(300px, calc(100vw - 32px)) !important;
  }
}

/* PA v25: Prospekt-detail share sits inside the hero chip row.
   Unlike offer cards, it must open downward and parent containers must not clip it. */
.pa-test-hero,
.pa-test-hero__grid,
.pa-test-hero__content,
.pa-test-hero__chips,
.pa-prospekt-post-page .pa-test-hero,
.pa-prospekt-post-page .pa-test-hero__grid,
.pa-prospekt-post-page .pa-test-hero__content,
.pa-prospekt-post-page .pa-test-hero__chips{
  overflow:visible !important;
}

.pa-test-hero .pa-share-wrap,
.pa-prospekt-post-page .pa-test-hero .pa-share-wrap{
  position:relative !important;
  z-index:100000 !important;
}

.pa-test-hero .pa-share-panel,
.pa-prospekt-post-page .pa-test-hero .pa-share-panel{
  top:calc(100% + 10px) !important;
  bottom:auto !important;
  right:0 !important;
  left:auto !important;
  transform:none !important;
  z-index:100001 !important;
  min-width:220px !important;
  max-width:min(300px, calc(100vw - 32px)) !important;
}

.pa-test-hero .pa-share-panel[hidden],
.pa-prospekt-post-page .pa-test-hero .pa-share-panel[hidden]{
  display:none !important;
}
