/* Brand kit copy of wp-content/themes/pql12-1/blf-lp/assets/css/chat.css (blf-brand26/site.php). Do not edit. */
@charset "UTF-8";
/*
 * BLF intake chat widget.
 *
 * LOADS ON EVERY PAGE OF THE SITE. Read that again before editing.
 *
 * Because of that, every selector here is scoped beneath `.blf-chat-dock`.
 * There are no bare element selectors, no `*` reset outside the dock, and no
 * rules touching html, body, or anything the theme owns. The original React
 * build's `globals.css` also set `body { overflow: hidden }` and made the
 * document a fixed-height flex shell — none of that is ported here, because on
 * a WordPress page it would freeze scrolling site-wide.
 *
 * Typography deliberately inherits from the host page: on the landing pages the
 * widget picks up Montserrat, and on the rest of the site it picks up the
 * theme's font. That keeps the widget looking native everywhere and avoids
 * shipping a 108 KB webfont to all 329 pages for one component.
 */

/* ---------------------------------------------------------------------------
   Dock — the only positioned root
   --------------------------------------------------------------------------- */

.blf-chat-dock {
	--c-navy: #0d223e;
	--c-navy-2: #123055;
	--c-gold: #FBD42D;
	--c-gold-2: #FBD42D;
	--c-line: #e6e9ee;
	--c-field: #cfd6de;
	--c-pill: #dfe4ea;
	--c-ink: #0d223e;
	--c-bubble-ink: #1c2c44;
	--c-muted: #8592a1;
	--c-soft: #9db0c6;
	--c-wash: #f5f6f8;
	--c-green: #37c46a;
	--c-green-cta: #2fa85a;
	--c-error: #b3261e;

	position: fixed;
	right: 18px;
	bottom: 24px;
	z-index: 99998;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: inherit;
	line-height: 1.5;
	text-align: left;
	color: var(--c-ink);
}

.blf-chat-dock,
.blf-chat-dock *,
.blf-chat-dock *::before,
.blf-chat-dock *::after {
	box-sizing: border-box;
}

.blf-chat-dock button {
	font-family: inherit;
}

/*
 * On the landing pages a fixed mobile CTA bar occupies the bottom edge, so the
 * dock lifts above it. The template adds this modifier; regular site pages have
 * no bar and keep the default offset.
 */
@media (max-width: 919px) {
	.blf-chat-dock {
		right: 12px;
	}

	.blf-chat-dock--above-bar {
		bottom: calc(84px + env(safe-area-inset-bottom));
	}
}

/* ---------------------------------------------------------------------------
   Launcher
   --------------------------------------------------------------------------- */

.blf-chat-launch {
	position: relative;
	width: 72px;
	height: 72px;
	border: none;
	padding: 0;
	background: transparent;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.blf-chat-launch:hover {
	transform: scale(1.05);
}

/* Inner circle clips the photo; the presence dot sits outside it so it is
   never cut off by the overflow. */
.blf-chat-launch__ring {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #fff;
	background: var(--c-navy);
	box-shadow: 0 10px 30px rgba(13, 34, 62, 0.35);
}

.blf-chat-launch__dot {
	position: absolute;
	right: 3px;
	bottom: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--c-green);
	border: 3px solid #fff;
}

.blf-chat-avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
}

/* ---------------------------------------------------------------------------
   Panel
   --------------------------------------------------------------------------- */

.blf-chat-panel {
	width: min(370px, calc(100vw - 24px));
	height: min(74dvh, 580px);
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(6, 16, 34, 0.4);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(13, 34, 62, 0.08);
	animation: blf-chat-in 0.18s ease-out;
	transform-origin: bottom right;
}

@supports not (height: 1dvh) {
	.blf-chat-panel {
		height: min(74vh, 580px);
	}
}

@keyframes blf-chat-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

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

/* ---- Header ---- */

.blf-chat-head {
	background: var(--c-navy);
	padding: 12px 12px 12px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.blf-chat-head__pic {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	flex: none;
	border: 2px solid rgba(251, 212, 45, 0.6);
}

.blf-chat-head__dot {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c-green);
	border: 2px solid var(--c-navy);
}

.blf-chat-head__text {
	flex: 1;
	min-width: 0;
	color: #fff;
}

.blf-chat-head__name {
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.blf-chat-head__sub {
	font-size: 11px;
	font-weight: 600;
	color: var(--c-soft);
}

.blf-chat-lang {
	display: flex;
	gap: 3px;
	flex: none;
}

.blf-chat-lang button {
	font-size: 10.5px;
	font-weight: 800;
	padding: 4px 6px;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: transparent;
	color: #fff;
	line-height: 1;
}

.blf-chat-lang button[aria-pressed="true"] {
	background: var(--c-gold);
	color: var(--c-navy);
}

.blf-chat-close {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	flex: none;
	padding: 0;
}

/* ---- Disclaimer gate ---- */

.blf-chat-disclaimer {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: var(--c-navy);
	color: #fff;
	padding: 18px;
}

.blf-chat-disclaimer__scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	font-size: 13px;
	line-height: 1.55;
	font-weight: 500;
}

.blf-chat-disclaimer__sub {
	margin-top: 14px;
	font-size: 11px;
	line-height: 1.5;
	color: var(--c-soft);
}

.blf-chat-disclaimer__sub a {
	color: var(--b26-ink-light, #FBD42D);
}

.blf-chat-agree {
	margin-top: 14px;
	min-height: 52px;
	background: var(--c-green-cta);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	flex: none;
}

/* ---- Transcript ---- */

.blf-chat-log {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 16px 14px;
	background: var(--c-wash);
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.blf-chat-msg {
	display: flex;
	align-items: flex-end;
	gap: 7px;
}

.blf-chat-msg--bot {
	justify-content: flex-start;
}

.blf-chat-msg--user {
	justify-content: flex-end;
}

.blf-chat-msg__pic {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	overflow: hidden;
	flex: none;
}

.blf-chat-bubble {
	max-width: 78%;
	padding: 9px 12px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 500;
}

.blf-chat-msg--bot .blf-chat-bubble {
	border-bottom-left-radius: 4px;
	background: #fff;
	color: var(--c-bubble-ink);
	box-shadow: 0 1px 3px rgba(13, 34, 62, 0.08);
}

.blf-chat-msg--user .blf-chat-bubble {
	border-bottom-right-radius: 4px;
	background: linear-gradient(135deg, #123055, #0d223e);
	color: #fff;
}

/* Typing indicator */
.blf-chat-typing {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.blf-chat-typing i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c-soft);
	display: inline-block;
	animation: blf-chat-blink 1.2s infinite ease-in-out both;
}

.blf-chat-typing i:nth-child(2) {
	animation-delay: 0.2s;
}

.blf-chat-typing i:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes blf-chat-blink {
	0%,
	80%,
	100% {
		opacity: 0.25;
		transform: translateY(0);
	}
	40% {
		opacity: 1;
		transform: translateY(-2px);
	}
}

/* ---- Answer area ---- */

.blf-chat-answers {
	border-top: 1px solid var(--c-line);
	background: #fff;
	padding: 12px;
	flex: none;
}

.blf-chat-answers[hidden] {
	display: none;
}

.blf-chat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 7px;
}

.blf-chat-row {
	display: flex;
	gap: 8px;
}

.blf-chat-col {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.blf-chat-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1.5px solid var(--c-pill);
	border-radius: 11px;
	color: var(--c-navy);
	font-size: 12.5px;
	font-weight: 800;
	cursor: pointer;
	text-align: center;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

@media (hover: hover) {
	.blf-chat-pill:hover {
		background: var(--c-navy);
		border-color: var(--c-navy);
		color: #fff;
	}
}

.blf-chat-pill:active {
	background: var(--c-navy);
	border-color: var(--c-navy);
	color: #fff;
}

/* Stacked icon + label, for accident types. */
.blf-chat-pill--tile {
	flex-direction: column;
	gap: 5px;
	min-height: 58px;
	padding: 8px 4px;
}

/* Single-line, full width. */
.blf-chat-pill--block {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
}

/* Shares a row equally. */
.blf-chat-pill--grow {
	flex: 1;
	min-height: 44px;
	padding: 10px 12px;
}

/* ---- Free-text step ---- */

.blf-chat-story {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.blf-chat-story__row {
	display: flex;
	gap: 8px;
	align-items: center;
}

.blf-chat-story__input {
	flex: 1;
	min-height: 46px;
	padding: 10px 16px;
	border: 1.5px solid var(--c-field);
	border-radius: 23px;
	font-family: inherit;
	/* 16px stops iOS Safari zooming the page on focus. */
	font-size: 16px;
	color: var(--c-ink);
	background: #fff;
}

.blf-chat-send {
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	background: var(--c-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

.blf-chat-send[disabled] {
	cursor: default;
	opacity: 0.45;
}

.blf-chat-skip {
	align-self: center;
	background: none;
	border: none;
	color: var(--c-muted);
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	padding: 2px 8px;
}

/* ---- Contact step ---- */

.blf-chat-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.blf-chat-input {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1.5px solid var(--c-field);
	border-radius: 10px;
	font-family: inherit;
	font-size: 16px;
	color: var(--c-ink);
	background: #fff;
	transition: border-color 0.15s ease;
}

.blf-chat-input:focus,
.blf-chat-story__input:focus {
	border-color: var(--c-gold-2);
	outline: none;
}

/* Honeypot: off-screen and unfocusable. */
.blf-chat-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.blf-chat-err {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--c-error);
}

.blf-chat-submit {
	min-height: 46px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #FBD42D, #FBD42D);
	color: var(--c-navy);
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.blf-chat-submit:hover {
	filter: brightness(1.05);
}

.blf-chat-submit[disabled] {
	cursor: wait;
	opacity: 0.85;
}

.blf-chat-consent {
	font-size: 10px;
	line-height: 1.4;
	color: var(--c-muted);
	text-align: center;
}

/* ---- Done state ---- */

.blf-chat-callcta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	border-radius: 10px;
	background: var(--c-navy);
	color: #fff;
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 800;
}

.blf-chat-callcta:hover {
	color: #fff;
	background: var(--c-navy-2);
}


/* ---------------------------------------------------------------------------
   Host-page button resets must not leak in (2026-11-07)
   The redesigned pages load hello-elementor's reset.css, which paints any
   focused or hovered <button> #c36 pink with more weight than the widget's
   base rules. A tapped tile keeps :focus on a phone, so it stayed pink and
   looked pre-selected. Every widget button restates its own colours for
   :focus and :hover here; the pills keep navy for mouse hover and :active.
   --------------------------------------------------------------------------- */
.blf-chat-dock .blf-chat-launch:focus,
.blf-chat-dock .blf-chat-launch:hover { background: transparent; }
.blf-chat-dock .blf-chat-close:focus,
.blf-chat-dock .blf-chat-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.blf-chat-dock .blf-chat-lang button:focus,
.blf-chat-dock .blf-chat-lang button:hover { background: transparent; color: #fff; }
.blf-chat-dock .blf-chat-agree:focus,
.blf-chat-dock .blf-chat-agree:hover { background: var(--c-green-cta); color: #fff; }
.blf-chat-dock .blf-chat-skip:focus,
.blf-chat-dock .blf-chat-skip:hover { background: none; color: var(--c-muted); }
.blf-chat-dock .blf-chat-send:focus,
.blf-chat-dock .blf-chat-send:hover { background: var(--c-navy); }
.blf-chat-dock .blf-chat-submit:focus,
.blf-chat-dock .blf-chat-submit:hover { background: linear-gradient(135deg, #FBD42D, #FBD42D); color: var(--c-navy); }
.blf-chat-dock .blf-chat-lang button[aria-pressed="true"]:focus,
.blf-chat-dock .blf-chat-lang button[aria-pressed="true"]:hover { background: var(--c-gold); color: var(--c-navy); }
.blf-chat-dock .blf-chat-pill:focus { background: #fff; border-color: var(--c-pill); color: var(--c-navy); }
@media (hover: hover) {
	.blf-chat-dock .blf-chat-pill:hover { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
}
.blf-chat-dock .blf-chat-pill:active { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }

/* Links inside the widget: the redesigned pages set `body.elementor-kit-6 a`
   to navy, which outweighs the widget's single-class rules, so the closing
   "Prefer to talk now? Call ..." button rendered navy on navy and only turned
   white on hover (client, 2026-11-07). Restated with the dock's weight. */
.blf-chat-dock .blf-chat-callcta,
.blf-chat-dock .blf-chat-callcta:visited,
.blf-chat-dock .blf-chat-callcta:focus,
.blf-chat-dock .blf-chat-callcta:hover { color: #fff; text-decoration: none; }
.blf-chat-dock .blf-chat-disclaimer__sub a,
.blf-chat-dock .blf-chat-disclaimer__sub a:visited { color: var(--b26-ink-light, #FBD42D); }

/* ---------------------------------------------------------------------------
   Focus + reduced motion
   --------------------------------------------------------------------------- */

.blf-chat-dock :focus-visible {
	outline: 2px solid var(--c-gold-2);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.blf-chat-dock *,
	.blf-chat-panel {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
