/* Lead Popup – fly-in + exit-intent modal (z popup-gotowiec-script) */
.lead-flyin{ position:fixed; right:20px; bottom:20px; width:min(92vw,520px); z-index:999999; display:none;
  font:16px/1.4 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; }
.lead-flyin__box{ background:#fff; color:#111; border-radius:14px; border:1px solid #dcdcdc;
  box-shadow:0 22px 70px rgba(0,0,0,.28); overflow:hidden;
  transform:translateY(12px) scale(.98); opacity:0; transition:transform .22s,opacity .22s,box-shadow .2s; }
.lead-flyin--visible .lead-flyin__box{ transform:translateY(0) scale(1); opacity:1; }
.lead-flyin__head{ padding:10px 14px; background:#0f62fe; color:#fff; font-weight:700; position:relative; }
.lead-flyin__close{ position:absolute; right:8px; top:6px; background:transparent; border:0; color:#fff;
  font-size:22px; line-height:1; cursor:pointer; }
.lead-flyin__body{ padding:0; margin:0; background:#fff; }
.lead-flyin__body .mtw-widget-container{ width:100%; overflow:visible; background:#fff; min-height:180px; padding:0; margin:0; }
.lead-flyin__body [data-mtw-widget]{ margin:0 !important; }
@media (prefers-color-scheme: dark){ .lead-flyin__box{ background:#161b22; color:#e6edf3; border-color:#2d333b; } }
@media (min-width:1280px){ .lead-flyin{ right:28px; bottom:28px; } }

.lead-pop__backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.45); display:none; align-items:center; justify-content:center; z-index:999999; }
.lead-pop__modal{ width:min(92vw,560px); background:#fff; color:#111; border-radius:14px; border:1px solid #dcdcdc;
  box-shadow:0 22px 70px rgba(0,0,0,.28); overflow:hidden; position:relative; font:16px/1.4 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; }
.lead-pop__head{ padding:10px 14px; background:#0f62fe; color:#fff; font-weight:700; }
.lead-pop__body{ padding:0; margin:0; background:#fff; }
.lead-pop__body .mtw-widget-container{ width:100%; overflow:visible; background:#fff; min-height:180px; padding:0; margin:0; }
.lead-pop__body [data-mtw-widget]{ margin:0 !important; }
.lead-pop__head{ position:relative; }
.lead-pop__close{ position:absolute; right:10px; top:8px; background:transparent; border:0; color:#fff; font-size:24px; line-height:1; cursor:pointer; z-index:10; }
@media (max-width: 767px) {
  .lead-pop__backdrop{ align-items:flex-start; padding:1rem 0; overflow-y:auto; -webkit-overflow-scrolling:touch; }
  .lead-pop__modal{ max-height:90vh !important; overflow:hidden; display:flex; flex-direction:column; margin:auto 0; }
  .lead-pop__head{ flex-shrink:0; }
  .lead-pop__body{ overflow-y:auto !important; flex:1; min-height:0; -webkit-overflow-scrolling:touch; }
  .lead-pop__body .mtw-widget-container{ overflow:visible; }
  .lead-flyin__box{ max-height:90vh; overflow:hidden; display:flex; flex-direction:column; }
  .lead-flyin__head{ flex-shrink:0; position:relative; }
  .lead-flyin__close{ z-index:10; width:44px; height:44px; min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; right:4px; top:4px; padding:0; }
  .lead-pop__close{ width:44px; height:44px; min-width:44px; min-height:44px; display:flex; align-items:center; justify-content:center; right:4px; top:4px; padding:0; }
  .lead-flyin__body{ overflow-y:auto !important; flex:1; min-height:0; -webkit-overflow-scrolling:touch; }
}
@media (prefers-color-scheme: dark){ .lead-pop__modal{ background:#161b22; color:#e6edf3; border-color:#2d333b; }
  .lead-pop__head{ background:#0f62fe; } }
