.ss-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 400px;
  height: 200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: left;
}

.ss-popup .swiper-container {
  margin-top: 6px;
  margin-left: 6px;
  width: 70%;
  height: 175px;
  position: relative;
}

.ss-popup .swiper-slide {
  position: relative; /* To position the title absolutely */
  margin-right: 5px; /* Add 5px right margin for separation */
}

.ss-popup .swiper-slide img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.close-popup {
  position: fixed;
  right: 20px;
  bottom: 230px;
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 36px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 1000;
  cursor: pointer;
  display: flex; /* Use flexbox for centering */
  align-items: center; /* Vertically center the image */
  justify-content: center; /* Horizontally center the image */
}

.close-image {
  width: 20px;
  height: 20px;
}

.ss-popup .swiper-slide-title {
  position: absolute;
  bottom: 10px; /* Center vertically */
  left: 0px; /* Center horizontally */
  color: #fff;
  padding: 5px 10px;
}

.ss-popup .ss-logo {
  margin-left: 10px;
  margin-bottom: 4px;
  text-align: left;
}

.ss-popup .ss-logo img {
  max-width: 140px;
  height: auto;
}

.small-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.small-image img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .ss-popup {
    width: 100%;
    left: 0 !important; /* Ensure it spans the full width */
    bottom: 0;
    right: 0 !important;
    border-radius: 0; /* Remove rounded corners for a cleaner look */
  }

  .close-popup {
    bottom: 210px;
  }
}

/* Left-aligned elements */
.popup-left.ss-popup {
  left: 20px;
  right: auto;
}

.popup-left.small-popup {
  left: 20px;
  right: auto;
}

.popup-left.close-popup {
  left: 20px; /* Adjust to position the close button near the main popup */
  right: auto;
}

/* Right-aligned elements */
.popup-right.ss-popup {
  right: 20px;
  left: auto;
}

.popup-right.small-popup {
  right: 20px;
  left: auto;
}

.popup-right.close-popup {
  right: 20px; /* Adjust to position the close button near the main popup */
  left: auto;
}
