/**
 * WP Light Popups for Elementor Free
 * Lightweight CSS Animations & Styles
 */

/* Overlay Container */
.wplp-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  box-sizing: border-box;
  overflow: auto;
  padding: 20px;
  transition: opacity 0.25s ease;
}

/* Positions */
.wplp-position-center {
  align-items: center;
  justify-content: center;
}

.wplp-position-top-bar {
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
}

.wplp-position-bottom-bar {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

.wplp-position-bottom-right {
  align-items: flex-end;
  justify-content: flex-end;
}

.wplp-position-bottom-left {
  align-items: flex-end;
  justify-content: flex-start;
}

.wplp-position-top-right {
  align-items: flex-start;
  justify-content: flex-end;
}

.wplp-position-full-screen {
  align-items: center;
  justify-content: center;
}

/* Popup Container Box */
.wplp-popup-container {
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  transform-origin: center center;
  will-change: transform, opacity;
}

/* Close Button */
.wplp-close-btn {
  position: absolute;
  background: #ffffff;
  color: #334155;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  z-index: 99999;
  padding: 0;
  margin: 0;
  outline: none;
}

.wplp-close-btn:hover {
  transform: scale(1.1);
  background-color: #f8fafc;
  opacity: 1;
}

.wplp-close-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
  display: block;
  pointer-events: none;
}

.wplp-close-inside-right {
  top: 12px;
  right: 12px;
}

.wplp-close-outside-right {
  top: -16px;
  right: -16px;
}

.wplp-close-inside-left {
  top: 12px;
  left: 12px;
}

/* Keyframe Animations */
@keyframes wplpFadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes wplpZoomIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes wplpSlideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wplpSlideInUp {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wplpFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* Animation Classes */
.wplp-anim-fadeInUp {
  animation: wplpFadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wplp-anim-fadeIn {
  animation: wplpFadeIn 0.3s ease-out forwards;
}

.wplp-anim-zoomIn {
  animation: wplpZoomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wplp-anim-slideInRight {
  animation: wplpSlideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wplp-anim-slideInUp {
  animation: wplpSlideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wplp-anim-fadeOut {
  animation: wplpFadeOut 0.25s ease-in forwards !important;
}
