/* Help Hub chat — uses the landing page tokens (Plus Jakarta Sans, #7B68EE accent, #0B0B0C ink). */
.hh-chat {
	--hh-accent: #7B68EE;
	--hh-ink: #0B0B0C;
	--hh-muted: #6E6E76;
	--hh-line: #ECECEE;
	--hh-tint: rgba(123, 104, 238, 0.1);
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--hh-ink);
}

.hh-chat button,
.hh-chat textarea { font: inherit; text-transform: none; }

.hh-chat .hh-chat__launch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--hh-ink);
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 16px 32px -16px rgba(11, 11, 12, 0.55);
	transition: none;
}
.hh-chat .hh-chat__launch:hover,
.hh-chat .hh-chat__launch:focus { background: var(--hh-accent); color: #FFFFFF; }
.hh-chat .hh-chat__launch { transition: background 0.25s ease; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 16px 32px -16px rgba(11, 11, 12, 0.55); }
.hh-chat__launch svg { display: block; flex: none; }
.hh-chat[data-open="true"] .hh-chat__launch { display: none; }

.hh-chat__panel {
	display: none;
	flex-direction: column;
	width: 380px;
	height: min(600px, calc(100vh - 40px));
	border-radius: 20px;
	background: #FFFFFF;
	border: 1px solid var(--hh-line);
	box-shadow: 0 24px 48px -24px rgba(11, 11, 12, 0.35);
	overflow: hidden;
}
.hh-chat[data-open="true"] .hh-chat__panel { display: flex; }

.hh-chat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	background: var(--hh-ink);
	color: #FFFFFF;
}
.hh-chat__title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.hh-chat__sub { margin: 2px 0 0; font-size: 13px; color: #A1A1AA; }
.hh-chat .hh-chat__close {
	flex: none;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #FFFFFF;
	cursor: pointer;
}
.hh-chat .hh-chat__close:hover,
.hh-chat .hh-chat__close:focus { background: rgba(255, 255, 255, 0.2); color: #FFFFFF; }

.hh-chat__log {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #FAFAFB;
}
.hh-chat__msg {
	max-width: 85%;
	padding: 12px 14px;
	border-radius: 16px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.hh-chat__msg--bot { align-self: flex-start; background: #FFFFFF; border: 1px solid var(--hh-line); border-bottom-left-radius: 6px; }
.hh-chat__msg--user { align-self: flex-end; background: var(--hh-accent); color: #FFFFFF; border-bottom-right-radius: 6px; }
.hh-chat__msg--error { align-self: flex-start; background: #FFFFFF; border: 1.5px dashed #E4E4E7; color: var(--hh-muted); }
.hh-chat__msg a { color: #5B49D6; font-weight: 500; }
.hh-chat__sources { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid #F4F4F5; font-size: 13px; color: var(--hh-muted); white-space: normal; }
.hh-chat__sources a { display: block; }

.hh-chat__typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px; }
.hh-chat__typing span { width: 7px; height: 7px; border-radius: 999px; background: #71717A; animation: hh-blink 1.2s infinite ease-in-out; }
.hh-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.hh-chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes hh-blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.hh-chat__form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid var(--hh-line);
	background: #FFFFFF;
}
.hh-chat .hh-chat__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 46px;
	max-height: 120px;
	padding: 11px 14px;
	border: 1.5px solid #E4E4E7;
	border-radius: 14px;
	background: #FFFFFF;
	color: var(--hh-ink);
	font-size: 16px;
	line-height: 1.4;
	resize: none;
}
.hh-chat .hh-chat__input:focus { outline: none; border-color: var(--hh-accent); }
.hh-chat .hh-chat__send {
	flex: none;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--hh-accent);
	color: #FFFFFF;
	cursor: pointer;
}
.hh-chat .hh-chat__send:hover,
.hh-chat .hh-chat__send:focus { background: var(--hh-accent); color: #FFFFFF; }
.hh-chat .hh-chat__send[disabled] { opacity: 0.5; cursor: default; }
.hh-chat__note { margin: 0; padding: 0 12px 10px; font-size: 12px; line-height: 1.5; color: var(--hh-muted); background: #FFFFFF; }
.hh-chat__note a { color: #5B49D6; font-weight: 500; }

.hh-chat :focus-visible { outline: 2px solid var(--hh-accent); outline-offset: 2px; }
.hh-chat__head :focus-visible { outline-color: #FFFFFF; }

@media (max-width: 767px) {
	/* Icon-only launcher on phones so it never covers page content. */
	.hh-chat .hh-chat__launch { width: 56px; height: 56px; padding: 0; justify-content: center; }
	.hh-chat__launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.hh-chat__launch svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
	.hh-chat { right: 16px; bottom: 16px; }
	.hh-chat[data-open="true"] { inset: 0; }
	.hh-chat__panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.hh-chat__typing span { animation: none; opacity: 0.6; }
}

/* ---------- Hero chat (#ask-hero): open above the fold ---------- */
.hh-chat.hh-chat--inline { position: static; inset: auto; z-index: auto; height: 100%; }
.hh-chat--inline .hh-chat__panel--inline { display: flex; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; background: #FFFFFF; }
.hh-chat--inline .hh-chat__close { display: none; }
.hh-chat--inline .hh-chat__head {
	position: relative;
	justify-content: flex-start;
	gap: 12px;
	padding: 18px 20px;
	background: radial-gradient(120% 140% at 100% 0%, rgba(123, 104, 238, 0.55) 0%, rgba(123, 104, 238, 0) 55%), #0B0B0C;
}
.hh-chat__avatar { position: relative; flex: none; width: 44px; height: 44px; border-radius: 14px; background: #FFFFFF; display: grid; place-items: center; }
.hh-chat__avatar img { display: block; height: 30px; width: auto; }
.hh-chat__avatar::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 999px; background: #22A55B; border: 2px solid #0B0B0C; }
.hh-chat--inline .hh-chat__title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.hh-chat--inline .hh-chat__sub { color: #C4C4CC; }
.hh-chat--inline .hh-chat__log { padding: 20px; gap: 14px; background: linear-gradient(180deg, #FAFAFB 0%, #FFFFFF 100%); }
.hh-chat--inline .hh-chat__msg--bot { border-color: #ECECEE; box-shadow: 0 8px 24px -18px rgba(11, 11, 12, 0.35); }
.hh-chat--inline .hh-chat__form { padding: 12px 14px 8px; border-top: 0; }
.hh-chat--inline .hh-chat__form { position: relative; }
.hh-chat.hh-chat--inline .hh-chat__input { min-height: 52px; padding: 14px 60px 14px 18px; border: 1.5px solid #E4E4E7; border-radius: 999px; background: #FAFAFB; font-size: 15px; transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.hh-chat.hh-chat--inline .hh-chat__input:focus { border-color: #7B68EE; background: #FFFFFF; box-shadow: 0 0 0 4px rgba(123, 104, 238, 0.14); }
.hh-chat.hh-chat--inline .hh-chat__send { position: absolute; right: 20px; bottom: 14px; width: 40px; height: 40px; background: #0B0B0C; transition: background 0.2s ease; }
.hh-chat.hh-chat--inline .hh-chat__send:hover,
.hh-chat.hh-chat--inline .hh-chat__send:focus { background: #7B68EE; }
[dir="rtl"] .hh-chat.hh-chat--inline .hh-chat__input { padding: 14px 18px 14px 60px; }
[dir="rtl"] .hh-chat.hh-chat--inline .hh-chat__send { right: auto; left: 20px; }
.hh-chat--inline .hh-chat__note { padding: 0 18px 14px; text-align: center; }

/* Corner button: hidden while the hero chat is on screen, then it brings you back to it. */
.hh-chat.hh-chat--launcher-only { transition: opacity 0.25s ease, transform 0.25s ease; }
.hh-chat.hh-chat--launcher-only:not(.hh-chat--away) { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* Ready-made questions */
.hh-chat__suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hh-chat .hh-chat__suggest button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 9px 14px 9px 12px;
	border: 1px solid #E3DFFC;
	border-radius: 999px;
	background: #F5F3FF;
	color: #2E2A47;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: start;
	white-space: normal;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.hh-chat .hh-chat__suggest button::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; opacity: 0.55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M20 12a8 8 0 0 1-11.7 7.1L4 20l1-4.2A8 8 0 1 1 20 12z%27/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M20 12a8 8 0 0 1-11.7 7.1L4 20l1-4.2A8 8 0 1 1 20 12z%27/%3E%3C/svg%3E") center / contain no-repeat; }
.hh-chat .hh-chat__suggest button:hover,
.hh-chat .hh-chat__suggest button:focus-visible { border-color: #7B68EE; color: #FFFFFF; background: #7B68EE; transform: translateX(2px); }

@media (max-width: 480px) {
	.hh-chat.hh-chat--inline[data-open="true"] { position: static; inset: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.hh-chat.hh-chat--launcher-only, .hh-chat .hh-chat__suggest button { transition: none; }
}

/* ---------- Centered hero ask box (hh-chat--hero) ---------- */
.hh-chat--hero .hh-chat__panel--inline { flex-direction: column; height: auto; background: transparent; overflow: visible; }
.hh-chat--hero .hh-chat__head { display: none; }
.hh-chat--hero .hh-chat__form { order: 1; padding: 0; background: transparent; }
.hh-chat--hero .hh-chat__suggest { order: 2; flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.hh-chat--hero .hh-chat__log { order: 3; flex: none; max-height: 420px; margin-top: 16px; padding: 20px; border: 1px solid #ECECEE; border-radius: 20px; background: #FFFFFF; box-shadow: 0 24px 48px -32px rgba(11, 11, 12, 0.3); text-align: start; }
.hh-chat--hero .hh-chat__log:empty { display: none; }
.hh-chat--hero .hh-chat__note { order: 4; margin-top: 12px; padding: 0; background: transparent; text-align: center; }
.hh-chat.hh-chat--hero .hh-chat__input { min-height: 64px; padding: 20px 76px 20px 24px; border: 1px solid #E4E4E7; border-radius: 20px; background: #FFFFFF; font-size: 17px; box-shadow: 0 30px 60px -34px rgba(91, 73, 214, 0.45), 0 2px 6px rgba(11, 11, 12, 0.04); }
.hh-chat.hh-chat--hero .hh-chat__input:focus { border-color: #7B68EE; box-shadow: 0 0 0 5px rgba(123, 104, 238, 0.14), 0 30px 60px -34px rgba(91, 73, 214, 0.5); }
.hh-chat.hh-chat--hero .hh-chat__send { right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 14px; }
[dir="rtl"] .hh-chat.hh-chat--hero .hh-chat__input { padding: 20px 24px 20px 76px; }
[dir="rtl"] .hh-chat.hh-chat--hero .hh-chat__send { right: auto; left: 12px; }
.hh-chat.hh-chat--hero .hh-chat__suggest button { background: #FFFFFF; border-color: #E4E4E7; }
@media (max-width: 767px) {
	.hh-chat.hh-chat--hero .hh-chat__input { min-height: 58px; padding: 17px 66px 17px 18px; font-size: 16px; }
	.hh-chat.hh-chat--hero .hh-chat__send { right: 8px; bottom: 7px; }
	[dir="rtl"] .hh-chat.hh-chat--hero .hh-chat__send { left: 8px; }
	.hh-chat--hero .hh-chat__suggest { justify-content: flex-start; }
	.hh-chat--hero .hh-chat__log { max-height: 380px; }
}

/* Hero ask box after the first question: one chat window, messages on top, typing box at the bottom. */
.hh-chat--hero.hh-chat--active .hh-chat__panel--inline { height: 520px; border: 1px solid #ECECEE; border-radius: 24px; background: #FFFFFF; overflow: hidden; box-shadow: 0 40px 80px -44px rgba(91, 73, 214, 0.45), 0 2px 6px rgba(11, 11, 12, 0.04); }
.hh-chat--hero.hh-chat--active .hh-chat__log { order: 1; flex: 1 1 auto; max-height: none; margin: 0; padding: 22px 22px 8px; border: 0; border-radius: 0; box-shadow: none; background: #FFFFFF; }
.hh-chat--hero.hh-chat--active .hh-chat__form { order: 2; padding: 12px 14px; border-top: 1px solid #F4F4F5; background: #FFFFFF; }
.hh-chat.hh-chat--hero.hh-chat--active .hh-chat__input { min-height: 52px; padding: 14px 64px 14px 18px; border-radius: 16px; background: #FAFAFB; font-size: 15px; box-shadow: none; }
.hh-chat.hh-chat--hero.hh-chat--active .hh-chat__input:focus { box-shadow: 0 0 0 4px rgba(123, 104, 238, 0.12); }
.hh-chat.hh-chat--hero.hh-chat--active .hh-chat__send { right: 22px; bottom: 18px; width: 40px; height: 40px; border-radius: 12px; }
[dir="rtl"] .hh-chat.hh-chat--hero.hh-chat--active .hh-chat__input { padding: 14px 18px 14px 64px; }
[dir="rtl"] .hh-chat.hh-chat--hero.hh-chat--active .hh-chat__send { right: auto; left: 22px; }
.hh-chat--hero.hh-chat--active .hh-chat__note { order: 3; margin: 0; padding: 0 16px 12px; background: #FFFFFF; }
@media (max-width: 767px) {
	.hh-chat--hero.hh-chat--active .hh-chat__panel--inline { height: 480px; border-radius: 20px; }
	.hh-chat.hh-chat--hero.hh-chat--active .hh-chat__send { right: 20px; bottom: 18px; }
	[dir="rtl"] .hh-chat.hh-chat--hero.hh-chat--active .hh-chat__send { left: 20px; }
}

/* ---------- Side chat card (Talha's pick): light, calm, premium ---------- */
.hh-chat--inline:not(.hh-chat--hero) .hh-chat__head { background: #FFFFFF; color: var(--hh-ink); padding: 16px 18px; border-bottom: 1px solid #F1F1F3; }
.hh-chat--inline:not(.hh-chat--hero) .hh-chat__title { color: var(--hh-ink); font-size: 16px; }
.hh-chat--inline:not(.hh-chat--hero) .hh-chat__sub { color: #6E6E76; font-size: 13px; }
.hh-chat--inline:not(.hh-chat--hero) .hh-chat__sub::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 999px; background: #22A55B; vertical-align: 1px; }
.hh-chat--inline:not(.hh-chat--hero) .hh-chat__avatar { width: 42px; height: 42px; border-radius: 13px; background: #F5F3FF; }
.hh-chat--inline:not(.hh-chat--hero) .hh-chat__avatar img { height: 28px; }
.hh-chat--inline:not(.hh-chat--hero) .hh-chat__avatar::after { display: none; }
.hh-chat--inline:not(.hh-chat--hero) .hh-chat__log { padding: 20px 18px 12px; background: #FAFAFB; }
.hh-chat--inline:not(.hh-chat--hero) .hh-chat__msg--bot { border-radius: 18px 18px 18px 6px; }
[dir="rtl"] .hh-chat--inline:not(.hh-chat--hero) .hh-chat__msg--bot { border-radius: 18px 18px 6px 18px; }
/* Ready-made questions sit right above the typing box, no empty gap. */
.hh-chat--inline:not(.hh-chat--hero) .hh-chat__suggest { margin-top: auto; padding-top: 6px; }
.hh-chat--inline:not(.hh-chat--hero) .hh-chat__form { padding: 12px 14px 6px; background: #FFFFFF; border-top: 1px solid #F1F1F3; }
.hh-chat.hh-chat--inline:not(.hh-chat--hero) .hh-chat__input { border-radius: 16px; }
.hh-chat.hh-chat--inline:not(.hh-chat--hero) .hh-chat__send { border-radius: 12px; }
.hh-chat--inline:not(.hh-chat--hero) .hh-chat__note { padding: 2px 16px 12px; font-size: 11.5px; line-height: 1.5; color: #8B8B93; }

@media (max-width: 767px) {
	/* Phone: the side chat card grows with its content; only after the first question does it become a fixed-height chat window. */
	.hh-chat--inline:not(.hh-chat--hero) .hh-chat__panel--inline { height: auto; }
	.hh-chat--inline:not(.hh-chat--hero) .hh-chat__log { flex: none; max-height: none; overflow: visible; padding: 16px 14px 10px; }
	.hh-chat--inline:not(.hh-chat--hero).hh-chat--active .hh-chat__log { height: 360px; overflow-y: auto; }
	.hh-chat--inline:not(.hh-chat--hero) .hh-chat__head { padding: 14px 16px; }
	.hh-chat--inline:not(.hh-chat--hero) .hh-chat__head > div { min-width: 0; }
	.hh-chat--inline:not(.hh-chat--hero) .hh-chat__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.hh-chat--inline:not(.hh-chat--hero) .hh-chat__msg { font-size: 15px; }
	.hh-chat--inline:not(.hh-chat--hero) .hh-chat__msg--bot { max-width: 100%; }
	.hh-chat--inline:not(.hh-chat--hero) .hh-chat__suggest { padding-top: 2px; }
	.hh-chat .hh-chat--inline:not(.hh-chat--hero) .hh-chat__suggest button,
	.hh-chat.hh-chat--inline:not(.hh-chat--hero) .hh-chat__suggest button { width: 100%; padding: 10px 14px; font-size: 14px; }
	.hh-chat--inline:not(.hh-chat--hero) .hh-chat__note { padding: 4px 14px 12px; }
}
