/**
 * Neurosoft Agent - widget styles.
 *
 * Design tokens are taken from neurosoft.gr itself: the dark navy #222c35 page
 * canvas, #eaeef3 body text, the #1e73be link blue, the #fbb900 emergency gold,
 * Poppins, and the asymmetric 0/18px corner the site uses on every CTA.
 *
 * The site's three button variants are reproduced exactly:
 *   solid white + dark text  ("Discover more", "Read more") -> primary
 *   dark + hairline border   ("Contact Us")                 -> ghost
 *   dark + gold border       ("Emergency?")                 -> danger
 *
 * Poppins is referenced but never loaded here - the theme already serves it,
 * and a second font request would slow the host page for no gain.
 *
 * SPECIFICITY NOTE. Colour is declared explicitly on every text element rather
 * than left to inherit from .ncb. An inherited value loses to *any* direct rule,
 * so a theme shipping `.entry-content p { color: #666 }` would grey out the
 * copy. The base block below is (0,2,0) via `.ncb .ncb-panel`, which outranks
 * the (0,1,1) selectors themes typically use, and `:where()` keeps the element
 * list itself at zero so the modifier classes further down still win.
 */

.ncb,
.ncb *,
.ncb *::before,
.ncb *::after {
	box-sizing: border-box;
}

.ncb {
	/* Sampled from the live site. */
	/* Configurable highlight: progress bar, proof rule, focus rings. Defaults to
	   the site's gold so those read as one system. */
	--ncb-accent: #fbb900;
	/* Inline link colour - the site's #1e73be lightened, because the original
	   fails contrast on the dark canvas. */
	--ncb-accent-text: #5aa9e6;
	/* Fixed, never configurable: gold means "incident" here, matching the site's
	   Emergency button. Letting a setting recolour it would break that meaning. */
	--ncb-gold: #fbb900;
	--ncb-canvas: #222c35;
	--ncb-surface: #2b3742;
	--ncb-surface-2: #323d47;
	--ncb-ink: #eaeef3;
	--ncb-muted: #aebccb;
	--ncb-line: rgba(234, 238, 243, 0.16);
	--ncb-btn-line: rgba(234, 238, 243, 0.4);
	--ncb-field: rgba(255, 255, 255, 0.06);
	--ncb-danger-text: #ff8a8a;

	--ncb-btn-radius: 0 18px;
	--ncb-card-radius: 20px;
	--ncb-panel-radius: 24px;

	/* Launcher geometry, driven entirely by tokens so the size setting has one
	   place to write to. Hardcoding any of these in a breakpoint would silently
	   override the setting on that viewport, which is exactly what the phone
	   blocks used to do. Defaults are the Standard size. */
	--ncb-launcher-h: 48px;
	--ncb-launcher-px: 26px;
	--ncb-launcher-py: 13px;
	--ncb-launcher-font: 15px;
	--ncb-launcher-icon: 20px;
	--ncb-launcher-gap: 10px;
	--ncb-launcher-radius: var(--ncb-btn-radius);
	/* The height actually applied. Split from --ncb-launcher-h so the coarse
	   pointer block can raise the tap target in one place, and so raising it
	   grows the icon-only circle on BOTH axes - a min-height alone would make a
	   40px circle 44px tall and leave it 40px wide, i.e. an ellipse. */
	--ncb-launcher-tap: var(--ncb-launcher-h);
	/* A display value rather than a class, so the 360px breakpoint can force the
	   icon-only form without having to restate the whole rule. */
	--ncb-launcher-label: inline;

	/* Body inset, shared with the sticky action bar so the two stay aligned
	   when a breakpoint tightens the padding. */
	--ncb-pad-x: 20px;
	--ncb-pad-y: 20px;

	--ncb-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Motion. Deliberately short and ease-out only - nothing bounces or
	   overshoots. This is a tool people may reach for mid-incident, so the
	   animation should be felt rather than watched. --ncb-dur-panel is mirrored
	   by CLOSE_MS in chatbot.js. */
	--ncb-dur-fast: 90ms;
	--ncb-dur: 160ms;
	--ncb-dur-panel: 180ms;
	--ncb-ease: cubic-bezier(0.2, 0, 0.2, 1);

	/* Lifts the closed launcher clear of anything else pinned in this corner -
	   on neurosoft.gr a back-to-top arrow sits at bottom:40px, 24px tall, so its
	   top edge lands inside the launcher. Set from the plugin setting. */
	--ncb-offset-bottom: var(--ncb-offset-config, 0px);

	position: fixed;
	z-index: 99999;
	bottom: calc(max(20px, env(safe-area-inset-bottom)) + var(--ncb-offset-bottom));
	font-family: var(--ncb-font);
	font-size: 15px;
	line-height: 1.6;
	color: var(--ncb-ink);
	-webkit-font-smoothing: antialiased;
}

.ncb--right { right: max(20px, env(safe-area-inset-right)); }
.ncb--left  { left:  max(20px, env(safe-area-inset-left)); }

/* The offset deliberately applies whether open or closed, so the panel's bottom
   edge lands exactly where the launcher's was and nothing shifts on open. The
   panel height below subtracts it, otherwise the panel would run off-screen by
   however much the launcher was lifted. */

/* ------------------------------------------------- theme-proof base -------- */

.ncb .ncb-panel :where(p, li, span, label, strong, em, h2, h3, h4, ul, a, button, input, select, textarea, optgroup, option) {
	font-family: var(--ncb-font);
	font-style: normal;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	float: none;
}

.ncb .ncb-panel :where(p, li, span, label, strong, em) {
	color: var(--ncb-ink);
	font-size: inherit;
	line-height: inherit;
}

.ncb .ncb-panel :where(h2, h3, h4) {
	color: #fff;
	font-weight: 600;
}

/* Safety net for icons. An inline SVG carrying only a viewBox has no intrinsic
   size, so without an explicit box it expands to fill its parent - one missing
   rule turns a 20px tick into a full-panel graphic. Every icon wrapper is
   matched here by pattern, so adding a new one cannot reintroduce that. */
.ncb [class*="__icon"] {
	display: flex;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.ncb [class*="__icon"] > svg {
	display: block;
	width: 100%;
	height: 100%;
}

.ncb .ncb-panel :where(p) { margin: 0 0 12px; }
.ncb .ncb-panel :where(p:last-child) { margin-bottom: 0; }
.ncb .ncb-panel :where(ul) { margin: 0; padding: 0; list-style: none; }
.ncb .ncb-panel :where(strong) { font-weight: 600; color: #fff; }

/* -------------------------------------------------------------- launcher --- */

.ncb .ncb-launcher {
	/* Positioned so the two halo rings below can anchor to it. */
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ncb-launcher-gap);
	min-height: var(--ncb-launcher-tap);
	padding: var(--ncb-launcher-py) var(--ncb-launcher-px);
	border: 1px solid var(--ncb-btn-line);
	border-radius: var(--ncb-launcher-radius);
	background: #fff;
	color: var(--ncb-canvas);
	font-family: var(--ncb-font);
	font-size: var(--ncb-launcher-font);
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.ncb .ncb-launcher:hover {
	background: var(--ncb-ink);
	transform: translateY(-2px);
}

.ncb .ncb-launcher__icon {
	display: flex;
	flex: 0 0 auto;
	width: var(--ncb-launcher-icon);
	height: var(--ncb-launcher-icon);
	color: var(--ncb-canvas);
}

.ncb .ncb-launcher__icon svg { width: 100%; height: 100%; }
.ncb .ncb-launcher__text { display: var(--ncb-launcher-label); color: inherit; }

.ncb--open .ncb-launcher { display: none; }

/* ---------------------------------------------------------- launcher size --- */

.ncb--launcher-compact {
	--ncb-launcher-h: 40px;
	--ncb-launcher-px: 18px;
	--ncb-launcher-py: 9px;
	--ncb-launcher-font: 13.5px;
	--ncb-launcher-icon: 17px;
	--ncb-launcher-gap: 8px;
}

.ncb--launcher-large {
	--ncb-launcher-h: 56px;
	--ncb-launcher-px: 30px;
	--ncb-launcher-py: 16px;
	--ncb-launcher-font: 16px;
	--ncb-launcher-icon: 22px;
	--ncb-launcher-gap: 11px;
}

/* Icon only. The button is given an explicit square box rather than being left
   to padding: only equal width and height guarantee a true circle, and padding
   would have to balance against the icon's line box to get there - which it
   does not do identically at all four sizes. */
.ncb--launcher-icon {
	--ncb-launcher-label: none;
	--ncb-launcher-radius: 50%;
}

.ncb--launcher-icon .ncb-launcher {
	width: var(--ncb-launcher-tap);
	height: var(--ncb-launcher-tap);
	padding: 0;
}

/* ---------------------------------------------------------------- teaser --- */

/*
 * Sits above the launcher, anchored to the same corner. Absolutely positioned
 * inside .ncb - which is already fixed - rather than turning .ncb into a flex
 * column, because that column would have to be undone again for the inset: 0
 * full-screen phone case.
 *
 * Deliberately not a live region. An unsolicited promotional line announced over
 * whatever a screen-reader user was reading is an interruption, and the launcher
 * is already reachable in the tab order without it.
 */
.ncb .ncb-teaser {
	position: absolute;
	bottom: 100%;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: max-content;
	max-width: min(270px, calc(100vw - 48px));
	margin-bottom: 12px;
	padding: 12px 8px 12px 14px;
	background: var(--ncb-surface);
	border: 1px solid var(--ncb-line);
	border-radius: var(--ncb-btn-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	animation: ncb-teaser-in var(--ncb-dur) var(--ncb-ease) backwards;
}

.ncb--right .ncb-teaser { right: 0; }
.ncb--left  .ncb-teaser { left: 0; }

/* The panel replaces the launcher entirely, so the teaser has nothing to sit
   above once the chat is open. */
.ncb--open .ncb-teaser { display: none; }

/* The message itself is the primary target - clicking it opens the chat - so it
   is a button, styled back down to plain text. */
.ncb .ncb-teaser__open {
	flex: 1 1 auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ncb-ink);
	font-family: var(--ncb-font);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.5;
	text-align: left;
	cursor: pointer;
}

.ncb .ncb-teaser__open:hover { color: #fff; }

.ncb .ncb-teaser__dismiss {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ncb-muted);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ncb .ncb-teaser__dismiss:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ncb .ncb-teaser__icon { width: 13px; height: 13px; }

.ncb .ncb-teaser__open:focus-visible,
.ncb .ncb-teaser__dismiss:focus-visible {
	outline: 3px solid var(--ncb-accent);
	outline-offset: 2px;
}

/* ----------------------------------------------------------------- panel --- */

.ncb-panel {
	display: none;
	flex-direction: column;
	width: min(400px, calc(100vw - 40px));
	/* Minus the launcher offset: the panel sits that much higher, so it has that
	   much less room before it would leave the viewport. */
	height: min(660px, calc(100vh - 40px - var(--ncb-offset-bottom)));
	background: var(--ncb-canvas);
	border: 1px solid var(--ncb-line);
	border-radius: var(--ncb-panel-radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	overflow: hidden;
}

.ncb--open .ncb-panel { display: flex; }

.ncb .ncb-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 0 0 auto;
	padding: 16px 20px;
	background: var(--ncb-surface-2);
	border-bottom: 1px solid var(--ncb-line);
}

.ncb .ncb-header__title {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
}

.ncb .ncb-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ncb-muted);
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ncb .ncb-close:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.ncb .ncb-close__icon { display: flex; width: 18px; height: 18px; }
.ncb .ncb-close__icon svg { width: 100%; height: 100%; }

.ncb .ncb-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	/* No bottom padding: the sticky action bar supplies it, so scrolled content
	   cannot peek out underneath the bar. */
	padding: var(--ncb-pad-y) var(--ncb-pad-x) 0;
	background: var(--ncb-canvas);
}

/* -------------------------------------------------------------- messages --- */

.ncb .ncb-msg {
	padding: 18px 20px;
	margin-bottom: 14px;
	background: var(--ncb-surface);
	border: 1px solid var(--ncb-line);
	border-radius: var(--ncb-card-radius);
}

.ncb .ncb-title {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(17px, 4.4vw, 19px);
	font-weight: 600;
	line-height: 1.35;
}

.ncb .ncb-title--icon {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ncb .ncb-title__icon {
	width: 20px;
	height: 20px;
	color: var(--ncb-accent);
}

.ncb .ncb-subtitle {
	margin: 18px 0 10px;
	color: var(--ncb-muted);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.09em;
}

.ncb .ncb-question {
	color: #fff;
	font-size: clamp(15px, 4vw, 16.5px);
	font-weight: 600;
}

/* Secondary paragraphs - the welcome subtitle, form intro and the stats
   footnote. Kept white rather than grey: these carry real proof points, and
   at 13.5px a muted tone reads as a whisper against the dark canvas. The
   --ncb-muted tone is reserved for true chrome (pills, labels, hints). */
.ncb .ncb-muted {
	color: #fff;
	font-size: 13.5px;
	line-height: 1.55;
}

.ncb .ncb-proof {
	padding: 12px 16px;
	background: var(--ncb-field);
	border-left: 3px solid var(--ncb-accent);
	border-radius: 0 10px 10px 0;
	color: #fff;
	font-size: 13.5px;
}

.ncb .ncb-journey {
	display: inline-block;
	padding: 6px 14px;
	background: var(--ncb-field);
	border: 1px solid var(--ncb-line);
	border-radius: 999px;
	color: var(--ncb-ink);
	font-size: 12.5px;
	font-weight: 500;
}

/* ----------------------------------------------------------------- trust --- */

.ncb .ncb-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.ncb .ncb-trust__item {
	padding: 5px 12px;
	background: var(--ncb-field);
	border: 1px solid var(--ncb-line);
	border-radius: 999px;
	color: var(--ncb-muted);
	font-size: 11.5px;
	font-weight: 500;
	white-space: nowrap;
}

/* -------------------------------------------------------------- progress --- */

.ncb .ncb-progress { margin-bottom: 16px; }

.ncb .ncb-progress__track {
	height: 3px;
	background: var(--ncb-line);
	border-radius: 999px;
	overflow: hidden;
}

.ncb .ncb-progress__fill {
	height: 100%;
	background: var(--ncb-accent);
	border-radius: 999px;
	transition: width 0.3s ease;
}

.ncb .ncb-progress__label {
	display: block;
	margin-top: 8px;
	color: var(--ncb-muted);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------- fields --- */

.ncb .ncb-field { margin-bottom: 16px; }

.ncb .ncb-field > label {
	display: block;
	margin-bottom: 7px;
	color: var(--ncb-ink);
	font-size: 13px;
	font-weight: 500;
}

.ncb .ncb-select,
.ncb .ncb-form input[type="text"],
.ncb .ncb-form input[type="email"],
.ncb .ncb-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--ncb-btn-line);
	border-radius: 10px;
	background: var(--ncb-field);
	color: var(--ncb-ink);
	font-family: var(--ncb-font);
	/* 16px stops iOS Safari zooming the page when a field takes focus. */
	font-size: 16px;
	line-height: 1.4;
	appearance: none;
	-webkit-appearance: none;
}

.ncb .ncb-select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23aebccb' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 11px;
	cursor: pointer;
}

/* Native option lists render in the OS palette; force legible colours. */
.ncb .ncb-select option,
.ncb .ncb-select optgroup {
	background: var(--ncb-surface-2);
	color: var(--ncb-ink);
}

.ncb .ncb-select optgroup { font-weight: 600; }

.ncb .ncb-form textarea {
	min-height: 88px;
	resize: vertical;
	line-height: 1.5;
}

.ncb .ncb-form input::placeholder,
.ncb .ncb-form textarea::placeholder { color: var(--ncb-muted); opacity: 1; }

.ncb .ncb-select:focus-visible,
.ncb .ncb-form input:focus-visible,
.ncb .ncb-form textarea:focus-visible {
	outline: 2px solid var(--ncb-accent);
	outline-offset: 2px;
	border-color: var(--ncb-accent);
}

.ncb .ncb-field--check > label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--ncb-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	cursor: pointer;
}

.ncb .ncb-field--check input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex: 0 0 auto;
	accent-color: var(--ncb-accent);
	cursor: pointer;
}

.ncb .ncb-field--check a { color: var(--ncb-accent-text); }

/* Honeypot: off-screen rather than display:none, because some bots skip
   fields that are not rendered at all. */
.ncb .ncb-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ncb .ncb-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ncb .ncb-error {
	margin: 7px 0 0;
	color: var(--ncb-danger-text);
	font-size: 12.5px;
	font-weight: 500;
}

.ncb .ncb-error:empty { display: none; }

/* --------------------------------------------------------------- buttons --- */

.ncb .ncb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

.ncb .ncb-actions--stack { flex-direction: column; }

/* --------------------------------------------------------------- options --- */

/* Tappable answers for the issue and size steps. One tap selects and advances,
   replacing the dropdown-plus-Continue that was shedding most visitors at the
   first question. Left-aligned and full width so a long grouped list scans as a
   menu rather than a field of pills. */
.ncb .ncb-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	/* The issue step has no sticky action bar to supply the bottom inset - it is
	   the first screen, so there is no Back - so the list would otherwise sit
	   flush against the panel foot. This gives it air, and clears the iOS home
	   indicator when the panel is full-screen. */
	margin-bottom: max(var(--ncb-pad-y), env(safe-area-inset-bottom));
}

.ncb .ncb-optgroup-label {
	margin: 16px 0 4px;
	color: var(--ncb-muted);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ncb .ncb-optgroup-label:first-child { margin-top: 0; }

.ncb .ncb-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--ncb-btn-line);
	border-radius: var(--ncb-btn-radius);
	background: var(--ncb-field);
	color: #fff;
	font-family: var(--ncb-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform var(--ncb-dur-fast) var(--ncb-ease);
}

.ncb .ncb-option__label { flex: 1 1 auto; color: inherit; }

/* The chevron sits in the shared icon system, so the [class*="__icon"] safety
   net already sizes it; only its resting colour and hover nudge live here. */
.ncb .ncb-option__icon { color: var(--ncb-muted); }

.ncb .ncb-option:hover {
	background: rgba(234, 238, 243, 0.08);
	border-color: var(--ncb-ink);
}

.ncb .ncb-option:hover .ncb-option__icon {
	color: #fff;
	transform: translateX(2px);
}

.ncb .ncb-option:active:not(:disabled) { transform: scale(0.99); }

.ncb .ncb-option:focus-visible {
	outline: 3px solid var(--ncb-accent);
	outline-offset: 2px;
}

/* Pill layout, for a step with many short labels (the industry sectors). The
   options flow across the width as chips rather than stacking as full-width
   rows, so fourteen single words scan as a grid instead of a long scroll. */
.ncb .ncb-options--wrap {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

.ncb .ncb-option--pill {
	width: auto;
	min-height: 44px;
	padding: 10px 16px;
	justify-content: center;
}

.ncb .ncb-option--pill .ncb-option__label { flex: 0 0 auto; }


/* Sticky action bar.
   The recommendation runs long, so the primary CTA would otherwise sit below
   the fold. Pinning the last actions block to the foot of the panel keeps it
   reachable at any scroll position. Negative side margins bleed the bar to the
   panel edges; its own padding restores the inset and supplies the bottom gap
   the body deliberately gives up. */
.ncb .ncb-body > .ncb-actions:last-child,
.ncb .ncb-form > .ncb-actions:last-child {
	position: sticky;
	bottom: 0;
	z-index: 2;
	margin: 16px calc(var(--ncb-pad-x) * -1) 0;
	padding: 14px var(--ncb-pad-x) max(var(--ncb-pad-y), env(safe-area-inset-bottom));
	background: var(--ncb-canvas);
}

/* Separator only when something is actually scrolling behind it. */
.ncb .ncb-body--scrollable > .ncb-actions:last-child,
.ncb .ncb-body--scrollable .ncb-form > .ncb-actions:last-child {
	border-top: 1px solid var(--ncb-line);
	box-shadow: 0 -14px 22px -14px rgba(0, 0, 0, 0.75);
}

.ncb .ncb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 13px 24px;
	border: 1px solid transparent;
	border-radius: var(--ncb-btn-radius);
	background: transparent;
	font-family: var(--ncb-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ncb .ncb-btn__icon { display: flex; width: 17px; height: 17px; flex: 0 0 auto; }
.ncb .ncb-btn__icon svg { width: 100%; height: 100%; }
.ncb .ncb-btn span { color: inherit; font-size: inherit; font-weight: inherit; }

/* "Discover more" - the site's primary CTA. */
.ncb .ncb-btn--primary {
	background: #fff;
	border-color: var(--ncb-btn-line);
	color: var(--ncb-canvas);
}

.ncb .ncb-btn--primary:hover:not(:disabled) { background: var(--ncb-ink); }

/* "Contact Us" - hairline outline on the dark canvas. */
.ncb .ncb-btn--ghost {
	background: transparent;
	border-color: var(--ncb-btn-line);
	color: #fff;
}

.ncb .ncb-btn--ghost:hover:not(:disabled) {
	background: rgba(234, 238, 243, 0.08);
	border-color: var(--ncb-ink);
}

/* "Emergency?" - gold outline, reserved for the incident path. */
.ncb .ncb-btn--danger {
	background: transparent;
	border-color: var(--ncb-gold);
	color: #fff;
}

.ncb .ncb-btn--danger:hover:not(:disabled) { background: rgba(251, 185, 0, 0.14); }

.ncb .ncb-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.ncb .ncb-btn:focus-visible,
.ncb .ncb-close:focus-visible,
.ncb .ncb-launcher:focus-visible {
	outline: 3px solid var(--ncb-accent);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- alerts --- */

.ncb .ncb-alert {
	padding: 16px 18px;
	background: rgba(251, 185, 0, 0.1);
	border: 1px solid var(--ncb-gold);
	border-radius: 0 18px;
}

.ncb .ncb-alert__title {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0 0 8px;
	color: var(--ncb-gold);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.ncb .ncb-alert__icon {
	display: flex;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--ncb-gold);
}

.ncb .ncb-alert__icon svg { width: 100%; height: 100%; }

.ncb .ncb-alert--inline {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-bottom: 14px;
	padding: 12px 16px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
}

.ncb .ncb-alert span { color: var(--ncb-ink); }
.ncb .ncb-alert a { color: var(--ncb-gold); font-weight: 600; white-space: nowrap; }

.ncb .ncb-phone {
	display: inline-block;
	margin: 6px 0 10px;
	color: var(--ncb-gold);
	font-size: clamp(20px, 5.5vw, 24px);
	font-weight: 600;
	text-decoration: none;
}

.ncb .ncb-phone:hover { text-decoration: underline; }

/* -------------------------------------------------------------- services --- */

.ncb .ncb-services li {
	padding: 12px 0;
	border-top: 1px solid var(--ncb-line);
}

.ncb .ncb-services li:first-child { border-top: 0; padding-top: 4px; }

.ncb .ncb-services strong {
	display: block;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.ncb .ncb-services span {
	display: block;
	margin-top: 3px;
	color: var(--ncb-muted);
	font-size: 12.5px;
	line-height: 1.5;
}

/* ============================================================================ */
/* Motion                                                                       */
/* ============================================================================ */

@keyframes ncb-panel-in {
	from { opacity: 0; transform: scale(0.96); }
	to   { opacity: 1; transform: scale(1); }
}

@keyframes ncb-panel-out {
	from { opacity: 1; transform: scale(1); }
	to   { opacity: 0; transform: scale(0.96); }
}

/* Phones show the panel full-screen, where scaling from a corner reads as wrong.
   It rises from the bottom edge instead. */
@keyframes ncb-panel-in-mobile {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes ncb-panel-out-mobile {
	from { opacity: 1; transform: translateY(0); }
	to   { opacity: 0; transform: translateY(14px); }
}

@keyframes ncb-step-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Going back travels the other way, so the gesture reads as reversal. */
@keyframes ncb-step-in-back {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes ncb-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes ncb-draw {
	from { stroke-dashoffset: 32; }
	to   { stroke-dashoffset: 0; }
}

@keyframes ncb-sheen {
	from { transform: translateX(-100%); }
	to   { transform: translateX(220%); }
}

@keyframes ncb-pulse {
	0%, 100% { opacity: 0; }
	50%      { opacity: 1; }
}

/*
 * The launcher halo.
 *
 * Growth comes from box-shadow spread, not transform: scale(). Scale is the
 * cheaper property, but it is proportional - on a 209x48 pill it would push the
 * ring ~15px out at the sides and under 4px at the top, so the "halo" would read
 * as a stretched smear rather than an even ripple. Spread grows the same number
 * of pixels on every edge whatever the shape, which matters here precisely
 * because the launcher can be a wide pill or a circle depending on the setting.
 *
 * That makes this the one paint-driven animation in the file. It is two small
 * rings around a single element, at most three times per page view, so the cost
 * is irrelevant - and correctness on both shapes is worth more than keeping a
 * decorative effect on the compositor.
 */
@keyframes ncb-halo {
	0%   { box-shadow: 0 0 0 0 var(--ncb-accent); opacity: 0; }
	18%  { opacity: 0.45; }
	100% { box-shadow: 0 0 0 13px var(--ncb-accent); opacity: 0; }
}

@keyframes ncb-teaser-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------- panel ----- */

.ncb--open .ncb-panel {
	transform-origin: bottom right;
	animation: ncb-panel-in var(--ncb-dur-panel) var(--ncb-ease) backwards;
}

.ncb--left.ncb--open .ncb-panel { transform-origin: bottom left; }

/* ncb--open is still present here - it is what keeps the panel displayed - so
   this only needs to swap which animation is playing. */
.ncb--closing .ncb-panel {
	animation: ncb-panel-out var(--ncb-dur-panel) var(--ncb-ease) forwards;
}

/* ---------------------------------------------------------------- steps ---- */

/*
 * Plays on insertion: render() replaces the body's children outright, so a CSS
 * animation runs naturally on the new nodes with no class toggling or reflow
 * hack. `backwards` rather than `both` matters - it applies the opening frame
 * during any delay but leaves nothing behind afterwards, so no element is left
 * carrying a transform once it settles.
 */
.ncb .ncb-body > * {
	animation: ncb-step-in var(--ncb-dur) var(--ncb-ease) backwards;
}

.ncb .ncb-body--back > * {
	animation-name: ncb-step-in-back;
}

/*
 * Two exceptions, both about position: sticky. The action bar is the sticky
 * element and the form contains it, and a transform on either - including the
 * translateY(0) an animation settles on - establishes a containing block that
 * breaks the pinning verified in v1.0.0. Both fade only.
 */
.ncb .ncb-body > .ncb-form,
.ncb .ncb-body > .ncb-actions,
.ncb .ncb-body--back > .ncb-form,
.ncb .ncb-body--back > .ncb-actions {
	animation-name: ncb-fade-in;
}

/* -------------------------------------------------------------- stagger ---- */

/* The recommendation assembles rather than dumping: bubble, then each service
   row, then the bar. Capped at the six rows the composition already limits to. */
.ncb .ncb-services li {
	animation: ncb-step-in var(--ncb-dur) var(--ncb-ease) backwards;
}

.ncb .ncb-services li:nth-child(1) { animation-delay: 40ms; }
.ncb .ncb-services li:nth-child(2) { animation-delay: 80ms; }
.ncb .ncb-services li:nth-child(3) { animation-delay: 120ms; }
.ncb .ncb-services li:nth-child(4) { animation-delay: 160ms; }
.ncb .ncb-services li:nth-child(5) { animation-delay: 200ms; }
.ncb .ncb-services li:nth-child(6) { animation-delay: 240ms; }

/* ----------------------------------------------------------- check draw ---- */

/* The tick is already an SVG path, so it can draw itself. The dash length
   comfortably exceeds the path so the stroke is fully hidden at offset 32. */
.ncb .ncb-title__icon svg path {
	stroke-dasharray: 32;
	animation: ncb-draw 420ms var(--ncb-ease) 120ms backwards;
}

/* ------------------------------------------------------------ progress ----- */

.ncb .ncb-progress__fill {
	position: relative;
	overflow: hidden;
}

/* The fill is rebuilt on every render, so the sweep runs on insertion without
   any change detection. Only the pseudo-element's transform moves. */
.ncb .ncb-progress__fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
	transform: translateX(-100%);
	animation: ncb-sheen 700ms var(--ncb-ease) 140ms backwards;
}

/* ------------------------------------------------- micro-interactions ------ */

.ncb .ncb-btn { transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform var(--ncb-dur-fast) var(--ncb-ease); }

.ncb .ncb-btn:active:not(:disabled) { transform: scale(0.98); }

.ncb .ncb-btn__icon { transition: transform var(--ncb-dur) var(--ncb-ease); }

.ncb .ncb-btn:hover .ncb-btn__icon { transform: translateX(2px); }

/* Back points the other way, so its chevron should lead left. */
.ncb .ncb-btn[data-action="back"]:hover .ncb-btn__icon { transform: translateX(-2px); }

.ncb .ncb-launcher {
	transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ncb .ncb-launcher:hover { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5); }

/* ------------------------------------------------------ emergency pulse ---- */

.ncb .ncb-alert { position: relative; }

/*
 * Two cycles, then rest. A looping pulse becomes wallpaper within seconds and
 * would devalue the one screen that genuinely is urgent. The ring is a static
 * box-shadow on a pseudo-element and only its opacity animates, so this stays
 * off the paint path.
 */
.ncb .ncb-alert::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	pointer-events: none;
	box-shadow: 0 0 0 3px rgba(251, 185, 0, 0.35);
	opacity: 0;
	animation: ncb-pulse 1100ms ease-in-out 2 backwards;
}

/* The inline variant sits inside the recommendation, where a pulse would be
   noise rather than signal. */
.ncb .ncb-alert--inline::after { animation: none; }

/* -------------------------------------------------------- launcher halo ---- */

/*
 * Two rings, invisible at rest. Which is the point: the effect is scheduled from
 * JS, not looped here, because how long it keeps asking is a setting - three
 * pulses, or until the visitor opens the chat, or indefinitely - and CSS knows
 * neither the setting nor whether the chat has been opened. See
 * scheduleAttention() in chatbot.js.
 *
 * inset: -1px rather than 0 so the ring starts at the border box; ::before is
 * absolutely positioned, so making it a flex item of the launcher costs nothing.
 */
.ncb .ncb-launcher::before,
.ncb .ncb-launcher::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	opacity: 0;
	pointer-events: none;
}

.ncb--attention .ncb-launcher::before,
.ncb--attention .ncb-launcher::after {
	animation: ncb-halo 1500ms var(--ncb-ease);
}

/* The second ring trails the first, which is what makes it read as a ripple
   rather than a single blink. No fill mode: during the delay the base rule's
   opacity: 0 applies, so nothing sits visible on screen waiting to start. */
.ncb--attention .ncb-launcher::after { animation-delay: 480ms; }

/* ============================================================================ */
/* Responsive                                                                   */
/* ============================================================================ */

/* Short laptop viewports: let the panel use the full height available, less the
   launcher offset it is sitting above. */
@media (min-width: 601px) and (max-height: 760px) {
	.ncb-panel { height: calc(100vh - 40px - var(--ncb-offset-bottom)); }
}

/* Phones: go full-screen. A 400px floating card on a 360px device is unusable. */
@media (max-width: 600px) {
	/* Phones get their own offset, because whatever the launcher has to clear
	   rarely sits in the same place as it does on desktop. The nested fallback
	   means an unset mobile value inherits the desktop one rather than
	   collapsing to zero. */
	.ncb {
		--ncb-offset-bottom: var(--ncb-offset-config-mobile, var(--ncb-offset-config, 0px));
		bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--ncb-offset-bottom));
	}

	/* Full-screen once open, so the offset must not survive into the height
	   maths - inset:0 already overrides bottom, this keeps the two consistent. */
	.ncb.ncb--open { --ncb-offset-bottom: 0px; }

	/* Below this width the corner comes from the mobile setting alone. Each rule
	   clears the opposite side: the desktop class is still on the root, and a
	   fixed element given both left and right would stretch between them rather
	   than sit in either corner. */
	.ncb--m-right { right: max(14px, env(safe-area-inset-right)); left: auto; }
	.ncb--m-left  { left:  max(14px, env(safe-area-inset-left)); right: auto; }

	/* The teaser follows the mobile corner for the same reason, and each rule
	   clears the opposite side so it cannot be stretched between the two. */
	.ncb--m-right .ncb-teaser { right: 0; left: auto; }
	.ncb--m-left  .ncb-teaser { left: 0; right: auto; }

	/* No launcher size override here on purpose. This block used to hardcode
	   padding and font-size, which silently beat any size setting on every
	   phone. The setting is now the single control; anyone wanting a smaller
	   launcher on mobile picks Compact or Icon only, which is a visible choice
	   rather than an invisible breakpoint. */

	.ncb--open { inset: 0; }

	.ncb--open .ncb-panel {
		width: 100%;
		max-width: none;
		/* dvh tracks the collapsing mobile browser chrome; vh is the fallback. */
		height: 100vh;
		height: 100dvh;
		border: 0;
		border-radius: 0;
	}

	.ncb .ncb-header {
		padding: 14px 16px;
		padding-top: max(14px, env(safe-area-inset-top));
	}

	.ncb { --ncb-pad-x: 16px; --ncb-pad-y: 16px; }

	.ncb .ncb-msg { padding: 16px; border-radius: 16px; }

	/* Full-screen here, so it rises from the bottom rather than scaling out of a
	   corner that no longer exists. */
	.ncb--open .ncb-panel {
		transform-origin: center bottom;
		animation-name: ncb-panel-in-mobile;
	}

	.ncb--closing .ncb-panel { animation-name: ncb-panel-out-mobile; }
}

/* Very small phones (320-360px): tighten one more notch. */
@media (max-width: 360px) {
	.ncb { font-size: 14.5px; --ncb-pad-x: 14px; --ncb-pad-y: 14px; }

	/* Forced icon-only regardless of the setting - a labelled pill on a 320px
	   screen leaves no room for anything else. Written as the same three tokens
	   the Icon size class sets, so there is one definition of what icon-only
	   means. This block appears later in the file at equal specificity, so it
	   wins on source order without needing !important. */
	.ncb {
		--ncb-launcher-label: none;
		--ncb-launcher-radius: 50%;
	}

	.ncb .ncb-launcher {
		width: var(--ncb-launcher-tap);
		height: var(--ncb-launcher-tap);
		padding: 0;
	}

	.ncb .ncb-msg { padding: 14px; }
	.ncb .ncb-trust__item { font-size: 11px; padding: 4px 10px; }
}

/* Coarse pointers get larger hit targets regardless of viewport width.
   Declared BEFORE the landscape block on purpose: a landscape phone matches
   both, and there the short-viewport rules must win, otherwise 50px controls
   eat the little vertical space that is left. */
@media (pointer: coarse) {
	.ncb .ncb-btn,
	.ncb .ncb-select,
	.ncb .ncb-form input { min-height: 50px; }

	/*
	 * The launcher floors at 44px, not 50px. A flat 50px here would override the
	 * Compact size on every touch device, making the setting look broken. 44px is
	 * the WCAG 2.5.5 target size and the figure the landscape block already uses,
	 * so Compact still shrinks - just not below what a thumb can hit.
	 *
	 * The in-panel controls keep 50px: those are tapped seven times during the
	 * flow, the launcher exactly once.
	 */
	.ncb { --ncb-launcher-tap: max(44px, var(--ncb-launcher-h)); }

	.ncb .ncb-close { width: 44px; height: 44px; }
}

/* Landscape phone: very little vertical room, so shed padding and let the body
   scroll rather than the actions falling off-screen. Controls tighten to 44px,
   the accessible minimum, rather than the roomier 50px above. */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
	/* Landscape phones are wider than 600px, so they never get inset:0 and the
	   container keeps its bottom offset. Combined with a 100dvh panel that would
	   push the bottom off-screen, and there is no vertical room to spare here
	   anyway - so the offset is dropped outright. */
	.ncb { --ncb-pad-x: 16px; --ncb-pad-y: 12px; --ncb-offset-bottom: 0px; }

	/* The panel is a full 100dvh here, so the container must sit flush to the
	   bottom. With the usual 20px gap it overflowed the top by exactly that much,
	   which pushed the header - and with it the close button - off-screen. */
	.ncb.ncb--open { bottom: 0; }
	.ncb--open .ncb-panel { height: 100vh; height: 100dvh; }
	.ncb .ncb-header { padding: 10px 16px; }
	.ncb .ncb-msg { padding: 12px 14px; margin-bottom: 10px; }
	.ncb .ncb-body > .ncb-actions:last-child,
	.ncb .ncb-form > .ncb-actions:last-child { margin-top: 10px; padding-top: 10px; }
	.ncb .ncb-title { font-size: 16px; }

	.ncb .ncb-btn,
	.ncb .ncb-select,
	.ncb .ncb-form input { min-height: 44px; }

	.ncb { --ncb-launcher-tap: max(44px, var(--ncb-launcher-h)); }

	.ncb .ncb-btn { padding: 10px 14px; font-size: 14px; }
	.ncb .ncb-btn__phone { display: none; }
	.ncb .ncb-form textarea { min-height: 64px; }
	.ncb .ncb-actions { gap: 8px; }
	.ncb .ncb-actions--stack { flex-direction: row; flex-wrap: wrap; }
	.ncb .ncb-actions--stack > * { flex: 1 1 auto; }
}

/* Large screens: a slightly wider panel reads better on a big monitor. */
@media (min-width: 1600px) {
	.ncb-panel { width: 440px; }
}

/*
 * Reduced motion. Everything above is decoration, so all of it goes - but the
 * widget must stay fully operable: the panel still opens and closes, steps still
 * change, the tick still appears, just instantly.
 *
 * Durations collapse to a hair rather than `animation: none`, which keeps
 * animation events firing and fill modes applying. Anything depending on an
 * animation completing therefore still completes. The panel teardown does not
 * rely on that - it runs on a timer for exactly this reason - but leaving the
 * behaviour intact costs nothing and removes a whole class of trap.
 */
@media (prefers-reduced-motion: reduce) {
	.ncb,
	.ncb *,
	.ncb *::before,
	.ncb *::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0ms !important;
	}

	.ncb .ncb-launcher:hover { transform: none; }
	.ncb .ncb-btn:active:not(:disabled) { transform: none; }
	.ncb .ncb-btn:hover .ncb-btn__icon { transform: none; }
	.ncb .ncb-option:hover .ncb-option__icon { transform: none; }
	.ncb .ncb-option:active:not(:disabled) { transform: none; }
	.ncb .ncb-alert::after { display: none; }

	/* The halo is pure attention-seeking, so it goes entirely. The teaser is not
	   - it carries a message - so it still appears, just without the slide, which
	   the duration collapse above already handles. */
	.ncb .ncb-launcher::before,
	.ncb .ncb-launcher::after { display: none; }
}

/* Windows high-contrast mode: restore borders the forced palette strips. */
@media (forced-colors: active) {
	.ncb-panel,
	.ncb .ncb-msg,
	.ncb .ncb-btn { border: 1px solid CanvasText; }
}
