/* Overlay Styles */
.overlay-container {
  position: fixed;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.overlay-container.show {
  display: flex;
  opacity: 1;
}

.overlay-banner {
  background: #172b22;
  padding: 31px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 100vw;
  width: 100%;
  height: 143px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  animation: slideInFromBottom 0.5s ease-out;
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.overlay-content {
  display: flex;
  align-items: start;
}

.overlay-icon {
  width: 37.375px;
  height: 37.375px;
  flex-shrink: 0;
  aspect-ratio: 37.38/37.38;
}

.overlay-text {
  color: white;
  font-family: "Montserrat", sans-serif;
}

.overlay-discount {
  color: #fff;
  font-family: Inter;
  font-size: 36px;
  font-style: normal;
  font-weight: 500;
  line-height: 39px;
}

.overlay-discount span {
  font-weight: 700;
  font-size: 39px;
}

.overlay-timer-text {
  color: #fff;
  font-family: Inter;
  font-size: 39px;
  font-style: normal;
  font-weight: 500;
  line-height: 39px;
}

.overlay-timer {
  font-weight: 700;
  color: #f1b904;
  display: inline-block;
  width: 105px;
}

.overlay-button {
  width: 412.524px;
  height: 87.697px;
  flex-shrink: 0;
}

.overlay-button:hover {
  transform: scale(1.02);
}

.overlay-button:active {
  transform: scale(1);
}

/* Mobile Responsive */
@media (max-width: 1280.98px) {
  .overlay-banner {
    height: auto;
    padding: 15px 20px;
    text-align: center;
    gap: 10px;
  }
  .overlay-discount {
    font-size: 26px;
    line-height: 30px;
  }
  .overlay-discount span {
    font-size: 30px;
    line-height: 28px;
  }
  .overlay-icon {
    width: 28.375px;
}
  .overlay-timer-text {
    font-size: 26px;
    line-height: 28px;
  }

  .overlay-timer {
    font-size: 26px;
    line-height: 28px;
      width: 70px;
  }
  .overlay-button {
    width: 350px;
    height: 75px;
    flex-shrink: 0;
    padding: 0;
    max-width: 350px;
  }
  .overlay-button img {
    width: 350px;
    height: 75px;
    flex-shrink: 0;
  }
}

@media (max-width: 991.98px) {
  .overlay-banner {
    max-width: 100%;
    width: 100%;
    height: 143px;
    padding: 15px 20px;
    text-align: center;
    gap: 10px;
  }

  .overlay-content {
    width: max-content;
    justify-content: center;
  }

  .overlay-discount {
    font-size: 20px;
    line-height: 28px;
  }
  .overlay-discount span {
    font-size: 20px;
    line-height: 28px;
  }

  .overlay-timer-text {
    font-size: 20px;
    line-height: 28px;
  }

  .overlay-timer {
    font-size: 18px;
    line-height: 28px;
    width: 48px;
  }

  .overlay-button {
    padding: 0;
    font-size: 14px;
    width: 100%;
    max-width: 250px;
    height: 62.237px;
    flex-shrink: 0;
  }
  .overlay-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}
@media (max-width: 767.98px) {
  .overlay-banner {
    gap: 0px;
}
  .overlay-banner {
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .overlay-discount {
    font-size: 22px;
    line-height: 22px;
}
.overlay-discount span {
  font-size: 25px;
  line-height: 28px;
}
.overlay-timer-text {
  font-size: 22px;
  line-height: 28px;
}
.overlay-timer {
  width: 55px;
}
.overlay-button {
  max-width: 270px;
  height: 59.237px;
}
}

@media (max-width: 480px) {
  .overlay-banner {
    padding: 12px 15px;
    height: auto;
    min-height: 143px;
    gap: 5px;
  }
  .overlay-content {
    display: flex;
    justify-content: center;
  }

  .overlay-icon {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
  }

  .overlay-discount {
    font-size: 18px;
    line-height: 28px;
  }
  .overlay-discount span {
    font-size: 20px;
  }

  .overlay-timer-text {
    font-size: 18px;
    line-height: 25px;
  }

  .overlay-timer {
    font-size: 18px;
    width: 48px;
  }

  .overlay-button {
    width: 292.759px;
    height: 62.237px;
    flex-shrink: 0;
    padding: 0;
    max-width: 292.759px;
  }
  .overlay-button img {
    width: 292.759px;
    height: 62.237px;
    flex-shrink: 0;
  }
}

@media (max-width: 360px) {
  .overlay-discount {
    font-size: 16px;
    line-height: 18px;
  }
  .overlay-discount span {
    font-size: 18px;
  }
  .overlay-timer-text {
    font-size: 16px;
    line-height: 18px;
  }

  .overlay-button img {
    height: 56.237px;
  }
}

/* Animation for timer countdown */
.timer-pulse {
  animation: pulse 1s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Hide overlay when timer reaches zero */
.overlay-container.hide {
  opacity: 0;
  pointer-events: none;
}

.overlay-container.hide .overlay-banner {
  animation: slideOutToBottom 0.5s ease-in;
}

@keyframes slideOutToBottom {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100px);
    opacity: 0;
  }
}
