/* Offers Popup Styles */
.offer-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 320px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  z-index: 999;
  overflow: hidden;
  transform: translateY(120%);
  transition: transform 0.4s ease-in-out;
  opacity: 0;
}

.offer-popup.active {
  transform: translateY(0);
  opacity: 1;
}

.offer-carousel {
  width: 100%;
  position: relative;
}

.carousel-header {
  background-color: #d32f2f;
  color: white;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.marquee-container {
  overflow: hidden;
  width: 85%;
}

.marquee-text {
  white-space: nowrap;
  animation: marquee 15s linear infinite;
  font-size: 13px;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}

.carousel-content {
  position: relative;
  overflow: hidden;
}

.offer-slide {
  padding: 15px;
  display: none;
  text-align: center;
}

.offer-slide.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

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

.offer-text {
  color: #333;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.discount {
  color: #d32f2f;
  font-weight: bold;
}

.avail-button {
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.avail-button:hover {
  background-color: #b71c1c;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: #f8f9fa;
  border-top: 1px solid #eee;
}

.nav-btn {
  background: none;
  border: none;
  color: #555;
  font-size: 16px;
  cursor: pointer;
  padding: 0 10px;
}

.nav-btn:hover {
  color: #d32f2f;
}

.slide-indicator {
  font-size: 13px;
  color: #666;
  margin: 0 10px;
}

/* Toggle button to show the popup */
.offer-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, background-color 0.3s;
  display: none;
}

.offer-toggle.active {
  display: flex;
}

.offer-toggle:hover {
  background-color: #b71c1c;
  transform: scale(1.05);
}

.offer-toggle i {
  font-size: 20px;
}

/* Responsive styles */
@media (max-width: 576px) {
  .offer-popup {
    width: 280px;
    bottom: 15px;
    left: 15px;
  }
  
  .offer-text {
    font-size: 13px;
  }
  
  .avail-button {
    padding: 6px 15px;
    font-size: 13px;
  }
}