/* ============ Popup / modal ============ */
.WW-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 41, 59, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.WW-modal-overlay.visible { display: flex; }
.WW-modal-overlay.open { opacity: 1; }
 
.WW-modal {
  background: var(--Cream);
  width: 100%;
  max-width: 360px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(30, 41, 59, 0.18);
  padding: 2rem 1.85rem 1.75rem;
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}
.WW-modal-overlay.open .WW-modal {
  transform: translateY(0) scale(1);
}
 
.WW-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink-pale);
  color: var(--pink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}
 
.WW-modal h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--DeepNavy);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
 
.WW-modal-body {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.65;
  margin: 0 0 1.5rem;
}
.WW-modal-body p { margin-bottom: 0.6rem; }
.WW-modal-body p:last-child { margin-bottom: 0; }
 
.WW-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
 
.WW-modal-btn-primary {
  background: var(--pink);
  color: var(--Cream);
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.WW-modal-btn-primary:hover { background: var(--Rose); }
 
.WW-modal-btn-outline {
  background: none;
  color: var(--ink-soft);
  border: none;
  padding: 0.4rem;
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.WW-modal-btn-outline:hover { color: var(--DeepNavy); }
 
.WW-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0.5;
  transition: opacity 0.15s, background 0.15s;
}
.WW-modal-close:hover { opacity: 1; background: var(--CoolGrey); }
 
.WW-modal-wrap { position: relative; }
 
@media (max-width: 480px) {
  .WW-modal { padding: 1.75rem 1.5rem 1.5rem; }
}