/* AI ask — at end of explanation; hides with parent panel */

.jebu-ai-footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px dashed rgba(22, 65, 58, 0.15);
}

.jebu-ai-ask-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: transparent;
	color: var(--b4, #1c4f45);
	border: 1.5px solid var(--b2, rgba(22, 65, 58, 0.25));
	border-radius: var(--r-sm, 8px);
	font-family: 'Hind Siliguri', sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	line-height: 1;
}

.jebu-ai-ask-btn:hover {
	background: var(--b4, #1c4f45);
	color: #fff;
	border-color: var(--b4, #1c4f45);
}

.jebu-ai-ask-btn--footer {
	margin: 0;
}

.jebu-ai-chat-wrap {
	display: none;
	width: 100%;
	margin: 0;
	border-radius: 10px;
	font-family: 'Hind Siliguri', sans-serif;
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}

.jebu-ai-chat-wrap.is-open {
	display: block;
	animation: jebuPrepSlide 0.25s ease;
}

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

.jebu-ai-chat-msgs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 220px;
	overflow-y: auto;
	margin-bottom: 10px;
	min-height: 24px;
}

.jebu-ai-chat-msgs:empty::before {
	content: 'এই প্রশ্নের লজিক বা উত্তর যাচাই করতে জিজ্ঞাসা করুন।';
	color: #64748b;
	font-size: 14px;
}

.jebu-ai-u,
.jebu-ai-b {
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 10px;
	line-height: 1.5;
	max-width: 95%;
	white-space: pre-wrap;
	word-break: break-word;
}

.jebu-ai-u {
	align-self: flex-end;
	background: #16413a;
	color: #fff;
	border-bottom-right-radius: 4px;
}

.jebu-ai-b {
	align-self: flex-start;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #1e293b;
	border-bottom-left-radius: 4px;
}

.jebu-ai-b.err {
	background: #fef2f2;
	border-color: #fecaca;
	color: #b91c1c;
}

.jebu-ai-bar {
	display: flex;
	gap: 8px;
}

.jebu-ai-input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-family: 'Hind Siliguri', sans-serif;
	font-size: 16px;
	outline: none;
	background: #fff;
}

.jebu-ai-input:focus {
	border-color: #16413a;
	box-shadow: 0 0 0 3px rgba(22, 65, 58, 0.12);
}

.jebu-ai-send {
	padding: 8px 14px;
	background: #16413a;
	color: #fff !important;
	border: none;
	border-radius: 8px;
	font-family: 'Hind Siliguri', sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.jebu-ai-send:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.jebu-ai-hint {
	margin: 8px 0 0;
	font-size: 13px;
	color: #64748b;
}

.jebu-ai-hint a {
	color: #16413a;
	font-weight: 600;
}
