/*!***************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./src/chatbot/style.css ***!
  \***************************************************************************************************************************************************************************/
/**
 * Floating Chatbot Widget Styles
 *
 * Fixed position bottom-right, glassmorphic design.
 * All selectors target pure HTML elements — no @wordpress/components classes.
 */

/* Root container — fixed bottom-right */

#ai-personalization-chatbot-root {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

/* ── Toggle Button ── */

.ai-chatbot-toggle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #18181b;
	color: white;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(24, 24, 27, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-chatbot-toggle:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 24px rgba(24, 24, 27, 0.6);
}

/* ── Chat Window ── */

.ai-chatbot-window {
	width: 380px;
	max-width: calc(100vw - 48px);
	height: 540px;
	max-height: calc(100vh - 80px);
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: ai-chatbot-slideUp 0.25s ease;
	border: 1px solid #e4e4e7;
}

@keyframes ai-chatbot-slideUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Header ── */

.ai-chatbot-header {
	background: #18181b;
	color: white;
	padding: 14px 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
}

.ai-chatbot-header h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ai-chatbot-close {
	background: transparent;
	border: none;
	color: white;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.15s;
	padding: 0 4px;
}

.ai-chatbot-close:hover {
	opacity: 1;
}

/* ── Messages ── */

.ai-chatbot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #ffffff;
}

.ai-chatbot-message {
	display: flex;
	max-width: 85%;
}

.ai-chatbot-message-user {
	align-self: flex-end;
}

.ai-chatbot-message-assistant {
	align-self: flex-start;
}

.ai-chatbot-message-bubble {
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 0.93rem;
	line-height: 1.5;
	word-wrap: break-word;
}

.ai-chatbot-message-user .ai-chatbot-message-bubble {
	background: #18181b;
	color: white;
	border-bottom-right-radius: 4px;
}

.ai-chatbot-message-assistant .ai-chatbot-message-bubble {
	background: #f4f4f5;
	color: #18181b;
	border: 1px solid #e4e4e7;
	border-bottom-left-radius: 4px;
}

/* ── Loading / Thinking ── */

.ai-chatbot-loading {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #71717a;
	font-size: 0.85rem;
	padding: 8px 14px;
}

.ai-chatbot-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #e4e4e7;
	border-top-color: #18181b;
	border-radius: 50%;
	animation: ai-chatbot-spin 0.6s linear infinite;
	flex-shrink: 0;
}

@keyframes ai-chatbot-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── Input Area ── */

.ai-chatbot-input {
	padding: 12px;
	background: #ffffff;
	border-top: 1px solid #e4e4e7;
	display: flex;
	gap: 8px;
	align-items: flex-end;
	flex-shrink: 0;
}

.ai-chatbot-textarea {
	flex: 1;
	min-height: 40px;
	max-height: 100px;
	padding: 8px 12px;
	border: 1px solid #d4d4d8;
	border-radius: 10px;
	resize: none;
	font-family: inherit;
	font-size: 0.93rem;
	line-height: 1.4;
	outline: none;
	transition: border-color 0.15s;
}

.ai-chatbot-textarea:focus {
	border-color: #18181b;
	box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.15);
}

.ai-chatbot-send {
	padding: 8px 16px;
	background: #18181b;
	color: white;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-size: 0.88rem;
	font-weight: 600;
	white-space: nowrap;
	transition: opacity 0.15s, transform 0.1s;
	flex-shrink: 0;
}

.ai-chatbot-send:hover:not(:disabled) {
	opacity: 0.9;
	transform: translateY(-1px);
}

.ai-chatbot-send:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ── Utilities / Extras ── */

.ai-chatbot-actions {
	padding: 0 16px 12px;
	text-align: right;
	border-top: 1px solid transparent;
	/* spacing */
}

.ai-chatbot-revert {
	background: transparent;
	color: #71717a;
	border: 1px solid #e4e4e7;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 0.75rem;
	cursor: pointer;
	transition: all 0.15s;
}

.ai-chatbot-revert:hover {
	background: #f4f4f5;
	color: #18181b;
}

/* ── Scrollbar ── */

.ai-chatbot-messages::-webkit-scrollbar {
	width: 5px;
}

.ai-chatbot-messages::-webkit-scrollbar-track {
	background: transparent;
}

.ai-chatbot-messages::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
}

/* ── "Agentic" Global Personalization Animations ── */

body.ai-personalization-loading main,
body.ai-personalization-loading .wp-site-blocks,
body.ai-personalization-loading .entry-content {
	filter: blur(8px) grayscale(10%);
	opacity: 0.4;
	transition: filter 0.8s ease, opacity 0.8s ease;
	pointer-events: none;
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
}

/* When the DOM first lands, blink it subtly */

.ai-personalization-updated {
	animation: ai-glow-pulse 1.5s ease-out;
}

@keyframes ai-glow-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(206, 244, 83, 0);
	}

	20% {
		box-shadow: 0 0 40px 10px rgba(206, 244, 83, 0.4);
		transform: scale(0.995);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(206, 244, 83, 0);
		transform: scale(1);
	}
}

/*# sourceMappingURL=style-chatbot.css.map*/