.hg-guide {
	--hg-guide-accent: #00b985;
	bottom: 22px;
	position: fixed;
	z-index: 130;
}

.hg-guide--right { right: 22px; }
.hg-guide--left { left: 22px; }

.hg-guide__launcher {
	align-items: center;
	background: var(--hg-guide-accent);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 28px rgba(0, 103, 76, .22);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	height: 52px;
	justify-content: center;
	padding: 0;
	transition: transform 180ms ease, background-color 180ms ease;
	width: 52px;
}

.hg-guide__launcher:hover { transform: translateY(-2px); }
.hg-guide__launcher:focus-visible,
.hg-guide__close:focus-visible,
.hg-guide__choice:focus-visible { outline: 3px solid #65e6c1; outline-offset: 3px; }
.hg-guide__launcher svg { height: 22px; width: 22px; }

.hg-guide__panel {
	background: #fff;
	border: 1px solid #d7e5e2;
	border-radius: 1.15rem;
	bottom: 66px;
	box-shadow: 0 24px 64px rgba(4, 27, 46, .2);
	display: flex;
	flex-direction: column;
	max-height: min(620px, calc(100dvh - 110px));
	overflow: hidden;
	position: absolute;
	width: min(390px, calc(100vw - 32px));
}

.hg-guide__panel[hidden] { display: none; }
.hg-guide--right .hg-guide__panel { right: 0; }
.hg-guide--left .hg-guide__panel { left: 0; }

.hg-guide__header {
	align-items: center;
	background: linear-gradient(115deg, #071b2e, #074638);
	color: #fff;
	display: grid;
	gap: .75rem;
	grid-template-columns: auto 1fr auto;
	padding: 1rem;
}

.hg-guide__avatar {
	align-items: center;
	background: var(--hg-guide-accent);
	border-radius: .75rem;
	display: flex;
	font-size: .72rem;
	font-weight: 900;
	height: 42px;
	justify-content: center;
	letter-spacing: .04em;
	width: 42px;
}

.hg-guide__header strong { display: block; font-size: .98rem; }
.hg-guide__header span { align-items: center; color: #c9dbdf; display: flex; font-size: .75rem; gap: .35rem; margin-top: .18rem; }
.hg-guide__header i { background: #5de0b7; border-radius: 50%; height: 7px; width: 7px; }

.hg-guide__close {
	align-items: center;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 1.35rem;
	height: 36px;
	justify-content: center;
	line-height: 1;
	width: 36px;
}

.hg-guide__body {
	background: #f5f9f8;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	min-height: 330px;
	overflow-y: auto;
	padding: 1rem;
}

.hg-guide__message {
	border-radius: .85rem;
	font-size: .88rem;
	line-height: 1.55;
	max-width: 88%;
	padding: .7rem .85rem;
	white-space: pre-line;
}

.hg-guide__message a {
	color: #007b5c;
	font-weight: 700;
	overflow-wrap: anywhere;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hg-guide__lead-offer,
.hg-guide__lead-card {
	align-self: stretch;
	background: #fff;
	border: 1px solid #c9dfda;
	border-radius: .95rem;
	color: #243b51;
	padding: .9rem;
}

.hg-guide__lead-offer {
	background: #eafaf5;
	border-color: #8bdac4;
}

.hg-guide__lead-offer p,
.hg-guide__lead-card > p {
	font-size: .8rem;
	line-height: 1.45;
	margin: 0 0 .7rem;
}

.hg-guide__lead-offer button,
.hg-guide__lead-submit {
	background: var(--hg-guide-accent);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: .8rem;
	font-weight: 800;
	min-height: 40px;
	padding: .6rem .9rem;
}

.hg-guide__lead-heading {
	align-items: center;
	display: flex;
	gap: .75rem;
	justify-content: space-between;
	margin-bottom: .45rem;
}

.hg-guide__lead-heading strong {
	color: #0d2a43;
	font-size: .92rem;
}

.hg-guide__lead-heading button {
	background: none;
	border: 0;
	color: #08785c;
	cursor: pointer;
	font: inherit;
	font-size: .7rem;
	font-weight: 750;
	padding: .25rem 0;
	text-decoration: underline;
}

.hg-guide__lead-form,
.hg-guide__lead-fields {
	display: grid;
	gap: .7rem;
}

.hg-guide__lead-field {
	display: grid;
	gap: .3rem;
}

.hg-guide__lead-field > span {
	color: #17334a;
	font-size: .72rem;
	font-weight: 750;
}

.hg-guide__lead-field input,
.hg-guide__lead-field select,
.hg-guide__lead-field textarea {
	background: #fff;
	border: 1px solid #c8dcd8;
	border-radius: .65rem;
	box-sizing: border-box;
	color: #102942;
	font: inherit;
	font-size: .8rem;
	line-height: 1.4;
	padding: .62rem .7rem;
	width: 100%;
}

.hg-guide__lead-field textarea {
	min-height: 96px;
	resize: vertical;
}

.hg-guide__lead-field input:focus,
.hg-guide__lead-field select:focus,
.hg-guide__lead-field textarea:focus {
	border-color: var(--hg-guide-accent);
	box-shadow: 0 0 0 3px rgba(0, 185, 133, .12);
	outline: 0;
}

.hg-guide__lead-consent {
	align-items: flex-start;
	color: #445e70;
	display: grid;
	font-size: .7rem;
	gap: .5rem;
	grid-template-columns: auto 1fr;
	line-height: 1.45;
	margin-top: .15rem;
}

.hg-guide__lead-consent input {
	height: 17px;
	margin: .1rem 0 0;
	width: 17px;
}

.hg-guide__lead-submit {
	width: 100%;
}

.hg-guide__lead-submit:disabled {
	cursor: wait;
	opacity: .65;
}

.hg-guide__lead-status {
	color: #526c7b;
	font-size: .72rem;
	line-height: 1.4;
	margin: 0;
	text-align: center;
}

.hg-guide__lead-status:empty { display: none; }
.hg-guide__lead-status--error { color: #a91b1b; }
.hg-guide__honeypot { left: -9999px; position: absolute; }

.hg-guide__lead-card--success {
	background: #e9f9f0;
	border-color: #94d7b4;
}

.hg-guide__lead-card--success strong { color: #08734c; }
.hg-guide__lead-card--success p { margin: .5rem 0 0; }
.hg-guide__lead-reference { font-size: .75rem; font-weight: 800; }

.hg-guide__message--guide {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #dbe8e5;
	color: #243b51;
}

.hg-guide__message--visitor {
	align-self: flex-end;
	background: #dff8ef;
	color: #07513f;
}

.hg-guide__message--pending {
	color: #607284;
	font-style: italic;
}

.hg-guide__composer {
	align-items: center;
	background: #fff;
	border-top: 1px solid #e0ebe8;
	display: grid;
	gap: .55rem;
	grid-template-columns: 1fr auto;
	padding: .75rem;
}

.hg-guide__composer input {
	background: #f7faf9;
	border: 1px solid #cbded9;
	border-radius: 999px;
	color: #102942;
	font: inherit;
	font-size: .84rem;
	min-width: 0;
	padding: .72rem .9rem;
}

.hg-guide__composer input:focus {
	border-color: var(--hg-guide-accent);
	box-shadow: 0 0 0 3px rgba(0, 185, 133, .13);
	outline: 0;
}

.hg-guide__composer button {
	align-items: center;
	background: var(--hg-guide-accent);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.hg-guide__composer button:disabled,
.hg-guide__composer input:disabled { cursor: wait; opacity: .62; }
.hg-guide__composer button svg { height: 18px; width: 18px; }
.hg-guide__composer button:focus-visible { outline: 3px solid #65e6c1; outline-offset: 2px; }

.hg-guide__choices {
	display: grid;
	gap: .55rem;
	margin-top: .15rem;
}

.hg-guide__choice {
	background: #fff;
	border: 1px solid #c8ded9;
	border-radius: .7rem;
	color: #0b4a3b;
	cursor: pointer;
	font: inherit;
	font-size: .83rem;
	font-weight: 750;
	padding: .72rem .8rem;
	text-align: left;
	text-decoration: none;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.hg-guide__choice:hover {
	background: #eafaf5;
	border-color: var(--hg-guide-accent);
	color: #07513f;
	transform: translateX(2px);
}

.hg-guide__choice--secondary {
	background: transparent;
	border-style: dashed;
	color: #607284;
}

.hg-guide__footer {
	background: #fff;
	border-top: 1px solid #e0ebe8;
	color: #667989;
	font-size: .68rem;
	line-height: 1.4;
	padding: .7rem 1rem;
	text-align: center;
}

@media (max-width: 520px) {
	.hg-guide { bottom: 14px; }
	.hg-guide--right { right: 14px; }
	.hg-guide--left { left: 14px; }
	.hg-guide__panel { bottom: 74px; max-height: min(70dvh, 590px); position: fixed; width: auto; }
	.hg-guide--right .hg-guide__panel,
	.hg-guide--left .hg-guide__panel { left: 14px; right: 14px; }
	.hg-guide__body { min-height: 300px; }
	.hg-guide__launcher { height: 48px; padding: 0; width: 48px; }
}

@media (prefers-reduced-motion: reduce) {
	.hg-guide__launcher,
	.hg-guide__choice { transition: none; }
}
