/* Popups — PC + mobile responsive, stacked from top-left on PC, centered on mobile */

.popup-stack {
  position: fixed;
  top: 80px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  pointer-events: none;
}
.popup {
  pointer-events: auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(10,20,40,.18), 0 4px 12px rgba(10,20,40,.08);
  width: 420px;
  max-width: 90vw;
  overflow: hidden;
  animation: popupIn .25s ease-out;
  display: flex;
  flex-direction: column;
}
@keyframes popupIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.popup.closing { animation: popupOut .2s ease-in forwards; }
@keyframes popupOut {
  to { transform: translateY(20px); opacity: 0; }
}
.popup-body { flex: 1; }
.popup-body img {
  width: 100%; height: auto; display: block;
  object-fit: cover; object-position: center;
}
.popup-title {
  margin: 0; padding: 16px 20px 4px;
  font-size: 18px; font-weight: 600;
}
.popup-content {
  padding: 0 20px 12px;
  color: #444; font-size: 14px; line-height: 1.6;
}
.popup-cta {
  display: inline-block;
  margin: 0 20px 16px;
  padding: 8px 16px;
  background: var(--c-primary, #0b3d91);
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}
.popup-cta:hover { text-decoration: none; opacity: .9; }

.popup-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: #f6f8fb;
  border-top: 1px solid rgba(0,0,0,.05);
  font-size: 13px;
}
.popup-foot label {
  display: flex; align-items: center; gap: 6px;
  color: #555;
  cursor: pointer;
}
.popup-close {
  background: transparent; border: 0;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  border-radius: 4px;
  font-family: inherit;
}
.popup-close:hover { background: rgba(0,0,0,.06); }

/* When a popup closes, the next one in the stack remains visible (popup-stack uses flex,
   so removing an element naturally promotes the next. CSS handles smooth re-flow.) */
.popup-stack > .popup { transition: margin .25s ease, opacity .25s ease; }
