@keyframes bottomPopupFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes bottomPopupScaleIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes bottomPopupSlideUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

div.bottom-popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

@media only screen and (max-width: 767px) {
  div.bottom-popup {
    align-items: flex-end;
  }
}

div.bottom-popup div.backdrop {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: bottomPopupFadeIn 0.2s ease-out;
}

div.bottom-popup div.container {
  position: relative;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
}

@media only screen and (min-width: 768px) {
  div.bottom-popup div.container {
    width: 600px;
    animation: bottomPopupScaleIn 0.25s ease-out;
  }
}

@media only screen and (max-width: 767px) {
  div.bottom-popup div.container {
    margin: 0 12px 12px;
    width: calc(100% - 24px);
    max-width: 600px;
    animation: bottomPopupSlideUp 0.25s ease-out;
  }
}

div.bottom-popup div.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

div.bottom-popup div.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.3s ease;
}

div.bottom-popup div.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

div.bottom-popup div.carousel-slide a {
  display: block;
  text-decoration: none;
}

div.bottom-popup div.carousel-slide img.ad-image {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  max-height: 450px;
  background-color: #f8f8f8;
}

@media only screen and (max-width: 767px) {
  div.bottom-popup div.carousel-slide img.ad-image {
    max-width: 100%;
    max-height: none;
  }
}

div.bottom-popup div.indicators {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  pointer-events: none;
}

div.bottom-popup span.dot {
  display: block;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.4);
  transition: background-color 0.2s ease;
}

div.bottom-popup span.dot.active {
  background-color: #fff;
}

div.bottom-popup div.buttons {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  gap: 8px;
  padding: 12px;
  width: 100%;
  background-color: #fff;
}

@media only screen and (max-width: 767px) {
  div.bottom-popup div.buttons {
    padding: 8px 12px;
  }
}

div.bottom-popup div.buttons button {
  padding: 0;
  border: none;
  line-height: 20px;
  font-size: 14px;
  background: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

div.bottom-popup div.buttons button:hover {
  opacity: 0.8;
}

div.bottom-popup div.buttons button:active {
  opacity: 0.6;
}

div.bottom-popup div.buttons button.hide-forever {
  flex: 1;
  color: #737373;
  text-align: left;
}

div.bottom-popup div.buttons button.close {
  color: #000;
  font-weight: bold;
}
