/* ============================================================
   May Cash — Launch popup
   ============================================================ */
.mcpop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s 0.25s;
}
.mcpop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}
.mcpop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
/* Image-only panel: the image IS the panel — no body / no white area. */
.mcpop__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  background: transparent;
}
.mcpop.is-open .mcpop__panel {
  transform: translateY(0) scale(1);
}
.mcpop__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.mcpop__close:hover { background: #fff; transform: scale(1.05); }
.mcpop[dir="rtl"] .mcpop__close { right: auto; left: 12px; }

.mcpop__media {
  width: 100%;
  background: #000;
  display: block;
}
.mcpop__media img,
.mcpop__media video {
  width: 100%;
  height: auto;
  display: block;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  object-fit: cover;
}
.mcpop__media--video video { aspect-ratio: 16 / 9; }

/* Floating CTA button — sits on the image, centered horizontally,
   anchored to the bottom with a comfortable gap. */
.mcpop__btn {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  background: #D9171B;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(217, 23, 27, 0.6), 0 2px 8px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.mcpop__btn:hover {
  background: #9B1C1F;
  transform: translateX(-50%) translateY(-2px);
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .mcpop { padding: 12px; }
  .mcpop__panel { border-radius: 8px; }
  .mcpop__btn {
    bottom: 16px;
    padding: 12px 26px;
    font-size: 14.5px;
  }
}

/* No-scroll on body when popup is open */
body.mcpop-open { overflow: hidden; }
