/*
 * CookPal — chat button + popup-bubble styles.
 *
 * Static parts of the always-visible chat launcher and the attention-grabber
 * bubble. Dynamic parts (button positioning, offsets, popup colour) are
 * injected as an inline style attached to this handle via wp_add_inline_style
 * in Cookpal_Public::enqueue_styles().
 *
 * This file is small on purpose: the heavy chatbox stylesheet (cookpal-public.css)
 * is still lazy-loaded by cookpal-loader.js after the user clicks the launcher,
 * so initial page load stays light.
 */

#cookpal-chat-button {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.3s ease, opacity 0.5s ease;
	position: fixed;
	border: 0;
	padding: 5px;
	background: none;
	z-index: 9999999999;
}
#cookpal-chat-button img {
	max-width: 100%;
	display: block;
}

.cookpal-chat-bubble {
	position: fixed;
	z-index: 9998;
	max-width: 200px;
	border-radius: 18px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	transform: translateY(10px) scale(0.95);
	transition: all 0.3s ease;
	pointer-events: none;
	cursor: pointer;
}
.cookpal-chat-bubble.show {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}
.cookpal-chat-bubble.fade-out {
	opacity: 0;
	transform: translateY(10px) scale(0.95);
	pointer-events: none;
}

.cookpal-chat-bubble-content {
	padding: 12px 16px;
	position: relative;
}
.cookpal-chat-bubble p {
	margin: 0;
	color: white;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 500;
}

@media (max-width: 768px) {
	.cookpal-chat-bubble {
		max-width: 160px;
	}
	.cookpal-chat-bubble p {
		font-size: 12px;
	}
	.cookpal-chat-bubble-content {
		padding: 10px 12px;
	}
}
