#news-overlay-ad {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #173447;
  isolation: isolate;
  color: white;
  overflow: hidden;
  overscroll-behavior: contain;
  font-family: Arial, sans-serif;
}
#news-overlay-ad::backdrop { background: rgba(0, 0, 0, .85); }
#news-overlay-ad .news-ad-ghost {
  position: absolute;
  inset: -36px;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(22px) brightness(.48) saturate(.8);
}
#news-overlay-ad .news-ad-shell { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; gap: 10px; }
#news-overlay-ad .news-ad-toolbar { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 16px; }
#news-overlay-ad .news-ad-close { min-width: 96px; min-height: 44px; padding: 8px 16px; border: 1px solid #fff; border-radius: 6px; background: #fff; color: #111; font: bold 16px Arial, sans-serif; cursor: pointer; }
#news-overlay-ad .news-ad-close:focus-visible, #news-overlay-ad .news-ad-link:focus-visible { outline: 3px solid #42c6ff; outline-offset: 3px; }
#news-overlay-ad .news-ad-link { display: flex; flex: 1 1 0; min-height: 0; width: 100%; align-items: center; justify-content: center; }
#news-overlay-ad .news-ad-image { display: block; width: 100%; height: 100%; min-height: 0; max-width: 100%; object-fit: contain; }
#news-overlay-ad .news-ad-standalone { flex: 1 1 0; }
#news-overlay-ad [hidden] { display: none !important; }
