/* Base Popup Styles */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
}

#popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

#holiday-popup {
  position: relative;
  background-color: #2d2d2d;
  color: white;
  border-radius: 15px;
  padding: 2rem 1.5rem 1rem;
  min-width: 300px;
  width: 90%;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

/* Position Classes */
.position-center {
  margin: auto;
}

.position-top-left {
  align-self: flex-start;
  justify-self: flex-start;
  margin: 20px;
}

.position-top-right {
  align-self: flex-start;
  justify-self: flex-end;
  margin: 20px;
}

.position-bottom-left {
  align-self: flex-end;
  justify-self: flex-start;
  margin: 20px;
}

.position-bottom-right {
  align-self: flex-end;
  justify-self: flex-end;
  margin: 20px;
}

.position-top-center {
  align-self: flex-start;
  margin: 20px auto;
}

.position-bottom-center {
  align-self: flex-end;
  margin: 20px auto;
}

.position-left-center {
  justify-self: flex-start;
  margin: auto 20px;
}

.position-right-center {
  justify-self: flex-end;
  margin: auto 20px;
}

/* Animation Classes */
.animate-bottom {
  transform: translateY(100%);
  opacity: 0;
}

.animate-top {
  transform: translateY(-100%);
  opacity: 0;
}

.animate-left {
  transform: translateX(-100%);
  opacity: 0;
}

.animate-right {
  transform: translateX(100%);
  opacity: 0;
}

.animate-fade {
  transform: scale(1);
  opacity: 0;
}

.animate-zoom {
  transform: scale(0.5);
  opacity: 0;
}

#popup-overlay.active .animate-bottom,
#popup-overlay.active .animate-top,
#popup-overlay.active .animate-left,
#popup-overlay.active .animate-right,
#popup-overlay.active .animate-fade,
#popup-overlay.active .animate-zoom {
  transform: translate(0) scale(1);
  opacity: 1;
}

.animate-out {
  transition: all 0.4s ease !important;
}

#popup-overlay.active .animate-out.animate-bottom {
  transform: translateY(100%) !important;
  opacity: 0 !important;
}

#popup-overlay.active .animate-out.animate-top {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
}

#popup-overlay.active .animate-out.animate-left {
  transform: translateX(-100%) !important;
  opacity: 0 !important;
}

#popup-overlay.active .animate-out.animate-right {
  transform: translateX(100%) !important;
  opacity: 0 !important;
}

#popup-overlay.active .animate-out.animate-fade {
  transform: scale(1) !important;
  opacity: 0 !important;
}

#popup-overlay.active .animate-out.animate-zoom {
  transform: scale(1.5) !important;
  opacity: 0 !important;
}

  /* Popup container */
  #holiday-popup {
    background-color: #2d2d2d;
    border-radius: 15px;
    padding: 2rem 1.5rem 1rem;
    text-align: center;
    color: white;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }
  
  /* Close button */
  .popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    background: transparent;
    border: none;
    text-decoration: none;
  }
    .popup-close:hover{
          text-decoration: none;
    cursor: pointer;
    }
  /* Avatar image */
  .popup-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: -60px;
    margin-bottom: 10px;
    border: 4px solid #fff;
  }
  
  /* Headline */
  .popup-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .popup-highlight {
    font-weight: bold;
    font-size: 1.4rem;
  }
  
  /* Last order date */
  .popup-date {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  /* Promo code */
  .popup-code {
    background-color: #adf77d;
    color: #000;
    font-weight: bold;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    margin-left: 0.5rem;
    display: inline-block;
  }
  
  .popup-footer {
    border-top: 1px solid #555;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 0.85rem;
  }
  