/* ===========================================================================
   Assistente do Leiloeiro Oficial — estilo

   Segue a identidade do tema: fundo escuro (--lo-bg #12100c), dourado
   (--lo-gold #c9a24b), Playfair no titulo e Inter no corpo. O verde do
   WhatsApp saiu de proposito — ele prometia um canal banido em 15-16/09/2026.

   As variaveis tem fallback literal porque o widget e injetado pelo plugin e
   pode aparecer em pagina onde o CSS do tema nao carregou.
   =========================================================================== */

.lo-as,
.lo-as * { box-sizing: border-box; }

/* -------------------------------------------------------------- o botao */
.lo-as-launch {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99998;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 22px 0 18px;
	height: 56px;
	border: 1px solid rgba(201, 162, 75, .45);
	border-radius: 999px;
	background: var(--lo-bg-alt, #1a1712);
	color: var(--lo-title, #f7f1e5);
	font-family: var(--lo-sans, 'Inter', system-ui, sans-serif);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 14px 34px -12px rgba(201, 162, 75, .55);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lo-as-launch:hover {
	transform: translateY(-2px);
	border-color: var(--lo-gold, #c9a24b);
	box-shadow: 0 18px 40px -12px rgba(201, 162, 75, .75);
}

.lo-as-launch:focus-visible {
	outline: 2px solid var(--lo-gold-light, #d4af37);
	outline-offset: 3px;
}

.lo-as-launch-ico {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--lo-gold, #c9a24b);
	color: var(--lo-bg, #12100c);
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 800;
	flex: none;
}

.lo-as-launch-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4ade80;
	flex: none;
}

.lo-as-launch[hidden] { display: none; }

@media (max-width: 680px) {
	.lo-as-launch {
		right: 14px;
		bottom: 14px;
		height: 52px;
		padding: 0 18px 0 15px;
		font-size: 14px;
	}
}

/* -------------------------------------------------------------- o painel */
.lo-as {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99999;
	width: 380px;
	max-width: calc(100vw - 28px);
	max-height: min(620px, calc(100vh - 40px));
	display: none;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(201, 162, 75, .28);
	border-radius: 18px;
	background: var(--lo-bg, #12100c);
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85);
	font-family: var(--lo-sans, 'Inter', system-ui, sans-serif);
	color: var(--lo-body, #e8ddc8);
}

.lo-as.is-open {
	display: flex;
	animation: lo-as-in .22s ease-out;
}

@keyframes lo-as-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.lo-as.is-open { animation: none; }
	.lo-as-launch { transition: none; }
}

@media (max-width: 680px) {
	.lo-as {
		right: 0;
		bottom: 0;
		width: 100vw;
		max-width: 100vw;
		max-height: 88vh;
		border-radius: 18px 18px 0 0;
	}
}

/* ------------------------------------------------------------ cabecalho */
.lo-as-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 16px 15px;
	background: var(--lo-bg-dark, #0e0c08);
	border-bottom: 1px solid rgba(201, 162, 75, .22);
	flex: none;
}

.lo-as-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--lo-gold, #c9a24b);
	color: var(--lo-bg, #12100c);
	display: grid;
	place-items: center;
	font-family: var(--lo-display, 'Playfair Display', Georgia, serif);
	font-size: 18px;
	font-weight: 700;
	flex: none;
}

.lo-as-head-txt { min-width: 0; flex: 1; }

.lo-as-head-nome {
	font-family: var(--lo-display, 'Playfair Display', Georgia, serif);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--lo-title, #f7f1e5);
}

.lo-as-head-sub {
	font-size: 12px;
	color: var(--lo-label, #a89a80);
	margin-top: 2px;
}

.lo-as-fechar {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(201, 162, 75, .12);
	color: var(--lo-muted, #c3b79c);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	flex: none;
	transition: background .15s, color .15s;
}

.lo-as-fechar:hover { background: rgba(201, 162, 75, .24); color: var(--lo-title, #f7f1e5); }
.lo-as-fechar:focus-visible { outline: 2px solid var(--lo-gold, #c9a24b); outline-offset: 2px; }

/* -------------------------------------------------------------- conversa */
.lo-as-corpo {
	flex: 1;
	overflow-y: auto;
	padding: 18px 16px 8px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	scroll-behavior: smooth;
}

.lo-as-msg {
	max-width: 86%;
	padding: 11px 14px;
	border-radius: 14px;
	font-size: 14.5px;
	line-height: 1.55;
	white-space: pre-wrap;
	word-wrap: break-word;
	animation: lo-as-msg-in .18s ease-out;
}

@keyframes lo-as-msg-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) { .lo-as-msg { animation: none; } }

.lo-as-msg--bot {
	align-self: flex-start;
	background: var(--lo-bg-card, #17140d);
	border: 1px solid rgba(201, 162, 75, .18);
	border-bottom-left-radius: 5px;
	color: var(--lo-body, #e8ddc8);
}

.lo-as-msg--eu {
	align-self: flex-end;
	background: var(--lo-gold, #c9a24b);
	color: var(--lo-bg, #12100c);
	border-bottom-right-radius: 5px;
	font-weight: 500;
}

.lo-as-typing {
	align-self: flex-start;
	display: flex;
	gap: 4px;
	padding: 13px 16px;
	background: var(--lo-bg-card, #17140d);
	border: 1px solid rgba(201, 162, 75, .18);
	border-radius: 14px;
	border-bottom-left-radius: 5px;
}

.lo-as-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--lo-subtle, #8a7d64);
	animation: lo-as-bounce 1.3s infinite;
}

.lo-as-typing span:nth-child(2) { animation-delay: .18s; }
.lo-as-typing span:nth-child(3) { animation-delay: .36s; }

@keyframes lo-as-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: .45; }
	30%           { transform: translateY(-5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) { .lo-as-typing span { animation: none; opacity: .6; } }

/* --------------------------------------------------------------- opcoes */
.lo-as-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	padding: 2px 16px 10px;
	flex: none;
}

.lo-as-chip {
	padding: 8px 14px;
	border: 1px solid rgba(201, 162, 75, .38);
	border-radius: 999px;
	background: var(--lo-pill-bg, rgba(201, 162, 75, .12));
	color: var(--lo-title, #f7f1e5);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}

.lo-as-chip:hover {
	background: var(--lo-gold, #c9a24b);
	border-color: var(--lo-gold, #c9a24b);
	color: var(--lo-bg, #12100c);
}

.lo-as-chip:focus-visible { outline: 2px solid var(--lo-gold-light, #d4af37); outline-offset: 2px; }

/* -------------------------------------------------------------- entrada */
.lo-as-pe {
	flex: none;
	padding: 10px 12px 12px;
	background: var(--lo-bg-dark, #0e0c08);
	border-top: 1px solid rgba(201, 162, 75, .18);
}

.lo-as-form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.lo-as-campo {
	flex: 1;
	min-height: 42px;
	max-height: 110px;
	padding: 11px 13px;
	border: 1px solid rgba(201, 162, 75, .28);
	border-radius: 12px;
	background: var(--lo-bg-card, #17140d);
	font-family: inherit;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--lo-title, #f7f1e5);
	resize: none;
}

.lo-as-campo:focus {
	outline: 0;
	border-color: var(--lo-gold, #c9a24b);
}

.lo-as-campo::placeholder { color: var(--lo-subtle, #8a7d64); }

.lo-as-enviar {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 12px;
	background: var(--lo-gold, #c9a24b);
	color: var(--lo-bg, #12100c);
	font-size: 17px;
	cursor: pointer;
	flex: none;
	transition: background .15s;
}

.lo-as-enviar:hover { background: var(--lo-gold-light, #d4af37); }
.lo-as-enviar:focus-visible { outline: 2px solid var(--lo-gold-light, #d4af37); outline-offset: 2px; }

/* Honeypot: o mesmo campo "site" que o lo-captura ja descarta. */
.lo-as-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* --------------------------------------------------------------- rodape */
.lo-as-nota {
	padding: 0 16px 12px;
	font-size: 11.5px;
	line-height: 1.45;
	color: var(--lo-fineprint, #6b614d);
	text-align: center;
	flex: none;
}

.lo-as-erro {
	margin: 0 16px 10px;
	padding: 10px 13px;
	border: 1px solid rgba(220, 120, 100, .4);
	border-radius: 10px;
	background: rgba(127, 29, 29, .22);
	color: #f1c7bf;
	font-size: 13px;
	line-height: 1.45;
	flex: none;
}

.lo-as-erro a { color: var(--lo-gold-light, #d4af37); font-weight: 600; }
