/* NT 2026-09-29: floating contact widget (see inc/mod/nt-contact-widget.php). Rollback: remove file. */

.nt-cw {
	--nt-cw-bg: #166574;
	--nt-cw-bg-hover: #0f4c57;
	--nt-cw-fg: #1f1f1f;
	--nt-cw-size: 56px;
	--nt-cw-item: 48px;
	--nt-cw-gap: 12px;
	--nt-cw-right: 16px;
	--nt-cw-bottom: 16px;
	position: fixed;
	right: var(--nt-cw-right);
	bottom: calc(var(--nt-cw-bottom) + env(safe-area-inset-bottom, 0px));
	z-index: 998;
	width: var(--nt-cw-size);
	height: var(--nt-cw-size);
	font-family: inherit;
	line-height: 1;
	transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.nt-cw.is-dodging:not(.is-open) {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.nt-cw-svg {
	display: block;
	width: 24px;
	height: 24px;
}

/* Main button */
.nt-cw .nt-cw-toggle {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--nt-cw-size);
	height: var(--nt-cw-size);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--nt-cw-bg);
	background-image: none;
	color: var(--nt-cw-fg);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.nt-cw .nt-cw-toggle::before,
.nt-cw .nt-cw-toggle::after {
	display: none;
}
.nt-cw .nt-cw-toggle:hover,
.nt-cw .nt-cw-toggle:focus-visible {
	background: var(--nt-cw-bg-hover);
	color: var(--nt-cw-fg);
}
.nt-cw .nt-cw-toggle:focus-visible,
.nt-cw .nt-cw-link:focus-visible .nt-cw-icon {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.nt-cw .nt-cw-toggle-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity .2s ease, transform .25s ease;
}
.nt-cw .nt-cw-toggle-icon .nt-cw-svg {
	width: 26px;
	height: 26px;
}
.nt-cw .nt-cw-toggle-icon--close {
	opacity: 0;
	transform: rotate(-90deg);
}
.nt-cw.is-open .nt-cw-toggle-icon--open {
	opacity: 0;
	transform: rotate(90deg);
}
.nt-cw.is-open .nt-cw-toggle-icon--close {
	opacity: 1;
	transform: none;
}

/* Channel list */
.nt-cw .nt-cw-list {
	position: absolute;
	right: calc((var(--nt-cw-size) - var(--nt-cw-item)) / 2);
	bottom: calc(100% + var(--nt-cw-gap));
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--nt-cw-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	visibility: hidden;
	pointer-events: none;
}
.nt-cw.is-open .nt-cw-list {
	visibility: visible;
	pointer-events: auto;
}
.nt-cw .nt-cw-item {
	margin: 0;
	padding: 0;
	list-style: none;
	opacity: 0;
	transform: translateY(14px) scale(.9);
	transition: opacity .2s ease, transform .2s ease;
	transition-delay: 0s;
}
.nt-cw .nt-cw-item::before,
.nt-cw .nt-cw-item::marker {
	display: none;
	content: none;
}
.nt-cw.is-open .nt-cw-item {
	opacity: 1;
	transform: none;
	transition-delay: calc(var(--nt-cw-i, 1) * 35ms);
}

.nt-cw .nt-cw-link {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--nt-cw-fg);
	text-decoration: none;
	background: none;
	box-shadow: none;
}
.nt-cw .nt-cw-link::before,
.nt-cw .nt-cw-link::after {
	display: none;
}
.nt-cw .nt-cw-label {
	padding: 7px 11px;
	border-radius: 4px;
	background: #1f1f1f;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.nt-cw .nt-cw-icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: var(--nt-cw-item);
	height: var(--nt-cw-item);
	border-radius: 50%;
	background: var(--nt-cw-bg);
	color: var(--nt-cw-fg);
	box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
	transition: background-color .2s ease;
}
.nt-cw .nt-cw-link:hover .nt-cw-icon,
.nt-cw .nt-cw-link:focus-visible .nt-cw-icon {
	background: var(--nt-cw-bg-hover);
}
.nt-cw .nt-cw-link:hover .nt-cw-label {
	background: #000;
}

/* Theme "scroll to top" button: hidden on phones, lifted above the widget on desktop */
@media only screen and (max-width: 767px) {
	body .body-container .footer-scroll-top {
		display: none !important;
	}
}

@media only screen and (min-width: 768px) {
	.nt-cw {
		--nt-cw-size: 60px;
		--nt-cw-item: 50px;
		--nt-cw-right: 29px;
		--nt-cw-bottom: 27px;
	}
	body .body-container .footer-scroll-top.show {
		bottom: 101px;
	}
	html.nt-cw-is-open body .body-container .footer-scroll-top {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

@media only screen and (min-width: 1280px) {
	.nt-cw {
		--nt-cw-right: 35px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nt-cw,
	.nt-cw .nt-cw-item,
	.nt-cw .nt-cw-toggle,
	.nt-cw .nt-cw-toggle-icon {
		transition: none;
	}
}

@media print {
	.nt-cw {
		display: none !important;
	}
}
