.chat-panel {
	position: relative;
	border: 1px solid #dcdcdc;
	border-radius: 12px;
	padding: 12px;
	background: #ffffff;
	margin-bottom: 12px;
}

.chat-scroll {
	max-height: 300px;
	overflow-y: auto;
	padding-right: 6px;
	margin-top: 13px;
}

.chat-scroll-bottom-btn {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 999px;
	background: #ffffff;
	border: 1px solid #c4c9d4;
	color: #111111;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
	cursor: pointer;
	z-index: 3;
	opacity: 0.94;
	transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.chat-scroll-bottom-btn:hover,
.chat-scroll-bottom-btn:focus {
	opacity: 1;
	background: #f8fafc;
	border-color: #aeb6c4;
	outline: none;
}

.chat-close {
	position: absolute;
	top: 11px;
	left: 10px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1px solid #ccc;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: bold;
	cursor: pointer;
	background-color: #fff;
	color: #303030;
	transition: all 0.2s ease;
}

.chat-question {
	background: #eef2ff;
	padding: 8px 12px;
	border-radius: 10px;
	margin-bottom: 4px;
}

.chat-answer {
	background: #f9fafb;
	padding: 8px 12px;
	border-radius: 10px;
	margin-bottom: 12px;
}

.bedrock-inline-row {
	display: flex;
	align-items: center;
	position: relative;
	gap: 0;
	min-height: 66px;
	padding: 8px 68px 8px 8px;
	border-radius: 36px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid #c7d7f7;
	box-shadow: 0 10px 24px rgba(59, 130, 246, 0.12);
}

.bedrock-inline-row .b-input-text {
	width: 100%;
	flex: 1;
	min-width: 0;
}

.bedrock-inline-row .b-input,
.bedrock-inline-row .b-input__table,
.bedrock-inline-row .b-input__table-td,
.bedrock-inline-row .b-input__content,
.bedrock-inline-row .b-input-text,
.bedrock-inline-row .ui-inputwrapper,
.bedrock-inline-row .ui-inputwrapper-focus,
.bedrock-inline-row input,
.bedrock-inline-row input[type="text"] {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 100%;
}

.bedrock-inline-row .b-input__input,
.bedrock-inline-row .b-input__input:hover,
.bedrock-inline-row .b-input__input:focus,
.bedrock-inline-row .ui-inputfield,
.bedrock-inline-row .ui-inputfield:hover,
.bedrock-inline-row .ui-inputfield:focus,
.bedrock-inline-row input,
.bedrock-inline-row input:hover,
.bedrock-inline-row input:focus {
	background: transparent !important;
	border: none !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 14px 18px !important;
	font-size: 14px;
	transition: none !important;
}

.bedrock-inline-row .b-input__input:hover,
.bedrock-inline-row .ui-inputfield:hover {
	border: none !important;
}

.bedrock-inline-row .b-input__input:focus,
.bedrock-inline-row .ui-inputfield:focus {
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}

.bedrock-inline-row .b-input__input::placeholder,
.bedrock-inline-row .ui-inputfield::placeholder {
	color: #6b7280;
}

.bedrock-inline-row:focus-within {
	border-color: #c7d7f7;
	box-shadow: 0 10px 24px rgba(59, 130, 246, 0.12);
}

.ask-circle-btn,
.ask-circle-btn.ui-button,
.ask-circle-btn.ui-state-default,
.ask-circle-btn.ui-state-hover,
.ask-circle-btn.ui-state-focus {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	min-width: 1px !important;
	min-height: 1px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	pointer-events: none !important;
	box-shadow: none !important;
	background: transparent !important;
	transform: none !important;
	transition: none !important;
	left: 0 !important;
	top: 0 !important;
	right: auto !important;
	bottom: auto !important;
}

.ask-circle-trigger {
	position: absolute;
	right: 8px;
	top: 50%;
	width: 50px;
	height: 50px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: #2563eb;
	background-image: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	box-shadow: none;
	transform: translateY(-50%);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: background-image 0.2s ease, background-color 0.2s ease;
	z-index: 2;
}

.ask-circle-trigger::before {
	content: "↑";
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #ffffff;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-1px);
}

.ask-circle-trigger:hover,
.ask-circle-trigger:focus {
	background-color: #1d4ed8;
	background-image: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	box-shadow: none;
	outline: none;
}

.chat-message {
	padding: 8px 12px;
	margin: 6px 0;
	border-radius: 12px;
}

.chat-message.temp-user-msg {
	opacity: 0.96;
}

.chat-message p,
.chat-message ul,
.chat-message ol {
	margin: 0 0 10px 0;
	line-height: 1.6;
}

.chat-message p:last-child,
.chat-message ul:last-child,
.chat-message ol:last-child {
	margin-bottom: 0;
}

.chat-message ul,
.chat-message ol {
	padding-left: 20px;
}

.chat-message li {
	margin-bottom: 6px;
}

.chat-message code {
	padding: 1px 5px;
	border-radius: 4px;
	background: rgba(15, 23, 42, 0.08);
	font-family: Consolas, "Courier New", monospace;
	font-size: 12px;
}

.user-msg {
	display: table;
	width: auto;
	max-width: 32%;
	background-color: #f1f1f1;
	color: #000;
	margin-left: auto;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.bot-msg {
	max-width: 75%;
	color: #000;
	margin-right: auto;
}

.bot-msg.bot-msg-reveal {
	position: relative;
}

.typing-loader {
	display: flex;
	gap: 4px;
	padding: 8px;
}

.typing-loader span {
	width: 6px;
	height: 6px;
	background: #999;
	border-radius: 50%;
	animation: blink 1.4s infinite both;
}

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

.typing-loader span:nth-child(3) {
	animation-delay: .4s;
}

@keyframes blink {
	0% {
		opacity: .2;
	}
	20% {
		opacity: 1;
	}
	100% {
		opacity: .2;
	}
}

.faq-tool-shell.ai-tool {
	background: linear-gradient(135deg, #f4f8ff 0%, #eef5ff 100%);
	border-left: 5px solid #bccae1;
}

.faq-tool-shell.ai-tool .b-edit-panel__section {
	background-image: linear-gradient(135deg, #f4f8ff 0%, #eef5ff 100%);
}

.faq-ai-disclaimer {
	margin: 0 0 16px 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid #c7d7f7;
	color: #334155;
	font-size: 13px;
	line-height: 1.6;
}

.faq-ai-disclaimer p {
	margin: 0 0 10px 0;
}

.faq-ai-disclaimer p:last-child {
	margin-bottom: 0;
}