/* Site popup (Vex) — hybrid body + structured CTAs */
/* Cap modal size; themes often stretch .vex-content to near full viewport */
.vex:has(.wayapp-popup-dialog) .vex-content {
  box-sizing: border-box;
  max-width: min(520px, calc(100vw - 32px)) !important;
  width: 100% !important;
  max-height: min(85vh, 720px) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.wayapp-popup-dialog {
  text-align: left;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.wayapp-popup-title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.wayapp-popup-body {
  margin-bottom: 16px;
  line-height: 1.5;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.wayapp-popup-body a { word-break: break-word; }
.wayapp-popup-body img,
.wayapp-popup-body video { max-width: 100%; height: auto; }
.wayapp-popup-body video { display: block; }
.wayapp-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
  flex-shrink: 0;
}
.wayapp-popup-cta {
  display: inline-block; padding: 8px 18px; border-radius: 6px; font-weight: 600; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 0.95rem; font-family: inherit;
}
.wayapp-popup-cta--solid { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.wayapp-popup-cta--outline { background: transparent; color: #0d6efd; border-color: #0d6efd; }
.wayapp-popup-cta--ghost { background: transparent; color: #333; border-color: transparent; }
