/* Gregory Leads Toolkit: enquiry assistant. Uses the theme's tokens, with fallbacks. */
.gdt-asst {
	--a-ink: var(--gd-ink, #0A0F1C);
	--a-accent: var(--gd-accent, #FF6B2C);
	--a-accent-soft: var(--gd-accent-soft, #FF8A57);
	--a-accent-text: var(--gd-accent-text, #B4441A);
	--a-paper: var(--gd-paper, #F4F6FA);
	--a-line: var(--gd-paper-line, #E2E6EE);
	--a-slate: var(--gd-slate, #4A5468);
	--a-go: var(--gd-go, #3DDC97);
	font-family: var(--gd-body, 'Inter', system-ui, sans-serif);
	font-size: 15px;
	line-height: 1.5;
	color: #1B2232;
}
.gdt-asst *, .gdt-asst *::before, .gdt-asst *::after { box-sizing: border-box; }
.gdt-asst .screen-reader-text, .gdt-asst .gdt-hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Launcher ---------- */
.gdt-asst--float { position: fixed; right: 20px; bottom: 20px; z-index: 9990; }
.gdt-asst__launch {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px;
	background: var(--a-accent); color: var(--a-ink);
	font: 600 15px/1 var(--gd-body, 'Inter', system-ui, sans-serif);
	box-shadow: 0 10px 30px rgba(255, 107, 44, 0.3), 0 2px 6px rgba(10, 15, 28, 0.18);
	cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.gdt-asst__launch:hover { background: var(--a-accent-soft); transform: translateY(-1px); }
.gdt-asst__launch:focus-visible { outline: 3px solid var(--a-ink); outline-offset: 3px; }
.gdt-asst--float.is-open .gdt-asst__launch-text,
.gdt-asst__launch .gdt-asst__x { display: none; }
.gdt-asst--float.is-open .gdt-asst__launch .gdt-asst__x { display: block; }
.gdt-asst--float.is-open .gdt-asst__launch .gdt-asst__bubble-icon { display: none; }
.gdt-asst--float.is-open .gdt-asst__launch { padding: 0 16px; }

/* ---------- Panel ---------- */
.gdt-asst__panel {
	display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border-radius: 22px; border: 1px solid var(--a-line);
	box-shadow: 0 24px 60px rgba(10, 15, 28, 0.22), 0 4px 14px rgba(10, 15, 28, 0.08);
}
.gdt-asst__panel[hidden] { display: none; }
.gdt-asst--float .gdt-asst__panel {
	position: absolute; right: 0; bottom: 68px;
	width: min(392px, calc(100vw - 32px)); height: min(620px, calc(100vh - 120px));
}
.gdt-asst--inline .gdt-asst__panel { height: 600px; max-width: 560px; margin: 0 auto; }

.gdt-asst__head {
	display: flex; align-items: center; gap: 12px;
	padding: 14px 12px 14px 16px; background: var(--a-ink); color: #fff;
}
.gdt-asst__mark {
	flex: none; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
	background: #1A2540; color: #fff; font: 800 16px/1 var(--gd-display, 'Bricolage Grotesque', system-ui, sans-serif); letter-spacing: -0.04em;
}
.gdt-asst__mark b { color: var(--a-accent); font-weight: 800; }
.gdt-asst__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gdt-asst__who strong { font: 700 16px/1.2 var(--gd-display, 'Bricolage Grotesque', system-ui, sans-serif); letter-spacing: -0.01em; }
.gdt-asst__sub { font-size: 12.5px; color: #B7C0D1; display: inline-flex; align-items: center; gap: 6px; }
.gdt-asst__sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--a-go); }
.gdt-asst__icon {
	flex: none; width: 40px; height: 40px; border-radius: 12px; border: 0; display: grid; place-items: center;
	background: transparent; color: #B7C0D1; cursor: pointer;
}
.gdt-asst__icon:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.gdt-asst__icon:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 1px; }

.gdt-asst__log {
	flex: 1; overflow-y: auto; padding: 18px 16px 8px; background: var(--a-paper);
	display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth;
}
.gdt-asst__log:focus-visible { outline: 2px solid var(--a-accent); outline-offset: -2px; }
.gdt-asst__msg { display: flex; }
.gdt-asst__msg--u { justify-content: flex-end; }
.gdt-asst__bubble {
	max-width: 86%; padding: 10px 14px; border-radius: 16px; overflow-wrap: anywhere;
}
.gdt-asst__bubble p { margin: 0; }
.gdt-asst__bubble p + p { margin-top: 8px; }
.gdt-asst__msg--a .gdt-asst__bubble { background: #fff; border: 1px solid var(--a-line); border-bottom-left-radius: 6px; color: #1B2232; }
.gdt-asst__msg--u .gdt-asst__bubble { background: var(--a-ink); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.gdt-asst__bubble a { color: var(--a-accent-text); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.gdt-asst__msg--n {
	align-self: center; font-size: 12.5px; font-weight: 600; color: #0F6B47;
	background: #E3F7EE; border: 1px solid #BDEBD6; border-radius: 999px; padding: 4px 12px;
}

.gdt-asst__typing .gdt-asst__bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.gdt-asst__typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA4B8; animation: gdt-dot 1.1s infinite ease-in-out; }
.gdt-asst__typing i:nth-child(2) { animation-delay: .15s; }
.gdt-asst__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes gdt-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.gdt-asst__chips {
	display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 16px 12px; background: var(--a-paper);
}
.gdt-asst__chips[hidden] { display: none; }
.gdt-asst__chip {
	min-height: 38px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
	border: 1px solid #F3C2AC; background: #FFF4EE; color: #7A2E10;
	font: 500 14px/1.25 var(--gd-body, 'Inter', system-ui, sans-serif); text-align: left;
}
.gdt-asst__chip:hover { background: #FFE6D9; border-color: var(--a-accent); }
.gdt-asst__chip:focus-visible { outline: 2px solid var(--a-ink); outline-offset: 2px; }

.gdt-asst__form {
	display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--a-line); background: #fff;
}
.gdt-asst__input {
	flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 11px 14px;
	border: 1px solid var(--a-line); border-radius: 14px; background: #fff; color: #1B2232;
	font: 400 15px/1.4 var(--gd-body, 'Inter', system-ui, sans-serif);
}
.gdt-asst__input:focus { outline: none; border-color: var(--a-accent); box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.18); }
.gdt-asst__send {
	flex: none; width: 44px; height: 44px; border-radius: 14px; border: 0; display: grid; place-items: center;
	background: var(--a-accent); color: var(--a-ink); cursor: pointer;
}
.gdt-asst__send:hover { background: var(--a-accent-soft); }
.gdt-asst__send:disabled { opacity: .5; cursor: default; }
.gdt-asst__send:focus-visible { outline: 2px solid var(--a-ink); outline-offset: 2px; }

.gdt-asst__foot { margin: 0; padding: 0 16px 10px; background: #fff; font-size: 12px; color: var(--a-slate); }
.gdt-asst__foot a { color: var(--a-slate); text-decoration: underline; text-underline-offset: 2px; }

/* Inline embed section on the Enquiry Agent page. */
.gdt-asst-embed { margin: 8px 0 0; }

/* ---------- Small screens: full-screen chat ---------- */
@media (max-width: 560px) {
	.gdt-asst--float { right: 14px; bottom: 14px; }
	.gdt-asst__launch-text { display: none; }
	.gdt-asst__launch { padding: 0 16px; min-height: 56px; }
	.gdt-asst--float .gdt-asst__panel {
		position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0;
	}
	.gdt-asst--float.is-open .gdt-asst__launch { display: none; }
	.gdt-asst--inline .gdt-asst__panel { height: 560px; }
	.gdt-asst__input { font-size: 16px; } /* stops iOS zooming in */
}

@media (prefers-reduced-motion: reduce) {
	.gdt-asst__log { scroll-behavior: auto; }
	.gdt-asst__typing i { animation: none; }
	.gdt-asst__launch { transition: none; }
}

@media print { .gdt-asst--float { display: none; } }

/* "Missing enquiries?" box at the end of guides. */
.gdt-missed {
	margin: 40px 0 0; padding: 24px 26px; border-radius: 20px;
	background: var(--gd-ink, #0A0F1C); color: #E8ECF4;
	font-family: var(--gd-body, 'Inter', system-ui, sans-serif);
}
.gdt-missed p { margin: 0; }
.gdt-missed__eyebrow { font: 700 20px/1.25 var(--gd-display, 'Bricolage Grotesque', system-ui, sans-serif); color: #fff; letter-spacing: -0.01em; }
.gdt-missed__text { margin-top: 8px !important; font-size: 16px; line-height: 1.6; color: #B7C0D1; }
.gdt-missed__links { margin-top: 16px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.gdt-missed__links a { color: var(--gd-accent-soft, #FF8A57); font-weight: 600; text-decoration: none; }
.gdt-missed__links a:hover { text-decoration: underline; }
.gdt-missed .gdt-missed__btn {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
	background: var(--gd-accent, #FF6B2C); color: var(--gd-ink, #0A0F1C);
}
.gdt-missed .gdt-missed__btn:hover { background: var(--gd-accent-soft, #FF8A57); text-decoration: none; }
