/*
 * Styling for popups in the Awnex Plus plugin. Popups are displayed in
 * full‑screen overlays with centered modal content. The design emphasises a
 * modern and professional look consistent with the loyalty programme.
 */

.awnexplus-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.awnexplus-popup-modal {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: popupFadeIn 0.4s ease forwards;
}

.awnexplus-popup-modal h3 {
  margin-top: 0;
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.awnexplus-popup-modal p {
  margin: 15px 0;
  color: #555;
  font-size: 16px;
  line-height: 1.4;
}

.awnexplus-popup-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.awnexplus-popup-btn,
.awnexplus-popup-close {
  background: #0073aa;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.awnexplus-popup-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.awnexplus-popup-btn:hover:not([disabled]),
.awnexplus-popup-close:hover {
  background: #005d8c;
}

.awnexplus-popup-link {
  display: inline-block;
  margin-top: 10px;
  color: #0073aa;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}
.awnexplus-popup-link:hover {
  color: #005d8c;
}

@keyframes popupFadeIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}