/* NM Contact Widget – lightweight, single animation (icons emerging) */

.nmcw {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 50px;
	height: 50px;
	z-index: 99990;
}

.nmcw * {
	box-sizing: border-box;
}

/* Toggle button (Brand/Primary) */
.nmcw__toggle {
	position: relative;
	z-index: 2;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #009193;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	-webkit-tap-highlight-color: transparent;
}

.nmcw__toggle svg,
.nmcw__item svg {
	display: block;
	pointer-events: none;
}

/* Icons stack, anchored above the toggle and out of flow
   so nothing moves when it is closed */
.nmcw__icons {
	position: absolute;
	left: 0;
	bottom: 66px; /* 50px toggle + 16px gap */
	width: 50px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	z-index: 1;
}

/* Each icon starts hidden, tucked behind the toggle */
.nmcw__item {
	width: 50px;
	height: 50px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: var(--nmcw-bg, #009193);
	opacity: 0;
	pointer-events: none;
	transform: translateY(calc(var(--i, 1) * 66px)) scale(0.35);
	transition:
		transform 0.28s cubic-bezier(0.34, 1.26, 0.64, 1),
		opacity 0.18s ease;
	transition-delay: calc((var(--nmcw-n, 1) - var(--i, 1)) * 35ms); /* collapse: top first */
}

/* Open: icons slide up into place, bottom-most first */
.nmcw.is-open .nmcw__item {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
	transition-delay: calc((var(--i, 1) - 1) * 45ms);
}

/* Smaller offset on phones */
@media (max-width: 600px) {
	.nmcw {
		right: 16px;
		bottom: 16px;
	}
}

/* Respect reduced-motion: keep it functional, just fade */
@media (prefers-reduced-motion: reduce) {
	.nmcw__item,
	.nmcw.is-open .nmcw__item {
		transform: none;
		transition: opacity 0.15s linear;
		transition-delay: 0s;
	}
}
