/**
 * GeoInvoice Chatbot — widget styles.
 *
 * NOTE: This file MUST stay enqueued via wp_enqueue_style (see main plugin
 * file) rather than printed as a raw inline <style> block in wp_footer.
 */

#geo-chat-root {
	--geo-primary: #1a2b4c;
	--geo-primary-light: #2c4270;
	--geo-bg: #ffffff;
	--geo-text: #1f1f1f;
	--geo-bot-bubble: #f1f3f7;
	--geo-user-bubble: #1a2b4c;
	--geo-user-text: #ffffff;
	--geo-radius: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#geo-chat-launcher {
	  position: fixed;
	  bottom: 24px;
	  right: 24px;
	  width: 70px;
	  height: 65px;
	  border-radius: 50%;
	  background: var(--geo-primary);
	  color: #ffffff;
	  border: none;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  cursor: pointer;
	  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
	  z-index: 999998;
	  transition: transform 0.15s ease, background 0.15s ease;
	  padding: 0 20px;
}
#geo-chat-launcher:hover {
	background: var(--geo-primary-light);
	transform: scale(1.05);
}
#geo-chat-launcher svg {
	width: 26px;
	height: 26px;
}

#geo-chat-launcher,
#geo-chat-send {
	color: #ffffff !important;
}
#geo-chat-launcher svg {
	width: 26px !important;
	height: 26px !important;
}
#geo-chat-launcher svg circle {
	fill: currentColor !important;
}
#geo-chat-launcher svg path {
	stroke: currentColor !important;
	fill: none !important;
}
#geo-chat-send svg {
	width: 18px !important;
	height: 18px !important;
}
#geo-chat-send svg path {
	stroke: currentColor !important;
	fill: none !important;
}
#geo-chat-panel {
	position: fixed;
	bottom: 94px;
	right: 24px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 500px;
	max-height: calc(100vh - 140px);
	background: var(--geo-bg);
	border-radius: var(--geo-radius);
	box-shadow: 0 10px 40px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 999999;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}
#geo-chat-panel.geo-open {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}
#geo-chat-header {
	background: var(--geo-primary);
	color: #fff;
	padding: 16px 18px;
	font-weight: 600;
	font-size: 15px;
	flex-shrink: 0;
}
#geo-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #fafbfc;
}
.geo-msg {
	max-width: 82%;
	padding: 10px 14px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.geo-msg-bot {
	background: var(--geo-bot-bubble);
	color: var(--geo-text);
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}
.geo-msg-user {
	background: var(--geo-user-bubble);
	color: var(--geo-user-text);
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}
.geo-msg-error {
	background: #fdecea;
	color: #a33;
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}
.geo-typing {
	align-self: flex-start;
	display: flex;
	gap: 4px;
	padding: 12px 14px;
	background: var(--geo-bot-bubble);
	border-radius: 16px;
	border-bottom-left-radius: 4px;
}
.geo-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #9aa1ab;
	animation: geo-bounce 1.2s infinite ease-in-out;
}
.geo-typing span:nth-child(2) { animation-delay: 0.15s; }
.geo-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes geo-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
	30% { transform: translateY(-4px); opacity: 1; }
}
#geo-chat-input-row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #eee;
	background: #fff;
	flex-shrink: 0;
}
#geo-chat-input {
	flex: 1;
	resize: none;
	border: 1px solid #dde1e7;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	max-height: 100px;
	outline: none;
}
#geo-chat-input:focus {
	border-color: var(--geo-primary);
}
#geo-chat-send {
	  width: 45px;
	  height: 40px;
	  border-radius: 10px;
	  border: none;
	  background: var(--geo-primary);
	  color: #ffffff;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  cursor: pointer;
	  flex-shrink: 0;
	  padding: 0 !important;
}
#geo-chat-send:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
#geo-chat-send svg {
	width: 18px;
	height: 18px;
}
@media (max-width: 480px) {
	#geo-chat-panel {
		right: 16px;
		left: 16px;
		width: auto;
		bottom: 86px;
	}
	#geo-chat-launcher {
		right: 16px;
		bottom: 16px;
	}
}
