/* Manzana WhatsApp Menú — estilos del botón flotante y el panel. */
#mwm-root {
	--mwm-green: #25d366;
	--mwm-brand: #82bbac;
	--mwm-dark: #1c3b34;
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Botón flotante */
.mwm-launcher {
	position: relative;
	width: 64px;
	height: 64px;
	box-sizing: border-box;
	padding: 0; /* el tema (Kadence) mete padding a los <button> y aplastaba el SVG */
	border: 0;
	background: transparent; /* sin círculo: el propio logo (con su pico) es la forma */
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease;
}
/* El tema (Kadence) pinta fondo oscuro en button:hover/focus: lo neutralizamos. */
.mwm-launcher:hover,
.mwm-launcher:focus,
.mwm-launcher:active {
	background: transparent;
	box-shadow: none;
	outline: none;
}
.mwm-launcher:hover { transform: scale(1.06); }
/* sombra que sigue la silueta del logo (no un rectángulo/círculo) */
.mwm-launcher svg { width: 60px; height: 60px; flex: 0 0 auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }

/* Anillo de pulso que "llama" a pulsar (emana alrededor de la burbuja) */
.mwm-launcher::after {
	content: "";
	position: absolute;
	inset: 2px;
	border-radius: 50%;
	pointer-events: none;
	box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
	animation: mwm-pulse 2s infinite;
}
@keyframes mwm-pulse {
	0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
	50% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Globo rojo de notificación */
.mwm-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	box-sizing: border-box;
	background: #ff3b30;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
	animation: mwm-bounce 2s ease-in-out infinite;
}
/* El salto del globo coincide con el inicio del pulso (mismo ciclo de 2s) */
@keyframes mwm-bounce {
	0% { transform: translateY(0); }
	10% { transform: translateY(-5px); }
	25% { transform: translateY(0); }
	100% { transform: translateY(0); }
}

/* Al abrir el menú, calmar el pulso y ocultar el globo de notificación */
#mwm-root.is-open .mwm-launcher::after { animation: none; }
#mwm-root.is-open .mwm-badge { display: none; }

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
	.mwm-launcher::after,
	.mwm-badge { animation: none; }
}

/* Panel */
.mwm-panel {
	position: absolute;
	left: 0;
	bottom: 70px;
	width: 320px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
	overflow: hidden;
	display: none;
	animation: mwm-in .18s ease;
}
#mwm-root.is-open .mwm-panel { display: block; }
@keyframes mwm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.mwm-header {
	background: var(--mwm-green);
	color: #fff;
	padding: 16px;
}
.mwm-header strong { display: block; font-size: 15px; }
.mwm-header span { font-size: 12px; opacity: .9; }

.mwm-body { padding: 10px; max-height: 60vh; overflow-y: auto; }

/* Lista de opciones */
.mwm-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	background: #f6f8f7;
	border: 1px solid #e6ece9;
	border-radius: 12px;
	padding: 12px;
	margin: 6px 0;
	cursor: pointer;
	font-size: 14px;
	color: var(--mwm-dark);
}
.mwm-opt:hover { background: #eef4f1; border-color: var(--mwm-brand); }
.mwm-opt .mwm-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mwm-opt .mwm-ico svg { width: 20px; height: 20px; stroke: var(--mwm-brand); }

/* Subvistas */
.mwm-view { padding: 4px 6px 8px; }
.mwm-view h4 { margin: 6px 0 10px; font-size: 15px; color: var(--mwm-dark); }
.mwm-view p { font-size: 13px; color: #44544e; margin: 6px 0; }
.mwm-field { display: block; margin: 8px 0; }
.mwm-field label { display: block; font-size: 12px; color: #44544e; margin-bottom: 4px; }
.mwm-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	border: 1px solid #cfdbd6;
	border-radius: 10px;
	font-size: 14px;
}
.mwm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	padding: 11px;
	border: 0;
	border-radius: 10px;
	background: var(--mwm-green);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 8px;
	text-decoration: none;
}
.mwm-btn:hover { filter: brightness(1.05); }
.mwm-btn--ghost { background: #eef4f1; color: var(--mwm-dark); }
.mwm-back {
	background: none;
	border: 0;
	color: #6a7c75;
	cursor: pointer;
	font-size: 13px;
	padding: 4px 0;
}
.mwm-result {
	background: #f0f7f4;
	border: 1px solid #d5e7df;
	border-radius: 12px;
	padding: 12px;
	margin-top: 10px;
	font-size: 14px;
	color: var(--mwm-dark);
}
.mwm-result b { color: var(--mwm-dark); }
.mwm-error { color: #8a4b2f; font-size: 13px; margin-top: 8px; }
.mwm-muted { font-size: 11px; color: #8a978f; margin-top: 10px; }
