/* AdSense Shield — visitor-side styling for sticky and refresh slots */

.ads-shield-slot--sticky-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: #fff;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  max-width: 100%;
  padding: 6px 8px;
}

.ads-shield-slot--sticky-bottom.is-near-footer {
  /* !important needed because slot has inline display:flex (set in ManualSlot.php for centering). */
  display: none !important;
}

@media (min-width: 1024px) {
  .ads-shield-slot--sticky-bottom {
    max-width: 728px;
  }
}

.ads-shield-slot--sticky-sidebar {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  z-index: 50;
}

.ads-shield-slot__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  border: 0;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}

.ads-shield-slot__close:hover {
  background: #000;
}

.ads-shield-slot--sticky-bottom .ads-shield-slot__close,
.ads-shield-slot--sticky-sidebar .ads-shield-slot__close {
  display: block;
}

.ads-shield-slot:not(.ads-shield-slot--sticky-bottom):not(.ads-shield-slot--sticky-sidebar) .ads-shield-slot__close {
  display: none;
}
