/* NP Cloud Membership Tools: floating AI chat (1.3.0). Colours follow Astra's palette with nonprofit-pricing.com fallbacks. */
.npcm-fc { --npcm-fc-bg: var(--ast-global-color-0, #046bd2); --npcm-fc-hover: var(--ast-global-color-1, #045cb4); --npcm-fc-dark: var(--ast-global-color-2, #1e293b); position: fixed; right: 20px; bottom: 20px; z-index: 2147483000; font-family: inherit; line-height: 1.4; }
.npcm-fc *, .npcm-fc *::before, .npcm-fc *::after { box-sizing: border-box; }
.npcm-fc [hidden] { display: none !important; }
.npcm-fc .npcm-fc-launch { display: inline-flex; align-items: center; gap: 10px; height: 56px; min-width: 56px; margin: 0; padding: 0 22px 0 16px; border: 0; border-radius: 999px; background: var(--npcm-fc-bg); color: #fff; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(15, 23, 42, .22), 0 2px 6px rgba(15, 23, 42, .12); transition: background-color .15s, transform .15s, box-shadow .15s; }
.npcm-fc .npcm-fc-launch:hover { background: var(--npcm-fc-hover); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(15, 23, 42, .26), 0 2px 6px rgba(15, 23, 42, .12); }
.npcm-fc .npcm-fc-launch:focus-visible, .npcm-fc .npcm-fc-close:focus-visible { outline: 3px solid #0b3d91; outline-offset: 3px; }
.npcm-fc .npcm-fc-icon { flex: 0 0 auto; width: 24px; height: 24px; color: #fff; }
.npcm-fc .npcm-fc-label { white-space: nowrap; color: #fff; }
.npcm-fc .npcm-fc-panel { position: absolute; right: 0; bottom: 72px; width: 380px; height: 520px; max-width: calc(100vw - 40px); max-height: calc(100vh - 112px); display: flex; flex-direction: column; background: #fff; border: 1px solid #d1d5db; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(15, 23, 42, .25), 0 4px 12px rgba(15, 23, 42, .1); outline: none; }
.npcm-fc .npcm-fc-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 10px 16px; background: var(--npcm-fc-bg); color: #fff; }
.npcm-fc .npcm-fc-title { font-weight: 600; font-size: 1.05rem; color: #fff; }
.npcm-fc .npcm-fc-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-width: 40px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; box-shadow: none; }
.npcm-fc .npcm-fc-close:hover { background: rgba(255, 255, 255, .16); }
.npcm-fc .npcm-fc-body { flex: 1 1 auto; min-height: 0; background: #f0f5fa; }
.npcm-fc .npcm-fc-frame { display: block; width: 100%; height: 100%; border: none; }
.npcm-fc .npcm-fc-foot { flex: 0 0 auto; margin: 0; padding: 6px 12px; font-size: .75rem; line-height: 1.35; color: #475569; background: #fff; border-top: 1px solid #e5e7eb; }

/* Keep Astra's scroll-to-top button clear of the launcher. */
.npcm-fc-on #ast-scroll-top { bottom: 92px !important; right: 26px !important; }

@media (max-width: 599px) {
	.npcm-fc { right: 16px; bottom: 16px; }
	.npcm-fc .npcm-fc-launch { width: 56px; padding: 0; justify-content: center; }
	.npcm-fc .npcm-fc-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
	/* Near full screen on phones. */
	.npcm-fc .npcm-fc-panel { position: fixed; inset: 8px; width: auto; height: auto; max-width: none; max-height: none; border-radius: 12px; }
	.npcm-fc.is-open .npcm-fc-launch { display: none; }
	.npcm-fc-on #ast-scroll-top { bottom: 84px !important; right: 22px !important; }
	.npcm-fc-open #ast-scroll-top { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	.npcm-fc .npcm-fc-launch { transition: none; }
	.npcm-fc .npcm-fc-launch:hover { transform: none; }
}
@media print { .npcm-fc { display: none !important; } }
