/* Popup container wrapper */
#popupContainer {
  position: relative;
  z-index: 997; /* Optional hook for future styling or visibility control */
}

/* Screen overlay lock */
#overlayBlocker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
  display: none;
}

/* Popup styling */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #222;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 999;
  display: none;
  width: 90%;
  max-width: 480px;
  text-align: center;
}

.popup-content h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: #222;
}

.popup-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #222;
}

.popup-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem;
}

.popup-buttons button,
.popup-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.6rem 1.2rem;
  margin: 0;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.3s ease;
}

.popup-buttons a {
  text-decoration: none;
  background-color: #222;
  color: #fff;
}

.popup-buttons button:first-child {
  background-color: #222;
  color: #fff;
}

.popup-buttons button:last-child {
  background-color: #eee;
  color: #222;
}

.popup-buttons button:hover,
.popup-buttons a:hover {
  opacity: 0.9;
}
