/* ==========================================================================
   Pop-up Overlay
   First-visit banner with exit-intent recurrence (hourly cooldown)
   ========================================================================== */

.sheehan-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sheehan-popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Inner container — constrains the image and holds the close button */
.sheehan-popup-inner {
  position: relative;
  max-width: 680px;
  width: 90%;
  transform: scale(0.92);
  transition: transform 0.35s ease;
}

.sheehan-popup-overlay.is-visible .sheehan-popup-inner {
  transform: scale(1);
}

/* The banner image itself */
.sheehan-popup-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Clickable link wrapper */
.sheehan-popup-link {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

/* Close button */
.sheehan-popup-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

.sheehan-popup-close:hover {
  background: #e5e5e5;
  transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .sheehan-popup-inner {
    width: 94%;
  }

  .sheehan-popup-close {
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 32px;
  }
}
