/* Overlay behind the popup */
.softweb-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
}

/* Popup shell (centered/fixed) */
#softweb-popup {
  display: none;                /* JS flips to block when showing */
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* Inner container — sizes come from CSS variables set inline on #softweb-popup */
#softweb-popup .softweb-popup-inner {
  width: var(--sw-popup-w, 600px);
  max-width: 95vw;
  height: var(--sw-popup-h, 400px);
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  border: 1px solid rgba(0,0,0,.06);
  box-sizing: border-box;
  position: relative;
  padding: 16px;
  overflow: auto;
}

/* Close button */
#softweb-popup .softweb-popup-close {
  position: absolute;
  top: 0px;
  right: 0px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #000;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  padding-right: 20px;
}

/* Center CMS content inside the container */
#softweb-popup .softweb-popup-content {
  display: flex;
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  height: 100%;
  width: 100%;
  text-align: center;       /* center text */
}

/* Keep images responsive inside the popup */
#softweb-popup .softweb-popup-content img {
  max-width: 100%;
  height: auto;
}
