
#home-app-popups{position:fixed;inset:64px 24px auto auto;z-index:10000;
 display:grid;direction:rtl;grid-auto-flow:column;align-items:start;gap:16px;pointer-events:none;
 max-height:calc(100dvh - 82px);overflow:auto;scrollbar-width:thin}
#home-app-popups iframe{display:block;width:368px;height:0;border:0;
 border-radius:18px;background:transparent;pointer-events:auto;direction:ltr}
#home-app-popups iframe[hidden]{position:absolute;visibility:hidden;pointer-events:none}
@media(max-width:800px){
 #home-app-popups{inset:14px 12px auto auto;grid-auto-flow:row;gap:12px;
  max-width:calc(100vw - 24px);max-height:calc(100dvh - 28px);scrollbar-width:none;overscroll-behavior:contain}
 #home-app-popups:has(iframe:not([hidden])){pointer-events:auto}
 #home-app-popups iframe{width:min(388px,calc(100vw - 24px))}
}

/* Give the frame shadows space within the scrolling popup area. */
#home-app-popups {
  inset: 52px 0 auto auto;
  padding: 12px 24px 24px 26px;
  max-height: calc(100dvh - 52px);
}
#home-app-popups iframe:not([hidden]) {
  box-shadow: 0 2px 5px #241c192e, 0 11px 20px -4px #241c1952;
}
@media (max-width: 800px) {
  #home-app-popups {
    inset: 5px 0 auto 0;
    padding: 9px 12px 20px;
    max-width: 100vw;
    max-height: calc(100dvh - 5px);
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr);
    justify-items: end;
    gap: 16px;
    scrollbar-width: none;
  }
  #home-app-popups iframe:not([hidden]) {
    width: min(388px, 100%);
    box-shadow: 0 2px 4px #241c192e, 0 8px 12px -3px #241c1952;
  }
}
