/* Corner Popup — slide-in/out, no overlay */
#cornerPopup {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 420px;
  width: calc(100vw - 2rem);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  /* Start: net buiten beeld en subtiel verkleind */
  opacity: 0;
  transform: translate(24px, 24px) scale(0.98);
  pointer-events: none;
  transition:
    opacity .28s ease,
    transform .28s ease;
  z-index: 2147483647;
	text-align:center;
}

/* Slide-in zichtbaar */
#cornerPopup.cp-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  pointer-events: auto;
}

/* Slide-out bij sluiten */
#cornerPopup.cp-exiting {
  opacity: 0;
  transform: translate(24px, 24px) scale(0.98);
  pointer-events: none;
}

/* Header */
#cornerPopup .cp-header {
  position: relative;
  padding: 30px 44px 0 30px;
}

#cornerPopup .cp-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

/* Close */
#cornerPopup .cp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* Body */
#cornerPopup .cp-body {
  padding: 0px 30px 30px 30px;
}

/* Primaire knop (zwart) */
#cornerPopup .cp-primary-btn {
  display: inline-block;
  padding: 10px 34px;
  border: 0;
  border-radius: 10px;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
	margin-top:15px;
}

/* Form wrap: smooth reveal na klik op "Inschrijven" */
#cornerPopup #cp-form-wrap[hidden] {
  display: block !important;       /* behoud flow voor animatie */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#cornerPopup #cp-form-wrap.cp-reveal {
  max-height: 1000px;              /* genoeg voor het Mailchimp-formulier */
  opacity: 1;
  transition: max-height .35s ease, opacity .25s ease;
  margin-top: 12px;
}

/* Mailchimp stylesheet kan breed zijn; beperk headings iets */
#cornerPopup #mc_embed_signup h2 {
  font-size: 16px;
  margin: 0 0 8px;
}

/* Toegankelijkheid: reduce motion */
@media (prefers-reduced-motion: reduce) {
  #cornerPopup {
    transition: none;
    transform: none !important;
  }
  #cornerPopup #cp-form-wrap.cp-reveal {
    transition: none;
  }
}

@media (min-width: 480px) {
  #cornerPopup { width: 420px; }
}
