/* The QuoteLane assistant: launcher, floating card (desktop), full screen (phones). Approved mockup A, 11 Nov 2026. */
.qla, .qla *, .qla-stuck, .qla-stuck * { box-sizing: border-box; }
.qla { --qla-g9: #194A35; --qla-g4: #96B369; --qla-li: #EBE784; --qla-ink: #15211A; --qla-muted: #5A675F; --qla-line: #DFE5DA; --qla-panel: #F2F4EF; --qla-pill: #F6F4C4; --qla-pill-ink: #3D3A10;
	font-family: Switzer, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--qla-ink); -webkit-font-smoothing: antialiased; }
.qla button, .qla textarea { font: inherit; color: inherit; text-transform: none; letter-spacing: normal; text-shadow: none; transition: none; min-height: 0; margin: 0; }
/* Themes style every button and field (borders, hover colours, padding); the chat sets its own on each state. */
.qla .qla-x, .qla .qla-x:hover, .qla .qla-x:focus { color: var(--qla-ink); border: 1px solid var(--qla-line); padding: 0; }
.qla .qla-x:hover, .qla .qla-x:focus { background: var(--qla-panel); }
.qla .qla-go, .qla .qla-go:hover, .qla .qla-go:focus { background: var(--qla-g9); color: #fff; border: 0; padding: 0; border-radius: 999px; }
.qla .qla-chip:hover, .qla .qla-chip:focus { background: #fff; color: var(--qla-ink); }
.qla .qla-new, .qla .qla-new:hover, .qla .qla-new:focus { background: none; border: 0; color: var(--qla-muted); border-radius: 0; }
.qla .qla-launch:focus { color: #fff; background: var(--qla-g9); border: 0; }
.qla .qla-in textarea, .qla .qla-in textarea:focus, .qla .qla-in textarea:hover { border: 0; border-radius: 0; outline: 0; box-shadow: none; background: transparent; width: auto; color: var(--qla-ink); }

.qla .qla-launch { position: fixed; right: 24px; bottom: 24px; z-index: 99990; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
	background: var(--qla-g9); color: #fff !important; font-size: 16px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(21, 33, 26, .55); }
.qla .qla-launch:hover { background: #12392A; }
.qla .qla-launch i, .qla-stuck i { display: block; width: 12px; height: 12px; border-radius: 3px; background: var(--qla-li); }
.qla .qla-launch:focus-visible, .qla button:focus-visible, .qla a:focus-visible, .qla-stuck button:focus-visible { outline: 3px solid var(--qla-g4); outline-offset: 2px; }
.qla .qla-launch[hidden], .qla .qla-panel[hidden] { display: none; }

.qla .qla-panel { position: fixed; right: 24px; bottom: 24px; z-index: 99991; width: 400px; height: min(720px, calc(100vh - 48px)); display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--qla-line); border-radius: 20px; box-shadow: 0 30px 70px -24px rgba(21, 33, 26, .45); }

.qla .qla-hd { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--qla-line); }
.qla .qla-hd img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.qla .qla-hd .qla-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.qla .qla-hd h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0; display: flex; align-items: center; gap: 8px; color: var(--qla-ink); font-family: inherit; }
.qla .qla-ai { font-size: 12px; font-weight: 600; background: var(--qla-pill); color: var(--qla-pill-ink); border-radius: 999px; padding: 2px 8px; }
.qla .qla-hd .qla-sub { font-size: 13px; color: var(--qla-muted); }
.qla .qla-x { margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--qla-line); background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.qla .qla-x:hover { background: var(--qla-panel); }

.qla .qla-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.qla .qla-msg { max-width: 88%; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.qla .qla-msg p { margin: 0 0 8px; } .qla-msg p:last-child { margin-bottom: 0; }
.qla .qla-msg code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: #fff; border: 1px solid var(--qla-line); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.qla .qla-msg ol, .qla .qla-msg ul { margin: 6px 0 8px 20px; padding: 0; } .qla-msg li { margin: 3px 0; }
.qla .qla-bot { align-self: flex-start; background: var(--qla-panel); border-radius: 4px 16px 16px 16px; padding: 12px 14px; }
.qla .qla-me { align-self: flex-end; background: var(--qla-g9); color: #fff; border-radius: 16px 4px 16px 16px; padding: 10px 14px; white-space: pre-wrap; }
.qla .qla-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qla .qla-chip { font-size: 14px; border: 1px solid var(--qla-line); border-radius: 999px; padding: 8px 13px; background: #fff; cursor: pointer; text-align: left; line-height: 1.3; }
.qla .qla-chip:hover { border-color: var(--qla-g4); }
.qla .qla-src { display: flex; align-items: center; gap: 10px; border: 1px solid var(--qla-line); border-radius: 12px; padding: 10px 12px; background: #fff; margin-top: 10px; font-size: 14px; color: var(--qla-ink) !important; text-decoration: none !important; line-height: 1.3; }
.qla .qla-src:hover { border-color: var(--qla-g4); }
.qla .qla-src small { display: block; color: var(--qla-muted); font-size: 12.5px; }
.qla .qla-src svg { flex: none; }
.qla .qla-hand { align-self: stretch; border: 1px solid var(--qla-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.qla .qla-hand b { font-size: 15px; font-weight: 600; }
.qla .qla-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--qla-g9); color: #fff !important; font-size: 15px; font-weight: 600; align-self: flex-start; text-decoration: none !important; }
.qla .qla-btn:hover { background: #12392A; }
.qla .qla-lnk { font-size: 14px; color: var(--qla-g9) !important; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.qla .qla-when { font-size: 13px; color: var(--qla-muted); line-height: 1.45; } .qla-when strong { color: var(--qla-ink); font-weight: 600; }
.qla .qla-typing { align-self: flex-start; background: var(--qla-panel); border-radius: 4px 16px 16px 16px; padding: 14px; display: flex; gap: 5px; }
.qla .qla-typing i { width: 7px; height: 7px; border-radius: 9px; background: var(--qla-g4); display: block; animation: qla-dot 1.2s infinite ease-in-out; }
.qla .qla-typing i:nth-child(2) { animation-delay: .15s; } .qla-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes qla-dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .qla-typing i { animation: none; } }
.qla .qla-note .qla-new { float: right; margin: 0 0 0 8px; font-size: 12px; color: var(--qla-muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; padding: 0; }
.qla .qla-note .qla-new[hidden] { display: none; }
.qla .qla-note .qla-new:disabled { opacity: .5; cursor: default; }

.qla .qla-ft { border-top: 1px solid var(--qla-line); padding: 12px 14px; background: #fff; }
.qla .qla-in { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--qla-line); border-radius: 24px; padding: 6px 6px 6px 16px; }
.qla .qla-in:focus-within { border-color: var(--qla-g4); }
.qla .qla-in textarea { flex: 1; border: 0; outline: 0; resize: none; background: transparent; font-size: 15px; line-height: 1.4; padding: 8px 0; max-height: 120px; min-height: 24px; box-shadow: none; }
.qla .qla-in textarea::placeholder { color: var(--qla-muted); opacity: 1; }
.qla .qla-go { flex: none; width: 36px; height: 36px; border-radius: 999px; background: var(--qla-g9); border: 0; display: grid; place-items: center; cursor: pointer; padding: 0; }
.qla .qla-go:disabled { opacity: .45; cursor: default; }
.qla .qla-note { font-size: 12px; color: var(--qla-muted); margin: 8px 0 0; line-height: 1.4; }
.qla .qla-note a { color: inherit !important; text-decoration: underline; text-underline-offset: 2px; }
.qla .qla-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Docs: "Still stuck?" under On this page. */
.qla-stuck { margin-top: 20px; font-size: 14px; line-height: 1.4; }
.qla-stuck p { color: #5A675F; margin: 0 0 4px; }
.qla-stuck button, .qla-stuck button:hover, .qla-stuck button:focus { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600; color: #194A35; text-decoration: underline; text-underline-offset: 3px; }
.qla-stuck i { width: 10px; height: 10px; border-radius: 2px; outline: 1px solid #96B369; }

@media (max-width: 600px) {
	.qla .qla-launch { right: 16px; bottom: 16px; height: 48px; font-size: 15px; }
	.qla .qla-panel { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); }
	.qla .qla-in textarea { font-size: 16px; } /* no zoom on focus in iOS */
	body.admin-bar .qla .qla-panel { top: 46px; } /* below the WordPress toolbar, which only logged-in users have */
}
html.qla-lock, html.qla-lock body { overflow: hidden; }
@media print { .qla { display: none !important; } }
