/* Todo va bajo #walf para ganarle en especificidad a los estilos del tema/Elementor */
#walf, #walf * { box-sizing: border-box; }
#walf {
	--walf-green: #25d366;
	--walf-green-dark: #128c4b;
	--walf-ink: #1c2b24;
	--walf-muted: #5f6f67;
	--walf-line: #d5ddd8;
	--walf-error: #b3261e;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	width: auto;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: var(--walf-ink);
}

/* Botones: reset */
#walf .walf-btn,
#walf .walf-close,
#walf .walf-submit {
	margin: 0;
	border: 0 !important;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}
#walf .walf-btn:focus-visible,
#walf .walf-submit:focus-visible { outline: 3px solid var(--walf-ink); outline-offset: 3px; }

/* Botón flotante */
#walf .walf-btn {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	min-width: 0;
	padding: 0;
	border-radius: 50%;
	background: var(--walf-green) !important;
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(18, 140, 75, .35);
}
#walf .walf-btn:hover { background: var(--walf-green-dark) !important; }
#walf .walf-btn--img,
#walf .walf-btn--img:hover { background: transparent !important; box-shadow: none; }
#walf .walf-btn--img img {
	display: block;
	width: 60px;
	height: 60px;
	max-width: none;
	object-fit: contain;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
	transition: transform .15s ease;
}
#walf .walf-btn--img:hover img { transform: scale(1.06); }

/* Panel */
#walf .walf-panel {
	display: none;
	width: 340px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 110px);
	overflow-y: auto;
	margin: 0 0 14px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
#walf.walf-open .walf-panel { display: block; animation: walf-in .18s ease-out; }
@keyframes walf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

#walf .walf-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: var(--walf-green-dark);
	border-radius: 14px 14px 0 0;
}
#walf .walf-title { margin: 0; padding: 0; font-size: 16px; font-weight: 600; line-height: 1.3; color: #fff; }

#walf .walf-close {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	min-width: 0;
	padding: 0;
	background: transparent !important;
	color: #fff !important;
	line-height: 1;
}
#walf .walf-close:hover { opacity: .75; }
#walf .walf-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Formulario */
#walf .walf-form { display: grid; gap: 12px; margin: 0; padding: 16px; }
#walf .walf-form label {
	display: grid;
	gap: 4px;
	width: auto;
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--walf-ink);
}
#walf .walf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#walf .walf-row-tel { grid-template-columns: 90px 1fr; }
#walf .walf-form input,
#walf .walf-form select,
#walf .walf-form textarea {
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 9px 10px;
	border: 1px solid var(--walf-line);
	border-radius: 8px;
	background: #fff;
	color: var(--walf-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 400;
	box-shadow: none;
}
#walf .walf-form textarea { resize: vertical; min-height: 72px; }
#walf .walf-form input:focus,
#walf .walf-form select:focus,
#walf .walf-form textarea:focus {
	outline: none;
	border-color: var(--walf-green-dark);
	box-shadow: 0 0 0 3px rgba(37, 211, 102, .25);
}
#walf .walf-hint { margin: -6px 0 0; padding: 0; font-size: 12px; color: var(--walf-muted); }
#walf .walf-error { margin: 0; padding: 0; font-size: 13px; color: var(--walf-error); }
#walf .walf-error:empty { display: none; }

/* Botón de envío */
#walf .walf-submit {
	display: block;
	width: 100%;
	padding: 12px;
	border-radius: 8px;
	background: var(--walf-green) !important;
	color: #fff !important;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}
#walf .walf-submit:hover { background: var(--walf-green-dark) !important; }
#walf .walf-submit:disabled { opacity: .7; cursor: wait; }

@media (prefers-reduced-motion: reduce) {
	#walf.walf-open .walf-panel { animation: none; }
	#walf .walf-btn--img img { transition: none; }
}
@media (max-width: 480px) {
	#walf { right: 14px; bottom: 14px; }
	#walf .walf-panel { max-width: calc(100vw - 28px); }
}
