/**
 * IbyChat — Frontend widget (diseño por departamentos, v2).
 * Capas: el JS solo alterna clases; toda la apariencia vive aquí.
 */

#ibychat-root{
	--ibc-accent:#25D366;
	--ibc-accent-text:#ffffff;
	--ibc-on:#16a34a;        /* color online (configurable) */
	--ibc-off:#f97316;       /* color offline (configurable) */
	--ibc-head:var(--ibc-on);/* color actual de cabecera */
	--ibc-size:60px;
	--ibc-x:24px;
	--ibc-y:24px;
	--ibc-bg:#ffffff;
	--ibc-bg-soft:#f7f8fa;
	--ibc-fg:#1d2430;
	--ibc-muted:#69707d;
	--ibc-line:#e8eaee;
	--ibc-radius:18px;
	--ibc-shadow:0 14px 44px rgba(15,23,42,.20);
	position:fixed;
	z-index:99990;
	bottom:var(--ibc-y);
	font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
	font-size:14px;
	line-height:1.45;
	color:var(--ibc-fg);
	-webkit-font-smoothing:antialiased;
}
#ibychat-root.ibc-right{right:var(--ibc-x)}
#ibychat-root.ibc-left{left:var(--ibc-x)}
#ibychat-root.ibc-dark{
	--ibc-bg:#161a23;
	--ibc-bg-soft:#1e2330;
	--ibc-fg:#edf0f5;
	--ibc-muted:#98a1b0;
	--ibc-line:#2a3140;
	--ibc-shadow:0 14px 44px rgba(0,0,0,.55);
}
#ibychat-root *,#ibychat-root *::before,#ibychat-root *::after{box-sizing:border-box}
#ibychat-root img{max-width:100%;border:0}
#ibychat-root button{font:inherit;cursor:pointer}
#ibychat-root svg{display:block}

/* =============================== Botón flotante =============================== */
#ibychat-root .ibc-btn{
	border:0;
	position:relative;
	display:flex;align-items:center;justify-content:center;
	width:var(--ibc-size);height:var(--ibc-size);
	border-radius:50%;
	background:var(--ibc-accent);
	color:var(--ibc-accent-text);
	box-shadow:0 6px 24px rgba(0,0,0,.25);
	transition:transform .2s ease,box-shadow .2s ease;
}
#ibychat-root .ibc-btn:hover{transform:scale(1.06)}
#ibychat-root .ibc-btn:active{transform:scale(.97)}
.ibc-btn svg{width:55%;height:55%;fill:currentColor}
.ibc-btn:focus-visible{outline:3px solid color-mix(in srgb,var(--ibc-accent) 45%,transparent);outline-offset:3px}

#ibychat-root .ibc-anim-pulse{animation:ibc-pulse 2.2s ease-out infinite}
@keyframes ibc-pulse{
	0%{box-shadow:0 6px 24px rgba(0,0,0,.25),0 0 0 0 color-mix(in srgb,var(--ibc-accent) 50%,transparent)}
	70%{box-shadow:0 6px 24px rgba(0,0,0,.25),0 0 0 20px rgba(0,0,0,0)}
	100%{box-shadow:0 6px 24px rgba(0,0,0,.25),0 0 0 0 rgba(0,0,0,0)}
}
@supports not (color: color-mix(in srgb, red 10%, white)){
	@keyframes ibc-pulse{
		0%{box-shadow:0 6px 24px rgba(0,0,0,.25),0 0 0 0 rgba(37,211,102,.5)}
		70%{box-shadow:0 6px 24px rgba(0,0,0,.25),0 0 0 20px rgba(37,211,102,0)}
		100%{box-shadow:0 6px 24px rgba(0,0,0,.25),0 0 0 0 rgba(37,211,102,0)}
	}
}
#ibychat-root .ibc-anim-bounce{animation:ibc-bounce 2.6s ease-in-out infinite}
@keyframes ibc-bounce{0%,20%,100%{transform:translateY(0)}10%{transform:translateY(-8px)}}

.ibc-badge{
	position:absolute;top:-4px;right:-4px;
	min-width:22px;height:22px;padding:0 6px;
	display:flex;align-items:center;justify-content:center;
	border-radius:11px;background:#ef4444;color:#fff;
	font-size:12px;font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,.3);
}

/* =============================== Ventana =============================== */
.ibc-window{
	position:absolute;
	bottom:calc(var(--ibc-size) + 16px);
	width:min(392px,calc(100vw - 32px));
	max-height:min(620px,calc(100vh - 110px));
	display:flex;flex-direction:column;
	background:var(--ibc-bg);
	border-radius:var(--ibc-radius);
	box-shadow:var(--ibc-shadow);
	overflow:hidden;
	opacity:0;transform:translateY(12px) scale(.98);
	pointer-events:none;
	transition:opacity .22s ease,transform .22s ease;
}
#ibychat-root.ibc-right .ibc-window{right:0}
#ibychat-root.ibc-left .ibc-window{left:0}
.ibc-window.is-open{opacity:1;transform:none;pointer-events:auto}

/* ---------- Cabecera (verde online / naranja offline) ---------- */
.ibc-head{
	display:flex;align-items:center;gap:11px;
	padding:12px 15px;
	background:var(--ibc-head);
	color:#fff;
}
.ibc-head-icon{
	width:38px;height:38px;flex:0 0 38px;
	display:flex;align-items:center;justify-content:center;
	background:rgba(255,255,255,.18);
	border:1.5px solid rgba(255,255,255,.45);
	border-radius:12px;
	overflow:hidden;
}
.ibc-head-icon svg{width:24px;height:24px;fill:#fff}
.ibc-head-icon img{width:100%;height:100%;object-fit:cover}
.ibc-head-info{flex:1;min-width:0}
.ibc-head-name{
	display:flex;align-items:center;gap:7px;
	font-weight:800;font-size:15.5px;
	white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.ibc-head-dot{width:9px;height:9px;border-radius:50%;flex:0 0 9px}
.ibc-head-dot.is-on{background:#7bf1a8;box-shadow:0 0 0 3px rgba(255,255,255,.25)}
.ibc-head-dot.is-off{background:#e5e7eb;box-shadow:0 0 0 3px rgba(255,255,255,.2)}
.ibc-head-role{font-size:12.5px;opacity:.92;margin-top:1px}
#ibychat-root .ibc-close{
	border:0;background:transparent;color:#fff;
	width:32px;height:32px;flex:0 0 32px;border-radius:9px;
	display:flex;align-items:center;justify-content:center;
	font-size:20px;line-height:1;opacity:.9;color:#fff;
}
#ibychat-root .ibc-close:hover{background:rgba(255,255,255,.18);opacity:1}

/* ---------- Cuerpo ---------- */
.ibc-body{
	padding:14px;
	overflow-y:auto;
	display:flex;flex-direction:column;gap:11px;
	flex:1;
	background:var(--ibc-bg);
}

/* Banner de estado (Estamos en línea / fuera de horario) */
.ibc-status-banner{display:flex;gap:10px;align-items:flex-start}
.ibc-status-ico{
	width:27px;height:27px;flex:0 0 27px;border-radius:50%;
	display:flex;align-items:center;justify-content:center;
	margin-top:1px;
}
.ibc-status-banner.is-on .ibc-status-ico{background:color-mix(in srgb,var(--ibc-on) 14%,var(--ibc-bg))}
.ibc-status-banner.is-off .ibc-status-ico{background:color-mix(in srgb,var(--ibc-off) 14%,var(--ibc-bg))}
.ibc-status-ico::before{content:"";width:10px;height:10px;border-radius:50%}
.ibc-status-banner.is-on .ibc-status-ico::before{background:var(--ibc-on)}
.ibc-status-banner.is-off .ibc-status-ico::before{background:var(--ibc-off)}
.ibc-status-txt{flex:1}
.ibc-status-txt strong{display:block;font-size:14.5px;font-weight:800}
.ibc-status-txt span{display:block;color:var(--ibc-muted);font-size:12.8px;margin-top:2px;white-space:pre-line}

.ibc-choose{font-size:13px;font-weight:700;color:var(--ibc-fg)}

/* ---------- Departamentos (acordeón) ---------- */
.ibc-depts{display:flex;flex-direction:column;gap:8px}
.ibc-dept{
	border:1px solid var(--ibc-line);
	border-radius:14px;
	background:var(--ibc-bg);
	overflow:hidden;
}
#ibychat-root .ibc-dept-head{
	border:0;color:inherit;
	width:100%;
	display:flex;align-items:center;gap:10px;
	padding:10px 11px;
	text-align:left;
	background:var(--ibc-bg);
	transition:background .15s ease;
}
#ibychat-root .ibc-dept-head:hover{background:var(--ibc-bg-soft)}
.ibc-dept-ico{
	--ibc-dep:#16a34a;
	width:33px;height:33px;flex:0 0 33px;border-radius:10px;
	display:flex;align-items:center;justify-content:center;
	background:color-mix(in srgb,var(--ibc-dep) 12%,var(--ibc-bg));
}
.ibc-dept-ico svg{width:18px;height:18px;fill:var(--ibc-dep)}
.ibc-dept-info{flex:1;min-width:0}
.ibc-dept-info strong{display:block;font-size:14px;font-weight:800}
.ibc-dept-info span{display:block;font-size:12px;color:var(--ibc-muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ibc-dept-badge{
	flex:0 0 auto;
	font-size:11px;font-weight:700;
	padding:4px 10px;border-radius:999px;
	white-space:nowrap;
}
.ibc-dept-badge.is-on{background:color-mix(in srgb,var(--ibc-on) 12%,var(--ibc-bg));color:var(--ibc-on)}
.ibc-dept-badge.is-off{background:var(--ibc-bg-soft);color:var(--ibc-muted)}
.ibc-dept-chev{flex:0 0 auto;color:var(--ibc-muted);transition:transform .2s ease;font-size:12px}
.ibc-dept.is-open .ibc-dept-chev{transform:rotate(180deg)}
.ibc-dept-body{display:none;border-top:1px solid var(--ibc-line)}
.ibc-dept.is-open .ibc-dept-body{display:block}

/* ---------- Fila de agente ---------- */
#ibychat-root .ibc-agent{
	display:flex;align-items:center;gap:10px;
	padding:9px 11px 9px 22px;          /* sangría izquierda = jerarquía bajo el depto */
	position:relative;
}
#ibychat-root .ibc-agent::before{       /* guía vertical sutil de pertenencia */
	content:"";position:absolute;left:13px;top:0;bottom:0;width:2px;
	background:var(--ibc-line);border-radius:2px;
}
.ibc-agent + .ibc-agent{border-top:1px solid var(--ibc-line)}
.ibc-agent-ava{position:relative;width:40px;height:40px;flex:0 0 40px}
.ibc-agent-ava img,.ibc-agent-ph{
	width:40px;height:40px;border-radius:50%;object-fit:cover;
	background:var(--ibc-bg-soft);
	display:flex;align-items:center;justify-content:center;
	font-weight:800;font-size:16px;color:var(--ibc-muted);
}
.ibc-agent-dot{
	position:absolute;right:0;bottom:0;
	width:11px;height:11px;border-radius:50%;
	border:2px solid var(--ibc-bg);
}
.ibc-agent-dot.is-on{background:var(--ibc-on)}
.ibc-agent-dot.is-off{background:#cbd2da}
.ibc-agent-info{flex:1;min-width:0}
.ibc-agent-info strong{display:block;font-size:13.5px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ibc-agent-info span{display:block;font-size:12px;color:var(--ibc-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- Píldoras de acción ---------- */
#ibychat-root .ibc-pill{
	display:inline-flex;align-items:center;gap:6px;
	padding:6px 12px;border-radius:999px;
	font-size:12.5px;font-weight:700;
	border:1px solid var(--ibc-line);
	background:var(--ibc-bg);
	white-space:nowrap;
	transition:all .15s ease;
	flex:0 0 auto;
}
.ibc-pill svg{width:15px;height:15px;flex:0 0 15px}
#ibychat-root .ibc-pill-chat{border-color:color-mix(in srgb,var(--ibc-on) 45%,var(--ibc-line));color:var(--ibc-on)}
#ibychat-root .ibc-pill-chat svg{fill:var(--ibc-on)}
#ibychat-root .ibc-pill-chat:hover{background:color-mix(in srgb,var(--ibc-on) 10%,var(--ibc-bg))}
#ibychat-root .ibc-pill-msg{color:var(--ibc-fg)}
#ibychat-root .ibc-pill-msg svg{fill:var(--ibc-muted)}
#ibychat-root .ibc-pill-msg:hover{border-color:var(--ibc-off);color:var(--ibc-off)}
#ibychat-root .ibc-pill-msg:hover svg{fill:var(--ibc-off)}
#ibychat-root .ibc-pill-full{
	width:100%;justify-content:center;
	padding:12px 16px;font-size:14px;
	background:var(--ibc-on);border-color:var(--ibc-on);color:#fff;
}
#ibychat-root .ibc-pill-full svg{fill:#fff;width:18px;height:18px}
#ibychat-root .ibc-pill-full:hover{filter:brightness(1.07);background:var(--ibc-on);color:#fff}

/* ---------- Aviso offline ---------- */
.ibc-tip{
	display:flex;gap:10px;align-items:flex-start;
	background:color-mix(in srgb,var(--ibc-off) 9%,var(--ibc-bg));
	border-radius:12px;padding:12px 14px;
}
.ibc-tip-ico{
	width:28px;height:28px;flex:0 0 28px;border-radius:50%;
	background:color-mix(in srgb,var(--ibc-off) 16%,var(--ibc-bg));
	display:flex;align-items:center;justify-content:center;
}
.ibc-tip-ico svg{width:14px;height:14px;fill:var(--ibc-off)}
.ibc-tip strong{display:block;font-size:13px;font-weight:800;color:var(--ibc-fg)}
.ibc-tip span{display:block;font-size:12.3px;color:var(--ibc-muted);margin-top:2px;white-space:pre-line}

/* ---------- Pie: horario + badge de canal ---------- */
.ibc-sched{
	display:flex;gap:10px;align-items:center;justify-content:space-between;
	background:var(--ibc-bg-soft);
	border-radius:10px;padding:9px 12px;
}
.ibc-sched.is-on{background:color-mix(in srgb,var(--ibc-on) 8%,var(--ibc-bg))}
.ibc-sched-info{display:flex;gap:10px;align-items:flex-start;flex:1;min-width:0}
.ibc-sched-ico{flex:0 0 auto;margin-top:2px;display:inline-flex}
.ibc-sched-ico svg{width:15px;height:15px;fill:var(--ibc-muted)}
.ibc-sched.is-on .ibc-sched-ico svg{fill:var(--ibc-on)}
.ibc-sched-info strong{display:block;font-size:12px;font-weight:800}
.ibc-sched-info div>span{display:block;font-size:11.3px;color:var(--ibc-muted);margin-top:1px;line-height:1.4}
.ibc-sched-badge{
	flex:0 0 auto;align-self:center;
	display:flex;align-items:center;gap:7px;
	font-size:12px;font-weight:700;color:var(--ibc-on);
}
.ibc-sched-badge svg{width:26px;height:26px;fill:var(--ibc-on)}

/* ---------- Vista formulario (Dejar mensaje) ---------- */
.ibc-form-view{display:flex;flex-direction:column;gap:12px}
.ibc-form-top{display:flex;align-items:center;gap:8px}
#ibychat-root .ibc-back{
	border:0;background:transparent;
	display:inline-flex;align-items:center;gap:5px;
	font-size:12.5px;font-weight:700;color:var(--ibc-muted);
	padding:5px 8px;border-radius:8px;
}
#ibychat-root .ibc-back:hover{background:var(--ibc-bg-soft);color:var(--ibc-fg)}
.ibc-form-title{font-size:14px;font-weight:800}
.ibc-form{display:flex;flex-direction:column;gap:9px}
.ibc-form input,.ibc-form textarea,.ibc-form select{
	width:100%;padding:11px 13px;
	border:1px solid var(--ibc-line);border-radius:11px;
	background:var(--ibc-bg);color:var(--ibc-fg);
	font:inherit;font-size:13.5px;
}
.ibc-form input:focus,.ibc-form textarea:focus{outline:none;border-color:var(--ibc-head);box-shadow:0 0 0 3px color-mix(in srgb,var(--ibc-head) 14%,transparent)}
.ibc-error{color:#ef4444;font-size:12.3px}
.ibc-thanks{
	display:flex;flex-direction:column;align-items:center;gap:10px;
	padding:26px 14px;text-align:center;
}
.ibc-thanks-ico{
	width:52px;height:52px;border-radius:50%;
	background:color-mix(in srgb,var(--ibc-on) 13%,var(--ibc-bg));
	display:flex;align-items:center;justify-content:center;
}
.ibc-thanks-ico svg{width:26px;height:26px;fill:var(--ibc-on)}
.ibc-thanks strong{font-size:14.5px}

/* ---------- Canales extra (tira inferior) ---------- */
.ibc-channels-strip{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
#ibychat-root .ibc-ch-mini{
	--ibc-ch:#25D366;
	width:40px;height:40px;border-radius:50%;
	display:flex;align-items:center;justify-content:center;
	border:1px solid var(--ibc-line);
	background:var(--ibc-bg);
	transition:all .15s ease;
}
#ibychat-root .ibc-ch-mini svg{width:20px;height:20px;fill:var(--ibc-ch)}
#ibychat-root .ibc-ch-mini:hover{border-color:var(--ibc-ch);background:color-mix(in srgb,var(--ibc-ch) 10%,var(--ibc-bg));transform:translateY(-1px)}

/* ---------- Asistente IA ---------- */
.ibc-ai{display:flex;flex-direction:column;gap:8px;border-top:1px dashed var(--ibc-line);padding-top:12px}
.ibc-ai-log{display:flex;flex-direction:column;gap:8px;max-height:190px;overflow-y:auto}
.ibc-msg{padding:9px 12px;border-radius:12px;font-size:13.5px;max-width:92%}
.ibc-msg-user{align-self:flex-end;background:var(--ibc-head);color:#fff;border-bottom-right-radius:4px}
.ibc-msg-assistant{align-self:flex-start;background:var(--ibc-bg-soft);border-bottom-left-radius:4px}
.ibc-thinking{font-size:12.5px;color:var(--ibc-muted);font-style:italic}
.ibc-ai-row{display:flex;gap:8px}
.ibc-ai-q{flex:1;padding:9px 12px;border:1px solid var(--ibc-line);border-radius:10px;background:var(--ibc-bg);color:var(--ibc-fg);font:inherit;font-size:13.5px}
.ibc-ai-q:focus{outline:none;border-color:var(--ibc-head)}
#ibychat-root .ibc-ai-send{border:0;padding:9px 14px;border-radius:10px;background:var(--ibc-head);color:#fff;font-weight:700}

/* ---------- Vista clásica (compatibilidad window_style=classic) ---------- */
.ibc-classic{display:flex;flex-direction:column;gap:12px}
.ibc-media{border-radius:12px;overflow:hidden}
.ibc-media img{display:block;width:100%}
.ibc-bubble{
	background:var(--ibc-bg-soft);
	border-radius:4px 14px 14px 14px;
	padding:12px 14px;font-size:13.8px;
	white-space:normal;word-wrap:break-word;
}
#ibychat-root .ibc-chip{
	border:1px solid var(--ibc-line);border-radius:999px;color:inherit;
	padding:6px 14px;font-size:13px;background:var(--ibc-bg);
}
.ibc-chip:hover{border-color:var(--ibc-on)}
.ibc-funnel-progress{display:flex;gap:5px}
.ibc-funnel-progress span{flex:1;height:4px;border-radius:2px;background:var(--ibc-line)}
.ibc-funnel-progress span.is-done{background:var(--ibc-on)}

/* Crédito del plugin (pequeño, discreto) */
#ibychat-root .ibc-credit{
	display:block;text-align:center;
	padding:7px 0 10px;
	font-size:10.5px;font-weight:600;letter-spacing:.02em;
	color:var(--ibc-muted);text-decoration:none;opacity:.75;
	transition:opacity .15s ease;
}
#ibychat-root .ibc-credit:hover{opacity:1;color:var(--ibc-on)}
#ibychat-root .ibc-credit b{font-weight:800}

/* =============================== Shortcodes / Woo =============================== */
.ibychat-inline-btn,.ibychat-woo-btn,.ibychat-cart-btn,.ibychat-popup-trigger{
	display:inline-flex;align-items:center;justify-content:center;gap:8px;
	padding:11px 20px;border:0;border-radius:10px;
	background:#25D366;color:#fff !important;
	font-weight:700;font-size:15px;line-height:1.2;
	text-decoration:none !important;cursor:pointer;
	transition:filter .15s ease;
	box-shadow:0 3px 12px rgba(37,211,102,.35);
}
.ibychat-inline-btn:hover,.ibychat-woo-btn:hover,.ibychat-cart-btn:hover,.ibychat-popup-trigger:hover{filter:brightness(1.07);color:#fff}
.ibychat-inline-btn svg,.ibychat-woo-btn svg,.ibychat-cart-btn svg{width:18px;height:18px;fill:currentColor}
.ibychat-woo-btn{margin-top:10px}
.ibychat-cart-btn{margin:10px 0}

.ibychat-agents-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin:16px 0}
.ibychat-agent-card{
	display:flex;flex-direction:column;align-items:center;gap:8px;
	padding:22px 16px;background:#fff;border:1px solid #e8eaee;border-radius:16px;
	text-align:center;box-shadow:0 4px 16px rgba(15,23,42,.06);
	transition:transform .15s ease,box-shadow .15s ease;
}
.ibychat-agent-card:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(15,23,42,.12)}
.ibychat-agent-card img,.ibychat-agent-ph{
	width:72px;height:72px;border-radius:50%;object-fit:cover;background:#e8eaee;
	display:flex;align-items:center;justify-content:center;font-weight:700;font-size:24px;color:#69707d;
}
.ibychat-agent-name{font-weight:700;font-size:16px;color:#1d2430}
.ibychat-agent-role{font-size:13px;color:#69707d}
.ibychat-dot{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:#69707d}
.ibychat-dot::before{content:"";width:8px;height:8px;border-radius:50%;background:#9ca3af}
.ibychat-agent-card.is-online .ibychat-dot::before{background:#22c55e}
.ibychat-agent-card.is-offline .ibychat-dot::before{background:#ef4444}
.ibychat-agent-card .ibychat-inline-btn{margin-top:6px;padding:8px 16px;font-size:13.5px}
.ibychat-empty{padding:18px;border:1px dashed #d1d5db;border-radius:12px;color:#69707d;text-align:center}
.ibychat-funnel{
	background:#fff;border:1px solid #e8eaee;border-radius:16px;
	padding:20px;max-width:480px;display:flex;flex-direction:column;gap:12px;font-size:15px;
}

/* =============================== Responsive / accesibilidad =============================== */
@media (max-width:480px){
	#ibychat-root{--ibc-x:14px;--ibc-y:14px}
	.ibc-window{
		position:fixed;
		left:10px !important;right:10px !important;
		bottom:calc(var(--ibc-y) + var(--ibc-size) + 12px);
		width:auto;max-height:calc(100vh - 105px);
	}
}
@media (prefers-reduced-motion:reduce){
	/* Se respeta la preferencia en transiciones y animaciones internas, pero
	   NO en el pulso del botón flotante: es sutil, decorativo y es la señal
	   visual que invita a interactuar. */
	#ibychat-root *:not(.ibc-btn):not(.ibc-anim-pulse):not(.ibc-anim-bounce),
	#ibychat-root *::before,#ibychat-root *::after{animation:none !important;transition:none !important}
}
@media print{#ibychat-root{display:none !important}}

/* Fallback color-mix (navegadores antiguos): tonos planos. */
@supports not (background: color-mix(in srgb, red 10%, white)){
	.ibc-status-banner.is-on .ibc-status-ico,.ibc-dept-badge.is-on,.ibc-sched.is-on,.ibc-thanks-ico{background:#e8f7ee}
	.ibc-status-banner.is-off .ibc-status-ico,.ibc-tip,.ibc-tip-ico{background:#fef3e7}
	.ibc-dept-ico{background:#eef2f6}
	.ibc-pill-chat:hover,.ibc-ch-mini:hover{background:#f0faf4}
}

/* =============================== Burbuja teaser (CTA emergente) =============================== */
#ibychat-root .ibc-teaser{
	position:absolute;
	bottom:calc(var(--ibc-size) + 14px);
	display:flex;align-items:center;gap:6px;
	max-width:min(260px,calc(100vw - 40px));
	opacity:0;transform:translateY(8px) scale(.96);
	pointer-events:none;
	transition:opacity .25s ease,transform .25s ease;
}
#ibychat-root.ibc-right .ibc-teaser{right:4px}
#ibychat-root.ibc-left .ibc-teaser{left:4px}
#ibychat-root .ibc-teaser.is-show{opacity:1;transform:none;pointer-events:auto}
#ibychat-root .ibc-teaser-msg{
	flex:1;text-align:left;
	background:var(--ibc-bg,#fff);color:var(--ibc-fg,#1d2430);
	border:0;border-radius:14px;
	padding:12px 14px;
	font-size:13.5px;font-weight:600;line-height:1.35;
	box-shadow:0 8px 28px rgba(15,23,42,.22);
	cursor:pointer;
	animation:ibc-teaser-pop .3s ease;
}
#ibychat-root.ibc-dark .ibc-teaser-msg{box-shadow:0 8px 28px rgba(0,0,0,.5)}
#ibychat-root .ibc-teaser-msg::after{
	content:"";position:absolute;bottom:-5px;width:12px;height:12px;
	background:var(--ibc-bg,#fff);transform:rotate(45deg);
	box-shadow:3px 3px 6px rgba(15,23,42,.08);
}
#ibychat-root.ibc-right .ibc-teaser-msg::after{right:22px}
#ibychat-root.ibc-left .ibc-teaser-msg::after{left:22px}
#ibychat-root .ibc-teaser-msg:hover{filter:brightness(.98)}
#ibychat-root .ibc-teaser-x{
	flex:0 0 auto;
	width:22px;height:22px;border:0;border-radius:50%;
	background:var(--ibc-bg,#fff);color:var(--ibc-muted,#69707d);
	font-size:16px;line-height:1;cursor:pointer;
	box-shadow:0 3px 10px rgba(15,23,42,.2);
	display:flex;align-items:center;justify-content:center;
	align-self:flex-start;
}
#ibychat-root .ibc-teaser-x:hover{color:#ef4444}
@keyframes ibc-teaser-pop{0%{transform:scale(.85)}60%{transform:scale(1.03)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){#ibychat-root .ibc-teaser-msg{animation:none}}
