/* Ad popup */

body.ad-pop-open {
  overflow: hidden;
}

.ad-pop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.ad-pop--open {
  display: flex;
}

.ad-pop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
}

.ad-pop__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ad-pop__media {
  display: flex;
  justify-content: center;
}

.ad-pop__card {
  width: 400px;
  height: 602px;
  border-radius: 40px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}

.ad-pop__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: var(--color-neutral-200);
}

.ad-pop__close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-pop__close:hover {
  opacity: 0.85;
}

.ad-pop__close-icon {
  display: block;
}

@media (max-width: 768px) {
  .ad-pop {
    padding: 24px 16px;
  }

  .ad-pop__inner {
    gap: 36px;
  }

  .ad-pop__card {
    width: min(300px, calc(100vw - 32px));
    height: auto;
    aspect-ratio: 300 / 468;
    border-radius: 24px;
  }
}
