:root {
	--wpac-brand: #FFC72E;
	--wpac-brand-dark: #1a1a1a;
	--wpac-bg: #ffffff;
	--wpac-bot-bubble: #f4f4f5;
	--wpac-text: #1a1a1a;
	--wpac-radius: 16px;
}

#wpac-chat-root {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wpac-bubble {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--wpac-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(255, 199, 46, 0.45);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wpac-bubble:hover {
	transform: scale(1.06);
	box-shadow: 0 8px 24px rgba(255, 199, 46, 0.55);
}

.wpac-panel {
	position: absolute;
	bottom: 76px;
	right: 0;
	width: 340px;
	height: 460px;
	background: var(--wpac-bg);
	border-radius: var(--wpac-radius);
	box-shadow: 0 12px 40px rgba(0,0,0,0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: wpac-pop-in 0.18s ease;
}

@keyframes wpac-pop-in {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.wpac-header {
	background: var(--wpac-brand-dark);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.wpac-header-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--wpac-brand);
	color: var(--wpac-brand-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	flex-shrink: 0;
}

.wpac-header-title {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
}

.wpac-header-sub {
	font-size: 11.5px;
	opacity: 0.7;
	line-height: 1.2;
	margin-top: 2px;
}

.wpac-messages {
	flex: 1;
	padding: 14px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fafafa;
}

.wpac-msg {
	max-width: 84%;
	padding: 10px 13px;
	border-radius: 14px;
	font-size: 13.5px;
	line-height: 1.5;
	word-wrap: break-word;
}

.wpac-msg p {
	margin: 0 0 6px 0;
}
.wpac-msg p:last-child {
	margin-bottom: 0;
}

.wpac-msg ul,
.wpac-msg ol {
	margin: 4px 0 6px 0;
	padding-left: 18px;
}

.wpac-msg li {
	margin-bottom: 3px;
}

.wpac-msg strong {
	font-weight: 700;
}

.wpac-msg-user {
	align-self: flex-end;
	background: var(--wpac-brand-dark);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.wpac-msg-assistant {
	align-self: flex-start;
	background: var(--wpac-bot-bubble);
	color: var(--wpac-text);
	border-bottom-left-radius: 4px;
}

.wpac-typing {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 12px 14px;
}

.wpac-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #999;
	animation: wpac-blink 1.2s infinite ease-in-out;
}

.wpac-typing span:nth-child(2) { animation-delay: 0.2s; }
.wpac-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes wpac-blink {
	0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
	40% { opacity: 1; transform: translateY(-2px); }
}

.wpac-input-row {
	display: flex;
	align-items: center;
	border-top: 1px solid #eee;
	padding: 10px;
	gap: 8px;
	background: #fff;
}

.wpac-input-row input {
	flex: 1;
	border: 1px solid #e2e2e2;
	border-radius: 20px;
	padding: 9px 14px;
	font-size: 13.5px;
	outline: none;
	transition: border-color 0.15s ease;
}

.wpac-input-row input:focus {
	border-color: var(--wpac-brand);
}

.wpac-input-row button {
	background: var(--wpac-brand);
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.1s ease;
}

.wpac-input-row button:hover {
	transform: scale(1.05);
}

@media (max-width: 420px) {
	.wpac-panel {
		width: calc(100vw - 32px);
		right: -4px;
	}
}
