.faq-assistant,
.faq-page {
	--faq-font: "Segoe UI", Arial, sans-serif;
	font: 14px/1.6 var(--faq-font);
	letter-spacing: 0;
	color: #18374b;
}

.faq-assistant [hidden],
.faq-page [hidden] {
	display: none !important;
}

.faq-launcher {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 990;
	width: 39.2px;
	height: 39.2px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #007f78;
	color: #fff;
	box-shadow: 0 4px 16px rgba(24, 55, 75, .2);
	display: flex;
	align-items: center;
	justify-content: center;
	font: 600 12px/1.4 var(--faq-font);
	letter-spacing: 0;
	transition: background .2s ease, box-shadow .2s ease;
}

.faq-launcher::before {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
}

.faq-launcher:hover,
.faq-launcher[aria-expanded="true"] {
	background: #00665c;
	box-shadow: 0 0 0 4px #dcefe8, 0 4px 16px rgba(24, 55, 75, .2);
}

.faq-panel {
	position: fixed;
	right: 24px;
	bottom: 71.2px;
	z-index: 990;
	display: flex;
	flex-direction: column;
	width: min(360px, calc(100vw - 32px));
	max-height: min(520px, calc(100vh - 100px));
	max-height: min(520px, calc(100dvh - 100px));
	border: 1px solid #9dcfc5;
	border-radius: 18px;
	background: #d8eee5;
	box-shadow: 0 8px 32px rgba(24, 55, 75, .18);
	transform-origin: calc(100% - 19.6px) bottom;
	animation: faq-open .22s ease-out;
}

.faq-panel::after {
	content: "";
	position: absolute;
	right: 12.6px;
	bottom: -8px;
	width: 14px;
	height: 14px;
	border-right: 1px solid #9dcfc5;
	border-bottom: 1px solid #9dcfc5;
	background: #d8eee5;
	transform: rotate(45deg);
}

@keyframes faq-open {
	from {
		opacity: 0;
		transform: translateY(12px) scale(.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.faq-panel__header {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 12px;
	background: #c3e3d6;
	border-bottom: 1px solid #9dcfc5;
	border-radius: 17px 17px 0 0;
}

.faq-panel__header h2 {
	margin: 0;
	font-family: var(--faq-font);
	font-size: 17px;
	line-height: 1.4;
	font-weight: 600 !important;
	letter-spacing: 0;
}

.faq-panel__header p {
	margin: 4px 0 0;
	color: #52616a;
	font-size: 12px;
	font-family: var(--faq-font);
	line-height: 1.5;
}

.faq-close {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: #18374b;
	font-size: 28px;
}

.faq-panel__body {
	min-height: 0;
	padding: 12px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.faq-content {
	overflow-wrap: anywhere;
}

.faq-content p {
	margin: 12px 0;
	color: #425563;
	font: 14px/1.65 var(--faq-font);
	letter-spacing: 0;
}

.faq-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0;
}

.faq-topics button {
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid #9dcfc5;
	border-radius: 6px;
	background: #fff;
	color: #00665c;
	font: 13px/1.5 var(--faq-font);
}

.faq-topics button[aria-pressed="true"] {
	background: #007f78;
	color: #fff;
}

.faq-assistant .faq-intro {
	margin-top: 0;
	padding: 8px 10px;
	border-radius: 4px 14px 14px 14px;
	background: #fff;
}

.faq-assistant .faq-content p {
	font-size: 13px;
	line-height: 1.65;
}

.faq-assistant .faq-topics {
	gap: 6px;
	margin: 10px 0;
}

.faq-assistant .faq-topics button {
	padding: 6px 9px;
	border-radius: 20px;
	font-size: 12px;
	transition: background .2s ease, border-color .2s ease;
}

.faq-assistant .faq-topic h3 {
	margin: 16px 0 8px;
	font-size: 16px;
}

.faq-assistant .faq-topics button:hover {
	border-color: #007f78;
	background: #dcefe8;
	color: #00665c;
}

.faq-assistant .faq-topic details {
	margin: 8px 0;
	padding: 0;
	border: 0;
}

.faq-assistant .faq-topic summary {
	min-height: 44px;
	margin-left: 10px;
	padding: 9px 10px;
	border: 1px solid #d5e0e2;
	border-radius: 14px 14px 4px 14px;
	background: #fff;
	font-size: 13px;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-assistant .faq-topic summary:hover,
.faq-assistant .faq-topic details[open] summary {
	border-color: #007f78;
	box-shadow: 0 2px 8px rgba(24, 55, 75, .07);
}

.faq-assistant .faq-topic details p {
	margin: 8px 10px 0 0;
	padding: 9px 10px;
	border-left: 3px solid #9dcfc5;
	border-radius: 4px 14px 14px 14px;
	background: #fff;
}

.faq-assistant .faq-topic details a {
	margin-top: 8px;
	padding: 6px 12px;
	border-radius: 16px;
	background: #dcefe8;
	font-size: 12px;
}

.faq-topic h3 {
	margin: 24px 0 12px;
	color: #18374b;
	font-size: 18px;
	font-family: var(--faq-font);
	line-height: 1.4;
	font-weight: 600 !important;
	letter-spacing: 0;
}

.faq-topic details {
	padding: 12px 0;
	border-bottom: 1px solid #d5e0e2;
}

.faq-topic summary {
	min-height: 32px;
	cursor: pointer;
	color: #18374b;
	font-weight: 600;
}

.faq-content a,
.faq-panel__all {
	display: inline-block;
	padding: 8px 0;
	margin-right: 12px;
	color: #00665c;
	text-decoration: underline;
}

.faq-panel__all {
	flex-shrink: 0;
	margin: 0;
	padding: 8px 12px;
	border-top: 1px solid #d5e0e2;
	font-size: 12px;
	border-radius: 0 0 17px 17px;
}

.faq-assistant button {
	cursor: pointer;
}

.faq-assistant :focus-visible,
.faq-page :focus-visible {
	outline: 3px solid #007f78 !important;
	outline-offset: 3px;
}

.faq-page .faq-content {
	max-width: 900px;
	margin-top: 24px;
}

@media (max-width: 767px) {
	.faq-launcher {
		right: 16px;
		bottom: 16px;
	}

	.faq-panel {
		right: 16px;
		bottom: 63.2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.faq-panel {
		animation: none;
	}

	.faq-assistant button,
	.faq-assistant summary {
		transition: none;
	}
}
