/* 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}}}
/* Opt-in Mercury header format. The search/menu handlers and their positions are preserved. */
.space-header-search.agp-search-slot{display:inline-flex;align-items:center;gap:6px;height:24px;overflow:visible}
.space-header-menu.agp-offer-menu ul.main-menu{padding-right:101px}
#agp-offer-toggle{display:inline-flex;flex:0 0 40px;align-items:center;justify-content:center;box-sizing:border-box;width:40px;min-width:40px;max-width:40px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;box-shadow:none;cursor:pointer;vertical-align:middle;line-height:1;appearance:none;touch-action:manipulation}
#agp-offer-toggle svg{display:block;width:24px;height:24px;max-width:none;pointer-events:none}
#agp-offer-toggle:hover,#agp-offer-toggle[aria-expanded="true"]{background:#8882}
#agp-offer-toggle:focus-visible{outline:2px solid currentColor;outline-offset:1px}
#agp-offer-toggle[hidden]{display:inline-flex!important;visibility:hidden;pointer-events:none}
#agp-surface.agp-offer{z-index:99980}
#agp-surface.agp-offer .agp-card{position:fixed;bottom:auto;right:auto;width:320px;max-width:calc(100vw - 20px);max-height:360px;padding:42px 14px 14px;border-radius:12px;box-shadow:0 6px 24px #0003}
#agp-surface.agp-offer .agp-image{max-height:120px;max-height:min(120px,22dvh);margin-bottom:10px}
#agp-surface.agp-offer .agp-image-link .agp-image{margin:0}
#agp-surface.agp-offer .agp-title{font-size:17px;line-height:1.3;margin-bottom:8px}
#agp-surface.agp-offer .agp-body{font-size:13px;line-height:1.45;margin-bottom:10px}
#agp-surface.agp-offer .agp-button{font-size:14px;min-height:44px;padding:10px 12px}
@media(max-width:479px){.agp-offer-header .space-header-logo img{max-width:min(100%,calc(100vw - 160px));height:auto}}
