/* Floating widget placement */
.chat-widget-2fa53783 {
	position: fixed;
	bottom: var(--bottom-offset, 20px);
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body.admin-bar .chat-widget-2fa53783 {
	bottom: calc(var(--bottom-offset, 20px) + var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
	body.admin-bar .chat-widget-2fa53783 {
		bottom: calc(var(--bottom-offset, 20px) + 46px);
	}
}

/* Chat bubble trigger */
.chat-bubble-trigger-2fa53783 {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--primary, #4F46E5);
	color: var(--text-color, #FFFFFF);
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease;
}

.chat-bubble-trigger-2fa53783:hover {
	transform: scale(1.08);
}

.chat-bubble-trigger-2fa53783 .close-icon-2fa53783 {
	display: none;
	font-size: 20px;
}

.chat-widget-2fa53783.opened-2fa53783 .open-icon-2fa53783 {
	display: none;
}

.chat-widget-2fa53783.opened-2fa53783 .close-icon-2fa53783 {
	display: block;
}

/* Chat Popup Window */
.chat-popup-window-2fa53783 {
	position: absolute;
	bottom: 80px;
	width: 350px;
	max-height: 520px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(20px) scale(0.95);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease;
}

.chat-widget-2fa53783.opened-2fa53783 .chat-popup-window-2fa53783 {
	transform: translateY(0) scale(1);
	opacity: 1;
	pointer-events: auto;
}

/* Align popup depending on side */
.chat-widget-2fa53783 {
	right: var(--side-offset, 20px);
}
.chat-widget-2fa53783 .chat-popup-window-2fa53783 {
	right: 0;
}

/* Header */
.chat-header-2fa53783 {
	background: var(--primary, #4F46E5);
	color: var(--text-color, #FFFFFF);
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	font-size: 16px;
}

.chat-header-close-2fa53783 {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	font-size: 18px;
	opacity: 0.8;
}

.chat-header-close-2fa53783:hover {
	opacity: 1;
}

/* Chat body area */
.chat-body-2fa53783 {
	flex-grow: 1;
	padding: 20px;
	overflow-y: auto;
	background: #f7f9fc;
	max-height: 250px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Chat bubble styling */
.chat-message-2fa53783 {
	max-width: 80%;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
}

.bot-message-2fa53783 {
	background: #ffffff;
	color: #2D3748;
	align-self: flex-start;
	box-shadow: 0 2px 5px rgba(0,0,0,0.03);
	border-bottom-left-radius: 2px;
}

.user-message-2fa53783 {
	background: var(--primary, #4F46E5);
	color: var(--text-color, #FFFFFF);
	align-self: flex-end;
	border-bottom-right-radius: 2px;
}

/* Predefined questions */
.chat-faqs-area-2fa53783 {
	padding: 15px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #ffffff;
	border-top: 1px solid #edf2f7;
}

.faq-item-btn-2fa53783 {
	width: 100%;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 550;
	color: #4A5568;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.faq-item-btn-2fa53783:hover {
	background: #e2e8f0;
	border-color: #cbd5e1;
	transform: translateY(-1px);
}

/* Fallback box */
.chat-fallback-box-2fa53783 {
	padding: 12px 20px;
	background: #f8fafc;
	border-top: 1px solid #edf2f7;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: #64748B;
}

.fallback-link-btn-2fa53783 {
	background: #1E293B;
	color: #ffffff;
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 6px;
	font-weight: 600;
	transition: background 0.2s;
}

.fallback-link-btn-2fa53783:hover {
	background: #0F172A;
}

/* Typing Indicator Animation */
.typing-indicator-2fa53783 {
	display: flex;
	gap: 4px;
	padding: 12px 16px;
	background: #ffffff;
	align-self: flex-start;
	border-radius: 12px;
	border-bottom-left-radius: 2px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.typing-indicator-2fa53783 span {
	width: 8px;
	height: 8px;
	background: #94a3b8;
	border-radius: 50%;
	display: inline-block;
	animation: typingBounce2fa53783 1.4s infinite ease-in-out both;
}

.typing-indicator-2fa53783 span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator-2fa53783 span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce2fa53783 {
	0%, 80%, 100% { transform: scale(0); }
	40% { transform: scale(1); }
}
