/* .wp-ai-chatbot {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
} */

.wp-ai-chatbot {
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	right: 24px;
	bottom: 24px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.chatbot-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
	border-style: solid;
  	border-width: 2px;
	border-radius: 999px;
	border-color: #a2eeff;
	/* background-color: #0077b5; */
	/* background-color: transparent; */
	/* background-color: #ffffff33; */
	color: #a2eeff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.chatbot-toggle:hover,
.chatbot-toggle:focus-visible {
	background-color: #005177;
	transform: translateY(-1px);
}

.chatbot-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	/* background-color: rgba(255, 255, 255, 0.2); */
	/* background-color: transparent; */
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.chatbot-window {
	position: absolute;
	right: 0;
	bottom: 72px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	width: 380px;
	max-width: calc(100vw - 32px);
	height: 480px;
	max-height: calc(100vh - 140px);
	border-radius: 14px;
	background-color: #fff;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.chatbot-window[hidden] {
	display: none;
}

.chatbot-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	/* background-color: #0077b5; */
	/* background-color: #a2eeff; */
	/* color: #fff; */
	border-bottom: 2px solid #a2eeff;
}

.chatbot-title {
	font-size: 15px;
	font-weight: 600;
}

.chatbot-close {
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.chatbot-subheader {
	padding: 8px 16px;
	/* border-bottom: 1px solid #e2e8f0; */
	/* background-color: #f8fafc; */
	text-align: right;
}

.chatbot-count {
	font-size: 12px;
	/* color: #52606d; */
}

.chatbot-messages {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	overflow-y: auto;
	background-color: #000;
}

.chatbot-message {
	max-width: 80%;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

.chatbot-message.user {
	align-self: flex-end;
	background-color: #0077b5;
	color: #fff;
	border-bottom-right-radius: 4px;
}

.chatbot-message.bot {
	align-self: flex-start;
	background-color: #fff;
	color: #1f2933;
	border: 1px solid #e2e8f0;
	border-bottom-left-radius: 4px;
}

.chatbot-message.error {
	align-self: flex-start;
	background-color: #fdecea;
	color: #8a1c1c;
	border: 1px solid #f5c2c0;
	border-bottom-left-radius: 4px;
}

.chatbot-input-area {
	display: flex;
	gap: 8px;
	padding: 12px;
	/* border-top: 1px solid #e2e8f0; */
	/* background-color: #fff; */
}

.chatbot-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	color: #1f2933;
	background-color: #fff;
}

.chatbot-input:focus {
	border-color: #0077b5;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 119, 181, 0.18);
}

.chatbot-input:disabled,
.chatbot-send:disabled,
.chatbot-input.is-locked,
.chatbot-send.is-locked {
	background-color: #e2e8f0;
	color: #94a3b8;
	cursor: not-allowed;
}

/* .chatbot-send {
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	background-color: #a2eeff;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
} */

.chatbot-send {
	width: 82px;
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	background-color: #a2eeffd7;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.chatbot-send:hover:not(:disabled),
.chatbot-send:focus-visible:not(:disabled) {
	background-color: #005177;
}

.wp-ai-chatbot.is-open .chatbot-toggle {
	display: none;
}

@media (max-width: 480px) {
	.wp-ai-chatbot {
		right: 12px;
		bottom: 12px;
		left: 12px;
	}

	/* .chatbot-toggle {
		width: 100%;
		justify-content: center;
	} */

	.chatbot-toggle {
		width: 75%;
		justify-content: center;
	}

	.chatbot-window {
		position: fixed;
		right: 12px;
		left: 12px;
		bottom: 12px;
		width: auto;
		max-width: none;
		height: auto;
		max-height: 80vh;
	}
}


/* ***** ***** ***** ***** */
/*  Animated AI Response Dots */
/* ***** ***** ***** ***** */

.chatbot-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 2px;
}

.chatbot-typing-dots span {
    width: 7px;
    height: 7px;
    background-color: currentColor;
    border-radius: 50%;
    opacity: 0.4;
    animation: chatbotBounce 1.4s infinite ease-in-out both;
}

.chatbot-typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.chatbot-typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

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