/* Lead capture in the chat (lead capture plan, step 2). Colours come from the chat window's tokens. */
.qcld-lead-card { margin-top: 8px; font-size: 14px; line-height: 1.45; }
.qcld-lead-intro { margin: 0 0 8px; }
.qcld-lead-form { display: flex; flex-direction: column; gap: 6px; }
.qcld-lead-form input[type="text"],
.qcld-lead-form input[type="email"] {
	width: 100%; box-sizing: border-box; padding: 8px 10px; font: inherit;
	color: var(--qcw-fg, #1d2327); background: var(--qcw-bg, #fff);
	border: 1px solid var(--qcw-border, #c3c4c7); border-radius: 8px;
}
.qcld-lead-form input:focus { outline: 2px solid var(--qcw-accent, #0f766e); outline-offset: 1px; }
.qcld-lead-consent { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; }
.qcld-lead-consent input { margin-top: 3px; }
.qcld-lead-note { margin: 0; min-height: 0; font-size: 12px; }
.qcld-lead-note:empty { display: none; }
.qcld-lead-actions, .qcld-lead-code-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qcld-lead-code-row input { width: 7em; }
.qcld-lead-card button,
.qcld-lead-tools button,
.qcld-lead-pop button:not(.qcld-lead-pop-close) {
	font: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer; border-radius: 999px;
	border: 1px solid var(--qcw-accent, #0f766e); background: transparent; color: var(--qcw-accent, #0f766e);
}
.qcld-lead-card .qcld-lead-send,
.qcld-lead-card .qcld-lead-verify { background: var(--qcw-accent, #0f766e); color: #fff; }
.qcld-lead-card button:disabled { opacity: .6; cursor: default; }
.qcld-lead-tools { margin-top: 8px; font-size: 13px; }
.qcld-lead-tools .qcld-lead-email-answer { border-style: dashed; }
.qcld-lead-sent { opacity: .85; }
.qcld-lead-coupon code { font-size: 15px; padding: 2px 6px; border: 1px dashed var(--qcw-border, #c3c4c7); border-radius: 6px; }
/* The form before the chat covers the conversation until it is sent. */
.qcld-lead-gated,
.qcw #wp-chatbot-board-container.qcld-lead-gated { position: relative; }
.qcld-lead-gate,
.qcw #wp-chatbot-board-container > .qcld-lead-gate {
	position: absolute; inset: 0; z-index: 30; overflow: auto; padding: 24px 20px;
	background: var(--qcw-bg, #fff); color: var(--qcw-fg, #1d2327);
}
.qcld-lead-gate h3 { margin: 0 0 6px; font-size: 18px; }
.qcld-lead-gate p { margin: 0 0 12px; }
/* The transcript offer after the chat was closed. */
.qcld-lead-pop {
	position: fixed; right: 20px; bottom: 124px; z-index: 2147483000; width: 300px; max-width: calc(100vw - 32px);
	box-sizing: border-box; padding: 14px 16px; border-radius: 12px; font-size: 14px;
	background: var(--qcw-bg, #fff); color: var(--qcw-fg, #1d2327); border: 1px solid var(--qcw-border, #dcdcde);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.qcld-lead-pop p { margin: 0 0 8px; padding-right: 18px; }
.qcld-lead-pop-close { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; }
@media (prefers-color-scheme: dark) {
	.qcld-lead-pop:not([data-theme="light"]) { background: var(--qcw-bg, #1f2328); color: var(--qcw-fg, #f0f0f1); }
}

/* Form before the chat: the way out, and who the visitor is chatting as (owner's mockup). */
.qcld-lead-alt { margin: 10px 0 0; font-size: 13px; opacity: .85; }
.qcld-lead-alt a { text-decoration: underline; }
.qcld-lead-who .qcld-lead-chatting-as { margin: 0; font-size: 12px; opacity: .75; }
