:root{
  --wg-aps-radius: 16px;
  --wg-aps-shadow: 0 20px 55px rgba(0,0,0,.18);
  --wg-aps-z: 999999;

  /* Woongilde-look: rustig, donker/neutraal (geen blauw) */
  --wg-aps-accent: #111111;
  --wg-aps-accent-hover: #1a1a1a;
  --wg-aps-accent-contrast: #ffffff;
}

/* Extra hard verbergen (sommige thema's overrulen [hidden]) */
.wg-aps-overlay[hidden],
.wg-aps-modal[hidden]{
  display: none !important;
}

/* Disable scroll when modal open */
.wg-aps-noscroll{ overflow: hidden !important; }

/* Kleine floating button rechts-onder */
.wg-aps-btn{
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--wg-aps-z);
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  background: var(--wg-aps-accent);
  color: var(--wg-aps-accent-contrast);
  letter-spacing: .2px;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.wg-aps-btn:hover{ transform: translateY(-1px); background: var(--wg-aps-accent-hover); }
.wg-aps-btn:active{ transform: translateY(0px); filter: brightness(.98); }
.wg-aps-btn:focus{ outline: 3px solid rgba(0,0,0,.18); outline-offset: 3px; }

/* Overlay */
.wg-aps-overlay{
  position: fixed;
  inset: 0;
  z-index: calc(var(--wg-aps-z) - 1);
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(2px);
}

/* Modal container */
.wg-aps-modal{
  position: fixed;
  inset: 0;
  z-index: var(--wg-aps-z);
  display: grid;
  place-items: center;
  padding: 18px;
  font-family: inherit;
}

/* Card */
.wg-aps-card{
  width: min(540px, 100%);
  background: #fff;
  border-radius: var(--wg-aps-radius);
  box-shadow: var(--wg-aps-shadow);
  padding: 22px 20px 18px;
  position: relative;
}

/* Close (kruisje) */
.wg-aps-close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 40px;
  color: #111;
}
.wg-aps-close:hover{ background: rgba(0,0,0,.06); }
.wg-aps-close:focus{ outline: 3px solid rgba(0,0,0,.18); outline-offset: 2px; }

.wg-aps-title{
  margin: 0 44px 10px 0;
  font-size: 20px;
  line-height: 1.25;
  color: #111;
  font-family: inherit;
}

.wg-aps-text{
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  font-family: inherit;
}

.wg-aps-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
  background: var(--wg-aps-accent);
  color: var(--wg-aps-accent-contrast);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
  transition: transform .15s ease, background .15s ease;
  font-family: inherit;
}
.wg-aps-cta:hover{ transform: translateY(-1px); background: var(--wg-aps-accent-hover); }
.wg-aps-cta:active{ transform: translateY(0px); }

.wg-aps-small{
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  font-family: inherit;
}

/* Optioneel: als je ooit de kleur wilt overrulen via custom CSS:
   :root{ --wg-aps-accent:#000; --wg-aps-accent-hover:#111; }
*/
