/* Smooth popup image animation */
.popup img {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.popup img.fade-out {
  opacity: 0;
  transform: translateX(-20px);
}

.popup img.fade-in {
  opacity: 1;
  transform: translateX(0);
}

.toggle-btn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.popup-container {
  visibility: hidden;
  opacity: 0;
  z-index: 1000;
  transition: opacity 0.5s ease, visibility 0.5s;
  z-index: 1000;
  width: 100%; 
  height: 100%;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  margin-right: 20px;
}

.popup {
  background: #fff;
  padding: 2px;
  border-radius: 10px;
  width: 450px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateX(100%) scale(0.8);
}
.popup-container.active {
  visibility: visible;
  opacity: 1;
}
.popup-container.active .popup {
  animation: slideScaleIn 0.7s ease forwards;
}

/* Slide + scale keyframes */
@keyframes slideScaleIn {
0% {
  transform: translateX(100%) scale(0.8);
  opacity: 0;
}
100% {
  transform: translateX(0) scale(1);
  opacity: 1;
}
}
.image-box {
  position: fixed;
  right: 0;
  bottom: 20px;
  z-index: 9999;
  text-align: right;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 35px;
  border: none;
  background: none;
  cursor: pointer;
  color: #fffffe;
  outline: none !important;
  height: auto;
  line-height: 18px;
  opacity: 1;
}

.close-btn:hover{
  color: #ff7937;
}

.toggle-btn {
  background: #f56565;
  color: #fff;
  border: none;
  border-radius: 100px 0 0 100px;
  cursor: pointer;
  outline: none !important;
  padding: 10px 10px 10px 16px;
  font-size: 14px;
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
}
@media (max-width: 767px){
  .popup {
      width: 300px;
  }
}
@media (max-width: 574px){
  .popup {
      width: 220px;
  }
}