#mwa-root {
	--mwa-color: #25D366;
	position: fixed;
	bottom: 20px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.4;
}
#mwa-root *, #mwa-root *::before, #mwa-root *::after { box-sizing: border-box; }
#mwa-root.mwa-pos-right { right: 20px; flex-direction: row; }
#mwa-root.mwa-pos-left { left: 20px; flex-direction: row-reverse; }

/* Globo */
#mwa-root .mwa-bubble {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mwa-color);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	transition: transform .2s ease, box-shadow .2s ease;
	animation: mwa-pop-in .4s ease-out;
}
#mwa-root .mwa-bubble svg {
	width: 60% !important;
	height: 60% !important;
	max-width: none !important;
	flex: none;
	display: block;
}
#mwa-root .mwa-bubble:hover { transform: scale(1.07); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
#mwa-root .mwa-bubble:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--mwa-color); }

#mwa-root .mwa-tooltip {
	background: #fff;
	color: #1d2327;
	padding: 8px 12px;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
	white-space: nowrap;
	pointer-events: none;
}
#mwa-root.mwa-open .mwa-tooltip { display: none; }

/* Ventana */
#mwa-root .mwa-pop {
	position: absolute;
	bottom: 76px;
	width: 310px;
	max-width: calc(100vw - 28px);
	background: #fff;
	color: #1d2327;
	border-radius: 14px;
	padding: 18px 18px 16px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
	border-top: 5px solid var(--mwa-color);
}
#mwa-root .mwa-pop[hidden], #mwa-root [hidden] { display: none !important; }
#mwa-root.mwa-pos-right .mwa-pop { right: 0; }
#mwa-root.mwa-pos-left .mwa-pop { left: 0; }

#mwa-root .mwa-close {
	position: absolute;
	top: 6px;
	right: 8px;
	background: none;
	border: 0;
	font-size: 22px;
	line-height: 1;
	color: #646970;
	cursor: pointer;
	padding: 4px;
}
#mwa-root .mwa-title { margin: 0 22px 12px 0; font-weight: 700; font-size: 16px; }

#mwa-root .mwa-closed,
#mwa-root .mwa-done-closed {
	background: #fcf3e3;
	border-left: 4px solid #dba617;
	color: #4d3b05;
	border-radius: 6px;
	padding: 9px 11px;
	margin: 0 0 12px;
	font-size: 13px;
}

#mwa-root .mwa-field { display: block; margin-bottom: 8px; }
#mwa-root .mwa-field span { display: block; font-size: 13px; color: #3c434a; margin-bottom: 4px; }
#mwa-root .mwa-field input {
	width: 100%;
	padding: 10px 11px;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	font-size: 16px; /* 16px evita el zoom automático en iPhone */
	background: #fff;
	color: #1d2327;
}
#mwa-root .mwa-field input:focus { border-color: var(--mwa-color); outline: 2px solid var(--mwa-color); outline-offset: -1px; }
#mwa-root .mwa-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: #50575e; margin: 2px 0 10px; }
#mwa-root .mwa-consent input { margin-top: 2px; flex: none; }
#mwa-root .mwa-consent a { color: inherit; text-decoration: underline; }
#mwa-root .mwa-error { color: #b32d2e; font-size: 12px; margin: 0 0 8px; }
#mwa-root .mwa-error:empty { display: none; }

#mwa-root .mwa-call,
#mwa-root .mwa-wa {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 8px;
	padding: 11px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
}
#mwa-root .mwa-call svg, #mwa-root .mwa-wa svg { flex: none; width: 20px !important; height: 20px !important; }
#mwa-root .mwa-call { border: 0; color: #fff; background: var(--mwa-color); }
#mwa-root .mwa-call:hover { filter: brightness(.94); }
#mwa-root .mwa-wa { background: #fff; color: #1d2327; border: 2px solid var(--mwa-color); }
#mwa-root .mwa-wa svg { color: #25D366; }
#mwa-root .mwa-wa:hover { background: #f6f7f7; }

#mwa-root .mwa-done {
	margin: 0 0 4px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #edfaef;
	border-left: 4px solid #00a32a;
	color: #0a3d16;
	font-size: 14px;
}

#mwa-root .mwa-done.mwa-done-closed {
	background: #fcf3e3;
	border-left-color: #dba617;
	color: #4d3b05;
}

#mwa-root .mwa-sep {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0 12px;
	color: #8c8f94;
	font-size: 12px;
}
#mwa-root .mwa-sep::before, #mwa-root .mwa-sep::after { content: ""; flex: 1; height: 1px; background: #dcdcde; }

@keyframes mwa-pop-in { from { transform: scale(0); } to { transform: scale(1); } }

@media (max-width: 767px) {
	#mwa-root { bottom: 14px; }
	#mwa-root.mwa-pos-right { right: 14px; }
	#mwa-root.mwa-pos-left { left: 14px; }
	#mwa-root .mwa-tooltip { display: none; }
	#mwa-root.mwa-hide-mobile { display: none; }
}
@media (min-width: 768px) {
	#mwa-root.mwa-hide-desktop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	#mwa-root .mwa-bubble { animation: none; transition: none; }
}
