/* Scoped modal/chat styles to avoid theme collisions. */

#aiLeadEnhancerModal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

#aiLeadEnhancerModal.show {
	display: block;
}

#aiLeadEnhancerModal::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

#aiLeadEnhancerModal .modal-dialog {
	position: relative;
	max-width: 840px;
	margin: 6vh auto;
	padding: 0 16px;
}

#aiLeadEnhancerModal .ai-lead-enhancer-modal-content {
	position: relative;
	background: #fff;
	color: #1f2937;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

#aiLeadEnhancerModal .modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #eef0f3;
}

#aiLeadEnhancerModal .modal-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
	color: #111827;
}

#aiLeadEnhancerModal .btn-close {
	border: 0;
	background: transparent;
	color: #6b7280;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	font-size: 2em;
}

#aiLeadEnhancerModal .btn-close::before {
	content: "×";
	font-size: 2em;
}

#aiLeadEnhancerModal .modal-body {
	padding: 16px;
}

#aiLeadEnhancerModal .ai-lead-enhancer-chat-log {
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #f8fafc;
	padding: 12px;
	font-size: 1.0625rem;
	line-height: 1.5;
}

#aiLeadEnhancerModal .ai-lead-enhancer-chat-log .ai-lead-enhancer-intro {
	font-size: 1.0625rem;
	line-height: 1.45;
}

#aiLeadEnhancerModal .ai-lead-enhancer-chat-bubble {
	max-width: 92%;
	word-wrap: break-word;
	font-size: 1.0625rem;
	line-height: 1.45;
}

#aiLeadEnhancerModal .ai-lead-enhancer-chat-error {
	font-size: 1rem;
	line-height: 1.4;
}

#aiLeadEnhancerModal .ai-lead-enhancer-typing-dots {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	min-height: 18px;
}

#aiLeadEnhancerModal .ai-lead-enhancer-typing-dots span {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: #6b7280;
	opacity: 0.35;
	animation: aiLeadEnhancerTypingDot 1.2s infinite ease-in-out;
}

#aiLeadEnhancerModal .ai-lead-enhancer-typing-dots span:nth-child(2) {
	animation-delay: 0.15s;
}

#aiLeadEnhancerModal .ai-lead-enhancer-typing-dots span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes aiLeadEnhancerTypingDot {
	0%,
	80%,
	100% {
		transform: translateY(0);
		opacity: 0.35;
	}
	40% {
		transform: translateY(-4px);
		opacity: 1;
	}
}

#aiLeadEnhancerModal .ai-lead-enhancer-chat-compose {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}

#aiLeadEnhancerModal .ai-lead-enhancer-chat-input {
	flex: 1;
	resize: vertical;
	min-height: 2.75rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 8px 10px;
}

#aiLeadEnhancerModal .ai-lead-enhancer-chat-send {
	border: 1px solid #374151;
	background: #374151;
	color: #fff;
	border-radius: 6px;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1.4;
}

#aiLeadEnhancerModal .ai-lead-enhancer-chat-send[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

#aiLeadEnhancerModal .ai-lead-enhancer-complete {
	margin-top: 14px;
	padding: 14px;
	border: 1px solid #d1fae5;
	border-radius: 6px;
	background: #ecfdf5;
	text-align: center;
}

#aiLeadEnhancerModal .ai-lead-enhancer-complete-message {
	margin: 0 0 12px;
	color: #065f46;
	font-size: 1.0625rem;
	line-height: 1.45;
}

#aiLeadEnhancerModal .ai-lead-enhancer-complete-close {
	border: 1px solid #047857;
	background: #047857;
	color: #fff;
	border-radius: 6px;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 1rem;
}

/* For borderless / theme-matched buttons, override in the theme (see Minecool: src/sass/common/_ai-lead-enhancer.scss). */
