/* n8n Local Chat – estilos básicos y compatibilidad Safari iOS */
:root{
	--n8n-chat-primary: #0057ff;
	--n8n-chat-radius : 18px;
	--n8n-chat-zindex : 9999;
}

.n8n-chat-toggle{
	position:fixed;
	bottom:calc(24px + env(safe-area-inset-bottom));
	right:24px;
	width:56px;
	height:56px;
	border-radius:50%;
	background:var(--n8n-chat-primary);
	color:#fff;
	font-size:28px;
	border:none;
	box-shadow:0 4px 12px rgba(0,0,0,.2);
	cursor:pointer;
	z-index:var(--n8n-chat-zindex);
}

.n8n-chat-window{
	position:fixed;
	bottom:calc(96px + env(safe-area-inset-bottom));
	right:24px;
	width:320px;
	max-width:90vw;
	height:420px;
	display:none;
	flex-direction:column;
	border-radius:var(--n8n-chat-radius);
	background:#fff;
	box-shadow:0 6px 18px rgba(0,0,0,.25);
	overflow:hidden;
	z-index:var(--n8n-chat-zindex);
}

.n8n-chat-header{
	background:var(--n8n-chat-primary);
	color:#fff;
	padding:12px 16px;
	font-weight:600;
}

.n8n-chat-body{
	flex:1;
	padding:12px;
	overflow-y:auto;
	font-size:14px;
	line-height:1.4;
}

.n8n-chat-message{
	margin:0 0 8px;
	padding:10px 12px;
	border-radius:12px;
	max-width:80%;
	word-wrap:break-word;
}

.n8n-chat-message.bot{
	background:#f1f5ff;
	color:#000;
	border-top-left-radius:0;
}

.n8n-chat-message.user{
	background:var(--n8n-chat-primary);
	color:#fff;
	border-top-right-radius:0;
	margin-left:auto;
}

.n8n-chat-footer{
	display:flex;
	padding:8px;
	border-top:1px solid #e5e5e5;
}

.n8n-chat-footer textarea{
	flex:1;
	resize:none;
	overflow:hidden;
	padding:8px;
	border:1px solid #ccc;
	border-radius:8px;
	font-size:14px;
	min-height:36px;
}

.n8n-chat-footer button{
	margin-left:8px;
	padding:0 14px;
	border:none;
	border-radius:8px;
	background:var(--n8n-chat-primary);
	color:#fff;
	font-size:14px;
	cursor:pointer;
}
