/**
 * Nasci Contact Popup - Pill trigger + card-wrapper positionering
 * Het card-design zelf staat in nasci-contact-popup.css (.nasci-contact-popup scope).
 * Dit bestand regelt alleen de fixed-positie pill en de open/dicht van de card.
 */

/* ===== PILL (always-visible trigger) ===== */
#nasci-cp-pill {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999998;
	display: none;
	align-items: center;
	gap: 12px;
	padding: 8px;
	background: #00181C;
	border: 1px solid rgba(144, 229, 9, 0.25);
	border-radius: 50px;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	font-family: 'Montserrat', sans-serif;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.25s ease;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}
#nasci-cp-pill * { box-sizing: border-box; }
#nasci-cp-pill.nasci-cp-show {
	opacity: 1;
	transform: translateY(0);
}
#nasci-cp-pill:hover {
	border-color: rgba(144, 229, 9, 0.5);
}

#nasci-cp-pill .nasci-cp-pill-avatar {
	position: relative;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	border: 2px solid rgba(144, 229, 9, 0.35);
	background: linear-gradient(135deg, #2a4a1a, #0f2d32);
	display: flex;
	align-items: center;
	justify-content: center;
}
#nasci-cp-pill .nasci-cp-pill-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
#nasci-cp-pill .nasci-cp-pill-avatar svg {
	width: 60%;
	height: 60%;
}
#nasci-cp-pill .nasci-cp-pill-dot {
	position: absolute;
	bottom: 1px;
	right: 1px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #90E509;
	border: 2px solid #00181C;
}
#nasci-cp-pill .nasci-cp-pill-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: left;
}
#nasci-cp-pill .nasci-cp-pill-label {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #90E509;
	line-height: 1;
}
#nasci-cp-pill .nasci-cp-pill-cta {
	font-size: 13px;
	font-weight: 700;
	color: #F5FBED;
	line-height: 1.1;
	white-space: nowrap;
}
#nasci-cp-pill .nasci-cp-pill-arrow {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #90E509;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
#nasci-cp-pill .nasci-cp-pill-arrow svg {
	width: 14px;
	height: 14px;
}

/* ===== CARD WRAPPER (fixed positie + open/dicht) ===== */
#nasci-cp-popup-wrap {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9999999;
	width: 320px;
	max-width: calc(100vw - 32px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(24px) scale(0.98);
	transition:
		opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
		visibility 0.4s;
}
#nasci-cp-popup-wrap.nasci-cp-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
	#nasci-cp-popup-wrap {
		left: auto;
		right: 16px;
		bottom: 16px;
		width: 320px;
		max-width: calc(100vw - 24px);
	}
	#nasci-cp-pill {
		bottom: 18px;
		right: 16px;
	}
}
