/* Scoped selectors deliberately avoid theme/button resets outside the campaign. */
#agp-surface{position:fixed;z-index:99990;inset:0;pointer-events:none;font:15px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;color:#182026}
#agp-surface[hidden]{display:none!important}
#agp-surface *{box-sizing:border-box}
#agp-surface .agp-card{pointer-events:auto;position:absolute;bottom:max(16px,env(safe-area-inset-bottom));right:16px;width:min(360px,calc(100vw - 32px));max-height:min(78vh,680px);max-height:min(78dvh,680px);overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #e3e6e9;border-radius:14px;box-shadow:0 8px 36px #0003;padding:48px 20px 20px;text-align:left;overflow-wrap:anywhere}
#agp-surface.agp-left .agp-card{left:16px;right:auto}
#agp-surface .agp-close{display:grid;place-items:center;position:absolute;top:4px;right:4px;min-width:44px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#fff;color:#182026;font:30px/1 system-ui;cursor:pointer;box-shadow:none;text-decoration:none}
#agp-surface .agp-close:hover{background:#f1f3f5}
#agp-surface .agp-image{display:block;width:100%;height:auto;max-height:40vh;max-height:40dvh;object-fit:contain;border:0;border-radius:8px;margin:0 0 12px}
#agp-surface .agp-image-link{display:block;width:100%;border:0;border-radius:8px;margin:0 0 12px;text-decoration:none;line-height:0}
#agp-surface .agp-image-link .agp-image{margin:0}
#agp-surface .agp-title{font-size:20px;line-height:1.25;font-weight:700;margin:0 0 10px;color:inherit}
#agp-surface .agp-body{font-size:14px;line-height:1.5;margin:0 0 14px}
#agp-surface .agp-body:empty{display:none}
#agp-surface .agp-body>*:first-child{margin-top:0}
#agp-surface .agp-body>*:last-child{margin-bottom:0}
#agp-surface .agp-body img{max-width:100%;height:auto}
#agp-surface .agp-body a{color:#145794;text-decoration:underline}
#agp-surface .agp-button{display:flex;justify-content:center;align-items:center;min-height:48px;padding:12px 16px;border-radius:8px;background:var(--agp-color,#177137);color:var(--agp-ink,#fff);font-size:16px;font-weight:700;line-height:1.3;text-decoration:none;text-align:center;white-space:normal;border:0;margin:0}
#agp-surface :focus-visible{outline:3px solid #1d65b2;outline-offset:3px}
#agp-surface.agp-modal{pointer-events:auto;background:#0007;display:flex;align-items:center;justify-content:center;padding:16px}
#agp-surface.agp-modal .agp-card{position:relative;bottom:auto;right:auto;max-width:520px;width:100%;max-height:85vh;max-height:85dvh}
#agp-surface.agp-bar .agp-card{left:16px;right:16px;width:auto;max-width:950px;margin-inline:auto}
@media(min-width:768px){#agp-surface.agp-bar .agp-card{display:grid;grid-template-columns:1fr auto;column-gap:20px;padding:20px 58px 20px 20px}#agp-surface.agp-bar .agp-image,#agp-surface.agp-bar .agp-image-link{max-width:160px;grid-row:1/4}#agp-surface.agp-bar .agp-card:has(.agp-image){grid-template-columns:160px 1fr auto}#agp-surface.agp-bar .agp-button{grid-column:-2/-1;grid-row:1/4;align-self:center;max-width:280px}#agp-surface.agp-bar .agp-body{margin-bottom:0}}
@media(max-width:767px){#agp-surface .agp-card{right:10px;bottom:max(10px,env(safe-area-inset-bottom));width:min(340px,calc(100vw - 20px));padding:44px 16px 16px;max-height:65vh;max-height:65dvh}#agp-surface.agp-left .agp-card{left:10px}#agp-surface.agp-bar .agp-card{left:10px;right:10px;max-height:55dvh}#agp-surface .agp-title{font-size:18px}#agp-surface .agp-image{max-height:26vh;max-height:26dvh}#agp-surface .agp-body{font-size:13px}#agp-surface.agp-modal .agp-card{max-height:80dvh}}
@media(prefers-reduced-motion:no-preference){#agp-surface .agp-card{animation:agp-appear .16s ease-out}@keyframes agp-appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}}
