/* WinAI Copilot - Glassmorphism Chat Widget CSS */
#winai-chatbot-container {
	position: fixed;
	bottom: 25px;
	right: 25px;
	z-index: 999999;
	font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

#winai-chatbot-trigger {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #1A3FD8 0%, #00A3FF 100%);
	color: #ffffff;
	border: none;
	cursor: pointer;
	box-shadow: 0 8px 25px rgba(26, 63, 216, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#winai-chatbot-trigger:hover {
	transform: scale(1.08);
}

#winai-chat-window {
	position: fixed;
	bottom: 100px;
	right: 25px;
	width: 380px;
	height: 520px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 120px);
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(226, 232, 240, 0.8);
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(13, 23, 96, 0.15);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

#winai-chat-window.winai-chat-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(20px) scale(0.95);
}

.winai-chat-header {
	background: linear-gradient(135deg, #0D1760 0%, #1A3FD8 100%);
	color: #ffffff;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.winai-online-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	background-color: #00C853;
	border-radius: 50%;
	margin-right: 8px;
	box-shadow: 0 0 8px #00C853;
}

#winai-chat-close {
	background: none;
	border: none;
	color: #ffffff;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}

.winai-chat-body {
	flex: 1;
	padding: 18px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #f8fafc;
}

.winai-msg {
	max-width: 85%;
	padding: 12px 16px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.5;
}

.winai-msg-bot {
	background: #ffffff;
	color: #0D1760;
	align-self: flex-start;
	border: 1px solid #e2e8f0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.winai-msg-user {
	background: #1A3FD8;
	color: #ffffff;
	align-self: flex-end;
}

.winai-product-card {
	display: flex;
	gap: 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	padding: 12px;
	border-radius: 10px;
	margin-top: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.winai-card-img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 6px;
}

.winai-buy-link-btn {
	display: inline-block;
	background: #00C853;
	color: #ffffff !important;
	padding: 6px 12px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 700;
	font-size: 12px;
	margin-top: 6px;
	transition: background 0.2s ease;
}

.winai-buy-link-btn:hover {
	background: #00a844;
}

.winai-input-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
}

.winai-upload-icon-btn {
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: color 0.2s ease;
}

.winai-upload-icon-btn:hover {
	color: #1A3FD8;
}

#winai-chat-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 13.5px;
}

#winai-send-btn {
	background: #1A3FD8;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	width: 36px;
	height: 36px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

#winai-image-preview-bar {
	background: #f1f5f9;
	padding: 6px 12px;
	font-size: 11px;
	color: #475569;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
