/* WebGram Connect 1.5 — scoped acquisition UI. No theme selectors are modified. */
#wgc-popup[hidden],.wgc-card [hidden],#wgc-topbar[hidden],.wgc-feed-banner[hidden],.wgc-topbar [hidden]{display:none!important}
.wgc-card,.wgc-card *,.wgc-topbar,.wgc-topbar *{box-sizing:border-box}
.wgc-trap{position:absolute!important;left:-99999px!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none!important}

/* POPUP / NATIVE CARDS */
.wgc-popup{position:fixed;right:22px;bottom:max(18px,env(safe-area-inset-bottom));width:min(470px,calc(100vw - 24px));z-index:2147482000;max-height:calc(100dvh - 30px);overflow:auto;overscroll-behavior:contain;border-radius:24px;box-shadow:0 28px 90px rgba(5,18,39,.30);animation:wgc-rise .26s cubic-bezier(.2,.8,.2,1)}
.wgc-inline{max-width:720px;margin:24px auto}
.wgc-card{position:relative;overflow:hidden;color:#142b43;background:linear-gradient(145deg,#ffffff 0%,#f7fbff 100%);border:1px solid rgba(96,151,188,.28);border-radius:24px;padding:clamp(20px,3.2vw,30px);font:15px/1.48 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 14px 38px rgba(24,73,108,.08)}
.wgc-card:before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#27b0e6,#7057e8 52%,#f45c88)}
.wgc-card a{color:#116a9a;text-decoration:underline;text-underline-offset:2px}
.wgc-card .wgc-close{position:absolute;right:12px;top:12px;z-index:3;display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(82,115,139,.14);border-radius:50%;background:rgba(255,255,255,.86);color:#486075;cursor:pointer;font:500 25px/1 system-ui;box-shadow:0 5px 18px rgba(18,54,80,.08)}
.wgc-card .wgc-close:hover{background:#fff;color:#17354f}
.wgc-hero-row{display:flex;align-items:flex-start;gap:14px;padding-right:24px}
.wgc-mark{flex:0 0 46px;width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,#0ca7dd,#6459e6);box-shadow:0 8px 24px rgba(61,91,209,.22);color:#fff;font-size:20px;font-weight:900;letter-spacing:-.8px}
.wgc-copy{min-width:0;flex:1}
.wgc-eyebrow{margin:1px 0 4px;color:#6c59d9;font-size:10px;font-weight:900;letter-spacing:.13em}
.wgc-card .wgc-title{margin:0 0 7px;color:#102d47;font-size:clamp(21px,4vw,27px);line-height:1.14;letter-spacing:-.55px;font-weight:850}
.wgc-description{margin:0!important;color:#496276;font-size:14px;line-height:1.48}
.wgc-benefits{display:flex;flex-wrap:wrap;gap:7px;margin:17px 0 15px}
.wgc-benefits span{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border:1px solid #dbeaf3;border-radius:999px;background:rgba(255,255,255,.84);color:#365367;font-size:11px;font-weight:750;white-space:nowrap}
.wgc-form{display:flex;flex-direction:column;gap:9px;margin:0}
.wgc-label{display:block;color:#314d64;font-size:12px;font-weight:800}
.wgc-email-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.wgc-card input[type=email]{width:100%;min-width:0;min-height:48px;margin:0;padding:11px 13px;border:1px solid #9fbdd0;border-radius:12px;background:#fff;color:#15364f;font:inherit;font-size:15px;box-shadow:0 1px 0 rgba(9,49,75,.02)}
.wgc-card input[type=email]::placeholder{color:#7b93a4}
.wgc-card input[type=email]:focus{border-color:#2b9fd3;box-shadow:0 0 0 4px rgba(43,159,211,.12)}
.wgc-check{display:flex;align-items:flex-start;gap:8px;color:#617483;font-size:11px;line-height:1.38;cursor:pointer}
.wgc-check input{flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:#168fc4}
.wgc-card .wgc-primary,.wgc-card .wgc-secondary{min-height:48px;border-radius:12px;padding:10px 15px;font:800 13px/1.15 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;text-align:center;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.wgc-card .wgc-primary{border:1px solid #118bc1;background:linear-gradient(135deg,#0b98d0,#087caf);color:#fff;box-shadow:0 9px 22px rgba(6,132,184,.20);white-space:nowrap}
.wgc-card .wgc-primary:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(6,132,184,.27)}
.wgc-card .wgc-secondary{display:block;width:100%;border:1px solid #b8d9e8;background:#eef9fd;color:#115d82}
.wgc-card .wgc-secondary:hover{background:#e0f4fc;transform:translateY(-1px)}
.wgc-card .wgc-secondary.wgc-active{border-color:#8ed6bd;background:#edf9f4;color:#176b4f}
.wgc-card button:disabled{opacity:.58;cursor:wait;transform:none!important}
.wgc-card .wgc-link{display:block;margin:3px auto 0;padding:6px;border:0;background:transparent;color:#5d7282;font:500 11px/1.3 system-ui;cursor:pointer;text-decoration:underline}
.wgc-separator{display:flex;align-items:center;gap:10px;margin:12px 0;color:#8295a3;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.08em}
.wgc-separator:before,.wgc-separator:after{content:"";height:1px;flex:1;background:#dce8ef}
.wgc-feedback{margin:9px 0 0!important;color:#08724b;font-size:12px;font-weight:700;min-height:0}
.wgc-feedback:empty{display:none}
.wgc-feedback.wgc-error{color:#a12632}
.wgc-ios-help{margin:10px 0 0;padding:12px 13px;border:1px solid #d8e7f2;border-radius:12px;background:#f5faff;color:#3d596d;font-size:12px;line-height:1.45}
.wgc-ios-help ol{margin:6px 0 0 18px;padding:0}.wgc-ios-help li{margin:3px 0}
.wgc-footnote{margin:10px 0 0!important;text-align:center;color:#80909d;font-size:10.5px}
.wgc-card :is(input,button,a):focus-visible,.wgc-topbar :is(input,button,a):focus-visible{outline:3px solid #57aee0;outline-offset:2px}

/* In-content placements: designed to look like a premium house ad, not a generic form. */
.wgc-feed-banner,.wgc-in-article{width:100%;max-width:760px;margin:clamp(28px,4vw,48px) auto;clear:both;box-sizing:border-box;padding:0 14px}
.wgc-feed-banner .wgc-card,.wgc-in-article .wgc-card{background:linear-gradient(135deg,#f7fcff 0%,#f7f5ff 55%,#fff8fb 100%);border-color:#d9e7f2;box-shadow:0 12px 34px rgba(29,71,102,.07)}
.wgc-in-article-second{margin-top:34px}

/* TOP BAR — modern compact acquisition surface */
.wgc-topbar{position:fixed;inset:0 0 auto;z-index:2147482500;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));background:linear-gradient(100deg,#071b35 0%,#0a4166 50%,#17396d 100%);color:#fff;border-bottom:1px solid rgba(255,255,255,.13);box-shadow:0 8px 26px rgba(2,17,35,.18);font:13px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.wgc-topbar:after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 72% -80%,rgba(88,207,255,.28),transparent 36%)}
.wgc-top-inner{position:relative;z-index:1;width:100%;max-width:1440px;margin:0 auto;display:grid;grid-template-columns:minmax(220px,.85fr) minmax(360px,1.4fr) auto auto;gap:10px;align-items:center;padding-right:52px}
.wgc-top-brand{display:flex;align-items:center;gap:10px;min-width:0}
.wgc-top-badge{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:12px;background:linear-gradient(145deg,#25b8e9,#7b5ff0);box-shadow:0 8px 22px rgba(74,112,232,.32);font-size:16px;font-weight:900}
.wgc-top-brand div{display:flex;flex-direction:column;min-width:0}
.wgc-top-brand strong{font-size:13px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wgc-top-brand span{margin-top:2px;color:#bed3e2;font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wgc-top-form{display:grid;grid-template-columns:minmax(150px,1fr) auto;gap:7px;align-items:center;min-width:0}
.wgc-top-email{min-width:0}
.wgc-top-email input{width:100%;min-width:0;min-height:39px;margin:0;padding:8px 11px;border:1px solid rgba(255,255,255,.24);border-radius:11px;background:rgba(255,255,255,.98);color:#17354c;font:inherit;font-size:14px;box-shadow:none}
.wgc-top-button,.wgc-top-push-button{min-height:39px;padding:8px 13px;border-radius:11px;font:800 12px/1 system-ui;cursor:pointer;white-space:nowrap}
.wgc-top-button{border:1px solid #26aee4;background:linear-gradient(135deg,#20afe4,#0d8fc9);color:#fff;box-shadow:0 6px 16px rgba(0,148,209,.22)}
.wgc-top-push-button{border:1px solid rgba(255,255,255,.26);background:rgba(255,255,255,.10);color:#fff;backdrop-filter:blur(10px)}
.wgc-top-push-button:hover{background:rgba(255,255,255,.17)}
.wgc-top-push-button.wgc-active{border-color:rgba(126,224,190,.5);background:rgba(47,155,118,.22)}
.wgc-top-consent{grid-column:1/-1;display:flex;align-items:flex-start;gap:5px;color:#bcd0df;font-size:9.5px;line-height:1.25}
.wgc-top-consent input{flex:0 0 14px;width:14px;height:14px;margin:0;accent-color:#2ab0e5}
.wgc-topbar a{color:#e3f5ff;text-decoration:underline;text-underline-offset:2px}
.wgc-top-push{display:flex;align-items:center;gap:5px;position:relative}
.wgc-top-push [data-wgc-push-off]{border:0;background:transparent;color:#c1d5e2;font-size:10px;text-decoration:underline;cursor:pointer}
.wgc-top-push .wgc-ios-help{position:absolute;top:47px;right:0;width:min(360px,82vw);margin:0;background:#fff;color:#27455b;box-shadow:0 14px 35px rgba(0,0,0,.2);z-index:5}
.wgc-top-later{position:absolute;right:0;top:50%;transform:translateY(-50%);min-height:34px;padding:0 2px;border:0;background:transparent;color:#a9c0d0;font:600 10.5px/1 system-ui;cursor:pointer;white-space:nowrap}
.wgc-top-later span{font-size:15px;color:#d4e4ee}
.wgc-top-feedback{grid-column:1/-1;margin:0;color:#a7f2cf;font-size:10.5px;font-weight:700}
.wgc-top-feedback:empty{display:none}.wgc-top-feedback.wgc-error{color:#ffbdc6}
.wgc-top-spacer{width:100%;max-width:100%;pointer-events:none;flex:none}
.wgc-top-email .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}

@keyframes wgc-rise{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:980px){
 .wgc-top-inner{grid-template-columns:minmax(180px,.8fr) minmax(300px,1.4fr) auto;padding-right:46px}
 .wgc-top-push{grid-column:3}.wgc-top-brand span{display:none}
}
@media(max-width:720px){
 .wgc-popup{left:10px;right:10px;bottom:max(10px,env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - 20px);border-radius:21px}
 .wgc-popup .wgc-card{padding:19px 17px 17px}.wgc-hero-row{gap:11px}.wgc-mark{width:40px;height:40px;flex-basis:40px;border-radius:13px}.wgc-card .wgc-title{font-size:21px}.wgc-description{font-size:13px}
 .wgc-email-row{grid-template-columns:1fr}.wgc-card .wgc-primary{width:100%;white-space:normal}
 .wgc-benefits{gap:5px;margin:13px 0}.wgc-benefits span{font-size:10px;min-height:27px;padding:4px 7px}
 .wgc-topbar{padding:max(7px,env(safe-area-inset-top)) 8px 7px}
 .wgc-top-inner{grid-template-columns:1fr auto;gap:6px 7px;padding-right:38px}
 .wgc-top-brand{grid-column:1/-1}.wgc-top-badge{width:30px;height:30px;flex-basis:30px;border-radius:10px;font-size:13px}.wgc-top-brand strong{font-size:12.5px}.wgc-top-brand span{display:block;font-size:9.5px}
 .wgc-top-form{grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;gap:6px}.wgc-top-email input{min-height:40px;font-size:16px}.wgc-top-button{min-height:40px;padding:8px 10px;font-size:11px}
 .wgc-top-consent{font-size:9px}.wgc-top-push{grid-column:1/-1}.wgc-top-push-button{width:100%;min-height:38px}.wgc-top-later{top:3px;transform:none;right:0;font-size:9px}
 .wgc-feed-banner,.wgc-in-article{padding:0 8px;margin:28px auto}.wgc-inline{margin:16px 8px}
}
@media(max-width:360px){
 .wgc-card{padding-left:14px;padding-right:14px}.wgc-hero-row{padding-right:18px}.wgc-mark{display:none}.wgc-benefits span{white-space:normal}.wgc-top-brand span{display:none}.wgc-top-button{font-size:10.5px;padding-left:8px;padding-right:8px}
}
@media(max-height:560px){.wgc-popup{max-height:90dvh;bottom:5px}.wgc-popup .wgc-benefits{display:none}.wgc-popup .wgc-card{padding-top:16px;padding-bottom:14px}}
@media(prefers-reduced-motion:reduce){.wgc-popup{animation:none}.wgc-card .wgc-primary,.wgc-card .wgc-secondary{transition:none}}
