/* Basic popup styles */
.vistalaro-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none; /* JS will show */
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  opacity: 0;
  transition: opacity 240ms ease;
}

.vistalaro-popup-overlay.vistalaro-visible {
  opacity: 1;
}

.vistalaro-popup-content {
  background: #fff;
  max-width: 800px;
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  padding: 20px;
  transform: translateY(8px);
  transition: transform 240ms ease, opacity 240ms ease;
  opacity: 0;
}

.vistalaro-popup-content.vistalaro-visible {
  transform: translateY(0);
  opacity: 1;
}

.vistalaro-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.vistalaro-popup-title {
  margin-top: 0;
  text-align: center;
}

.vistalaro-popup-body {
  margin-top: 10px;
}

/* When content is an image remove inner padding and make image full width */
.vistalaro-image-content {
  padding: 0;
}
.vistalaro-image-content .vistalaro-popup-body img {
  display: block;
  max-width: 100%;
  height: auto;
  width: 100%;
  border-radius: 0;
}

/* If the popup is an image, remove the top margin from the body so the image sits flush */
.vistalaro-image-content .vistalaro-popup-body {
  margin-top: 0;
  padding: 0;
}

/* Close button: white background and fully rounded */
.vistalaro-popup-close {
  position: absolute;
  top: 8px;
  right: 9px;
  background: #ffffff;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding-bottom: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.vistalaro-popup-close:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

@media (max-width: 480px) {
  .vistalaro-popup-content {
    padding: 12px;
  }
  .vistalaro-popup-close {
    font-size: 22px;
  }
}
