/* =========================================
   POPUP WRAPPER
========================================= */

.df-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.3s ease;
}

/* Visible State */
.df-popup.df-visible {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================
   OVERLAY
========================================= */

.df-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

/* =========================================
   CONTENT BASE
========================================= */

.df-popup-content {
  position: relative;
  z-index: 2;

  background: #ffffff00;
  width: 400px;
  max-width: 600px;

  padding: 16px;
  border-radius: 10px;

  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* When visible */
.df-popup.df-visible .df-popup-content {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   CLOSE BUTTON
========================================= */

.df-popup-close {
  position: absolute;
  top: 2px;
  z-index: 99;
  right: -7px;
  background: black;
  border-radius: 100px;
  border: none;
  font-size: 22px;
  cursor: pointer;
  /* line-height: 1; */
}

.df-popup-close:hover {
  background: #000;
}



/* =========================================
   ANIMATION VARIANTS
========================================= */

/* Fade */
.df-popup[data-animation="fade"] .df-popup-content {
  transform: none;
}

/* Slide Up */
.df-popup[data-animation="slide-up"] .df-popup-content {
  transform: translateY(60px);
}

/* Slide Down */
.df-popup[data-animation="slide-down"] .df-popup-content {
  transform: translateY(-60px);
}

/* Zoom */
.df-popup[data-animation="zoom"] .df-popup-content {
  transform: scale(0);
}

/* Visible Animation Overrides */
.df-popup.df-visible[data-animation="slide-up"] .df-popup-content,
.df-popup.df-visible[data-animation="slide-down"] .df-popup-content {
  transform: translateY(0);
}

.df-popup.df-visible[data-animation="zoom"] .df-popup-content {
  transform: scale(1);
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
  .df-popup-content {
    width: 95%;
    padding: 20px;
  }
}
