:root {
  --mm-popup-z: 99999;
}

html.mm-popup-open,
body.mm-popup-open {
  overflow: hidden !important;
}

#mm-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--mm-popup-z);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px;

  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease;
}

#mm-popup-backdrop.mm-popup-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#mm-popup-modal {
  width: min(92vw, 440px);
  border-radius: 22px;
  background: transparent;
  overflow: hidden;
  position: relative;
}

#mm-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;

  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
}

#mm-popup-body {
  padding: 0;
}

.mm-popup-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 22px;
}

/* REMOVE CTA AREA */
.mm-popup-actions,
#mm-popup-cta {
  display: none !important;
}

#mm-popup-footer {
  padding: 12px;
  background: rgba(0, 0, 0, 0.4);
}

#mm-popup-footer label {
  color: white;
  font-size: 14px;
}

#mm-popup-hide-today {
  width: 18px;
  height: 18px;
}
