/* Site FAQ Assistant */
.sitefaq-widget {
	--sitefaq-color: #1d4ed8;
	--sitefaq-bg: #ffffff;
	--sitefaq-text: #1f2937;
	--sitefaq-muted: #6b7280;
	--sitefaq-line: #e5e7eb;
	--sitefaq-on: #ffffff;
	--sitefaq-chat-bg: #fafafa;
	--sitefaq-bot-bg: #ffffff;
	--sitefaq-bot-text: #1f2937;
	--sitefaq-vis-bg: #1d4ed8;
	--sitefaq-vis-text: #ffffff;
	--sitefaq-soft: #f3f4f6;
	--sitefaq-input-line: #d1d5db;
	--sitefaq-tint: #e4eafa;
	--sitefaq-fs: 15px;
	--sitefaq-font: inherit;
	font-family: var(--sitefaq-font);
	font-size: var(--sitefaq-fs);
	line-height: 1.5;
	color: var(--sitefaq-text);
	box-sizing: border-box;
}
.sitefaq-widget *, .sitefaq-widget *::before, .sitefaq-widget *::after { box-sizing: border-box; }
.sitefaq-widget button, .sitefaq-widget input, .sitefaq-widget textarea, .sitefaq-widget select { font-family: inherit; }
.sitefaq-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sitefaq-float { position: fixed; bottom: var(--sitefaq-y); z-index: 99999; }
.sitefaq-pos-right { right: var(--sitefaq-x); }
.sitefaq-pos-left { left: var(--sitefaq-x); }
[dir="rtl"] .sitefaq-pos-right { right: auto; left: var(--sitefaq-x); }
[dir="rtl"] .sitefaq-pos-left { left: auto; right: var(--sitefaq-x); }

.sitefaq-widget { --sitefaq-launch: 58px; --sitefaq-radius: 14px; --sitefaq-r-bubble: 12px; --sitefaq-r-ctrl: 10px; --sitefaq-r-launch: 999px; --sitefaq-w: 370px; --sitefaq-h: 540px; --sitefaq-x: 20px; --sitefaq-y: 20px; }
.sitefaq-size-s { --sitefaq-launch: 48px; }
.sitefaq-size-l { --sitefaq-launch: 68px; }
.sitefaq-launcher {
	position: relative; width: var(--sitefaq-launch); height: var(--sitefaq-launch); border-radius: var(--sitefaq-r-launch); border: 0; cursor: pointer;
	background: var(--sitefaq-color); color: var(--sitefaq-on); display: flex; align-items: center; justify-content: center; gap: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .22); padding: 0; font: inherit;
}
.sitefaq-icon { display: flex; align-items: center; justify-content: center; width: var(--sitefaq-launch); height: var(--sitefaq-launch); flex: none; }
.sitefaq-icon svg { width: calc(var(--sitefaq-launch) * .46); height: calc(var(--sitefaq-launch) * .46); }
.sitefaq-icon img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.sitefaq-fit-contain .sitefaq-icon img { object-fit: contain; padding: 18%; border-radius: 0; }
.sitefaq-has-img.sitefaq-has-label .sitefaq-icon img { width: calc(100% - 8px); height: calc(100% - 8px); }
/* Icon + text label: a pill. */
.sitefaq-launcher.sitefaq-has-label { width: auto; padding-inline-end: 20px; max-width: min(320px, calc(100vw - 32px)); }
.sitefaq-launcher.sitefaq-has-label .sitefaq-icon { width: calc(var(--sitefaq-launch) - 8px); margin-inline-start: 4px; }
.sitefaq-launcher-label { font-size: var(--sitefaq-fs); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sitefaq-pos-right .sitefaq-launcher { margin-inline-start: auto; }
/* Attention effect, shown when the pop-up appears (class sitefaq-attn added by the script). */
.sitefaq-fx-pulse.sitefaq-attn .sitefaq-launcher::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 var(--sitefaq-color);
	animation: sitefaq-pulse 1.8s ease-out 4; pointer-events: none;
}
.sitefaq-fx-bounce.sitefaq-attn .sitefaq-launcher { animation: sitefaq-bounce 1s ease 2; }
@keyframes sitefaq-pulse { 0% { box-shadow: 0 0 0 0 var(--sitefaq-color); opacity: .55; } 100% { box-shadow: 0 0 0 18px var(--sitefaq-color); opacity: 0; } }
@keyframes sitefaq-bounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-12px); } 55% { transform: translateY(0); } 72% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .sitefaq-fx-pulse.sitefaq-attn .sitefaq-launcher::after, .sitefaq-fx-bounce.sitefaq-attn .sitefaq-launcher { animation: none; } }
.sitefaq-launcher:focus-visible, .sitefaq-widget button:focus-visible, .sitefaq-widget textarea:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.sitefaq-float .sitefaq-panel {
	position: absolute; bottom: calc(var(--sitefaq-launch) + 14px); right: 0; width: var(--sitefaq-w); max-width: calc(100vw - 32px);
	height: var(--sitefaq-h); max-height: calc(100vh - var(--sitefaq-launch) - var(--sitefaq-y) - 64px);
}
.sitefaq-pos-left .sitefaq-panel { right: auto; left: 0; }
[dir="rtl"] .sitefaq-float .sitefaq-panel { right: auto; left: 0; }
[dir="rtl"] .sitefaq-pos-left .sitefaq-panel { left: auto; right: 0; }

.sitefaq-panel {
	background: var(--sitefaq-bg); border: 1px solid var(--sitefaq-line); border-radius: var(--sitefaq-radius);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .18); display: flex; flex-direction: column; overflow: hidden;
}
.sitefaq-panel[hidden] { display: none; }
.sitefaq-embedded .sitefaq-panel { height: var(--sitefaq-h); max-width: 100%; box-shadow: none; }

.sitefaq-head { background: var(--sitefaq-color); color: var(--sitefaq-on); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sitefaq-head strong { font-size: calc(var(--sitefaq-fs) * 1.067); }
.sitefaq-head-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sitefaq-head-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sitefaq-head-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sitefaq-sub { font-size: calc(var(--sitefaq-fs) * 0.833); opacity: .85; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sitefaq-avatar {
	position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .18); color: var(--sitefaq-on);
}
.sitefaq-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.sitefaq-avatar svg { width: 21px; height: 21px; }
.sitefaq-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px var(--sitefaq-color); flex: none; }
.sitefaq-avatar .sitefaq-dot { position: absolute; bottom: 0; inset-inline-end: 0; }
.sitefaq-dot-inline { width: 8px; height: 8px; box-shadow: none; }
.sitefaq-head-btns { display: flex; gap: 4px; }
.sitefaq-head button { background: transparent; border: 0; color: var(--sitefaq-on); font-size: 20px; line-height: 1; cursor: pointer; width: 32px; height: 32px; border-radius: 6px; padding: 0; }
.sitefaq-head button:hover { background: rgba(255, 255, 255, .18); }

.sitefaq-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--sitefaq-chat-bg); }
.sitefaq-msg { display: flex; flex-direction: column; max-width: 88%; }
.sitefaq-visitor { align-self: flex-end; align-items: flex-end; }
.sitefaq-bot { align-self: flex-start; }
.sitefaq-bubble { padding: 9px 12px; border-radius: var(--sitefaq-r-bubble); overflow-wrap: anywhere; }
.sitefaq-visitor .sitefaq-bubble { background: var(--sitefaq-vis-bg); color: var(--sitefaq-vis-text); border-end-end-radius: 4px; white-space: pre-wrap; }
.sitefaq-bot .sitefaq-bubble { background: var(--sitefaq-bot-bg); color: var(--sitefaq-bot-text); border: 1px solid var(--sitefaq-line); border-end-start-radius: 4px; }
.sitefaq-bubble p { margin: 0 0 .5em; }
.sitefaq-bubble p:last-child { margin-bottom: 0; }
.sitefaq-bubble ul, .sitefaq-bubble ol { margin: .3em 0 .5em 1.2em; padding: 0; }
.sitefaq-bubble a { color: var(--sitefaq-color); text-decoration: underline; }
.sitefaq-bubble img { max-width: 100%; height: auto; }
.sitefaq-source { font-size: calc(var(--sitefaq-fs) * 0.867); color: var(--sitefaq-muted); }
.sitefaq-related { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: calc(var(--sitefaq-fs) * 0.867); color: var(--sitefaq-muted); }
.sitefaq-typing .sitefaq-bubble { color: var(--sitefaq-muted); font-style: italic; }

.sitefaq-chip {
	display: inline-block; background: var(--sitefaq-bg); color: var(--sitefaq-color) !important; border: 1px solid var(--sitefaq-color);
	border-radius: 999px; padding: 4px 11px; font-size: calc(var(--sitefaq-fs) * 0.867); cursor: pointer; text-decoration: none !important; line-height: 1.4; text-align: start;
}
.sitefaq-chip:hover { background: var(--sitefaq-color); color: var(--sitefaq-on) !important; }
/* Starter questions: stacked buttons on the visitor's side. */
.sitefaq-suggest { align-self: flex-end; align-items: flex-end; gap: 8px; max-width: 92%; }
.sitefaq-starter {
	display: inline-block; background: var(--sitefaq-bg); color: var(--sitefaq-text); border: 1px solid var(--sitefaq-muted);
	border-radius: var(--sitefaq-r-bubble); padding: 8px 14px; font: inherit; font-size: calc(var(--sitefaq-fs) * 0.967); line-height: 1.35; cursor: pointer; text-align: start;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.sitefaq-starter:hover { border-color: var(--sitefaq-color); color: var(--sitefaq-color); }
.sitefaq-diff { border-style: dashed; }
/* Question button styles. */
.sitefaq-q-filled .sitefaq-starter { background: var(--sitefaq-color); color: var(--sitefaq-on); border-color: var(--sitefaq-color); }
.sitefaq-q-filled .sitefaq-starter:hover { color: var(--sitefaq-on); filter: brightness(1.1); }
.sitefaq-q-filled .sitefaq-diff, .sitefaq-q-soft .sitefaq-diff { background: var(--sitefaq-bg); color: var(--sitefaq-color); border: 1px dashed var(--sitefaq-color); }
.sitefaq-q-filled .sitefaq-diff:hover { filter: none; background: var(--sitefaq-tint); color: var(--sitefaq-color); }
.sitefaq-q-soft .sitefaq-starter:not(.sitefaq-diff) { background: var(--sitefaq-tint); color: var(--sitefaq-color); border-color: transparent; }
.sitefaq-q-soft .sitefaq-starter:not(.sitefaq-diff):hover { border-color: var(--sitefaq-color); }
/* Side by side. */
.sitefaq-q-inline .sitefaq-suggest, .sitefaq-q-inline .sitefaq-teaser-qs, .sitefaq-q-inline .sitefaq-preview-qs { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
.sitefaq-q-inline.sitefaq-pos-left .sitefaq-teaser-qs { justify-content: flex-start; }
[dir="rtl"] .sitefaq-q-inline.sitefaq-pos-right .sitefaq-teaser-qs { justify-content: flex-start; }
[dir="rtl"] .sitefaq-q-inline.sitefaq-pos-left .sitefaq-teaser-qs { justify-content: flex-end; }
.sitefaq-q-inline .sitefaq-teaser .sitefaq-starter { padding: 7px 13px; }

/* Welcome pop-up above the closed chat button. */
.sitefaq-teaser {
	position: absolute; bottom: calc(var(--sitefaq-launch) + 16px); right: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
	width: max-content; max-width: min(380px, calc(100vw - 40px)); animation: sitefaq-in .25s ease-out;
}
.sitefaq-pos-left .sitefaq-teaser { right: auto; left: 0; align-items: flex-start; }
[dir="rtl"] .sitefaq-pos-right .sitefaq-teaser { right: auto; left: 0; align-items: flex-start; }
[dir="rtl"] .sitefaq-pos-left .sitefaq-teaser { left: auto; right: 0; align-items: flex-end; }
.sitefaq-form textarea::placeholder { color: var(--sitefaq-muted); }
.sitefaq-teaser-msg {
	position: relative; background: var(--sitefaq-bg); border: 1px solid var(--sitefaq-line); border-radius: var(--sitefaq-radius);
	box-shadow: 0 8px 24px rgba(15, 23, 42, .14); padding: 14px 34px 14px 16px; max-width: 100%;
}
[dir="rtl"] .sitefaq-teaser-msg { padding: 14px 16px 14px 34px; }
.sitefaq-teaser-text { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-size: calc(var(--sitefaq-fs) * 1.033); color: var(--sitefaq-text); text-align: start; cursor: pointer; line-height: 1.45; }
.sitefaq-teaser-close {
	position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%;
	background: transparent; color: var(--sitefaq-muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0;
}
[dir="rtl"] .sitefaq-teaser-close { right: auto; left: 6px; }
.sitefaq-teaser-close:hover { background: var(--sitefaq-soft); color: var(--sitefaq-text); }
.sitefaq-teaser-close-alone { position: static; background: var(--sitefaq-bg); border: 1px solid var(--sitefaq-line); box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }
.sitefaq-teaser-qs { display: flex; flex-direction: column; align-items: inherit; gap: 8px; }
.sitefaq-teaser .sitefaq-starter { box-shadow: 0 4px 14px rgba(15, 23, 42, .10); font-size: var(--sitefaq-fs); padding: 9px 16px; }
@keyframes sitefaq-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sitefaq-teaser { animation: none; } }

/* Answers keep the page's formatting. */
.sitefaq-answer-title { font-weight: 700; margin-bottom: .35em !important; }
.sitefaq-bubble table { border-collapse: collapse; width: 100%; font-size: calc(var(--sitefaq-fs) * 0.9); margin: .4em 0; display: block; overflow-x: auto; }
.sitefaq-bubble th, .sitefaq-bubble td { border: 1px solid var(--sitefaq-line); padding: 4px 7px; text-align: start; vertical-align: top; }
.sitefaq-bubble th { background: var(--sitefaq-soft); }
.sitefaq-bubble li { margin: .15em 0; }
.sitefaq-bubble ul { list-style: disc; }
.sitefaq-bubble ol { list-style: decimal; }
.sitefaq-bubble ul li, .sitefaq-bubble ol li { list-style: inherit; }
.sitefaq-bubble blockquote { margin: .4em 0; padding-inline-start: 10px; border-inline-start: 3px solid var(--sitefaq-line); color: var(--sitefaq-muted); }
.sitefaq-bubble pre { white-space: pre-wrap; background: var(--sitefaq-soft); padding: 6px 8px; border-radius: 6px; font-size: calc(var(--sitefaq-fs) * 0.867); }
[dir="rtl"] .sitefaq-bubble ul, [dir="rtl"] .sitefaq-bubble ol { margin: .3em 1.2em .5em 0; }

.sitefaq-feedback { margin-top: 6px; font-size: calc(var(--sitefaq-fs) * 0.867); color: var(--sitefaq-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sitefaq-fb { background: transparent; border: 1px solid var(--sitefaq-line); border-radius: var(--sitefaq-r-ctrl); padding: 2px 10px; cursor: pointer; font-size: calc(var(--sitefaq-fs) * 0.867); color: var(--sitefaq-text); }
.sitefaq-fb:hover { border-color: var(--sitefaq-color); color: var(--sitefaq-color); }
.sitefaq-cf7 { color: var(--sitefaq-text); }
.sitefaq-contact-btn { margin-top: 8px; align-self: flex-start; background: var(--sitefaq-color); color: var(--sitefaq-on); border: 0; border-radius: var(--sitefaq-r-ctrl); padding: 7px 14px; cursor: pointer; font-size: calc(var(--sitefaq-fs) * 0.933); }
.sitefaq-contact { max-width: 100%; width: 100%; }
.sitefaq-contact .sitefaq-cf7 { background: var(--sitefaq-bg); border: 1px solid var(--sitefaq-line); border-radius: var(--sitefaq-r-bubble); padding: 12px; }
.sitefaq-cf7 label { display: block; font-size: calc(var(--sitefaq-fs) * 0.933); }
.sitefaq-cf7 input[type="text"], .sitefaq-cf7 input[type="email"], .sitefaq-cf7 input[type="tel"], .sitefaq-cf7 textarea, .sitefaq-cf7 select {
	width: 100%; max-width: 100%; border: 1px solid var(--sitefaq-input-line); border-radius: var(--sitefaq-r-ctrl); padding: 7px 9px; font: inherit; margin-top: 3px; background: var(--sitefaq-bg); color: var(--sitefaq-text);
}
.sitefaq-cf7 textarea { height: 90px; }
.sitefaq-cf7 p { margin: 0 0 8px; }
.sitefaq-cf7 input[type="submit"] { background: var(--sitefaq-color); color: var(--sitefaq-on); border: 0; border-radius: var(--sitefaq-r-ctrl); padding: 8px 16px; cursor: pointer; }

.sitefaq-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--sitefaq-line); background: var(--sitefaq-bg); align-items: flex-end; }
.sitefaq-form textarea {
	flex: 1; resize: none; border: 1px solid var(--sitefaq-input-line); border-radius: var(--sitefaq-r-ctrl); padding: 8px 10px; font: inherit; min-height: 40px; max-height: 120px; margin: 0;
	color: var(--sitefaq-text); background: var(--sitefaq-bg);
}
.sitefaq-send { background: var(--sitefaq-color); color: var(--sitefaq-on); border: 0; border-radius: var(--sitefaq-r-ctrl); padding: 0 16px; height: 40px; cursor: pointer; font-weight: 600; }
.sitefaq-send:disabled { opacity: .6; cursor: default; }
.sitefaq-note { margin: 0; padding: 0 12px 8px; font-size: calc(var(--sitefaq-fs) * 0.767); color: var(--sitefaq-muted); background: var(--sitefaq-bg); }

@media (max-width: 480px) {
	.sitefaq-float { bottom: 14px; right: 14px; }
	.sitefaq-pos-left { left: 14px; right: auto; }
	.sitefaq-float.sitefaq-open .sitefaq-panel { position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; bottom: 0; }
	.sitefaq-float.sitefaq-open .sitefaq-launcher { display: none; }
}

/* [site_faq_list] */
.sitefaq-faq-list { margin: 1em 0; }
.sitefaq-faq-cat { margin: 1.4em 0 .5em; }
.sitefaq-faq { border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 8px; background: #fff; }
.sitefaq-faq summary { cursor: pointer; padding: 12px 14px; font-weight: 600; }
.sitefaq-faq-a { padding: 0 14px 12px; }
