/**
 * AI Chatbot Styles - Beige/Brown Theme
 */

/* Chatbot Widget Container - No longer floating */
.ai-chatbot-widget {
	position: relative;
	width: 100%;
	max-width: 100%;
font-family: "Montserrat", Sans-serif;
}

/* Chatbot Container */
.ai-chatbot-container {
	background: #F6F6F6;
	border-radius: 25px;
	border: 1px solid #8E51FF4D;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 600px;
	max-height: 80vh;
}

/* Header */
.ai-chatbot-header {
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	border-bottom: 1px solid #e8e0d4;
}

.ai-chatbot-header-icon {
	color: #8b6f47; /* Dark brown */
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ai-chatbot-header-icon svg {
	width: 50px;
	height: 50px;
}

.ai-chatbot-header-content {
	flex: 1;
}

.ai-chatbot-assistant-name {
	margin: 0 0 4px 0;
	font-size: 18px;
	font-weight: 600;
	color: #1A1A1A; /* Dark brown */
}

.ai-chatbot-status {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ai-chatbot-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4caf50; /* Green for online status */
	display: inline-block;
}

.ai-chatbot-status-text {
font-size: 14px;
    color: #99A1AF;
    font-weight: 400;
}

/* Messages Area */
.ai-chatbot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

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

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

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

.ai-chatbot-messages::-webkit-scrollbar-thumb:hover {
	background: #c4b4a0;
}

/* Message Bubbles */
.ai-chatbot-message {
	display: flex;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ai-chatbot-message-bot {
	justify-content: flex-start;
}

.ai-chatbot-message-user {
	justify-content: flex-end;
}

.ai-chatbot-message-content {
	max-width: 75%;
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.6;
	word-wrap: break-word;
}

/* Bot messages - light beige */
.ai-chatbot-message-bot .ai-chatbot-message-content {
	background: #CECECE; /* Very light beige */
	color: #000; /* Dark brown text */
	border-bottom-left-radius: 4px;
}

/* User messages - darker beige */
.ai-chatbot-message-user .ai-chatbot-message-content {
	background: #CECECE; /* Darker beige */
	color: #000; /* Dark brown text */
	border-bottom-right-radius: 4px;
}

/* Options Area */
.ai-chatbot-options {
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex-shrink: 0;
	max-height: 160px;
	overflow-y: auto;
	border-top: 1px solid #e8e0d4;
}

.ai-chatbot-option {
	background: #faf8f3;
	border: 1px solid #e8e0d4;
	border-radius: 8px;
	padding: 5px 16px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 14px;
	color: #5a4a3a;
	text-align: left;
	font-weight: 500;
}

.ai-chatbot-option:hover {
	background: #e8ddd0;
	border-color: #d4c4b0;
	transform: translateX(2px);
}

.ai-chatbot-option:active {
	transform: translateX(1px);
}

.ai-chatbot-option-link {
	background: #000;
	color: #fff;
	border-color: #000;
}

.ai-chatbot-option-link:hover {
	background: #7a5f37;
	border-color: #7a5f37;
	color: #fff;
}

/* Input Area */
.ai-chatbot-input-area {
	padding: 16px 20px;
	border-top: 1px solid #e8e0d4;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ai-chatbot-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.ai-chatbot-input {
	width: 100%;
	padding: 12px 40px 12px 16px;
	border: 1px solid #1A1A1A;
	border-radius: 8px;
	background: #faf8f3;
	color: #1A1A1A;
	font-size: 14px;
	font-family: inherit;
	outline: none;
	transition: all 0.2s ease;
}

.ai-chatbot-input:focus {
	border-color: #1A1A1A;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.ai-chatbot-input::placeholder {
	color: #1A1A1A;
}.ai-chatbot-send-icon-wrapper {
    margin-left: 15px;
}

.ai-chatbot-send-icon {
	position: absolute;
	right: 8px;
	background: transparent;
	border: none;
	color: #8b6f47;
	cursor: pointer;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.ai-chatbot-send-icon:hover {
	background: #e8ddd0;
	color: #5a4a3a;
}

.ai-chatbot-send-icon svg {
	width: 18px;
	height: 18px;
}

.ai-chatbot-chat-now{
	width: 100%;
	padding: 14px 20px;
	background: #000 !important; /* Dark brown */
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.ai-chatbot-chat-now:hover {
	background: #000 !important; 
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(139, 111, 71, 0.2);
}

.ai-chatbot-chat-now:active {
	transform: translateY(0);
}

/* Typing Indicator */
.ai-chatbot-typing {
	padding: 16px 20px;
	background: #f5f1e8;
	border-top: 1px solid #e8e0d4;
	flex-shrink: 0;
}

.ai-chatbot-typing-indicator {
	display: flex;
	gap: 6px;
	align-items: center;
	justify-content: flex-start;
}

.ai-chatbot-typing-indicator span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #8b6f47;
	animation: typing 1.4s infinite;
}

.ai-chatbot-typing-indicator span:nth-child(2) {
	animation-delay: 0.2s;
}

.ai-chatbot-typing-indicator span:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes typing {
	0%, 60%, 100% {
		transform: translateY(0);
		opacity: 0.7;
	}
	30% {
		transform: translateY(-10px);
		opacity: 1;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	.ai-chatbot-container {
		height: 500px;
		max-height: 90vh;
	}
	
	.ai-chatbot-header {
		padding: 16px;
	}
	
	.ai-chatbot-messages {
		padding: 16px;
	}
	
	.ai-chatbot-input-area {
		padding: 12px 16px;
	}
}

@media (max-width: 480px) {
	.ai-chatbot-container {
		height: 450px;
		max-height: 65vh;
	}
	
	.ai-chatbot-assistant-name {
		font-size: 16px;
	}
	
	.ai-chatbot-message-content {
		max-width: 85%;
		font-size: 13px;
	}
}
