#waic-widget {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 999999;
	font-family: inherit;
}

#waic-toggle {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #d63384;
	color: #fff;
	border: none;
	box-shadow: 0 4px 14px rgba(0,0,0,.2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

#waic-panel {
	position: fixed;
	bottom: 90px;
	left: 20px;
	width: 340px;
	max-width: calc(100vw - 40px);
	height: 460px;
	max-height: calc(100vh - 140px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 30px rgba(0,0,0,.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#waic-panel.waic-hidden {
	display: none;
}

#waic-header {
	background: #d63384;
	color: #fff;
	padding: 12px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
}

#waic-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
}

#waic-messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #faf7f8;
}

.waic-msg {
	max-width: 85%;
	padding: 8px 12px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.6;
	white-space: pre-wrap;
}

.waic-msg.user {
	align-self: flex-end;
	background: #d63384;
	color: #fff;
	border-bottom-left-radius: 3px;
}

.waic-msg.bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #eee;
	border-bottom-right-radius: 3px;
}

.waic-msg.typing {
	align-self: flex-start;
	color: #999;
	font-size: 13px;
}

.waic-products {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}

.waic-product-card {
	display: flex;
	gap: 8px;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 8px;
	background: #fff;
	text-decoration: none;
	color: inherit;
}

.waic-product-card img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}

.waic-product-card .waic-pc-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 13px;
}

.waic-product-card .waic-pc-name {
	font-weight: 600;
	margin-bottom: 2px;
}

.waic-product-card .waic-pc-price {
	color: #d63384;
	font-weight: 600;
}

.waic-product-card .waic-pc-stock.out {
	color: #c0392b;
}

#waic-form {
	display: flex;
	border-top: 1px solid #eee;
	padding: 8px;
	gap: 6px;
}

#waic-input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 14px;
}

#waic-send {
	background: #d63384;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 14px;
	cursor: pointer;
	font-size: 13px;
}

#waic-send:disabled {
	opacity: .6;
	cursor: default;
}
