.nsp-ai-assistant {
	--nsp-primary: var(--nsp-ai-brand, #0f2f57);
	--nsp-primary-dark: #09213f;
	--nsp-accent: #13a38b;
	--nsp-bg: #f6f8fb;
	--nsp-card: #ffffff;
	--nsp-border: #e3e8ef;
	--nsp-text: #1f2937;
	--nsp-muted: #6b7280;
	--nsp-success: #16a34a;
	--nsp-error: #dc2626;
	--nsp-radius: 16px;
	--nsp-gold: #c9a75d;
	--nsp-shadow: 0 22px 60px rgba(15, 47, 87, .18);
	color: var(--nsp-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.nsp-ai-assistant * {
	box-sizing: border-box;
}

.nsp-ai-assistant [hidden] {
	display: none !important;
}

.nsp-ai-assistant .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.nsp-ai-assistant-floating {
	bottom: 24px;
	position: fixed;
	z-index: 99999;
}

.nsp-ai-assistant-floating.nsp-ai-right {
	right: 24px;
}

.nsp-ai-assistant-floating.nsp-ai-left {
	left: 24px;
}

.nsp-ai-toggle {
	align-items: center;
	background: linear-gradient(135deg, #071b34, var(--nsp-primary) 58%, #0c4d58);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
	box-shadow: 0 18px 46px rgba(15, 47, 87, .28), inset 0 1px 0 rgba(255, 255, 255, .14);
	color: #fff;
	cursor: pointer;
	display: inline-flex !important;
	flex-direction: row !important;
	font: inherit;
	font-weight: 800;
	gap: 11px;
	justify-content: flex-start !important;
	line-height: 1.1;
	max-width: min(292px, calc(100vw - 32px));
	min-height: 58px;
	padding: 8px 17px 8px 8px;
	position: relative;
	text-align: left !important;
	text-transform: none;
	transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
	white-space: nowrap;
	width: auto;
}

.nsp-ai-assistant.is-receptionist-quiet .nsp-ai-toggle-pulse {
	animation: none;
	opacity: .55;
}

.nsp-ai-receptionist {
	background: linear-gradient(180deg, #ffffff, #f8fbfd);
	border: 1px solid rgba(203, 213, 225, .95);
	border-radius: 20px;
	bottom: 74px;
	box-shadow: 0 18px 48px rgba(15, 47, 87, .18);
	color: var(--nsp-text);
	max-width: min(340px, calc(100vw - 32px));
	padding: 13px;
	position: absolute;
	right: 0;
	width: 340px;
	animation: nsp-ai-receptionist-in .22s ease-out;
}

.nsp-ai-assistant-floating.nsp-ai-left .nsp-ai-receptionist {
	left: 0;
	right: auto;
}

@keyframes nsp-ai-receptionist-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.nsp-ai-receptionist::after {
	border: 9px solid transparent;
	border-top-color: #ffffff;
	bottom: -18px;
	content: "";
	position: absolute;
	right: 34px;
}

.nsp-ai-assistant-floating.nsp-ai-left .nsp-ai-receptionist::after {
	left: 34px;
	right: auto;
}

.nsp-ai-receptionist-card {
	align-items: flex-start;
	display: flex;
	gap: 10px;
	padding-right: 20px;
}

.nsp-ai-receptionist-avatar {
	align-items: center;
	background: linear-gradient(135deg, var(--nsp-primary), var(--nsp-accent));
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	flex: 0 0 36px;
	font-size: 10px;
	font-weight: 900;
	height: 36px;
	justify-content: center;
	width: 36px;
}

.nsp-ai-receptionist p {
	color: #334155;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.45;
	margin: 0;
}

.nsp-ai-receptionist-close {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--nsp-muted);
	cursor: pointer;
	display: inline-flex;
	font-size: 18px;
	height: 28px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 8px;
	top: 8px;
	width: 28px;
}

.nsp-ai-receptionist-actions {
	display: grid;
	gap: 8px;
	grid-template-columns: 1fr auto;
	margin-top: 12px;
}

.nsp-ai-receptionist-actions button {
	border-radius: 999px;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 850;
	min-height: 36px;
	padding: 8px 12px;
}

.nsp-ai-receptionist-open {
	background: var(--nsp-primary);
	border: 1px solid var(--nsp-primary);
	color: #fff;
}

.nsp-ai-receptionist-later {
	background: #fff;
	border: 1px solid #d7e1ec;
	color: var(--nsp-primary);
}

.nsp-ai-receptionist-actions button:focus-visible,
.nsp-ai-receptionist-close:focus-visible {
	outline: 3px solid rgba(19, 163, 139, .35);
	outline-offset: 2px;
}

.nsp-ai-toggle:hover {
	box-shadow: 0 22px 54px rgba(15, 47, 87, .34), inset 0 1px 0 rgba(255, 255, 255, .18);
	filter: saturate(1.04);
	transform: translateY(-2px);
}

.nsp-ai-toggle:focus-visible,
.nsp-ai-close:focus-visible,
.nsp-ai-new:focus-visible,
.nsp-ai-lead-form button:focus-visible,
.nsp-ai-chat-form button:focus-visible,
.nsp-ai-message-ctas a:focus-visible {
	outline: 3px solid rgba(19, 163, 139, .35);
	outline-offset: 2px;
}

.nsp-ai-toggle-icon,
.nsp-ai-avatar {
	align-items: center;
	background: #fff;
	border-radius: 999px;
	color: var(--nsp-primary);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 900;
	height: 38px;
	justify-content: center;
	letter-spacing: 0;
	width: 38px;
}

.nsp-ai-toggle-icon {
	box-shadow: 0 9px 20px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .88);
}

.nsp-ai-toggle-icon svg {
	fill: none;
	height: 18px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 18px;
}

.nsp-ai-toggle-copy {
	align-items: flex-start;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	text-align: left;
}

.nsp-ai-toggle-copy strong,
.nsp-ai-toggle-copy small {
	color: inherit;
	display: block;
	line-height: 1.15;
	margin: 0;
	max-width: 190px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
}

.nsp-ai-toggle-copy strong {
	font-size: 13px;
	letter-spacing: 0;
}

.nsp-ai-toggle-copy small {
	color: rgba(255, 255, 255, .72);
	font-size: 10.5px;
	font-weight: 700;
}

.nsp-ai-toggle-pulse {
	background: #22c55e;
	border: 2px solid #fff;
	border-radius: 999px;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
	animation: nsp-ai-pulse 2.4s infinite;
	display: block;
	flex: 0 0 auto;
	height: 11px;
	left: 37px;
	margin: 0;
	min-height: 0;
	position: absolute;
	top: 8px;
	width: 11px;
}

@keyframes nsp-ai-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, .5);
	}
	70% {
		box-shadow: 0 0 0 9px rgba(34, 197, 94, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
	}
}

.nsp-ai-panel {
	background: var(--nsp-card);
	border: 1px solid rgba(203, 213, 225, .9);
	border-radius: 24px;
	box-shadow: var(--nsp-shadow);
	display: flex;
	flex-direction: column;
	max-height: min(720px, calc(100vh - 96px));
	max-height: min(720px, calc(100dvh - 96px));
	overflow: hidden;
	width: min(460px, calc(100vw - 32px));
}

.nsp-ai-assistant-floating .nsp-ai-panel:not([hidden]) {
	animation: nsp-ai-panel-in .18s ease-out;
}

@keyframes nsp-ai-panel-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(.985);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.nsp-ai-assistant-floating .nsp-ai-panel {
	bottom: 66px;
	position: absolute;
	right: 0;
}

.nsp-ai-assistant-floating.is-open .nsp-ai-toggle {
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px) scale(.98);
	visibility: hidden;
}

.nsp-ai-assistant-floating.is-open .nsp-ai-panel {
	bottom: 0;
	height: min(760px, calc(100vh - 48px));
	height: min(760px, calc(100dvh - 48px));
	max-height: min(760px, calc(100vh - 48px));
	max-height: min(760px, calc(100dvh - 48px));
}

.nsp-ai-assistant-floating.nsp-ai-left .nsp-ai-panel {
	left: 0;
	right: auto;
}

.nsp-ai-assistant-inline .nsp-ai-panel {
	box-shadow: 0 10px 30px rgba(15, 47, 87, .08);
	max-width: 760px;
	width: 100%;
}

.nsp-ai-header {
	align-items: center;
	background: linear-gradient(145deg, #071b34, var(--nsp-primary) 62%, #0a4955);
	color: #fff;
	display: grid;
	gap: 12px;
	grid-template-columns: auto 1fr auto auto;
	overflow: hidden;
	padding: 18px;
	position: relative;
}

.nsp-ai-header::after {
	background: linear-gradient(120deg, transparent 0%, rgba(201, 167, 93, .18) 42%, transparent 72%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.nsp-ai-header > * {
	position: relative;
	z-index: 1;
}

.nsp-ai-header .nsp-ai-avatar {
	background: linear-gradient(135deg, #fff, #f4ecd6);
	box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
	color: var(--nsp-primary);
}

.nsp-ai-title strong,
.nsp-ai-title span {
	display: block;
}

.nsp-ai-title {
	min-width: 0;
}

.nsp-ai-title strong {
	color: #fff;
	font-size: 16px;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.nsp-ai-title span {
	color: rgba(255, 255, 255, .74);
	font-size: 12px;
	margin-top: 3px;
	overflow-wrap: anywhere;
}

.nsp-ai-status-dot {
	align-items: center;
	background: rgba(22, 163, 74, .16);
	border: 1px solid rgba(187, 247, 208, .42);
	border-radius: 999px;
	color: #dcfce7;
	display: inline-flex;
	font-size: 11px;
	font-weight: 800;
	gap: 6px;
	padding: 5px 8px;
	white-space: nowrap;
}

.nsp-ai-status-dot span {
	background: #22c55e;
	border-radius: 50%;
	height: 7px;
	width: 7px;
}

.nsp-ai-close {
	align-items: center;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 10px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 22px;
	height: 34px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 34px;
	transition: background .2s ease, transform .2s ease;
}

.nsp-ai-close:hover {
	background: rgba(255, 255, 255, .2);
	transform: translateY(-1px);
}

.nsp-ai-body {
	background: linear-gradient(180deg, #f8fafc, #f3f6fa);
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	overflow-y: auto;
	padding: 18px;
}

.nsp-ai-assistant.is-awaiting-response .nsp-ai-chat-form {
	box-shadow: 0 -14px 34px rgba(15, 47, 87, .08);
}

.nsp-ai-assistant.is-submitting-lead .nsp-ai-lead-form,
.nsp-ai-assistant.is-awaiting-response .nsp-ai-composer {
	border-color: rgba(19, 163, 139, .38);
}

.nsp-ai-intro {
	background: linear-gradient(180deg, #fff, #fbfcfe);
	border: 1px solid rgba(226, 232, 240, .95);
	border-radius: 18px;
	box-shadow: 0 12px 28px rgba(15, 47, 87, .07);
	margin-bottom: 12px;
	padding: 16px;
}

.nsp-ai-intro strong {
	color: var(--nsp-primary);
	display: block;
	font-size: 16px;
	margin-bottom: 5px;
}

.nsp-ai-intro p {
	margin: 0;
}

.nsp-ai-trust-strip {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 0 12px;
}

.nsp-ai-trust-strip span {
	background: rgba(255, 255, 255, .82);
	border: 1px solid rgba(203, 213, 225, .86);
	border-radius: 999px;
	color: var(--nsp-primary);
	font-size: 11px;
	font-weight: 900;
	min-height: 30px;
	padding: 7px 8px;
	text-align: center;
	white-space: nowrap;
}

.nsp-ai-stepper {
	background: rgba(255, 255, 255, .8);
	border: 1px solid rgba(226, 232, 240, .95);
	border-radius: 16px;
	counter-reset: nsp-step;
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0 0 12px;
	padding: 8px;
}

.nsp-ai-stepper li {
	align-items: center;
	color: var(--nsp-muted);
	display: flex;
	font-size: 11px;
	font-weight: 800;
	gap: 6px;
	line-height: 1.25;
	min-width: 0;
}

.nsp-ai-stepper li::before {
	align-items: center;
	background: #e8eef5;
	border-radius: 999px;
	color: var(--nsp-primary);
	content: counter(nsp-step);
	counter-increment: nsp-step;
	display: inline-flex;
	flex: 0 0 22px;
	font-size: 11px;
	font-weight: 900;
	height: 22px;
	justify-content: center;
	width: 22px;
}

.nsp-ai-stepper li.is-active {
	color: var(--nsp-primary);
}

.nsp-ai-stepper li.is-active::before {
	background: linear-gradient(135deg, var(--nsp-primary), var(--nsp-accent));
	color: #fff;
}

.nsp-ai-lead-form {
	background: linear-gradient(180deg, #fff, #fbfcfe);
	border: 1px solid rgba(226, 232, 240, .95);
	border-radius: 18px;
	box-shadow: 0 14px 34px rgba(15, 47, 87, .08);
	padding: 16px;
}

.nsp-ai-field-wrap {
	margin-top: 12px;
	position: relative;
}

.nsp-ai-field-wrap:first-child {
	margin-top: 0;
}

.nsp-ai-lead-form label {
	color: #334155;
	display: block;
	font-size: 13px;
	font-weight: 800;
	margin: 12px 0 6px;
}

.nsp-ai-field-wrap label {
	margin-top: 0;
}

.nsp-ai-field-wrap.is-filled label {
	color: var(--nsp-primary);
}

.nsp-ai-lead-form input,
.nsp-ai-chat-form textarea {
	background: #fff;
	border: 1px solid #cbd7e4;
	border-radius: 14px;
	color: var(--nsp-text);
	font: inherit;
	line-height: 1.45;
	outline: none;
	padding: 12px 13px;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
	width: 100%;
}

.nsp-ai-lead-form input:focus,
.nsp-ai-chat-form textarea:focus {
	border-color: var(--nsp-primary);
	box-shadow: 0 0 0 4px rgba(15, 47, 87, .1);
}

.nsp-ai-lead-form input[aria-invalid="true"] {
	border-color: var(--nsp-error);
}

.nsp-ai-field-error {
	color: var(--nsp-error);
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-top: 5px;
}

.nsp-ai-field-error:not([hidden]) {
	background: #fff1f2;
	border: 1px solid #fecdd3;
	border-radius: 10px;
	margin-top: 7px;
	padding: 7px 9px;
}

.nsp-ai-hp {
	height: 0;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	top: auto;
	width: 1px;
}

.nsp-ai-consent {
	color: var(--nsp-muted);
	font-size: 12px;
	line-height: 1.45;
	margin: 13px 0;
}

.nsp-ai-form-assurance {
	color: var(--nsp-muted);
	font-size: 11px;
	line-height: 1.45;
	margin: 10px 0 0;
	text-align: center;
}

.nsp-ai-lead-form button,
.nsp-ai-chat-form button {
	align-items: center;
	background: linear-gradient(135deg, var(--nsp-primary), var(--nsp-primary-dark));
	border: 0;
	border-radius: 14px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 800;
	justify-content: center;
	transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nsp-ai-button-spinner {
	animation: nsp-ai-spin .8s linear infinite;
	border: 2px solid rgba(255, 255, 255, .4);
	border-radius: 999px;
	border-top-color: #fff;
	display: inline-block;
	height: 16px;
	width: 16px;
}

@keyframes nsp-ai-spin {
	to {
		transform: rotate(360deg);
	}
}

.nsp-ai-lead-form button:hover,
.nsp-ai-chat-form button:hover {
	background: var(--nsp-primary-dark);
	box-shadow: 0 14px 30px rgba(15, 47, 87, .22);
	transform: translateY(-1px);
}

.nsp-ai-lead-form button {
	min-height: 46px;
	width: 100%;
}

.nsp-ai-session-meta {
	flex: 0 0 auto;
	margin-bottom: 8px;
	max-height: var(--nsp-ai-meta-height, 190px);
	opacity: 1;
	overflow: hidden;
	transform: translateY(0);
	transition: max-height .2s ease, margin .2s ease, opacity .16s ease, transform .2s ease;
}

.nsp-ai-assistant.is-chat-meta-collapsed .nsp-ai-session-meta {
	margin-bottom: 0;
	max-height: 0;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-6px);
}

.nsp-ai-session-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
}

.nsp-ai-session-strip span {
	background: rgba(255, 255, 255, .84);
	border: 1px solid rgba(203, 213, 225, .86);
	border-radius: 999px;
	color: var(--nsp-muted);
	flex: 1 1 96px;
	font-size: 10.5px;
	font-weight: 850;
	line-height: 1.25;
	min-height: 26px;
	padding: 5px 8px;
	text-align: center;
}

.nsp-ai-business-note {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 11px;
	color: #7c2d12;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 6px;
	padding: 7px 9px;
}

.nsp-ai-toolbar {
	display: flex;
	justify-content: flex-end;
	margin: 0;
}

.nsp-ai-chat-view:not([hidden]) {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	position: relative;
}

.nsp-ai-assistant .nsp-ai-new {
	appearance: none;
	align-items: center;
	background: rgba(255, 255, 255, .86) !important;
	border: 1px solid rgba(203, 213, 225, .9) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	color: var(--nsp-primary) !important;
	cursor: pointer;
	display: inline-flex;
	gap: 5px;
	font: inherit;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	min-height: 28px !important;
	padding: 6px 9px !important;
	text-decoration: none;
	text-transform: none !important;
	width: auto !important;
}

.nsp-ai-assistant .nsp-ai-new span {
	color: var(--nsp-muted);
	font-weight: 800;
}

.nsp-ai-assistant .nsp-ai-new strong {
	color: var(--nsp-primary);
	font-size: inherit;
	font-weight: 900;
	line-height: inherit;
}

.nsp-ai-assistant .nsp-ai-new:hover,
.nsp-ai-assistant .nsp-ai-new:focus-visible {
	background: #eef6f8 !important;
	border-color: rgba(15, 47, 87, .34) !important;
	box-shadow: 0 8px 18px rgba(15, 47, 87, .08) !important;
	color: var(--nsp-primary-dark) !important;
	transform: translateY(-1px) !important;
}

.nsp-ai-messages {
	flex: 1 1 auto;
	max-height: none;
	min-height: 240px;
	overflow-y: auto;
	padding: 4px 4px 10px 0;
	position: relative;
	scroll-behavior: smooth;
}

.nsp-ai-scroll-latest {
	align-items: center;
	background: #ffffff;
	border: 1px solid #cfd8e3;
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(15, 47, 87, .14);
	color: var(--nsp-primary);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 11.5px;
	font-weight: 900;
	justify-content: center;
	margin: 6px auto 0;
	min-height: 30px;
	padding: 6px 11px;
	position: relative;
	white-space: nowrap;
	z-index: 2;
}

.nsp-ai-scroll-latest:hover,
.nsp-ai-scroll-latest:focus-visible {
	background: #eef6f8;
	border-color: var(--nsp-primary);
	outline: none;
}

.nsp-ai-message {
	border-radius: 18px;
	line-height: 1.55;
	margin: 12px 0;
	max-width: calc(100% - 34px);
	padding: 13px 14px;
	position: relative;
	animation: nsp-ai-message-in .18s ease-out;
}

@keyframes nsp-ai-message-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nsp-ai-message-assistant {
	max-width: calc(100% - 18px);
	scroll-margin-top: 12px;
}

.nsp-ai-message p {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

.nsp-ai-user {
	background: linear-gradient(135deg, var(--nsp-primary), var(--nsp-primary-dark));
	box-shadow: 0 12px 24px rgba(15, 47, 87, .2);
	color: #fff;
	margin-left: auto;
}

.nsp-ai-user::before,
.nsp-ai-bot::before {
	display: block;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.nsp-ai-user::before {
	color: rgba(255, 255, 255, .72);
	content: "You";
}

.nsp-ai-bot {
	background: linear-gradient(180deg, #fff, #fbfcfe);
	border: 1px solid rgba(226, 232, 240, .95);
	box-shadow: 0 12px 28px rgba(15, 47, 87, .08);
	color: var(--nsp-text);
	margin-right: auto;
}

.nsp-ai-bot::before {
	color: var(--nsp-muted);
	content: "NSP";
}

.nsp-ai-loading {
	align-items: center;
	display: inline-flex;
	gap: 8px;
	color: var(--nsp-muted);
	font-style: italic;
}

.nsp-ai-typing-dots {
	display: inline-flex;
	gap: 4px;
}

.nsp-ai-typing-dots span {
	animation: nsp-ai-typing 1s infinite ease-in-out;
	background: var(--nsp-accent);
	border-radius: 50%;
	height: 5px;
	opacity: .35;
	width: 5px;
}

.nsp-ai-typing-dots span:nth-child(2) {
	animation-delay: .15s;
}

.nsp-ai-typing-dots span:nth-child(3) {
	animation-delay: .3s;
}

@keyframes nsp-ai-typing {
	0%, 80%, 100% {
		opacity: .35;
		transform: translateY(0);
	}
	40% {
		opacity: 1;
		transform: translateY(-2px);
	}
}

.nsp-ai-answer p {
	margin: 0 0 10px;
	white-space: normal;
}

.nsp-ai-assistant .nsp-ai-message-content p {
	line-height: 1.6;
	margin: 0 0 10px;
}

.nsp-ai-answer p:last-child {
	margin-bottom: 0;
}

.nsp-ai-answer ul,
.nsp-ai-answer ol {
	margin: 8px 0 10px 18px;
	padding: 0;
}

.nsp-ai-assistant .nsp-ai-message-content ul,
.nsp-ai-assistant .nsp-ai-message-content ol {
	margin: 8px 0 12px 20px;
	padding: 0;
}

.nsp-ai-answer li {
	margin: 4px 0;
}

.nsp-ai-assistant .nsp-ai-message-content li {
	line-height: 1.55;
	margin-bottom: 7px;
}

.nsp-ai-assistant .nsp-ai-message-content strong {
	color: var(--nsp-text);
	font-weight: 700;
}

.nsp-ai-assistant .nsp-ai-message-content h4 {
	color: var(--nsp-primary);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.35;
	margin: 12px 0 7px;
}

.nsp-ai-assistant .nsp-ai-message-content h4:first-child {
	margin-top: 0;
}

.nsp-ai-answer-disclaimer {
	background: #f8fafc;
	border: 1px solid var(--nsp-border);
	border-radius: 12px;
	color: var(--nsp-muted);
	font-size: 12px;
	line-height: 1.45;
	margin-top: 12px;
	padding: 10px;
	position: relative;
}

.nsp-ai-answer-disclaimer::before {
	background: var(--nsp-gold);
	border-radius: 999px;
	content: "";
	display: inline-block;
	height: 6px;
	margin-right: 7px;
	vertical-align: 1px;
	width: 6px;
}

.nsp-ai-source-box {
	background: #f8fafc;
	border: 1px solid var(--nsp-border);
	border-radius: 14px;
	color: #475569;
	font-size: 12px;
	margin-top: 10px;
	padding: 0;
	overflow: hidden;
}

.nsp-ai-source-box summary {
	align-items: center;
	color: var(--nsp-primary);
	cursor: pointer;
	display: flex;
	font-weight: 900;
	justify-content: space-between;
	list-style: none;
	padding: 10px 12px;
}

.nsp-ai-source-box summary::-webkit-details-marker {
	display: none;
}

.nsp-ai-source-box summary::after {
	content: "+";
	font-size: 16px;
	line-height: 1;
}

.nsp-ai-source-box[open] summary::after {
	content: "-";
}

.nsp-ai-source-box summary span {
	background: #eaf3f7;
	border-radius: 999px;
	color: var(--nsp-primary);
	font-size: 11px;
	margin-left: auto;
	margin-right: 10px;
	padding: 3px 7px;
}

.nsp-ai-source-box ul {
	border-top: 1px solid var(--nsp-border);
	margin: 0;
	padding: 9px 12px 11px 28px;
}

.nsp-ai-source-box li {
	margin: 4px 0;
}

.nsp-ai-source-box a {
	color: var(--nsp-primary);
	font-weight: 700;
}

.nsp-ai-source-more {
	color: var(--nsp-muted);
	font-weight: 800;
	list-style: none;
	margin-left: -16px;
}

.nsp-ai-answer-tools {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 10px;
}

.nsp-ai-answer-tool {
	background: #fff;
	border: 1px solid #d7e0ea;
	border-radius: 999px;
	color: var(--nsp-muted);
	cursor: pointer;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	min-height: 30px;
	padding: 7px 11px;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.nsp-ai-answer-tool:hover,
.nsp-ai-answer-tool:focus-visible {
	background: #eef6f8;
	border-color: var(--nsp-primary);
	color: var(--nsp-primary);
	outline: none;
}

.nsp-ai-message-ctas {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 12px;
}

.nsp-ai-message-ctas a {
	align-items: center;
	background: #ffffff;
	border: 1px solid #cfd8e3;
	border-radius: 999px;
	color: var(--nsp-primary);
	display: flex;
	font-size: 12px;
	font-weight: 800;
	justify-content: center;
	min-height: 38px;
	padding: 8px;
	text-align: center;
	text-decoration: none;
}

.nsp-ai-message-ctas a:hover {
	background: #eef6f8;
	border-color: var(--nsp-primary);
	box-shadow: 0 8px 18px rgba(15, 47, 87, .08);
	transform: translateY(-1px);
}

.nsp-ai-rating {
	align-items: center;
	border-top: 1px solid rgba(207, 216, 227, .75);
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 12px;
	padding-top: 10px;
}

.nsp-ai-rating span {
	color: var(--nsp-muted);
	font-size: 12px;
	font-weight: 800;
	margin-right: 2px;
}

.nsp-ai-rating-button {
	background: #f8fafc;
	border: 1px solid #d7e1ec;
	border-radius: 999px;
	color: var(--nsp-primary);
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	min-height: 30px;
	padding: 5px 10px;
}

.nsp-ai-rating-button:hover,
.nsp-ai-rating-button:focus-visible,
.nsp-ai-rating-button.is-selected {
	background: #eef6f8;
	border-color: var(--nsp-primary);
}

.nsp-ai-rating.is-rated .nsp-ai-rating-button:not(.is-selected) {
	opacity: .55;
}

.nsp-ai-quick-questions {
	background: linear-gradient(180deg, #f8fafc, #f3f7fb);
	border: 1px solid var(--nsp-border);
	border-radius: 16px;
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 12px;
	padding: 10px;
}

.nsp-ai-quick-questions p {
	color: var(--nsp-muted);
	font-size: 12px;
	font-weight: 800;
	grid-column: 1 / -1;
	margin: 0 0 2px;
}

.nsp-ai-quick-question {
	background: #fff;
	border: 1px solid #d7e1ec;
	border-radius: 12px;
	color: var(--nsp-primary);
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
	padding: 9px 10px;
	text-align: left;
	transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nsp-ai-quick-question:hover,
.nsp-ai-quick-question:focus-visible {
	background: #eef6f8;
	border-color: var(--nsp-primary);
	box-shadow: 0 8px 18px rgba(15, 47, 87, .08);
	transform: translateY(-1px);
}

.nsp-ai-chat-form {
	align-items: end;
	background: linear-gradient(180deg, rgba(248, 250, 252, .96), #f3f6fa);
	border-top: 1px solid var(--nsp-border);
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) auto;
	margin: 12px -18px -18px;
	padding: 12px 18px 18px;
	position: relative;
	z-index: 4;
}

.nsp-ai-composer {
	background: #fff;
	border: 1px solid #cbd7e4;
	border-radius: 16px;
	box-shadow: 0 8px 20px rgba(15, 47, 87, .06);
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.nsp-ai-composer:focus-within {
	border-color: var(--nsp-primary);
	box-shadow: 0 0 0 4px rgba(15, 47, 87, .1), 0 10px 24px rgba(15, 47, 87, .08);
}

.nsp-ai-chat-form textarea {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	max-height: 130px;
	min-height: 48px;
	resize: none;
}

.nsp-ai-chat-form textarea:focus {
	box-shadow: none;
}

.nsp-ai-composer-meta {
	align-items: center;
	background: #f8fafc;
	border-top: 1px solid #e6edf5;
	color: var(--nsp-muted);
	display: flex;
	font-size: 11px;
	font-weight: 750;
	justify-content: space-between;
	line-height: 1.25;
	padding: 7px 10px;
}

.nsp-ai-char-count.is-warning {
	color: #b45309;
}

.nsp-ai-chat-form button {
	gap: 7px;
	min-height: 48px;
	padding: 0 17px;
}

.nsp-ai-chat-form button svg {
	fill: none;
	height: 16px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 16px;
}

.nsp-ai-error {
	background: #fff1f2;
	border: 1px solid #fecdd3;
	border-radius: 12px;
	color: #9f1239;
	font-size: 13px;
	font-weight: 700;
	margin-top: 12px;
	padding: 10px 12px;
}

.nsp-ai-error:focus {
	box-shadow: 0 0 0 4px rgba(220, 38, 38, .1);
	outline: none;
}

.nsp-ai-messages::-webkit-scrollbar,
.nsp-ai-body::-webkit-scrollbar {
	width: 8px;
}

.nsp-ai-messages::-webkit-scrollbar-thumb,
.nsp-ai-body::-webkit-scrollbar-thumb {
	background: #c9d5e2;
	border-radius: 999px;
}

.nsp-ai-assistant button:disabled {
	cursor: wait;
	opacity: .68;
}

@media (prefers-reduced-motion: reduce) {
	.nsp-ai-assistant *,
	.nsp-ai-assistant *::before,
	.nsp-ai-assistant *::after {
		animation-duration: .001ms !important;
		scroll-behavior: auto !important;
		transition-duration: .001ms !important;
	}
}

@media (max-width: 560px) {
	.nsp-ai-assistant-floating {
		bottom: max(12px, env(safe-area-inset-bottom));
		left: max(12px, env(safe-area-inset-left));
		right: max(12px, env(safe-area-inset-right));
	}

	.nsp-ai-assistant-floating .nsp-ai-panel {
		bottom: 62px;
		left: 0;
		max-height: calc(100vh - 84px);
		max-height: calc(100dvh - 84px - env(safe-area-inset-bottom));
		right: 0;
		width: 100%;
	}

	.nsp-ai-assistant-floating.is-open .nsp-ai-panel {
		bottom: 0;
		height: calc(100vh - 24px);
		height: calc(100dvh - 24px - env(safe-area-inset-bottom));
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
	}

	.nsp-ai-toggle {
		justify-content: center;
		max-width: 100%;
		width: 100%;
	}

	.nsp-ai-receptionist {
		bottom: 70px;
		left: 0;
		right: 0;
		width: 100%;
	}

	.nsp-ai-receptionist::after {
		right: 38px;
	}

	.nsp-ai-receptionist-actions {
		grid-template-columns: 1fr 1fr;
	}

	.nsp-ai-toggle-copy {
		align-items: start;
	}

	.nsp-ai-header {
		grid-template-columns: auto 1fr auto;
		padding: 15px;
	}

	.nsp-ai-status-dot {
		display: none;
	}

	.nsp-ai-message-ctas {
		grid-template-columns: 1fr;
	}

	.nsp-ai-quick-questions,
	.nsp-ai-trust-strip {
		grid-template-columns: 1fr;
	}

	.nsp-ai-stepper {
		grid-template-columns: 1fr;
	}

	.nsp-ai-chat-form {
		align-items: stretch;
		grid-template-columns: minmax(0, 1fr) 52px;
		margin-left: -14px;
		margin-right: -14px;
		padding-left: 14px;
		padding-right: 14px;
	}

	.nsp-ai-chat-form button {
		min-height: 52px;
		padding: 0;
		width: 100%;
	}

	.nsp-ai-chat-form button > span:not(.nsp-ai-button-spinner) {
		display: none;
	}

	.nsp-ai-toolbar {
		justify-content: flex-start;
	}

	.nsp-ai-assistant .nsp-ai-new {
		max-width: 100%;
	}

	.nsp-ai-composer-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.nsp-ai-body {
		padding: 14px;
	}

	.nsp-ai-messages {
		min-height: 220px;
	}
}

@media (max-height: 640px) {
	.nsp-ai-header {
		padding: 12px 14px;
	}

	.nsp-ai-body {
		padding-bottom: 12px;
		padding-top: 12px;
	}

	.nsp-ai-messages {
		min-height: 160px;
	}

	.nsp-ai-chat-form textarea {
		max-height: 104px;
		min-height: 42px;
	}

	.nsp-ai-composer-meta span:first-child {
		display: none;
	}
}
