/* ===== BookingWP 7-Day Popup (Full CSS) ===== */

#bwp7d-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999999;
}

/* When open */
#bwp7d-overlay.is-open {
  display: flex;
}

/* Animate overlay fade-in */
#bwp7d-overlay.is-open {
  animation: bwp7dOverlayFadeIn 180ms ease-out both;
}

@keyframes bwp7dOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal container */
#bwp7d-modal {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 20px 48px 20px 20px; /* extra right padding for close button */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);

  /* Animation */
  transform: translateY(10px) scale(0.98);
  opacity: 0;
}

/* Animate modal in when overlay opens */
#bwp7d-overlay.is-open #bwp7d-modal {
  animation: bwp7dModalIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes bwp7dModalIn {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Title + message */
#bwp7d-title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
}

#bwp7d-message {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

/* Close button – true top-right corner */
#bwp7d-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  color: #333;
}

#bwp7d-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Disabled buttons/links when blocked */
.bwp7d-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Inline notice */
.bwp7d-inline-notice {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  font-size: 15px;
  line-height: 1.35;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  #bwp7d-overlay.is-open {
    animation: none;
  }
  #bwp7d-overlay.is-open #bwp7d-modal {
    animation: none;
    transform: none;
    opacity: 1;
  }
}
