/* Unique Concept AI Assistant 1.0.1
 * Floating-button safe positioning:
 * AI launcher sits above common WhatsApp floating buttons.
 */
#uca-root{
	font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

#uca-launcher{
	position:fixed !important;
	right:18px !important;
	bottom:92px !important;
	width:56px;
	height:56px;
	border:0;
	border-radius:50%;
	background:#111;
	color:#fff;
	font-size:23px;
	line-height:1;
	cursor:pointer;
	z-index:2147483001 !important;
	box-shadow:0 8px 28px rgba(0,0,0,.20);
	display:flex;
	align-items:center;
	justify-content:center;
	padding:0;
	margin:0;
}

.uca-launcher-hidden{
	display:none !important;
}

#uca-panel{
	position:fixed !important;
	right:18px !important;
	bottom:158px !important;
	width:min(380px,calc(100vw - 28px));
	height:min(600px,calc(100vh - 190px));
	min-height:360px;
	background:#fff;
	border:1px solid #e5e7eb;
	border-radius:18px;
	box-shadow:0 16px 50px rgba(0,0,0,.18);
	z-index:2147483002 !important;
	overflow:hidden;
	display:flex;
	flex-direction:column;
}

.uca-hidden{
	display:none !important;
}

.uca-head{
	min-height:64px;
	padding:12px 14px;
	display:flex;
	align-items:center;
	justify-content:space-between;
	background:#111;
	color:#fff;
}

.uca-head strong{
	display:block;
	font-size:16px;
	line-height:1.2;
}

.uca-head small{
	display:block;
	opacity:.72;
	margin-top:3px;
	font-size:12px;
}

.uca-head button{
	background:transparent;
	border:0;
	color:#fff;
	font-size:27px;
	line-height:1;
	cursor:pointer;
	padding:4px 8px;
}

.uca-messages{
	flex:1;
	overflow:auto;
	padding:16px 13px 8px;
	background:#fafafa;
	-webkit-overflow-scrolling:touch;
}

.uca-msg{
	max-width:86%;
	padding:10px 12px;
	margin:0 0 9px;
	border-radius:14px;
	font-size:14px;
	line-height:1.42;
	white-space:pre-wrap;
	overflow-wrap:anywhere;
}

.uca-bot{
	background:#fff;
	border:1px solid #e9e9e9;
	margin-right:auto;
}

.uca-user{
	background:#111;
	color:#fff;
	margin-left:auto;
}

.uca-quick{
	padding:8px 12px 4px;
	display:flex;
	flex-wrap:wrap;
	gap:7px;
	max-height:132px;
	overflow:auto;
}

.uca-quick button{
	border:1px solid #d8d8d8;
	background:#fff;
	border-radius:18px;
	padding:8px 11px;
	font-size:12px;
	cursor:pointer;
}

.uca-quick button:hover{
	background:#f2f2f2;
}

.uca-input{
	display:flex;
	gap:7px;
	padding:9px;
	border-top:1px solid #eee;
	background:#fff;
}

.uca-input input{
	min-width:0;
	flex:1;
	border:1px solid #ddd;
	border-radius:22px;
	padding:11px 13px;
	font-size:14px;
	outline:none;
}

.uca-input input:focus{
	border-color:#111;
}

.uca-input button{
	width:42px;
	min-width:42px;
	border:0;
	border-radius:50%;
	background:#111;
	color:#fff;
	font-size:17px;
	cursor:pointer;
}

.uca-lead{
	width:100%;
	display:grid;
	gap:7px;
	padding-bottom:4px;
}

.uca-lead input{
	width:100%;
	box-sizing:border-box;
	border:1px solid #ddd;
	border-radius:9px;
	padding:9px;
	font-size:13px;
}

.uca-lead button{
	border:0;
	border-radius:9px;
	background:#111;
	color:#fff;
	padding:10px;
	cursor:pointer;
	font-weight:600;
}

@media(max-width:480px){
	#uca-launcher{
		right:14px !important;
		bottom:82px !important;
	}

	#uca-panel{
		right:7vw !important;
		bottom:145px !important;
		width:86vw;
		height:min(72vh,580px);
		min-height:360px;
		border-radius:16px;
	}

	.uca-head{
		min-height:58px;
	}
}
