.hg-auto-assistant {
	--hg-assistant-ink: #043b47;
	--hg-assistant-muted: #536a72;
	--hg-assistant-line: #d8e2e5;
	--hg-assistant-orange: #ff8500;
	bottom: max(22px, env(safe-area-inset-bottom));
	right: 22px;
	position: fixed;
	z-index: 1900;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
}

.hg-auto-assistant [hidden] {
	display: none !important;
}

.hg-auto-assistant button,
.hg-auto-assistant input,
.hg-auto-assistant select,
.hg-auto-assistant textarea {
	font: inherit;
}

.hg-auto-assistant button,
.hg-auto-assistant a {
	-webkit-tap-highlight-color: transparent;
}

.hg-auto-assistant__launcher {
	align-items: center;
	background: var(--hg-assistant-ink);
	border: 2px solid #fff;
	border-radius: 999px;
	box-shadow: 0 10px 28px rgb(4 59 71 / 24%);
	color: #fff;
	cursor: pointer;
	display: flex;
	height: 48px;
	justify-content: center;
	min-height: 48px;
	padding: 0;
	width: 48px;
}

.hg-auto-assistant__launcher:hover {
	background: #075463;
}

.hg-auto-assistant__launcher svg {
	fill: none;
	height: 23px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	width: 23px;
}

.hg-auto-assistant__close {
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
}

.hg-auto-assistant__panel {
	background: #fff;
	border: 1px solid var(--hg-assistant-line);
	border-radius: 18px;
	bottom: 58px;
	box-shadow: 0 22px 60px rgb(1 42 51 / 24%);
	color: var(--hg-assistant-ink);
	display: flex;
	flex-direction: column;
	max-height: min(700px, calc(100dvh - 110px));
	overflow: hidden;
	position: absolute;
	right: 0;
	width: min(400px, calc(100vw - 44px));
}

.hg-auto-assistant__header {
	align-items: center;
	background: var(--hg-assistant-ink);
	color: #fff;
	display: flex;
	justify-content: space-between;
	padding: 17px 18px;
}

.hg-auto-assistant__eyebrow {
	color: #b9e0e6;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	margin: 0 0 2px;
	text-transform: uppercase;
}

.hg-auto-assistant__header h2,
.hg-auto-assistant__body h3,
.hg-auto-assistant__match h4 {
	font-family: inherit;
	font-weight: 800;
	line-height: 1.2;
}

.hg-auto-assistant__header h2 {
	color: #fff;
	font-size: 21px;
	margin: 0;
}

.hg-auto-assistant__close {
	color: #fff;
	align-items: center;
	border-radius: 50%;
	display: inline-flex;
	font-size: 30px;
	height: 40px;
	justify-content: center;
	padding: 0 0 3px;
	width: 40px;
}

.hg-auto-assistant__close:hover,
.hg-auto-assistant__close:focus-visible {
	background: rgb(255 255 255 / 12%);
	box-shadow: none;
	outline: 0;
}

.hg-auto-assistant__body {
	-webkit-overflow-scrolling: touch;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 18px;
	touch-action: pan-y;
}

.hg-auto-assistant__body h3 {
	color: var(--hg-assistant-ink);
	font-size: 19px;
	margin: 11px 0 9px;
}

.hg-auto-assistant__message,
.hg-auto-assistant__notice,
.hg-auto-assistant__loading {
	color: var(--hg-assistant-muted);
	margin: 0 0 15px;
}

.hg-auto-assistant__ai-form {
	background: #f4f8f9;
	border: 1px solid var(--hg-assistant-line);
	border-radius: 12px;
	margin-bottom: 14px;
	padding: 12px;
}

.hg-auto-assistant__ai-form > label {
	color: var(--hg-assistant-ink);
	display: block;
	font-size: 13px;
	font-weight: 800;
	margin-bottom: 6px;
}

.hg-auto-assistant__ai-control {
	display: grid;
	gap: 7px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.hg-auto-assistant__ai-control input {
	background: #fff;
	border: 1px solid #cbd9dd;
	border-radius: 9px;
	box-sizing: border-box;
	color: #143e47;
	min-height: 42px;
	min-width: 0;
	padding: 8px 10px;
	width: 100%;
}

.hg-auto-assistant__ai-control button {
	background: var(--hg-assistant-ink);
	border: 1px solid var(--hg-assistant-ink);
	border-radius: 9px;
	color: #fff;
	cursor: pointer;
	font-weight: 800;
	padding: 8px 13px;
}

.hg-auto-assistant__ai-control button:disabled {
	cursor: wait;
	opacity: .65;
}

.hg-auto-assistant__ai-form > p {
	color: var(--hg-assistant-muted);
	font-size: 11px;
	margin: 7px 0 0;
}

.hg-auto-assistant__or {
	align-items: center;
	color: #74878d;
	display: flex;
	font-size: 11px;
	gap: 8px;
	margin: 12px 0;
	text-transform: uppercase;
}

.hg-auto-assistant__or::before,
.hg-auto-assistant__or::after {
	background: var(--hg-assistant-line);
	content: "";
	flex: 1;
	height: 1px;
}

.hg-auto-assistant__ai-answer {
	color: var(--hg-assistant-ink);
	margin: 0 0 15px;
	white-space: pre-line;
}

.hg-auto-assistant__ai-thread {
	display: grid;
	gap: 9px;
	margin-bottom: 12px;
}

.hg-auto-assistant__bubble {
	border-radius: 12px 12px 12px 3px;
	justify-self: start;
	max-width: 90%;
	padding: 10px 12px;
	white-space: pre-line;
}

.hg-auto-assistant__bubble.is-assistant {
	background: #f0f5f6;
	color: var(--hg-assistant-ink);
}

.hg-auto-assistant__bubble.is-user {
	background: var(--hg-assistant-ink);
	border-radius: 12px 12px 3px 12px;
	color: #fff;
	justify-self: end;
}

.hg-auto-assistant__bubble.is-error {
	background: #fff0f0;
	color: #a22626;
}

.hg-auto-assistant__inline-link {
	color: #075f72;
	font-weight: 800;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.hg-auto-assistant__inline-link:hover {
	color: var(--hg-assistant-orange);
}

.hg-auto-assistant__ai-followup {
	display: grid;
	gap: 7px;
	grid-template-columns: minmax(0, 1fr) auto;
	position: sticky;
	bottom: -18px;
	background: #fff;
	padding: 10px 0 18px;
}

.hg-auto-assistant__ai-followup input,
.hg-auto-assistant__ai-followup button {
	border: 1px solid #cbd9dd;
	border-radius: 9px;
	min-height: 42px;
	padding: 8px 10px;
}

.hg-auto-assistant__ai-followup button {
	background: var(--hg-assistant-ink);
	border-color: var(--hg-assistant-ink);
	color: #fff;
	cursor: pointer;
	font-weight: 800;
}

.hg-auto-assistant__notice.is-error {
	color: #a22626;
}

.hg-auto-assistant__ai-links {
	display: grid;
	gap: 8px;
}

.hg-auto-assistant__ai-links a {
	display: block;
	text-align: center;
}

.hg-auto-assistant__choices {
	display: grid;
	gap: 9px;
}

.hg-auto-assistant__choices button,
.hg-auto-assistant__match-actions button,
.hg-auto-assistant__match-actions a,
.hg-auto-assistant__secondary {
	background: #fff;
	border: 1px solid var(--hg-assistant-line);
	border-radius: 10px;
	color: var(--hg-assistant-ink);
	cursor: pointer;
	font-weight: 750;
	padding: 11px 13px;
	text-align: left;
	text-decoration: none;
}

.hg-auto-assistant__choices button:hover,
.hg-auto-assistant__match-actions button:hover,
.hg-auto-assistant__match-actions a:hover {
	border-color: var(--hg-assistant-orange);
}

.hg-auto-assistant__back {
	background: transparent;
	border: 0;
	color: #12677a;
	cursor: pointer;
	font-size: 13px;
	font-weight: 750;
	margin: -4px 0 5px;
	padding: 4px 0;
}

.hg-auto-assistant__search label,
.hg-auto-assistant__lead-form > label:not(.hg-auto-assistant__consent),
.hg-auto-assistant__request-form > label:not(.hg-auto-assistant__consent) {
	color: var(--hg-assistant-ink);
	display: block;
	font-size: 13px;
	font-weight: 750;
	margin-bottom: 12px;
}

.hg-auto-assistant__search input,
.hg-auto-assistant__search select,
.hg-auto-assistant__lead-form input:not([type="hidden"]):not([type="checkbox"]),
.hg-auto-assistant__lead-form textarea,
.hg-auto-assistant__request-form input:not([type="hidden"]):not([type="checkbox"]),
.hg-auto-assistant__request-form textarea {
	background: #fff;
	border: 1px solid #cbd9dd;
	border-radius: 9px;
	box-sizing: border-box;
	color: #143e47;
	display: block;
	margin-top: 5px;
	min-height: 43px;
	padding: 9px 11px;
	width: 100%;
}

.hg-auto-assistant__lead-form textarea,
.hg-auto-assistant__request-form textarea {
	min-height: 82px;
	resize: vertical;
}

.hg-auto-assistant__field-grid {
	display: grid;
	gap: 0 10px;
	grid-template-columns: 1fr 1fr;
}

.hg-auto-assistant__primary {
	align-items: center;
	background: var(--hg-assistant-orange);
	border: 1px solid var(--hg-assistant-orange);
	border-radius: 10px;
	box-sizing: border-box;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	min-height: 44px;
	padding: 10px 15px;
	text-align: center;
	text-decoration: none;
}

.hg-auto-assistant__primary:hover {
	background: #e87500;
	color: #fff;
}

.hg-auto-assistant__primary:disabled {
	cursor: wait;
	opacity: .65;
}

.hg-auto-assistant__matches {
	display: grid;
	gap: 10px;
	margin: 12px 0;
}

.hg-auto-assistant__match-summary {
	color: var(--hg-assistant-ink);
	font-weight: 750;
	margin: 2px 0 10px;
}

.hg-auto-assistant__match {
	border: 1px solid var(--hg-assistant-line);
	border-radius: 12px;
	color: inherit;
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	overflow: hidden;
	text-decoration: none;
	transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.hg-auto-assistant__match:hover,
.hg-auto-assistant__match:focus-visible {
	border-color: var(--hg-assistant-orange);
	box-shadow: 0 7px 18px rgb(4 59 71 / 13%);
	color: inherit;
	transform: translateY(-1px);
}

.hg-auto-assistant__match-media {
	background: #eef3f4;
	display: block;
	min-height: 100%;
}

.hg-auto-assistant__match img {
	display: block;
	height: 100%;
	max-height: 138px;
	object-fit: cover;
	width: 100%;
}

.hg-auto-assistant__match-content {
	min-width: 0;
	padding: 10px;
}

.hg-auto-assistant__match h4 {
	color: var(--hg-assistant-ink);
	font-size: 15px;
	margin: 0 0 4px;
}

.hg-auto-assistant__match-price {
	color: var(--hg-assistant-ink);
	font-weight: 850;
	margin: 0 0 2px;
}

.hg-auto-assistant__match-meta {
	color: var(--hg-assistant-muted);
	font-size: 12px;
	margin: 0 0 8px;
}

.hg-auto-assistant__match-specs,
.hg-auto-assistant__finance {
	color: var(--hg-assistant-muted);
	font-size: 11px;
	margin: 0 0 5px;
}

.hg-auto-assistant__finance {
	color: var(--hg-assistant-ink);
	font-weight: 800;
}

.hg-auto-assistant__finance.is-link {
	cursor: pointer;
	text-decoration: underline;
}

.hg-auto-assistant__match-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hg-auto-assistant__match-actions button,
.hg-auto-assistant__match-actions a {
	font-size: 12px;
	padding: 6px 8px;
	text-align: center;
}

.hg-auto-assistant__view-all {
	display: flex;
	margin-top: 12px;
	width: 100%;
}

.hg-auto-assistant__consent {
	align-items: flex-start;
	color: var(--hg-assistant-muted);
	display: flex;
	font-size: 12px;
	font-weight: 400;
	gap: 5px;
	margin: 4px 0 12px;
}

.hg-auto-assistant__consent input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.hg-auto-assistant__honeypot {
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	overflow: hidden !important;
	position: absolute !important;
	white-space: nowrap !important;
	width: 1px !important;
}

.hg-auto-assistant__form-status {
	color: var(--hg-assistant-muted);
	font-size: 13px;
	margin: 0 0 9px;
}

.hg-auto-assistant__form-status.is-success {
	background: #eaf7ef;
	border-radius: 8px;
	color: #1e6c3a;
	padding: 10px;
}

.hg-auto-assistant__form-status.is-error {
	color: #a22626;
}

.hg-auto-assistant :focus-visible {
	outline: 3px solid rgb(255 133 0 / 35%);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.hg-auto-assistant {
		bottom: max(14px, env(safe-area-inset-bottom));
		right: 14px;
	}

	.hg-auto-assistant__panel {
		bottom: calc(max(14px, env(safe-area-inset-bottom)) + 56px);
		left: 14px;
		max-height: calc(100dvh - 92px);
		position: fixed;
		right: 14px;
		width: auto;
	}

	/* Hand scrolling back to the page at the top/bottom of the chat. */
	.hg-auto-assistant__body {
		overscroll-behavior-y: auto;
	}

	.hg-auto-assistant__field-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.hg-auto-assistant__panel {
		animation: hg-assistant-enter .2s ease-out;
	}

	@keyframes hg-assistant-enter {
		from { opacity: 0; transform: translateY(8px); }
		to { opacity: 1; transform: translateY(0); }
	}
}
