.fmh {
	--fmh-primary: #2e8de5;
	--fmh-text: #1b1f24;
	--fmh-muted: #5b6470;
	--fmh-surface: #ffffff;
	--fmh-line: #dfe3e8;
	--fmh-soft: #f3f7fc;
	max-width: 720px;
	margin: 0 auto;
	color: var(--fmh-text);
	font-size: 16px;
	line-height: 1.5;
}
.fmh-form {
	display: flex;
	gap: 8px;
}
/* Matches the site: Poppins text, DM Sans headings and buttons, 10px corners.
   The theme styles inputs more specifically, hence .fmh in front. */
.fmh .fmh-input {
	flex: 1;
	min-width: 0;
	height: auto;
	padding: 12px 14px;
	border: 1px solid var(--fmh-line);
	border-radius: 10px;
	background: var(--fmh-surface);
	color: var(--fmh-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 22px;
	box-shadow: none;
}
.fmh-input:focus {
	outline: 2px solid var(--fmh-primary);
	outline-offset: 1px;
}
.fmh .fmh-ask {
	padding: 12px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--fmh-primary);
	color: #fff;
	font-family: "DM Sans", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 22px;
	cursor: pointer;
}
/* The theme styles buttons inside forms; ours keep their colours. */
.fmh button.fmh-ask,
.fmh button.fmh-ask:hover,
.fmh button.fmh-ask:focus,
.fmh button.fmh-ask:visited {
	background: var(--fmh-primary) !important;
	color: #fff !important;
	border: 0 !important;
}
.fmh-ask:disabled {
	opacity: 0.6;
	cursor: default;
}
.fmh-hits,
.fmh-answer {
	margin-top: 16px;
}
.fmh-hits:not(:empty),
.fmh-answer:not(:empty) {
	padding: 16px 20px;
	border-radius: 10px;
	background: var(--fmh-soft);
}
.fmh-label {
	margin: 8px 0 4px;
	color: var(--fmh-muted);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.fmh-links {
	margin: 0;
	padding: 0;
	list-style: none;
}
.fmh-links li {
	padding: 4px 0;
}
.fmh a {
	color: var(--fmh-primary);
	text-decoration: none;
}
.fmh a:hover {
	text-decoration: underline;
}
.fmh-text {
	margin: 0 0 8px;
}
.fmh-thinking {
	margin: 0;
	color: var(--fmh-muted);
}
.fmh-contact {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--fmh-line);
	color: var(--fmh-muted);
}

/* Contact form */
.fmh-contact-form {
	display: grid;
	gap: 12px;
}
.fmh-field {
	display: grid;
	gap: 4px;
	margin: 0;
}
.fmh-field-label {
	color: var(--fmh-muted);
	font-size: 14px;
}
.fmh textarea.fmh-input {
	resize: vertical;
	font-family: inherit;
	line-height: 1.4;
}
.fmh-file {
	font-size: 14px;
	color: var(--fmh-text);
}
.fmh-contact-form .fmh-ask {
	justify-self: start;
}
.fmh-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

/* Help button and panel */
/* The theme sets buttons to position: relative while pressed or focused,
   which made the button jump away from under the pointer mid-click. */
.fmh-launcher,
.fmh-launcher:active,
.fmh-launcher:focus {
	position: fixed !important;
	right: 20px;
	bottom: 20px;
	z-index: 99998;
	width: 60px;
	height: 60px;
	border: 0;
	border-radius: 50%;
	background: #2e8de5;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.fmh-launcher:hover,
.fmh-launcher:focus,
.fmh-launcher:active {
	background: #2e8de5 !important;
	color: #fff !important;
	border: 0 !important;
}
.fmh-panel {
	position: fixed;
	right: 20px;
	bottom: 92px;
	z-index: 99999;
	width: 400px;
	max-height: calc(100vh - 120px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}
.fmh-panel[hidden] {
	display: none;
}
.fmh-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: #2e8de5;
	color: #fff;
}
.fmh-panel-title {
	font-family: "DM Sans", sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 24px;
}
.fmh-panel .fmh-panel-close {
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	padding: 0 4px;
	cursor: pointer;
}
.fmh-panel-body {
	padding: 16px;
	overflow-y: auto;
	color: #1b1f24;
}
@media (max-width: 600px) {
	.fmh-panel {
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
	}
	.fmh-launcher.fmh-open {
		display: none;
	}
}
