/* HionSite Sales AI Chat — theme-friendly styling.
   Inherits the site's font and colors; only neutral structure and subtle surfaces. */

.hion-chat-root {
	margin: 1rem 0;
}

.hion-chat-panel[hidden] {
	display: none;
}

.hion-chat-root.is-launcher {
	display: inline-block;
	position: relative;
	margin: 0;
	vertical-align: middle;
}

/* A launcher block (not the shortcode) is a block of its own: the pill keeps its width at the start
   of the line, or the center or end when aligned. */
.hion-chat-root.is-launcher.is-launcher-block {
	display: flex;
}

/* A launcher block aligned center or right: the pill keeps its width and moves along the line. */
.hion-chat-root.is-launcher.is-align-center,
.hion-chat-root.is-launcher.is-align-right {
	display: flex;
}

.hion-chat-root.is-launcher.is-align-center {
	justify-content: center;
}

.hion-chat-root.is-launcher.is-align-right {
	justify-content: flex-end;
}

@property --hion-glow-angle {
	syntax: '<angle>';
	inherits: false;
	initial-value: 0deg;
}

.hion-chat-launcher {
	--hion-glow-angle: 0deg;
	position: relative;
	isolation: isolate;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) 48px;
	align-items: center;
	gap: 4px;
	width: clamp( 270px, 22.7vw, 327px );
	height: 60px;
	margin: 0;
	padding: 0 8px 0 12px;
	border: 1px solid transparent;
	border-radius: 444px;
	background:
		linear-gradient( #150045, #150045 ) padding-box,
		conic-gradient(
			from var( --hion-glow-angle ),
			transparent 0deg,
			transparent 180deg,
			#5712fa 220deg,
			#c39cff 270deg,
			#5712fa 320deg,
			transparent 360deg
		) border-box;
	color: #fff;
	font-family: inherit;
	animation: hion-border-orbit 3.4s linear infinite;
	transition: box-shadow 180ms ease;
}

.hion-chat-launcher:hover {
	background: linear-gradient( #150045, #150045 ) padding-box, linear-gradient( #5712fa, #5712fa ) border-box;
	box-shadow: 0 0 10px rgb( 87 18 250 / 55% ), 0 0 20px rgb( 87 18 250 / 25% );
}

.hion-chat-launcher:focus-within {
	background: linear-gradient( #150045, #150045 ) padding-box, linear-gradient( #5712fa, #5712fa ) border-box;
	box-shadow: 0 0 12px rgb( 195 156 255 / 70% ), 0 0 28px rgb( 87 18 250 / 45% );
}

@keyframes hion-border-orbit {
	to {
		--hion-glow-angle: 360deg;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.hion-chat-launcher {
		--hion-glow-angle: 35deg;
		animation: none;
	}
}

.hion-chat-sparkle {
	flex: 0 0 auto;
	font-size: 20px;
	line-height: 1;
	text-align: center;
}

.hion-chat-launcher .hion-chat-launcher-input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	outline: none;
	box-shadow: none;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
}

.hion-chat-launcher .hion-chat-launcher-input::placeholder {
	color: #fff;
	opacity: 1;
}

.hion-chat-launcher .hion-chat-launcher-label {
	display: none;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hion-chat-launcher .hion-chat-launcher-arrow {
	display: grid;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #5712fa;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

/* Full width (a block setting): the pill fills the line, on phones too. */
.hion-chat-root.is-launcher.is-width-full {
	display: block;
	width: 100%;
}

.hion-chat-root.is-launcher.is-width-full .hion-chat-launcher {
	width: 100%;
}

/* Teasers in the launcher: typed on a layer over the field, in the field's place. A long teaser is
   typed in a smaller size on two or three lines (sizes set in view.js). Hidden once the visitor
   types. */
.hion-chat-launcher.has-teasers > .hion-chat-sparkle {
	grid-column: 1;
	grid-row: 1;
}

.hion-chat-launcher.has-teasers > .hion-chat-launcher-input,
.hion-chat-launcher.has-teasers > .hion-chat-launcher-teaser {
	grid-column: 2;
	grid-row: 1;
}

.hion-chat-launcher.has-teasers > .hion-chat-launcher-arrow {
	grid-column: 3;
	grid-row: 1;
}

.hion-chat-launcher.has-teasers .hion-chat-launcher-label {
	display: none !important;
}

.hion-chat-launcher-teaser {
	min-width: 0;
	max-height: 46px;
	overflow: hidden;
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	text-align: start;
	pointer-events: none;
}

.hion-chat-launcher-input:not( :placeholder-shown ) ~ .hion-chat-launcher-teaser {
	visibility: hidden;
}

/* A launcher without the text field is a plain button at every width, as on mobile below: the label
   in place of the field, and the whole pill opens the chat. */
.hion-chat-launcher.is-button-only {
	cursor: pointer;
}

.hion-chat-launcher.is-button-only .hion-chat-launcher-label {
	display: block;
}

@media ( min-width: 701px ) {
	.hion-chat-launcher.is-button-only .hion-chat-launcher-label {
		font-size: 18px;
	}
}

.hion-chat-launcher.is-button-only .hion-chat-launcher-arrow::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

/* Mobile: the launcher is a plain button — the whole pill opens the popup. */
@media ( max-width: 700px ) {
	.hion-chat-launcher {
		width: min( 327px, calc( 100vw - 32px ) );
		height: 50px;
		grid-template-columns: 22px minmax(0, 1fr) 40px;
		gap: 6px;
	}

	.hion-chat-launcher .hion-chat-launcher-input {
		display: none;
	}

	.hion-chat-launcher .hion-chat-launcher-label {
		display: block;
	}

	.hion-chat-launcher-teaser {
		font-size: 14px;
	}

	.hion-chat-launcher .hion-chat-launcher-arrow {
		width: 40px;
		height: 40px;
	}

	.hion-chat-launcher .hion-chat-launcher-arrow::after {
		content: '';
		position: absolute;
		inset: 0;
		border-radius: inherit;
	}
}

.hion-chat-root.is-cta {
	box-sizing: border-box;
	width: min( 100%, var(--wp--style--global--wide-size, 1366px) );
	margin: 1rem auto;
}

.hion-chat-cta {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 98px;
	padding: 20px 24px;
	border: 0;
	border-radius: 12px;
	background: #2f1e59;
	color: #fff;
	text-align: left;
	font: inherit;
	cursor: pointer;
}

.hion-chat-cta:hover .hion-chat-cta-action,
.hion-chat-cta:focus-visible .hion-chat-cta-action {
	background: #6b2cff;
}

.hion-chat-cta-copy {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding-inline-start: 8px;
}

.hion-chat-cta-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.hion-chat-cta-description {
	color: #e3e3e3;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.35;
}

.hion-chat-cta-action {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	margin-inline-start: auto;
	padding: 4px 16px 4px 20px;
	border-radius: 999px;
	background: #5712fa;
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color 150ms ease;
}

.hion-chat-arrow {
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

.hion-chat-root.is-launcher .hion-chat-panel {
	position: fixed;
	right: max( 1rem, env( safe-area-inset-right ) );
	bottom: max( 1rem, env( safe-area-inset-bottom ) );
	z-index: 100000;
	width: min( 420px, calc( 100vw - 2rem ) );
	max-height: min( 680px, 85vh );
	box-shadow: 0 16px 48px rgba( 10, 0, 34, 0.35 );
	background: rgba( 0, 0, 0, 0.92 );
	color: #fff;
}

.hion-chat-root.is-launcher.is-top-right .hion-chat-panel,
.hion-chat-root.is-floating.is-top-right .hion-chat-panel {
	top: max( 1rem, env( safe-area-inset-top ) );
	bottom: auto;
}

.hion-chat-root.is-floating.is-top-right {
	top: max( 1rem, env( safe-area-inset-top ) );
	bottom: auto;
}

.hion-chat-root.is-launcher .hion-chat-panel,
.hion-chat-root.is-floating .hion-chat-panel {
	position: fixed;
	width: min( 420px, calc( 100vw - 2rem ) );
	height: auto;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	min-height: 0;
	box-sizing: border-box;
}

.hion-chat-root.is-cta .hion-chat-panel {
	position: relative;
	width: 100%;
	max-width: none;
	max-height: none;
	margin-top: 24px;
	border: 0;
	border-radius: 0;
	overflow: visible;
	background: transparent;
	color: #fff;
	box-shadow: none;
}

.hion-chat-root.is-cta .hion-chat-header {
	display: none;
}

.hion-chat-root.is-cta .hion-chat-messages {
	gap: 24px;
	min-height: 0;
	max-height: none;
	padding: 0;
	overflow: visible;
}

.hion-chat-root.is-cta .hion-chat-bubble {
	max-width: 100%;
}

.hion-chat-root.is-cta .hion-chat-user {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-end;
	width: fit-content;
	max-width: min( 100%, 480px );
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid #5712fa;
	border-radius: 999px;
	background: rgba( 21, 0, 69, 0.92 );
	font-size: 16px;
	line-height: 1.3;
	-webkit-text-fill-color: rgba( 255, 255, 255, 0.95 );
}

.hion-chat-root.is-cta .hion-chat-user::before {
	/* The same icon as in the message box. */
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	background: url( "../../assets/chat-composer-icon.svg" ) center / contain no-repeat;
	content: "";
}

.hion-chat-root.is-cta .hion-chat-assistant {
	align-self: stretch;
	padding: 0;
	border-radius: 0;
	background: transparent;
	font-size: 20px;
	line-height: 1.4;
}

.hion-chat-root.is-cta .hion-chat-assistant p {
	margin: 0;
}

.hion-chat-root.is-cta .hion-chat-sources {
	margin-top: 20px;
	padding-top: 0;
	border: 0;
}

.hion-chat-root.is-cta .hion-chat-source-list {
	grid-template-columns: repeat( auto-fit, minmax( min( 100%, 220px ), 290px ) );
	gap: 12px;
}

.hion-chat-root.is-cta .hion-chat-source-card {
	align-items: center;
	gap: 10px;
	min-height: 76px;
	padding: 10px;
	border-color: rgba( 255, 255, 255, 0.12 );
	border-radius: 8px;
	background: #150045;
	font-size: 14px;
}

.hion-chat-root.is-cta .hion-chat-source-media {
	flex-basis: 48px;
	width: 48px;
	height: 48px;
}

.hion-chat-root.is-cta .hion-chat-source-content {
	flex: 1 1 auto;
	min-width: 0;
}

.hion-chat-root.is-cta .hion-chat-source-title {
	display: -webkit-box;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.hion-chat-root.is-cta .hion-chat-source-description {
	font-size: 12px;
}

.hion-chat-root.is-cta .hion-chat-composer-icon {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	background: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 23.29 23.29' fill='none'%3E%3Cpath d='M13.52 22.23l.59-.99-1.4-.83-.59.99 1.4.83Zm-4.34-.99.59.99 1.4-.83-.59-.99-1.4.83ZM12.12 21.4a.56.56 0 0 1-.48.27.56.56 0 0 1-.48-.27l-1.4.83a2.19 2.19 0 0 0 3.76 0l-1.4-.83ZM10.02 0h3.25v1.63h-3.25V0ZM21.67 10.02h1.62v1.08h-1.62v-1.08ZM0 10.02h1.63v1.08H0v-1.08Z' fill='%238B5CF6'/%3E%3Cpath d='M6.5 8.4c0-.45.36-.82.81-.82h8.67a.81.81 0 1 1 0 1.63H7.31a.81.81 0 0 1-.81-.81Zm0 3.79c0-.45.36-.82.81-.82h5.96a.81.81 0 1 1 0 1.63H7.31a.81.81 0 0 1-.81-.81Z' fill='%238B5CF6'/%3E%3C/svg%3E" ) center / contain no-repeat;
}

.hion-chat-root.is-cta .hion-chat-inputrow {
	align-items: center;
	gap: 10px;
	min-height: 60px;
	margin-top: 40px;
	padding: 5px 6px 5px 16px;
	border: 1px solid #5712fa;
	border-radius: 999px;
	background: #150045;
}

.hion-chat-root.is-cta .hion-chat-input {
	min-height: 46px;
	max-height: 120px;
	padding: 10px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-size: 20px;
	line-height: 1.3;
	box-shadow: none;
}

.hion-chat-root.is-cta .hion-chat-input:focus {
	outline: none;
	box-shadow: none;
}

.hion-chat-root.is-cta .hion-chat-send {
	position: relative;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	background: #5712fa;
	font-size: 0;
}

.hion-chat-root.is-cta .hion-chat-send::after {
	color: #fff;
	content: "↑";
	font-size: 24px;
	line-height: 1;
}

/* Top right, as in the dashboard's chat: "start a new chat" and the status pill that closes. */
.hion-chat-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-inline-start: auto;
}

.hion-chat-reset {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	opacity: 0.75;
	cursor: pointer;
}

.hion-chat-reset:hover,
.hion-chat-reset:focus-visible {
	background: rgba( 127, 127, 127, 0.18 );
	opacity: 1;
}

.hion-chat-reset:disabled {
	opacity: 0.35;
	cursor: default;
}

.hion-chat-close {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 40px;
	padding: 0 6px 0 12px;
	border: 1px solid rgba( 167, 139, 250, 0.42 );
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}

.hion-chat-status-dot {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #47e0a1;
}

.hion-chat-status-dot.is-busy {
	background: #a78bfa;
	animation: hion-chat-status-pulse 1s ease-in-out infinite;
}

@keyframes hion-chat-status-pulse {
	50% {
		opacity: 0.35;
	}
}

.hion-chat-close-label {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.06 );
}

@media ( max-width: 640px ) {
	.hion-chat-status-text {
		display: none;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.hion-chat-status-dot.is-busy {
		animation: none;
	}
}

.hion-chat-close:hover,
.hion-chat-close:focus-visible {
	background: rgba( 255, 255, 255, 0.12 );
}

.hion-chat-launcher-arrow:focus-visible,
.hion-chat-cta:focus-visible,
.hion-chat-close:focus-visible {
	outline: 3px solid #a98cff;
	outline-offset: 3px;
}

.hion-chat-root.is-floating {
	position: fixed;
	right: max( 1rem, env( safe-area-inset-right ) );
	bottom: max( 1rem, env( safe-area-inset-bottom ) );
	z-index: 99999;
	width: min( 420px, calc( 100vw - 2rem ) );
	margin: 0;
}

.hion-chat-panel {
	display: flex;
	flex-direction: column;
	max-width: 640px;
	border: 1px solid rgba( 0, 0, 0, 0.12 );
	border-radius: 12px;
	overflow: hidden;
	font-family: inherit;
	background: rgba( 127, 127, 127, 0.04 );
}

.hion-chat-root.is-floating .hion-chat-panel {
	width: 100%;
	max-width: none;
	max-height: 80vh;
	background: rgba( 0, 0, 0, 0.88 );
	color: #fff;
}

/* Links to Hion's own pages in a reply. */
.hion-chat-bubble a.hion-chat-link {
	color: #c4b5fd;
	text-decoration: underline;
	text-underline-offset: 2px;
	overflow-wrap: anywhere;
}

.hion-chat-bubble a.hion-chat-link:hover,
.hion-chat-bubble a.hion-chat-link:focus-visible {
	color: #fff;
}

/* The note under the message box, with a "start a new chat" link. Subtle; on hover the text takes a
   moving gradient. */
.hion-chat-note {
	align-self: center;
	box-sizing: border-box;
	max-width: 100%;
	margin: 0 auto 10px;
	padding: 0 1rem;
	color: inherit;
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
	opacity: 0.55;
	transition: opacity 0.2s ease;
}

.hion-chat-note:hover,
.hion-chat-note:focus-within {
	background-image: linear-gradient( 90deg, #a78bfa, #f472b6, #60a5fa, #a78bfa );
	background-size: 300% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	opacity: 1;
	animation: hion-chat-note-gradient 4s linear infinite;
}

@keyframes hion-chat-note-gradient {
	to {
		background-position: 300% 0;
	}
}

.hion-chat-new,
.hion-chat-privacy-link {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	-webkit-text-fill-color: inherit;
	font: inherit;
	text-decoration: underline;
	text-decoration-color: currentColor;
	text-underline-offset: 3px;
	cursor: pointer;
}

.hion-chat-note:hover .hion-chat-new,
.hion-chat-note:focus-within .hion-chat-new,
.hion-chat-note:hover .hion-chat-privacy-link,
.hion-chat-note:focus-within .hion-chat-privacy-link {
	text-decoration-color: #a78bfa;
}

@media ( prefers-reduced-motion: reduce ) {
	.hion-chat-note:hover,
	.hion-chat-note:focus-within {
		animation: none;
	}
}

.hion-chat-header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.1 );
	font-weight: 600;
}

.hion-chat-messages {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem;
	min-height: 160px;
	max-height: 420px;
	overflow-y: auto;
}

.hion-chat-messages.is-empty,
.hion-chat-messages:empty {
	display: none;
}

/* Where the system shows scrollbars all the time (Windows, macOS with a mouse), a thin purple
   one on a transparent track instead of the grey default. */
.hion-chat-messages {
	scrollbar-width: thin;
	scrollbar-color: rgba( 167, 139, 250, 0.35 ) transparent;
}

.hion-chat-messages::-webkit-scrollbar {
	width: 8px;
}

.hion-chat-messages::-webkit-scrollbar-track {
	background: transparent;
}

.hion-chat-messages::-webkit-scrollbar-thumb {
	border: 2px solid transparent;
	border-radius: 999px;
	background: rgba( 167, 139, 250, 0.35 ) padding-box;
}

.hion-chat-messages::-webkit-scrollbar-thumb:hover {
	background-color: rgba( 167, 139, 250, 0.6 );
}

.hion-chat-root.is-floating .hion-chat-messages {
	flex: 1 1 auto;
	min-height: 0;
	max-height: calc( 80vh - 140px );
	overflow-x: hidden;
	overflow-y: auto;
}

.hion-chat-root.is-launcher .hion-chat-messages {
	flex: 1 1 auto;
	min-height: 0;
	max-height: calc( 80vh - 140px );
	overflow-x: hidden;
	overflow-y: auto;
}

.hion-chat-root.is-floating .hion-chat-inputrow,
.hion-chat-root.is-launcher .hion-chat-inputrow {
	flex: 0 0 auto;
}

.hion-chat-bubble {
	padding: 0.5rem 0.75rem;
	border-radius: 12px;
	max-width: 85%;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.hion-chat-user {
	align-self: flex-end;
	background: #000;
	color: #fff;
	/* Keep user text legible regardless of theme text color. */
	-webkit-text-fill-color: #fff;
}

.hion-chat-assistant {
	align-self: flex-start;
	background: #000;
	color: #fff;
}

.hion-chat-inputrow {
	display: flex;
	gap: 0.5rem;
	padding: 0.75rem;
	border-top: 1px solid rgba( 0, 0, 0, 0.1 );
}

/* Quick prompts: suggested questions in a row directly above the message box. */
.hion-chat-quick-prompts {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 8px;
	box-sizing: border-box;
	margin-bottom: 8px;
	padding: 0 0.75rem;
}

.hion-chat-quick-prompts[hidden] {
	display: none;
}

.hion-chat-quick-prompt {
	--hion-glow-angle: 0deg;
	position: relative;
	flex: 0 0 auto;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid rgba( 167, 139, 250, 0.42 );
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	opacity: 0.8;
	transition: opacity 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* On hover the launcher's orbiting gradient runs around the border. Drawn as a ring (masked to the
   border), so the button stays transparent inside. */
.hion-chat-quick-prompt::before {
	content: "";
	position: absolute;
	inset: -1px;
	padding: 1px;
	border-radius: inherit;
	background: conic-gradient(
		from var( --hion-glow-angle ),
		transparent 0deg,
		transparent 180deg,
		#5712fa 220deg,
		#c39cff 270deg,
		#5712fa 320deg,
		transparent 360deg
	);
	-webkit-mask: linear-gradient( #000 0 0 ) content-box, linear-gradient( #000 0 0 );
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.hion-chat-quick-prompt:hover:not( :disabled ),
.hion-chat-quick-prompt:focus-visible {
	border-color: rgba( 167, 139, 250, 0.2 );
	box-shadow: 0 0 10px rgb( 87 18 250 / 35% );
	opacity: 1;
}

.hion-chat-quick-prompt:hover:not( :disabled )::before,
.hion-chat-quick-prompt:focus-visible::before {
	opacity: 1;
	animation: hion-border-orbit 3.4s linear infinite;
}

@media ( prefers-reduced-motion: reduce ) {
	.hion-chat-quick-prompt:hover:not( :disabled )::before,
	.hion-chat-quick-prompt:focus-visible::before {
		--hion-glow-angle: 35deg;
		animation: none;
	}
}

.hion-chat-quick-prompt:disabled {
	cursor: default;
	opacity: 0.45;
}

/* The call-to-action box keeps its space above the message box, now above the prompts. */
.hion-chat-root.is-cta .hion-chat-quick-prompts {
	margin-top: 40px;
	padding: 0;
}

.hion-chat-root.is-cta .hion-chat-quick-prompts:not( [hidden] ) + .hion-chat-inputrow {
	margin-top: 0;
}

/* On narrow screens one row that scrolls sideways, so the prompts do not push the conversation up. */
@media ( max-width: 640px ) {
	.hion-chat-quick-prompts {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}
}

.hion-chat-input {
	flex: 1;
	resize: none;
	/* Grows with the text (view.js fitInput) up to this, then scrolls. */
	max-height: 160px;
	overflow-y: auto;
	box-sizing: border-box;
	padding: 0.5rem 0.75rem;
	border: 1px solid rgba( 0, 0, 0, 0.2 );
	border-radius: 8px;
	font: inherit;
	background: transparent;
	color: inherit;
}

.hion-chat-send {
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: 8px;
	background: #000;
	color: #fff;
	-webkit-text-fill-color: #fff;
	cursor: pointer;
	font: inherit;
}

.hion-chat-send[disabled] {
	opacity: 0.5;
	cursor: default;
}

/* Typing/sending indicator — shown inside the reply bubble while waiting for the first token,
   and inside the send button while a request is in flight. */
.hion-chat-spinner {
	display: inline-block;
	width: 1em;
	height: 1em;
	border: 2px solid rgba( 127, 127, 127, 0.3 );
	border-top-color: currentColor;
	border-radius: 50%;
	animation: hion-chat-spin 0.7s linear infinite;
	vertical-align: -0.15em;
}

.hion-chat-spinner-btn {
	-webkit-text-fill-color: #fff;
}

.hion-chat-thinking {
	font-size: 0.8125rem;
	font-style: italic;
	opacity: 0.75;
}

.hion-chat-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
}

@keyframes hion-chat-spin {
	to {
		transform: rotate( 360deg );
	}
}

.hion-chat-editor-preview {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
	border: 0;
	border-radius: 12px;
	background: #10002f;
	color: #fff;
	font-family: inherit;
}

.hion-chat-editor-preview.is-launcher {
	align-items: flex-start;
}

.hion-chat-editor-preview.is-launcher.is-align-center {
	align-items: center;
}

.hion-chat-editor-preview.is-launcher.is-align-right {
	align-items: flex-end;
}

.hion-chat-editor-preview.is-launcher.is-width-full {
	align-items: stretch;
}

.hion-chat-editor-preview.is-width-full .hion-chat-editor-preview-launcher {
	display: flex;
}

.hion-chat-editor-preview.is-width-full .hion-chat-editor-preview-launcher-label {
	flex: 1 1 auto;
}

.hion-chat-editor-preview-caret {
	width: 1px;
	height: 18px;
	margin-inline-end: -6px;
	background: #fff;
}

.hion-chat-editor-preview-header {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

.hion-chat-editor-preview-bubble {
	align-self: flex-start;
	max-width: 85%;
	padding: 16px 18px;
	border: 1px solid rgba( 167, 139, 250, 0.3 );
	border-radius: 5px 20px 20px 20px;
	background: #150045;
	font-size: 14px;
	line-height: 1.5;
}

.hion-chat-editor-preview-composer {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 5px 6px 5px 16px;
	border: 1px solid #5712fa;
	border-radius: 999px;
	background: #150045;
}

.hion-chat-editor-preview-composer-icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	background: url( "../../assets/chat-composer-icon.svg" ) center / contain no-repeat;
}

.hion-chat-editor-preview-composer-text {
	flex: 1 1 auto;
	min-width: 0;
	color: #c8c8c8;
	font-size: 15px;
}

.hion-chat-editor-preview-send {
	display: grid;
	flex: 0 0 40px;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #5712fa;
	color: #fff;
	font-size: 18px;
}

.hion-chat-editor-preview-launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 18px;
	border: 1px solid #5712fa;
	border-radius: 999px;
	background: rgba( 21, 0, 69, 0.92 );
	font-size: 15px;
	font-weight: 500;
}

.hion-chat-editor-preview-sparkle,
.hion-chat-editor-preview-arrow {
	color: #a78bfa;
}

.hion-chat-editor-preview-hint {
	margin: 0;
	color: #c8c8c8;
	font-size: 13px;
}

.hion-chat-editor-preview-cta {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
	border-radius: 8px;
	background: #362064;
}

.hion-chat-editor-preview-cta strong {
	font-size: 18px;
}

.hion-chat-editor-preview-cta p {
	margin: 0;
	color: #e7e1ff;
	font-size: 14px;
}

.hion-chat-editor-preview-btn {
	align-self: flex-start;
	padding: 10px 20px;
	border-radius: 999px;
	background: #5712fa;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.hion-chat-notice {
	padding: 0.75rem 1rem;
	border: 1px solid rgba( 180, 100, 0, 0.4 );
	background: rgba( 255, 200, 0, 0.1 );
	border-radius: 8px;
}

.hion-chat-sources {
	margin-top: 0.9rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba( 127, 127, 127, 0.25 );
}

.hion-chat-sources-heading {
	margin-bottom: 0.5rem;
	font-size: 0.8em;
	font-weight: 600;
}

.hion-chat-source-list {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( min( 100%, 220px ), 1fr ) );
	gap: 0.5rem;
}

.hion-chat-source-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	padding: 0.65rem 0.75rem;
	border: 1px solid rgba( 127, 127, 127, 0.28 );
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	background: rgba( 127, 127, 127, 0.06 );
}

.hion-chat-source-card:focus-visible {
	outline: 3px solid #a98cff;
	outline-offset: 2px;
}

.hion-chat-source-media {
	position: relative;
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 4px;
	background: rgba( 127, 127, 127, 0.12 );
}

.hion-chat-source-placeholder {
	position: absolute;
	inset: 0;
	background: rgba( 127, 127, 127, 0.18 );
	animation: hion-chat-image-placeholder 1.2s ease-in-out infinite alternate;
}

.hion-chat-source-thumbnail {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
	opacity: 0;
	transition: opacity 180ms ease-out;
}

.hion-chat-source-media.is-loaded .hion-chat-source-thumbnail {
	opacity: 1;
}

.hion-chat-source-media.is-loaded .hion-chat-source-placeholder,
.hion-chat-source-media.is-failed .hion-chat-source-placeholder {
	display: none;
}

@keyframes hion-chat-image-placeholder {
	from {
		opacity: 0.45;
	}
	to {
		opacity: 1;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.hion-chat-source-placeholder {
		animation: none;
	}

	.hion-chat-source-thumbnail {
		transition: none;
	}
}

.hion-chat-source-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.hion-chat-source-title {
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.35;
	text-wrap: pretty;
}

.hion-chat-source-type {
	font-size: 0.72em;
	opacity: 0.72;
}

.hion-chat-source-description {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.8em;
	line-height: 1.4;
	opacity: 0.78;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* Full-window overlay opened from the launcher — matches the Figma design: 100% width,
   no border, and the same translucent dark-purple background as the React widget. */
.hion-chat-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: stretch;
	justify-content: center;
	background: rgba( 13, 2, 40, 0.9 );
	-webkit-backdrop-filter: blur( 9px );
	backdrop-filter: blur( 9px );
}

.hion-chat-popup[hidden] {
	display: none;
}

html.hion-chat-popup-open {
	overflow: hidden;
}

.hion-chat-popup .hion-chat-panel {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #fff;
}

/* The header lies over the top of the messages, translucent and blurred like the window around
   the chat, so the conversation shows through it as it scrolls. view.js sets its height. */
.hion-chat-popup .hion-chat-panel {
	position: relative;
}

.hion-chat-popup .hion-chat-header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 3;
	border-bottom: 0;
	background: rgba( 13, 2, 40, 0.55 );
	-webkit-backdrop-filter: blur( 9px );
	backdrop-filter: blur( 9px );
}

/* The logo replaces the title (see view.js). 104px wide, as hiondigital.com's header logo. */
.hion-chat-logo {
	display: block;
	width: 104px;
	max-width: 40%;
	height: auto;
	max-height: 40px;
	object-fit: contain;
	object-position: left center;
}

.hion-chat-logo.is-white {
	filter: brightness( 0 ) invert( 1 );
}

.hion-chat-header.has-logo .hion-chat-title {
	display: none;
}

/* In the full-window chat, over the site's own logo: view.js sets the position and size. The
   popup's backdrop filter makes it the containing block, and it covers the window. */
.hion-chat-popup .hion-chat-header.is-logo-anchored {
	box-sizing: border-box;
	padding-block: 0;
}

.hion-chat-popup .hion-chat-logo.is-anchored {
	position: fixed;
	max-width: none;
	max-height: none;
	margin: 0;
}

/* In the panels on the page the header is lower than the site's. */
.hion-chat-root .hion-chat-logo {
	max-height: 28px;
}

.hion-chat-popup .hion-chat-close:hover,
.hion-chat-popup .hion-chat-close:focus-visible {
	background: rgba( 127, 127, 127, 0.18 );
}

/* Messages start at the top and scroll as the conversation grows, in a centered column. Their
   own stacking layer keeps everything in them, the avatars too, under the header. */
.hion-chat-popup .hion-chat-messages,
.hion-chat-popup .hion-chat-messages.is-empty {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1 1 auto;
	justify-content: flex-start;
	gap: 24px;
	width: 100%;
	max-width: 960px;
	margin-inline: auto;
	min-height: 0;
	max-height: none;
	padding: 1.5rem clamp( 1rem, 3vw, 2.5rem );
	padding-top: calc( var( --hion-chat-header-h, 64px ) + 1.5rem );
	/* A barely visible line under the conversation, as wide as the prompts and message box. */
	background: linear-gradient( rgba( 167, 139, 250, 0.12 ), rgba( 167, 139, 250, 0.12 ) ) center bottom / calc( 100% - 2 * clamp( 1rem, 3vw, 2.5rem ) ) 1px no-repeat;
	overflow-x: hidden;
	overflow-y: auto;
}

.hion-chat-popup .hion-chat-bubble {
	max-width: min( 85%, 760px );
}

.hion-chat-popup .hion-chat-user {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-end;
	width: fit-content;
	max-width: min( 100%, 480px );
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid #5712fa;
	border-radius: 999px;
	background: rgba( 21, 0, 69, 0.92 );
	font-size: 16px;
	line-height: 1.3;
	-webkit-text-fill-color: rgba( 255, 255, 255, 0.95 );
}

.hion-chat-popup .hion-chat-user::before {
	/* The same icon as in the message box. */
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	background: url( "../../assets/chat-composer-icon.svg" ) center / contain no-repeat;
	content: "";
}

.hion-chat-popup .hion-chat-assistant {
	align-self: flex-start;
	width: min( 720px, 100% );
	padding: 22px 24px;
	border: 1px solid rgba( 167, 139, 250, 0.3 );
	border-radius: 5px 20px 20px 20px;
	background: #150045;
	color: #fff;
	font-size: 16px;
	line-height: 1.5;
	box-shadow: 0 16px 48px rgba( 0, 0, 0, 0.16 );
}

.hion-chat-popup .hion-chat-assistant .hion-chat-sources {
	width: 100%;
	margin-top: 16px;
}

.hion-chat-popup .hion-chat-assistant .hion-chat-source-list {
	grid-template-columns: repeat( auto-fill, minmax( 180px, 1fr ) );
	gap: 12px;
}

.hion-chat-popup .hion-chat-assistant .hion-chat-source-card {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #150045;
	color: #fff;
}

.hion-chat-popup .hion-chat-assistant .hion-chat-source-media {
	flex: 0 0 auto;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.hion-chat-popup .hion-chat-assistant .hion-chat-source-content {
	gap: 6px;
	padding: 12px;
}

.hion-chat-popup .hion-chat-assistant .hion-chat-source-title {
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
}

.hion-chat-popup .hion-chat-assistant .hion-chat-source-description {
	color: #fff;
	font-size: 14px;
	line-height: 1.35;
	opacity: 1;
}

/* As wide as the conversation's text column (the messages' width less their side padding), and
   lighter than before; rounded rather than a pill, since it grows with the text. */
.hion-chat-popup .hion-chat-inputrow {
	--hion-glow-angle: 0deg;
	position: relative;
	align-items: center;
	flex: 0 0 auto;
	gap: 10px;
	box-sizing: border-box;
	width: calc( min( 960px, 100% ) - 2 * clamp( 1rem, 3vw, 2.5rem ) );
	min-height: 52px;
	margin: 0 auto 12px;
	padding: 4px 4px 4px 14px;
	border: 1px solid rgba( 167, 139, 250, 0.45 );
	border-radius: 26px;
	background: rgba( 21, 0, 69, 0.92 );
}

/* The prompts line up with the message box under them. */
.hion-chat-popup .hion-chat-quick-prompts {
	width: calc( min( 960px, 100% ) - 2 * clamp( 1rem, 3vw, 2.5rem ) );
	margin: 12px auto 8px;
	padding: 0;
}

/* The sideways-scrolling row on phones clips what overflows it: room for the hover glow. */
@media ( max-width: 640px ) {
	.hion-chat-popup .hion-chat-quick-prompts {
		margin-top: 6px;
		padding: 6px 0;
	}
}

.hion-chat-popup .hion-chat-composer-icon {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	background: url( "../../assets/chat-composer-icon.svg" ) center / contain no-repeat;
}

.hion-chat-popup .hion-chat-input {
	min-height: 40px;
	max-height: 120px;
	padding: 9px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-size: 17px;
	line-height: 1.3;
	box-shadow: none;
}

.hion-chat-popup .hion-chat-input:focus {
	outline: none;
	box-shadow: none;
}

/* While the message box is active the launcher's orbiting gradient runs around its border, with
   a soft glow: the focus indicator. A ring masked to the border, like the quick prompts' hover. */
.hion-chat-popup .hion-chat-inputrow::before {
	content: "";
	position: absolute;
	inset: -1px;
	padding: 1px;
	border-radius: inherit;
	background: conic-gradient(
		from var( --hion-glow-angle ),
		transparent 0deg,
		transparent 180deg,
		#5712fa 220deg,
		#c39cff 270deg,
		#5712fa 320deg,
		transparent 360deg
	);
	-webkit-mask: linear-gradient( #000 0 0 ) content-box, linear-gradient( #000 0 0 );
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.hion-chat-popup .hion-chat-inputrow:focus-within {
	border-color: rgba( 167, 139, 250, 0.2 );
	box-shadow: 0 0 12px rgb( 195 156 255 / 45% ), 0 0 24px rgb( 87 18 250 / 30% );
}

.hion-chat-popup .hion-chat-inputrow:focus-within::before {
	opacity: 1;
	animation: hion-border-orbit 3.4s linear infinite;
}

@media ( prefers-reduced-motion: reduce ) {
	.hion-chat-popup .hion-chat-inputrow:focus-within::before {
		--hion-glow-angle: 35deg;
		animation: none;
	}
}

.hion-chat-popup .hion-chat-send {
	position: relative;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 50%;
	background: #5712fa;
	font-size: 0;
}

.hion-chat-popup .hion-chat-send:focus-visible {
	outline: 3px solid #a98cff;
	outline-offset: 2px;
}

.hion-chat-popup .hion-chat-send::after {
	position: absolute;
	inset: 0;
	background: url( "../../assets/chat-send-arrow.svg" ) center / 20px 20px no-repeat;
	content: "";
}

.hion-chat-popup .hion-chat-send.is-busy::after {
	display: none;
}

.hion-chat-popup .hion-chat-send .hion-chat-spinner {
	font-size: 16px;
}

@media ( max-width: 640px ) {
	.hion-chat-popup .hion-chat-panel {
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		border-radius: 0;
		box-shadow: none;
		padding-top: env( safe-area-inset-top );
		padding-bottom: env( safe-area-inset-bottom );
	}

	.hion-chat-popup .hion-chat-assistant .hion-chat-source-list {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media ( max-height: 420px ) {
	.hion-chat-root.is-floating .hion-chat-messages {
		max-height: max( 60px, calc( 80vh - 140px ) );
	}

	.hion-chat-root.is-launcher .hion-chat-messages {
		max-height: max( 60px, calc( 80vh - 140px ) );
	}
}

@media ( max-width: 640px ) {
	.hion-chat-root.is-cta {
		width: 100%;
		padding-inline: 16px;
	}

	.hion-chat-cta {
		align-items: flex-start;
		flex-wrap: wrap;
		padding: 18px 16px;
	}

	.hion-chat-cta-copy {
		flex-basis: calc( 100% - 46px );
	}

	.hion-chat-cta-title {
		font-size: 18px;
	}

	.hion-chat-cta-description {
		font-size: 14px;
	}

	.hion-chat-cta-action {
		margin-inline-start: 34px;
		font-size: 14px;
	}

	.hion-chat-root.is-cta .hion-chat-assistant {
		font-size: 18px;
	}

	.hion-chat-root.is-cta .hion-chat-source-list {
		grid-template-columns: repeat( auto-fit, minmax( min( 100%, 220px ), 290px ) );
	}

	.hion-chat-root.is-cta .hion-chat-input {
		font-size: 16px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.hion-chat-cta-action {
		transition: none;
	}
}

.hion-chat-slots {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
	padding: 12px;
	border-radius: 16px;
	background: #150045;
}

.hion-chat-slot {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 0 20px;
	border: 2px solid #5712fa;
	border-radius: 999px;
	background: #5712fa;
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.hion-chat-slot:hover:not( :disabled ) {
	background: #6d33fb;
}

.hion-chat-slot:focus-visible {
	outline: 3px solid #a98cff;
	outline-offset: 2px;
}

.hion-chat-slot:disabled {
	opacity: 0.6;
	cursor: default;
}

.hion-chat-slot.hion-chat-slot-more {
	border-color: #a78bfa;
	background: transparent;
}

.hion-chat-booking {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
	padding: 20px;
	border: 1px solid #a78bfa;
	border-radius: 20px;
	background: #150045;
	color: #e7e1ff;
}

.hion-chat-booking p {
	margin: 0;
}

.hion-chat-booking-title {
	font-size: 1.125em;
	font-weight: 700;
}

.hion-chat-booking-line.is-strong,
.hion-chat-booking-line strong {
	font-weight: 700;
}

.hion-chat-booking-btn {
	text-align: center;
}

.hion-chat-booking-btn.is-outline {
	border-color: #a78bfa;
	background: transparent;
}

.hion-chat-booking-btn.is-outline:hover:not( :disabled ) {
	background: #362064;
}

.hion-chat-booking-note {
	font-size: 0.875em;
}

.hion-chat-booking-note a,
.hion-chat-booking-note span {
	text-decoration: underline;
}

/* "Show earlier conversation" link above a welcome-back greeting. */
.hion-chat-root .hion-chat-earlier,
.hion-chat-popup .hion-chat-earlier {
	align-self: center;
	padding: 6px 12px;
	border: 0;
	background: transparent;
	color: #a78bfa;
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.hion-chat-root .hion-chat-earlier:hover,
.hion-chat-popup .hion-chat-earlier:hover {
	color: #c4b5fd;
}

.hion-chat-root .hion-chat-earlier:focus-visible,
.hion-chat-popup .hion-chat-earlier:focus-visible {
	outline: 3px solid #a98cff;
	outline-offset: 2px;
}

/* Chat avatar badge on the top-left corner of an assistant reply (blocks/chat/avatar.js). */
.hion-chat-avatar-slot {
	position: relative;
	align-self: flex-start;
	width: 0;
	height: 0;
	z-index: 2;
}

.hion-chat-avatar-slot .hion-chat-avatar {
	position: absolute;
	top: 0;
	left: -6px;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border: 2px solid rgba( 167, 139, 250, 0.55 );
	border-radius: 50%;
	background: radial-gradient( circle at 50% 35%, #4c25a8, #22075e );
	box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.35 );
	box-sizing: border-box;
}

.hion-chat-avatar-slot .hion-chat-avatar svg {
	display: block;
	width: 100%;
	height: 100%;
}

.hion-chat-avatar-slot .hion-chat-avatar-label {
	position: absolute;
	top: 26px;
	left: 56px;
	color: #c4b5fd;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.hion-chat-bubble.hion-chat-assistant.has-avatar {
	margin-top: 18px;
	padding-top: 40px;
}

.hion-chat-avatar-slot .hion-chat-avatar img {
	display: block;
	max-width: none;
}

/* Under the CTA: the conversation is saved, with a link to the privacy policy. */
.hion-chat-cta-privacy {
	margin: 8px 0 0;
	padding-inline: 4px;
	color: inherit;
	font-size: 13px;
	line-height: 1.4;
	opacity: 0.8;
}

.hion-chat-cta-privacy a {
	color: inherit;
	text-decoration: underline;
}

/* "About this service": the info icon in the header and the longer disclaimer it opens. */
.hion-chat-about-toggle {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	opacity: 0.75;
	cursor: pointer;
}

.hion-chat-about-toggle:hover,
.hion-chat-about-toggle:focus-visible,
.hion-chat-about-toggle[aria-expanded="true"] {
	background: rgba( 127, 127, 127, 0.18 );
	opacity: 1;
}

.hion-chat-about {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 5;
	box-sizing: border-box;
	width: calc( 100% - 2rem );
	max-width: 560px;
	max-height: 60vh;
	margin-inline: auto;
	padding: 1rem 2.5rem 1rem 1rem;
	overflow-y: auto;
	border: 1px solid rgba( 167, 139, 250, 0.35 );
	border-radius: 12px;
	background: #170b3b;
	color: #fff;
	box-shadow: 0 12px 32px rgba( 0, 0, 0, 0.35 );
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.55;
	text-align: left;
}

.hion-chat-about[hidden] {
	display: none;
}

.hion-chat-about-title {
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.hion-chat-about-text {
	margin: 0;
}

.hion-chat-about-text a {
	color: #c4b5fd;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hion-chat-about-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font-size: 1.25rem;
	line-height: 1;
	opacity: 0.75;
	cursor: pointer;
}

.hion-chat-about-close:hover,
.hion-chat-about-close:focus-visible {
	background: rgba( 255, 255, 255, 0.12 );
	opacity: 1;
}

/* In the note under the message box (the CTA chat has no header): as small as the note's text. */
.hion-chat-about-toggle.is-inline {
	display: inline-grid;
	opacity: 1;
	width: 1.5em;
	height: 1.5em;
	vertical-align: middle;
	border-radius: 50%;
}

.hion-chat-about-toggle.is-inline svg {
	width: 1em;
	height: 1em;
}

/* A page of Hion's own site the reply linked to (a case study): the source card as a link. */
.hion-chat-source-card.is-link {
	padding-right: 2rem;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hion-chat-source-card.is-link:hover,
.hion-chat-source-card.is-link:focus-visible {
	border-color: rgba( 167, 139, 250, 0.7 );
	background-color: rgba( 167, 139, 250, 0.14 );
}

.hion-chat-source-open {
	position: absolute;
	top: 0.5rem;
	right: 0.65rem;
	color: #c4b5fd;
	font-size: 0.9rem;
	line-height: 1;
}

@media ( prefers-reduced-motion: reduce ) {
	.hion-chat-source-card.is-link {
		transition: none;
	}
}
