.epbl-popup-overlay {
  background: rgba(0, 0, 0, 0.7);
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.epbl-popup-overlay.epbl-open {
  display: flex;
}

.epbl-position-top {
  align-items: flex-start;
}

.epbl-position-bottom {
  align-items: flex-end;
}

.epbl-position-left .epbl-popup-container {
  transform: translateX(-120%);
}

.epbl-position-right .epbl-popup-container {
  transform: translateX(120%);
}

.epbl-popup-overlay.epbl-open.epbl-position-left .epbl-popup-container,
.epbl-popup-overlay.epbl-open.epbl-position-right .epbl-popup-container {
  transform: translateX(0);
}

.epbl-popup-container {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  max-height: 90vh;
  width: 100%;
  margin: 16px;
}

.epbl-popup-overlay.epbl-open .epbl-popup-container {
  opacity: 1;
}

.epbl-popup-container.epbl-animation-fade {
  transform: translateY(-12px);
}

.epbl-popup-container.epbl-animation-zoom {
  transform: scale(0.92);
}

.epbl-popup-container.epbl-animation-slide {
  transform: translateY(24px);
}

.epbl-popup-container.epbl-animation-bounce {
  transform: translateY(-30px);
}

.epbl-popup-overlay.epbl-open .epbl-popup-container.epbl-animation-zoom,
.epbl-popup-overlay.epbl-open .epbl-popup-container.epbl-animation-slide,
.epbl-popup-overlay.epbl-open .epbl-popup-container.epbl-animation-bounce {
  transform: translateY(0) scale(1);
}

.epbl-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1001;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.epbl-popup-close:hover {
  background: rgba(255, 255, 255, 1);
}

.epbl-popup-content {
  padding: 28px;
  width: 100%;
}

.epbl-popup-content img,
.epbl-popup-content iframe {
  max-width: 100%;
}

.epbl-top-bar,
.epbl-bottom-bar {
  height: 8px;
  background: linear-gradient(90deg, #0085ba, #7a3bff);
}

.epbl-cta-button {
  display: inline-block;
  padding: 14px 24px;
  background: #1e73be;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
}

.epbl-countdown {
  display: inline-flex;
  padding: 10px 14px;
  background: #f3f4f5;
  color: #1d2327;
  border-radius: 8px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .epbl-popup-container {
    width: calc(100% - 32px);
    max-height: 95vh;
  }

  .epbl-popup-close {
    top: 10px;
    right: 10px;
  }
}
