/* Desktop notices keep their existing position. */
.ig-popup-stack{position:fixed;right:20px;bottom:24px;z-index:2147483001;width:360px;max-width:calc(100vw - 32px);display:flex;flex-direction:column;align-items:flex-end;gap:8px;pointer-events:none;font-family:Arial,sans-serif}
.ig-popup-stack [hidden]{display:none!important}
.ig-popup-stack .ig-popup{position:relative;width:100%;box-sizing:border-box;padding:12px 40px 12px 14px;border-radius:10px;background:#24577b;color:white;box-shadow:0 4px 18px #0002;pointer-events:auto;font-size:13px;line-height:1.4;animation:ig-popup-enter .2s ease;max-height:110px}
.ig-popup-text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ig-popup[data-kind=danger]{background:#a12e37}
.ig-popup[data-kind=warning]{background:#805815}
.ig-popup[data-kind=success]{background:#166947}
.ig-popup-close{position:absolute;right:6px;top:6px;width:32px;height:32px;border:0;background:transparent;color:inherit;font-size:24px;cursor:pointer}
.ig-popup-toggle{pointer-events:auto;border:1px solid #dae2eb;border-radius:20px;background:white;color:#24577b;padding:8px 14px;font-size:12px;box-shadow:0 2px 8px #0001;cursor:pointer}
.ig-popup-history{pointer-events:auto;background:white;border:1px solid #dae2eb;box-shadow:0 6px 24px #0002;border-radius:12px;width:100%;overflow:hidden;color:#234}
.ig-popup-history-heading{padding:12px;font-weight:bold;display:flex;justify-content:space-between;align-items:center;gap:8px}
.ig-popup-history-heading button{background:#eef3f8;border:0;border-radius:6px;padding:6px 10px;color:#24577b;cursor:pointer}
.ig-popup-history-list{max-height:45vh;overflow:auto;padding:0 12px 12px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.ig-popup-history .ig-popup-history-item{font-size:13px;line-height:1.45;padding:12px;border-radius:6px;margin-bottom:8px!important;overflow-wrap:anywhere}
.ig-popup-history a{color:#1746b5;text-decoration:underline}
@keyframes ig-popup-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:767px){
 .ig-popup-stack{right:calc(12px + var(--ig-popup-viewport-right,0px));top:calc(var(--ig-popup-mobile-top,8px) + env(safe-area-inset-top,0px));bottom:auto;width:320px;max-width:calc(var(--ig-popup-viewport-width,100vw) - 24px);max-height:calc(var(--ig-popup-mobile-space,calc(100vh - var(--ig-mobile-menu-clearance,110px) - 20px)) - env(safe-area-inset-top,0px));gap:6px}
 .ig-popup-stack .ig-popup-toggle{order:0;min-height:40px;padding:7px 12px;flex:none}
 .ig-popup-stack .ig-popup{order:1;flex:none;font-size:12px;padding:10px 44px 10px 12px;max-height:86px}
 .ig-popup-stack .ig-popup-text{-webkit-line-clamp:2}
 .ig-popup-stack .ig-popup-close{top:3px;right:3px;width:38px;height:38px}
 .ig-popup-stack .ig-popup-history{order:2;display:flex;flex-direction:column;min-height:0;max-height:calc(var(--ig-popup-mobile-space,calc(100vh - var(--ig-mobile-menu-clearance,110px) - 20px)) - env(safe-area-inset-top,0px) - 46px)}
 .ig-popup-stack .ig-popup-history-heading{padding:8px 10px;flex:none;font-size:12px}
 .ig-popup-stack .ig-popup-history-heading button{min-height:36px;flex:none}
 .ig-popup-stack .ig-popup-history-list{flex:1;min-height:0;max-height:none;padding:0 8px 8px}
 .ig-popup-stack.ig-popup-short .ig-popup{display:none}
}
@media(prefers-reduced-motion:reduce){.ig-popup-stack .ig-popup{animation:none}}
