/**
 * Unlimited Flatsome — EP-04: UF Floating Help Desk (.ufl-fh)
 *
 * Floating Knowledgebase & Multi-Channel Help Desk
 * Styles: modern, dark, glass
 * Positions: inline-preview, floating-br, floating-bl
 * Mobile-safe: max-width: calc(100vw - 24px), zero horizontal overflow at 375px
 */

/* ==========================================================================
   0. Scoped Flatsome Neutralization
   ========================================================================== */
.ufl-fh,
.ufl-fh *,
.ufl-fh *::before,
.ufl-fh *::after {
	box-sizing: border-box;
}

.ufl-fh button {
	margin: 0;
	padding: 0;
	min-height: 0;
	min-width: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.ufl-fh button:hover,
.ufl-fh button:focus {
	box-shadow: none;
}

.ufl-fh input[type="search"] {
	margin: 0;
	min-height: 0;
	height: auto;
	box-shadow: none;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.ufl-fh input[type="search"]::-webkit-search-decoration,
.ufl-fh input[type="search"]::-webkit-search-cancel-button,
.ufl-fh input[type="search"]::-webkit-search-results-button,
.ufl-fh input[type="search"]::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.ufl-fh h3,
.ufl-fh p {
	margin: 0;
	padding: 0;
}

.ufl-fh a {
	text-decoration: none;
}

.ufl-fh__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   1. Design Tokens & Root Layout
   ========================================================================== */
.ufl-fh {
	--ufl-fh-accent: var(--ufl-primary);
	--ufl-fh-accent-deep: color-mix(in srgb, var(--ufl-fh-accent) 80%, #0f172a);
	--ufl-fh-accent-soft: color-mix(in srgb, var(--ufl-fh-accent) 11%, transparent);
	--ufl-fh-on-accent: var(--ufl-on-primary, #ffffff);

	--ufl-fh-bg: #ffffff;
	--ufl-fh-bg-soft: #f8fafc;
	--ufl-fh-bg-card: #ffffff;
	--ufl-fh-bg-card-hover: #f8fafc;
	--ufl-fh-ink: #0f172a;
	--ufl-fh-ink-body: #334155;
	--ufl-fh-muted: #64748b;
	--ufl-fh-border: rgba(15, 23, 42, 0.1);
	--ufl-fh-border-strong: rgba(15, 23, 42, 0.16);
	--ufl-fh-shadow: 0 14px 36px -10px rgba(15, 23, 42, 0.16), 0 4px 12px -4px rgba(15, 23, 42, 0.08);
	--ufl-fh-radius: 20px;
	--ufl-fh-online: #22c55e;

	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--ufl-fh-ink);
	max-width: 100%;
}

/* Inline Preview mode */
.ufl-fh--inline-preview {
	position: relative;
	display: block;
	width: 100%;
	max-width: 440px;
	margin-inline: auto;
}

.ufl-fh--inline-preview .ufl-fh__panel {
	position: relative;
	width: 100%;
	max-width: 100%;
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

/* Floating modes */
.ufl-fh--floating-br,
.ufl-fh--floating-bl {
	position: fixed;
	bottom: 20px;
	z-index: 95;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: calc(100vw - 24px);
	pointer-events: none;
}

.ufl-fh--floating-br {
	right: 20px;
	align-items: flex-end;
}

.ufl-fh--floating-bl {
	left: 20px;
	align-items: flex-start;
}

.ux-builder-iframe .ufl-fh--floating-br,
.ux-builder-iframe .ufl-fh--floating-bl {
	z-index: 99;
}

/* ==========================================================================
   2. Help Desk Panel Shell
   ========================================================================== */
.ufl-fh__panel {
	width: 388px;
	max-width: calc(100vw - 24px);
	border-radius: var(--ufl-fh-radius);
	background: var(--ufl-fh-bg);
	border: 1px solid var(--ufl-fh-border);
	box-shadow: var(--ufl-fh-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	color: var(--ufl-fh-ink);
	pointer-events: auto;
	transition:
		opacity var(--ufl-dur, 220ms) var(--ufl-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		transform var(--ufl-dur, 220ms) var(--ufl-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.ufl-fh--floating-br .ufl-fh__panel,
.ufl-fh--floating-bl .ufl-fh__panel {
	max-height: min(600px, calc(100vh - 108px));
	max-height: min(600px, calc(100dvh - 108px));
	transform-origin: bottom right;
	opacity: 0;
	transform: translateY(12px) scale(0.96);
}

.ufl-fh--floating-bl .ufl-fh__panel {
	transform-origin: bottom left;
}

.ufl-fh--floating-br.is-open .ufl-fh__panel,
.ufl-fh--floating-bl.is-open .ufl-fh__panel {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.ufl-fh__panel[hidden] {
	display: none;
}

/* ==========================================================================
   3. Header (Brand + Online Dot + Close Button)
   ========================================================================== */
.ufl-fh__header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 18px 16px;
	background: linear-gradient(135deg, var(--ufl-fh-accent) 0%, var(--ufl-fh-accent-deep) 100%);
	color: var(--ufl-fh-on-accent);
}

.ufl-fh__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1 1 auto;
}

.ufl-fh__avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.24);
	color: var(--ufl-fh-on-accent);
}

.ufl-fh__dot {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: 11px;
	height: 11px;
	border-radius: 9999px;
	background: var(--ufl-fh-online);
	border: 2px solid var(--ufl-fh-accent-deep);
	box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.28);
}

.ufl-fh__brand-text {
	min-width: 0;
	flex: 1 1 auto;
}

.ufl-fh__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ufl-fh-on-accent);
	overflow-wrap: anywhere;
}

.ufl-fh__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 3px;
	font-size: 0.78rem;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.88);
	max-width: 100%;
}

.ufl-fh__status-dot {
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 9999px;
	background: #4ade80;
	animation: ufl-fh-pulse 2.2s ease-in-out infinite;
}

@keyframes ufl-fh-pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.55;
		transform: scale(0.85);
	}
}

.ufl-fh__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.14);
	color: var(--ufl-fh-on-accent);
	transition: background-color 160ms ease, transform 160ms ease;
}

.ufl-fh__close:hover {
	background: rgba(255, 255, 255, 0.26);
	transform: scale(1.04);
}

.ufl-fh__close:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

/* ==========================================================================
   4. Segmented Tabs (Tra cứu nhanh / Liên hệ trực tiếp)
   ========================================================================== */
.ufl-fh__tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	padding: 10px 14px;
	background: var(--ufl-fh-bg-soft);
	border-bottom: 1px solid var(--ufl-fh-border);
}

.ufl-fh__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 9px 10px;
	border-radius: 11px;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--ufl-fh-muted);
	background: transparent;
	text-align: center;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition:
		background-color 180ms ease,
		color 180ms ease,
		box-shadow 180ms ease;
}

.ufl-fh__tab-icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.ufl-fh__tab:hover {
	color: var(--ufl-fh-ink);
	background: color-mix(in srgb, var(--ufl-fh-border) 55%, transparent);
}

.ufl-fh__tab.is-active {
	background: var(--ufl-fh-bg-card);
	color: var(--ufl-fh-accent);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--ufl-fh-border);
}

.ufl-fh__tab:focus-visible {
	outline: 2px solid var(--ufl-fh-accent);
	outline-offset: 2px;
}

/* ==========================================================================
   5. Body & Tab Panes
   ========================================================================== */
.ufl-fh__body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 14px 16px 18px;
}

.ufl-fh__pane {
	animation: ufl-fh-fade 180ms var(--ufl-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.ufl-fh__pane[hidden] {
	display: none;
}

@keyframes ufl-fh-fade {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   6. Tab 1: Realtime Search + Accordion KB/FAQ
   ========================================================================== */
.ufl-fh__search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.ufl-fh__search-icon {
	position: absolute;
	left: 12px;
	display: inline-flex;
	color: var(--ufl-fh-muted);
	pointer-events: none;
}

.ufl-fh__search-input {
	width: 100%;
	padding: 10px 36px 10px 36px;
	border-radius: 12px;
	border: 1px solid var(--ufl-fh-border-strong);
	background: var(--ufl-fh-bg-soft);
	color: var(--ufl-fh-ink);
	font-size: 0.875rem;
	line-height: 1.4;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ufl-fh__search-input::placeholder {
	color: var(--ufl-fh-muted);
	opacity: 0.85;
}

.ufl-fh__search-input:focus {
	outline: none;
	border-color: var(--ufl-fh-accent);
	background: var(--ufl-fh-bg-card);
	box-shadow: 0 0 0 3px var(--ufl-fh-accent-soft);
}

.ufl-fh__search-clear {
	position: absolute;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 9999px;
	color: var(--ufl-fh-muted);
	transition: background-color 140ms ease, color 140ms ease;
}

.ufl-fh__search-clear[hidden] {
	display: none;
}

.ufl-fh__search-clear:hover {
	background: var(--ufl-fh-border);
	color: var(--ufl-fh-ink);
}

.ufl-fh__search-clear svg {
	width: 14px;
	height: 14px;
}

.ufl-fh__faq-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	padding-inline: 2px;
}

.ufl-fh__faq-count {
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--ufl-fh-muted);
	letter-spacing: 0.01em;
}

.ufl-fh__faq-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ufl-fh__faq-item {
	border-radius: 13px;
	border: 1px solid var(--ufl-fh-border);
	background: var(--ufl-fh-bg-card);
	overflow: hidden;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.ufl-fh__faq-item[hidden] {
	display: none;
}

.ufl-fh__faq-item:hover {
	border-color: var(--ufl-fh-border-strong);
}

.ufl-fh__faq-item.is-expanded {
	border-color: color-mix(in srgb, var(--ufl-fh-accent) 44%, var(--ufl-fh-border));
	box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.16);
}

.ufl-fh__faq-trigger {
	width: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 13px;
	color: var(--ufl-fh-ink);
	transition: background-color 160ms ease;
}

.ufl-fh__faq-trigger:hover {
	background: var(--ufl-fh-bg-card-hover);
}

.ufl-fh__faq-trigger:focus-visible {
	outline: 2px solid var(--ufl-fh-accent);
	outline-offset: -2px;
}

.ufl-fh__faq-q-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1 1 auto;
}

.ufl-fh__faq-topic {
	display: inline-flex;
	align-self: flex-start;
	padding: 2px 8px;
	border-radius: 9999px;
	font-size: 0.69rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	background: var(--ufl-fh-accent-soft);
	color: var(--ufl-fh-accent);
}

.ufl-fh__faq-q {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ufl-fh-ink);
	overflow-wrap: anywhere;
}

.ufl-fh__faq-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	margin-top: 1px;
	border-radius: 8px;
	color: var(--ufl-fh-muted);
	transition: transform 200ms var(--ufl-ease, cubic-bezier(0.22, 1, 0.36, 1)), color 160ms ease, background-color 160ms ease;
}

.ufl-fh__faq-item.is-expanded .ufl-fh__faq-chevron {
	transform: rotate(180deg);
	color: var(--ufl-fh-accent);
	background: var(--ufl-fh-accent-soft);
}

.ufl-fh__faq-answer[hidden] {
	display: none;
}

.ufl-fh__faq-answer-inner {
	padding: 0 13px 13px;
	border-top: 1px solid color-mix(in srgb, var(--ufl-fh-border) 70%, transparent);
	padding-top: 10px;
}

.ufl-fh__faq-answer-inner p {
	font-size: 0.835rem;
	line-height: 1.55;
	color: var(--ufl-fh-ink-body);
	overflow-wrap: anywhere;
}

/* Empty Search State */
.ufl-fh__empty {
	text-align: center;
	padding: 22px 14px;
	border-radius: 14px;
	background: var(--ufl-fh-bg-soft);
	border: 1px dashed var(--ufl-fh-border-strong);
}

.ufl-fh__empty[hidden] {
	display: none;
}

.ufl-fh__empty-title {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ufl-fh-ink);
}

.ufl-fh__empty-desc {
	margin-top: 4px;
	font-size: 0.81rem;
	color: var(--ufl-fh-muted);
}

.ufl-fh__empty-btn {
	margin-top: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 9999px;
	background: var(--ufl-fh-accent);
	color: var(--ufl-fh-on-accent);
	font-size: 0.82rem;
	font-weight: 600;
	transition: transform 160ms ease, filter 160ms ease;
}

.ufl-fh__empty-btn:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.ufl-fh__empty-btn:focus-visible {
	outline: 2px solid var(--ufl-fh-accent);
	outline-offset: 2px;
}

/* ==========================================================================
   7. Tab 2: Multi-Channel Contact List
   ========================================================================== */
.ufl-fh__contact-intro {
	font-size: 0.82rem;
	color: var(--ufl-fh-muted);
	margin-bottom: 12px;
	line-height: 1.45;
}

.ufl-fh__channels {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.ufl-fh__channel {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-radius: 14px;
	border: 1px solid var(--ufl-fh-border);
	background: var(--ufl-fh-bg-card);
	color: var(--ufl-fh-ink);
	min-width: 0;
	transition:
		transform 180ms var(--ufl-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		border-color 180ms ease,
		background-color 180ms ease,
		box-shadow 180ms ease;
}

.ufl-fh__channel:hover {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--ufl-fh-accent) 45%, var(--ufl-fh-border));
	background: var(--ufl-fh-bg-card-hover);
	box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.22);
	color: var(--ufl-fh-ink);
}

.ufl-fh__channel:focus-visible {
	outline: 2px solid var(--ufl-fh-accent);
	outline-offset: 2px;
}

.ufl-fh__channel-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 12px;
	color: #ffffff;
}

/* Channel Brand Badges */
.ufl-fh__channel--zalo .ufl-fh__channel-icon {
	background: linear-gradient(135deg, #0068ff 0%, #0052cc 100%);
}

.ufl-fh__channel--messenger .ufl-fh__channel-icon {
	background: linear-gradient(135deg, #0099ff 0%, #7c3aed 100%);
}

.ufl-fh__channel--phone .ufl-fh__channel-icon {
	background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.ufl-fh__channel--email .ufl-fh__channel-icon {
	background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.ufl-fh__channel--telegram .ufl-fh__channel-icon {
	background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.ufl-fh__channel-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

.ufl-fh__channel-name {
	font-size: 0.89rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ufl-fh-ink);
	overflow-wrap: anywhere;
}

.ufl-fh__channel-sub {
	font-size: 0.77rem;
	line-height: 1.35;
	color: var(--ufl-fh-muted);
	overflow-wrap: anywhere;
}

.ufl-fh__channel-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	border-radius: 9px;
	color: var(--ufl-fh-muted);
	transition: transform 180ms ease, color 180ms ease, background-color 180ms ease;
}

.ufl-fh__channel:hover .ufl-fh__channel-arrow {
	color: var(--ufl-fh-accent);
	background: var(--ufl-fh-accent-soft);
	transform: translate(2px, -2px);
}

/* ==========================================================================
   8. Floating Trigger Button (Launcher)
   ========================================================================== */
.ufl-fh .ufl-fh__launcher {
	pointer-events: auto;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 18px 11px 14px;
	max-width: calc(100vw - 24px);
	border-radius: 9999px;
	background: linear-gradient(135deg, var(--ufl-fh-accent) 0%, var(--ufl-fh-accent-deep) 100%);
	color: var(--ufl-fh-on-accent);
	font-size: 0.9rem;
	font-weight: 700;
	box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--ufl-fh-accent) 55%, rgba(15, 23, 42, 0.35));
	transition:
		transform 200ms var(--ufl-ease, cubic-bezier(0.22, 1, 0.36, 1)),
		box-shadow 200ms ease,
		filter 180ms ease;
}

.ufl-fh .ufl-fh__launcher:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	box-shadow: 0 14px 30px -6px color-mix(in srgb, var(--ufl-fh-accent) 62%, rgba(15, 23, 42, 0.42));
}

.ufl-fh .ufl-fh__launcher:focus-visible {
	outline: 2px solid var(--ufl-fh-accent);
	outline-offset: 3px;
}

.ufl-fh__launcher-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
}

.ufl-fh__launcher-icon-open,
.ufl-fh__launcher-icon-close {
	position: absolute;
	inset: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity 180ms ease, transform 200ms ease;
}

.ufl-fh__launcher-icon-close {
	opacity: 0;
	transform: rotate(-45deg) scale(0.75);
}

.ufl-fh.is-open .ufl-fh__launcher-icon-open {
	opacity: 0;
	transform: rotate(45deg) scale(0.75);
}

.ufl-fh.is-open .ufl-fh__launcher-icon-close {
	opacity: 1;
	transform: rotate(0) scale(1);
}

.ufl-fh__launcher-label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}

.ufl-fh__launcher-dot {
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-radius: 9999px;
	background: #4ade80;
	box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.28);
}

/* ==========================================================================
   9. Style Variants: Dark & Glass
   ========================================================================== */
.ufl-fh--dark {
	--ufl-fh-bg: #0f172a;
	--ufl-fh-bg-soft: #162033;
	--ufl-fh-bg-card: #1e293b;
	--ufl-fh-bg-card-hover: #253349;
	--ufl-fh-ink: #f8fafc;
	--ufl-fh-ink-body: #cbd5e1;
	--ufl-fh-muted: #94a3b8;
	--ufl-fh-border: rgba(255, 255, 255, 0.1);
	--ufl-fh-border-strong: rgba(255, 255, 255, 0.18);
	--ufl-fh-accent-soft: color-mix(in srgb, var(--ufl-fh-accent) 22%, transparent);
	--ufl-fh-shadow: 0 20px 44px -12px rgba(2, 6, 23, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ufl-fh--dark .ufl-fh__tab.is-active {
	color: #f8fafc;
	background: color-mix(in srgb, var(--ufl-fh-accent) 26%, #1e293b);
}

.ufl-fh--dark .ufl-fh__faq-topic {
	color: #e2e8f0;
}

.ufl-fh--glass {
	--ufl-fh-bg: rgba(255, 255, 255, 0.78);
	--ufl-fh-bg-soft: rgba(248, 250, 252, 0.62);
	--ufl-fh-bg-card: rgba(255, 255, 255, 0.72);
	--ufl-fh-bg-card-hover: rgba(255, 255, 255, 0.92);
	--ufl-fh-border: rgba(255, 255, 255, 0.56);
	--ufl-fh-border-strong: rgba(15, 23, 42, 0.14);
	--ufl-fh-shadow: 0 18px 42px -12px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ufl-fh--glass .ufl-fh__panel {
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
}

.dark .ufl-fh--glass,
.ufl-theme--dark .ufl-fh--glass {
	--ufl-fh-bg: rgba(15, 23, 42, 0.72);
	--ufl-fh-bg-soft: rgba(30, 41, 59, 0.58);
	--ufl-fh-bg-card: rgba(30, 41, 59, 0.68);
	--ufl-fh-bg-card-hover: rgba(51, 65, 85, 0.74);
	--ufl-fh-ink: #f8fafc;
	--ufl-fh-ink-body: #cbd5e1;
	--ufl-fh-muted: #94a3b8;
	--ufl-fh-border: rgba(255, 255, 255, 0.18);
	--ufl-fh-border-strong: rgba(255, 255, 255, 0.26);
}

.dark .ufl-fh--glass .ufl-fh__tab.is-active,
.ufl-theme--dark .ufl-fh--glass .ufl-fh__tab.is-active {
	color: #f8fafc;
}

/* ==========================================================================
   10. Responsive Mobile (375px safe — 0 horizontal overflow)
   ========================================================================== */
@media (max-width: 480px) {
	.ufl-fh--floating-br {
		right: 12px;
		bottom: 12px;
	}

	.ufl-fh--floating-bl {
		left: 12px;
		bottom: 12px;
	}

	.ufl-fh--floating-br .ufl-fh__panel,
	.ufl-fh--floating-bl .ufl-fh__panel {
		width: calc(100vw - 24px);
		max-width: calc(100vw - 24px);
		max-height: min(540px, calc(100vh - 90px));
		max-height: min(540px, calc(100dvh - 90px));
	}

	.ufl-fh__header {
		padding: 15px 14px 14px;
	}

	.ufl-fh__tabs {
		padding: 8px 10px;
	}

	.ufl-fh__tab {
		font-size: 0.8rem;
		padding: 8px 6px;
		gap: 5px;
	}

	.ufl-fh__body {
		padding: 12px 12px 14px;
	}

	.ufl-fh__launcher {
		padding: 10px 15px 10px 12px;
		font-size: 0.85rem;
	}
}

/* ==========================================================================
   11. Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.ufl-fh__panel,
	.ufl-fh__pane,
	.ufl-fh__status-dot,
	.ufl-fh__faq-chevron,
	.ufl-fh__channel,
	.ufl-fh__launcher,
	.ufl-fh__launcher-icon-open,
	.ufl-fh__launcher-icon-close {
		animation: none !important;
		transition: none !important;
	}
}
