.afsd-deployment-mount[hidden] {
	display: none !important;
}

.afsd-help-panel {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	border-bottom: 1px solid rgba(15, 23, 42, 0.12);
	background: #f8fafc;
	color: #0f172a;
	font-size: 14px;
	line-height: 1.4;
}

.afsd-help-summary {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	padding: 8px 14px;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
	list-style: none;
}

.afsd-help-summary::-webkit-details-marker {
	display: none;
}

.afsd-help-summary::after {
	content: "▾";
	font-size: 12px;
	opacity: 0.75;
	transition: transform 0.15s ease;
}

.afsd-help-panel[open] > .afsd-help-summary::after {
	transform: rotate(180deg);
}

.afsd-help-body {
	box-sizing: border-box;
	max-height: min(46vh, 320px);
	overflow-y: auto;
	padding: 8px 12px 12px;
	max-width: 100%;
}

.afsd-help-body * {
	box-sizing: border-box;
	max-width: 100%;
}

.afsd-deployment-fallback-dock {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 99998;
	width: min(360px, calc(100vw - 32px));
	max-width: calc(100vw - 32px);
	border: 1px solid rgba(15, 23, 42, 0.16);
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
	overflow: hidden;
}

.afsd-deployment-fallback-error {
	padding: 10px 12px;
	border: 1px solid #fca5a5;
	border-radius: 6px;
	background: #fef2f2;
	color: #7f1d1d;
	font-size: 13px;
}

.afsd-deployment-fallback-error p {
	margin: 0 0 6px;
}

.afsd-deployment-fallback-error p:last-child {
	margin-bottom: 0;
}

/* Keep the new controls inside Meow's chat frame, including short screens. */
#mwai-chatbot-chatbot-w1iudk .mwai-body:has(> .afsd-help-panel) {
	height: min(620px, calc(100dvh - 130px));
	max-height: min(620px, calc(100dvh - 130px));
	min-height: 0;
}

#mwai-chatbot-chatbot-w1iudk .afsd-help-panel {
	--afsd-bg: #fdfcfa;
	--afsd-surface: #ffffff;
	--afsd-navy: #102a43;
	--afsd-navy-hover: #0a1c2e;
	--afsd-teal: #0f766e;
	--afsd-teal-light: #f0fdfa;
	--afsd-border: #d9e2ec;
	--afsd-text: #102a43;
	--afsd-muted: #486581;
	--afsd-error: #b91c1c;
	--afsd-error-bg: #fef2f2;
	--afsd-warn: #92400e;
	--afsd-warn-bg: #fffbeb;
	--afsd-info: #075985;
	--afsd-info-bg: #f0f9ff;
	font-family: system-ui, sans-serif;
	letter-spacing: normal;
	flex: 0 1 auto;
	min-height: 44px;
	max-height: calc(100% - 140px);
	overflow: auto;
}

#mwai-chatbot-chatbot-w1iudk .afsd-help-summary {
	position: sticky;
	top: 0;
	z-index: 1;
	background: #f8fafc;
}

#mwai-chatbot-chatbot-w1iudk .afsd-help-panel :is(button, input, textarea) {
	font-family: inherit;
	letter-spacing: normal;
}

#mwai-chatbot-chatbot-w1iudk .afsd-help-panel .afsd-choice-btn--secondary {
	background: #ffffff;
	color: #102a43;
	border: 1px solid #d9e2ec;
}

#mwai-chatbot-chatbot-w1iudk .afsd-help-panel :is(.afsd-choice-btn--primary, .afsd-submit-btn) {
	background: #102a43;
	color: #ffffff;
}

/* AFSD's teaser and native chat share the callback card's navy, cream and gold. */
#mwai-chatbot-chatbot-w1iudk,
#mwai-chatbot-chatbot-w1iudk :is(button, input, textarea) {
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: normal;
}

#mwai-chatbot-chatbot-w1iudk .mwai-icon-text {
	box-sizing: border-box;
	width: 272px;
	max-width: calc(100vw - 40px);
	padding: 16px;
	background: #fffdf8;
	color: #102a43;
	border: 1px solid #e8dfce;
	border-top: 3px solid #dfa624;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(16, 42, 67, 0.18);
	text-align: left;
	line-height: 1.45;
}

#mwai-chatbot-chatbot-w1iudk .mwai-icon-text-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
}

#mwai-chatbot-chatbot-w1iudk .mwai-icon-text-name {
	font-size: 13px;
	font-weight: 650;
	line-height: 1.3;
	color: #486581;
	letter-spacing: normal;
	text-transform: none;
}

#mwai-chatbot-chatbot-w1iudk .mwai-icon-text-body {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	white-space: pre-line;
	color: #102a43;
}

#mwai-chatbot-chatbot-w1iudk .mwai-icon-text-close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	width: 28px;
	min-height: 28px;
	margin-left: auto;
	border-radius: 6px;
	font-size: 15px;
	color: #486581;
}

#mwai-chatbot-chatbot-w1iudk .mwai-icon-text-close:hover {
	background: #f0ede5;
}

#mwai-chatbot-chatbot-w1iudk :is(.mwai-icon-text-close, .mwai-icon-container):focus-visible {
	outline: 3px solid #dfa624;
	outline-offset: 3px;
}

#mwai-chatbot-chatbot-w1iudk .mwai-icon-container {
	background: #102a43;
	border: 1px solid #d9e2ec;
	box-shadow: 0 6px 20px rgba(16, 42, 67, 0.2);
}

#mwai-chatbot-chatbot-w1iudk .mwai-window-box {
	border: 1px solid #d9e2ec;
	border-radius: 16px;
	box-shadow: 0 16px 44px rgba(16, 42, 67, 0.22);
	overflow: hidden;
}

#mwai-chatbot-chatbot-w1iudk .mwai-header {
	background: #102a43;
	color: #ffffff;
	min-height: 44px;
	padding: 10px 14px;
}

#mwai-chatbot-chatbot-w1iudk .mwai-header .mwai-name {
	font-size: 14px;
	font-weight: 650;
	letter-spacing: normal;
}

#mwai-chatbot-chatbot-w1iudk :is(.mwai-body, .mwai-conversation, .mwai-input) {
	background: #102a43;
}

#mwai-chatbot-chatbot-w1iudk .mwai-reply {
	font-size: 15px;
	line-height: 1.5;
	letter-spacing: normal;
}

#mwai-chatbot-chatbot-w1iudk .mwai-input textarea {
	background: #f8fafc;
	color: #102a43;
	font-size: 15px;
	line-height: 1.45;
}

#mwai-chatbot-chatbot-w1iudk .mwai-input textarea::placeholder {
	color: #486581;
	opacity: 1;
}

#mwai-chatbot-chatbot-w1iudk .afsd-card__title {
	font-family: inherit;
	font-size: 17px;
	font-weight: 650;
	line-height: 1.35;
	letter-spacing: normal;
}

#mwai-chatbot-chatbot-w1iudk .mwai-chunks {
	display: none;
}

@media (max-width: 760px) {
	#mwai-chatbot-chatbot-w1iudk .mwai-window-box {
		border-radius: 0;
		border: 0;
	}
}
