/* Convite "Nos conte o que procura" (22/10/2026) — ver SMCP_Convite_Busca.
   Lima da casa: superfície #a8cf45 com tinta #12210f (9,3:1); texto lima sobre branco #4f6e14.
   Celular: cartão que sobe do rodapé; computador: canto inferior direito. Nada cobre a página
   até a pessoa tocar em "Quero ajuda". */
.smcp-cv {
	--cv-lima: #a8cf45; --cv-lima-h: #93b833; --cv-tinta: #12210f; --cv-lima-tx: #4f6e14; --cv-lima-suave: #f4f9e8;
	--cv-tx: #1f2933; --cv-tx2: #52606d; --cv-line: #e4e7eb; --cv-bg: #fff; --cv-wa: #25d366; --cv-erro: #b42318;
	position: fixed; right: 20px; bottom: 20px; z-index: 99990; width: 380px; max-width: calc(100vw - 32px);
	font-size: 15px; line-height: 1.45; color: var(--cv-tx);
	opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease;
}
.smcp-cv[hidden] { display: none; }
.smcp-cv.is-in { opacity: 1; transform: none; }
.smcp-cv *, .smcp-cv *::before, .smcp-cv *::after { box-sizing: border-box; }

.smcp-cv-card {
	position: relative; background: var(--cv-bg); border: 1px solid var(--cv-line); border-radius: 16px;
	box-shadow: 0 12px 32px rgba(18, 33, 15, .18), 0 2px 6px rgba(18, 33, 15, .08);
	padding: 16px 16px 14px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain;
}
.smcp-cv-x {
	position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
	font-size: 24px; line-height: 1; color: var(--cv-tx2); border-radius: 10px;
}
.smcp-cv-x:hover { background: #f1f3f5; color: var(--cv-tx); }

.smcp-cv-head { display: flex; gap: 12px; align-items: flex-start; padding-right: 28px; }
.smcp-cv-t { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--cv-tx); }
.smcp-cv-d { margin: 0; font-size: 14px; color: var(--cv-tx2); }

/* Rostos da equipe empilhados, a da frente primeiro, com o selo do WhatsApp. */
.smcp-cv-team { position: relative; display: flex; flex: none; padding-right: 6px; }
.smcp-cv-team img, .smcp-cv-ini {
	position: relative; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; object-fit: cover;
	background: #e9ecef; box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.smcp-cv-team img + img, .smcp-cv-team img + .smcp-cv-ini, .smcp-cv-ini + img, .smcp-cv-ini + .smcp-cv-ini { margin-left: -14px; }
.smcp-cv-ini { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; }
.smcp-cv-wab {
	position: absolute; right: 0; bottom: -4px; z-index: 20; width: 22px; height: 22px; border-radius: 50%;
	background: var(--cv-wa); color: #fff; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff;
}
.smcp-cv-wab .smcp-cv-waic { width: 12px; height: 12px; }

.smcp-cv-body { margin-top: 12px; }
.smcp-cv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.smcp-cv-btn {
	flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
	padding: 10px 16px; border: 0; border-radius: 12px; background: var(--cv-lima); color: var(--cv-tinta);
	font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s ease;
}
.smcp-cv-btn:hover, .smcp-cv-btn:focus-visible { background: var(--cv-lima-h); color: var(--cv-tinta); text-decoration: none; }
.smcp-cv-btn .smcp-cv-waic { width: 18px; height: 18px; }
.smcp-cv-btn.is-busy { opacity: .7; cursor: progress; }
.smcp-cv-ghost {
	min-height: 46px; padding: 10px 14px; border: 1px solid var(--cv-line); border-radius: 12px; background: #fff;
	color: var(--cv-tx2); font-size: 14px; font-weight: 600; cursor: pointer;
}
.smcp-cv-ghost:hover { color: var(--cv-tx); border-color: #cbd2d9; }
.smcp-cv :focus-visible { outline: 3px solid var(--cv-lima-tx); outline-offset: 2px; }

.smcp-cv-hint { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--cv-lima-suave); color: var(--cv-lima-tx); font-size: 13px; font-weight: 600; }
.smcp-cv-q { display: block; margin: 12px 0 6px; font-size: 13.5px; font-weight: 700; color: var(--cv-tx); }
.smcp-cv-q span { font-weight: 400; color: var(--cv-tx2); }
.smcp-cv-q--big { margin-top: 0; font-size: 17px; }

.smcp-cv-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: #f1f3f5; }
.smcp-cv-seg .smcp-cv-chip { justify-content: center; border-color: transparent; background: transparent; }
.smcp-cv-seg .smcp-cv-chip.is-on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); color: var(--cv-tinta); border-color: transparent; }

.smcp-cv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.smcp-cv-chip {
	display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1px solid var(--cv-line);
	border-radius: 999px; background: #fff; color: var(--cv-tx); font-size: 14px; cursor: pointer;
}
.smcp-cv-chip:hover { border-color: var(--cv-lima-tx); }
.smcp-cv-chip.is-on { background: var(--cv-lima); border-color: var(--cv-lima); color: var(--cv-tinta); font-weight: 700; }

.smcp-cv-lbl { display: block; margin: 10px 0 4px; font-size: 13.5px; font-weight: 600; }
.smcp-cv-in {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd2d9; border-radius: 12px; background: #fff;
	font: inherit; font-size: 16px; color: var(--cv-tx); resize: vertical;   /* 16px: o iPhone não dá zoom ao focar */
}
.smcp-cv-in:focus { border-color: var(--cv-lima-tx); outline: none; box-shadow: 0 0 0 3px rgba(168, 207, 69, .35); }
textarea.smcp-cv-in { min-height: 64px; }
.smcp-cv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.smcp-cv-optin { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: var(--cv-tx2); cursor: pointer; }
.smcp-cv-optin input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--cv-lima-tx); }
.smcp-cv-erro { min-height: 0; margin: 8px 0 0; color: var(--cv-erro); font-size: 13.5px; font-weight: 600; }
.smcp-cv-erro:empty { display: none; }
.smcp-cv-lgpd { margin: 10px 0 0; font-size: 12px; color: var(--cv-tx2); }
.smcp-cv-lgpd a { color: var(--cv-lima-tx); }
.smcp-cv-ok p { margin: 0 0 6px; color: var(--cv-tx2); }
.smcp-cv-ok .smcp-cv-q--big { color: var(--cv-tx); }

.smcp-cv-load { display: flex; gap: 6px; justify-content: center; padding: 24px 0; }
.smcp-cv-load span { width: 8px; height: 8px; border-radius: 50%; background: var(--cv-lima); animation: smcpCvPulse 1s infinite ease-in-out; }
.smcp-cv-load span:nth-child(2) { animation-delay: .15s; } .smcp-cv-load span:nth-child(3) { animation-delay: .3s; }
@keyframes smcpCvPulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: none; } }

/* Celular: cartão que sobe do rodapé, largura total, respeitando a barra do iPhone. */
@media (max-width: 640px) {
	.smcp-cv { left: 0; right: 0; bottom: 0; width: 100%; max-width: none; }
	.smcp-cv-card { border-radius: 18px 18px 0 0; border-bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); max-height: 88vh; }
	.smcp-cv-card::before { content: ""; display: block; width: 40px; height: 4px; margin: -4px auto 10px; border-radius: 2px; background: #d9dde1; }
	.smcp-cv-head { padding-right: 32px; }
	.smcp-cv-team img, .smcp-cv-ini { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	.smcp-cv { transition: none; }
	.smcp-cv-load span { animation: none; opacity: .8; }
}

/* Formulário aberto: o convite já foi aceito — o texto do cabeçalho só ocupa espaço. */
.smcp-cv.is-open .smcp-cv-d { display: none; }
.smcp-cv.is-open .smcp-cv-head { align-items: center; }

/* Aviso no lugar da caixa de opt-in: quem pediu ajuda já está ciente (22/10/2026). */
.smcp-cv-aviso { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--cv-lima-suave); color: var(--cv-lima-tx); font-size: 13px; font-weight: 600; line-height: 1.4; }
.smcp-cv-aviso .smcp-cv-waic { flex: none; width: 16px; height: 16px; margin-top: 1px; color: #128c7e; }

/* O tema pinta todo link de lima em :hover/:focus/:active (a:focus vence .smcp-cv-btn) — no botão
   lima o texto sumia depois do toque. Trava a tinta em todos os estados. */
.smcp-cv a.smcp-cv-btn, .smcp-cv a.smcp-cv-btn:link, .smcp-cv a.smcp-cv-btn:visited,
.smcp-cv a.smcp-cv-btn:hover, .smcp-cv a.smcp-cv-btn:focus, .smcp-cv a.smcp-cv-btn:active { color: var(--cv-tinta); text-decoration: none; }
