/* Popup Ads Module Styles */
#popupAd {
  background: transparent;
}

.popup_ad_blocker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.popup_ad_content {
  background-color: transparent !important;
  min-width: auto !important;
  padding: 0 !important;
  position: relative;
  border-radius: 12px;
  overflow: visible;
  z-index: 2;
}

.popup_ad_close {
  background-color: var(--bg-modal);
  color: var(--green);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 50%;
  position: absolute;
  right: -10px;
  top: -10px;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.3s;
}

.popup_ad_close.ready {
  cursor: pointer;
  pointer-events: all;
}

.popup_ad_close.ready:hover {
  transform: scale(1.1);
}

.popup_ad_close svg.countdown-circle {
  --progress: 0;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  stroke-width: 3px;
  stroke: var(--green);
  fill: none;
  stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
  stroke-dasharray: 125.6;
  transform: rotate(-90deg);
}

.popup_ad_close .countdown-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  z-index: 11;
}

.popup_ad_close .close-icon {
  width: 18px;
  height: 18px;
  fill: var(--green);
  z-index: 11;
}

.popup_ad_image {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 568.9px) {
  .popup_ad_content {
    width: 95% !important;
  }

  .popup_ad_image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
  }

  .popup_ad_close {
    width: 40px;
    height: 40px;
    right: -8px;
    top: -8px;
  }

  .popup_ad_close .countdown-text {
    font-size: 12px;
  }

  .popup_ad_close .close-icon {
    width: 14px;
    height: 14px;
  }
}
