/* Main popup wrapper */
.site-popup-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
}


/* Overlay */
.site-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
}


/* Popup container */
.site-popup {
  position: fixed;
  background: #ffffff;
  max-width: 600px;
  width: auto;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  z-index: 10000;
}


/* Popup content */
.site-popup-content {
  position: relative;
  padding: 30px;
}


/* Title */
.site-popup-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 26px;
  text-align: center;
}
/* Message */
.site-popup-message {
  font-size: 16px;
  line-height: 1.6;
}


/* Close button */
.site-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;

  border: none;
  background: transparent;

  font-size: 30px;
  cursor: pointer;

  line-height: 1;
}

/*
 * Positions
 */
.site-popup[data-position="center"] {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.site-popup[data-position="top_left"] {
  top: 30px;
  left: 30px;
}

.site-popup[data-position="top_right"] {
  top: 30px;
  right: 30px;
}

.site-popup[data-position="bottom_left"] {
  bottom: 30px;
  left: 30px;
}
.site-popup[data-position="bottom_right"] {
  bottom: 30px;
  right: 30px;
}

/*
 * Animations
 */

.site-popup[data-animation="fade"] {
  animation: popupFade .4s ease;
}


.site-popup[data-animation="zoom"] {
  animation: popupZoom .4s ease;
}

.site-popup[data-animation="slide_left"] {
  animation: popupSlideLeft .4s ease;
}

.site-popup[data-animation="slide_right"] {
  animation: popupSlideRight .4s ease;
}

@keyframes popupFade {

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

  from {
    opacity:0;
    transform:translate(-50%, -50%) scale(.8);
  }
  to {
    opacity:1;
    transform:translate(-50%, -50%) scale(1);
  }
}
@keyframes popupSlideLeft {
  from {
    opacity:0;
    transform:translateX(-50px);
  }
  to {
    opacity:1;
    transform:translateX(0);
  }
}
@keyframes popupSlideRight {
  from {
    opacity:0;
    transform:translateX(50px);
  }
  to {
    opacity:1;
    transform:translateX(0);
  }
}

/*
 * Mobile responsive
 */
@media (max-width: 768px) {

  .site-popup {

    width:90%;
    max-width:none;

  }
  .site-popup-content {

    padding:20px;
  }

  .site-popup-title {

    font-size:22px;

  }
}