/* InnoPet first-visit refill promo modal (1:1 image) */
.innopet-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: grid;
  place-items: center;
  padding: 16px;
}

.innopet-promo-modal[hidden] {
  display: none !important;
}

.innopet-promo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
}

.innopet-promo-modal__dialog {
  position: relative;
  z-index: 1;
  width: 80vw;
  max-width: 80vw;
  aspect-ratio: 1 / 1;
  max-height: min(80vw, 86vh);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
  animation: innopetPromoIn 0.32s ease-out;
  background: #fff;
}

@media (min-width: 641px) {
  .innopet-promo-modal__dialog {
    width: 50vw;
    max-width: 50vw;
    max-height: min(50vw, 86vh);
  }
}

@keyframes innopetPromoIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.innopet-promo-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.innopet-promo-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0b2b5a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.innopet-promo-modal__close:hover {
  background: #fff;
}

.innopet-promo-modal__close svg {
  display: block;
}

body.innopet-promo-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .innopet-promo-modal__dialog {
    animation: none;
  }
}
