/**
 * masterE Tabs (mfk_tabs) — v0.9.0
 *
 * A floating, fully-designable tab bar with lazy-loaded panels. All colours /
 * spacing / sizing are driven by CSS custom properties set by the Elementor
 * controls; the fallbacks below ARE the shipped look (so the widget renders
 * correctly even on a shortcode/no-{{WRAPPER}} path). Everything uses LOGICAL
 * properties (inline/block) so Hebrew RTL mirrors with no extra rules.
 *
 * v0.20.0 (2026-07-23) — menu header/footer template slots: the bar became a
 * fixed block-direction stack [header][.mfk-tabs-nav][footer]; direction/gap/
 * justify moved from the bar to the nav (the vars still live on the bar, so
 * every existing control keeps working unchanged). New template-led width
 * mode (.mfk-tabs--tpl → bar fit-content + extra-width padding on the slot
 * wrappers) and a per-tab panel translate (--mfk-tabs-panel-x/-y).
 * v0.20.1 (2026-07-23) — editor-only .mfk-tabs-slot-edit quick-edit pill
 * (slot corners + panel notes); inert on the live site.
 * v0.24.2 (2026-07-24) — the widget wrapper is pinned to inline-size:100%
 * (a centering parent container must not shrink-wrap the widget to the
 * active panel's content width — the lazy-load "jumps left" bug).
 * v0.27.0 (2026-11-03) — orientation drives the WHOLE menu. Every layout
 * value that differs between a horizontal and a vertical menu is an internal
 * --_* variable, set in ONE place per orientation: the per-breakpoint wrapper
 * classes Elementor stamps from the orientation control (mfk-tabs-o-row,
 * mfk-tabs-o-tablet-column, …; live in the editor, never stale on the site).
 * The PHP mfk-tabs--horizontal/vertical class is only the fallback. Docking
 * sides are stamped for both orientations (--vside-* / --hside-*) and the
 * orientation picks one. Plus the horizontal bar design (row bar, slots at
 * the inline ends, overflow scroll + edge fade, divider), the sliding
 * Line/Pill indicator and the external content-area shell.
 */

/* The widget is a layout shell — it must always own its container's full
 * inline size. As a flex item in a centering Elementor container it would
 * otherwise be shrink-to-fit sized by the ACTIVE PANEL's content, so every
 * lazy load re-sizes + re-centers the whole widget (the "panel jumps left
 * mid-load" bug). Elementor's per-element Width control still overrides
 * (its post CSS is printed later, so it wins the cascade tie). */
.elementor-widget-mfk_tabs {
	inline-size: 100%;
}

.mfk-tabs {
	--mfk-tabs-offset-x: 0px;
	--mfk-tabs-offset-y: 0px;
	--mfk-tabs-z: 100;
	--mfk-tabs-bar-content-gap: 16px;
	--mfk-tabs-host-offset: 0px;
	--mfk-tabs-ind-color: #007c79;
	--mfk-tabs-ind-size: 3px;
	--mfk-tabs-skel-base: #e9edf0;
	--mfk-tabs-skel-high: #f6f8fa;
	--mfk-tabs-head-gap: 8px;
	--mfk-tabs-foot-gap: 8px;
	--mfk-tabs-tpl-extra: 0px;

	/* v0.27.9: alignment inputs start unset on every root, so a nested mfk_tabs
	 * in a slot never inherits its parent's (var() fallbacks = the shipped look). */
	--mfk-tabs-nav-flex: initial;
	--mfk-tabs-nav-order: initial;
	--mfk-tabs-spacer-grow: initial;
	--mfk-tabs-head-order: initial;
	--mfk-tabs-head-gs: initial;
	--mfk-tabs-head-ge: initial;
	--mfk-tabs-head-self: initial;
	--mfk-tabs-foot-order: initial;
	--mfk-tabs-foot-gs: initial;
	--mfk-tabs-foot-ge: initial;
	--mfk-tabs-foot-self: initial;
	--mfk-tabs-head-w: initial;
	--mfk-tabs-foot-w: initial;

	/* Template-led width inputs (re-declared per root so a nested mfk_tabs
	 * in a slot never inherits its parent's). */
	--_tpl-size: auto;
	--_tpl-nav: auto;

	/* ── VERTICAL orientation (the default / fallback) ── */
	--mfk-tabs-orient: v;
	--_nav-dir: column;
	--_outer: var(--_v-outer, row);
	--_bar-flow: column;
	--_bar-align: stretch;
	--_bar-size: var(--_tpl-size);
	--_bar-minh: auto;
	--_bar-ms: 0px;
	--_bar-me: 0px;
	--_f-size: var(--_tpl-size);
	--_f-bs: var(--mfk-tabs-offset-y);
	--_f-be: auto;
	--_f-is: var(--_v-is, var(--mfk-tabs-offset-x));
	--_f-ie: var(--_v-ie, auto);
	--_c-bs: 0px;
	--_c-be: 0px;
	--_c-is: var(--_v-cis, var(--mfk-tabs-host-offset));
	--_c-ie: var(--_v-cie, 0px);
	--_nav-size: var(--_tpl-nav);
	--_nav-flex: 0 1 auto;
	--_nav-order: 0;
	--_spacer: none;
	--_spacer-grow: 0;
	--_head-order: 0;
	--_foot-order: 0;
	--_head-self: var(--mfk-tabs-head-self, stretch);
	--_foot-self: var(--mfk-tabs-foot-self, stretch);
	--_slot-shrink: 0;
	--_nav-wrap: nowrap;
	--_nav-ovx: visible;
	--_focus-off: 2px;
	--_hg-b: var(--mfk-tabs-head-gap, 8px);
	--_hg-i: 0px;
	--_fg-b: var(--mfk-tabs-foot-gap, 8px);
	--_fg-i: 0px;
	--_ind-after: block;
	--_ind-el: none;
	--_div: none;
	--_tab-ws: normal;
	--_tab-fm: 0px;
	--_tab-lm: 0px;

	position: relative;
	min-inline-size: 0;
	box-sizing: border-box;
}

.mfk-tabs--tpl {
	--_tpl-size: fit-content;
	--_tpl-nav: 100%;
}

/* ── Docking sides (stamped for BOTH orientations; the orientation picks). */

.mfk-tabs--vside-inline-start {
	--_v-outer: row;
	--_v-is: var(--mfk-tabs-offset-x);
	--_v-ie: auto;
	--_v-cis: var(--mfk-tabs-host-offset);
	--_v-cie: 0px;
}

.mfk-tabs--vside-inline-end {
	--_v-outer: row-reverse;
	--_v-is: auto;
	--_v-ie: var(--mfk-tabs-offset-x);
	--_v-cis: 0px;
	--_v-cie: var(--mfk-tabs-host-offset);
}

.mfk-tabs--hside-top {
	--_h-outer: column;
	--_h-bs: var(--mfk-tabs-offset-y);
	--_h-be: auto;
	--_h-cbs: var(--mfk-tabs-host-offset);
	--_h-cbe: 0px;
}

.mfk-tabs--hside-bottom {
	--_h-outer: column-reverse;
	--_h-bs: auto;
	--_h-be: var(--mfk-tabs-offset-y);
	--_h-cbs: 0px;
	--_h-cbe: var(--mfk-tabs-host-offset);
}

/* ── HORIZONTAL orientation ──────────────────────────────────────────────────
 * One bar row: [header slot] [tabs] [footer slot] — header at the inline
 * start (right in RTL), footer at the inline end. Docked Top/Bottom, content
 * cleared from above (below). The --mfk-tabs-h* inputs come from the
 * "Horizontal bar" controls; a vertical breakpoint never reads them.
 *
 * v0.27.0 r2 — ONE var set drives the whole menu, the tab row included
 * (--_nav-dir; the bar and the tab row can no longer disagree). The
 * AUTHORITATIVE copy is written by the orientation control itself
 * (selectors_dictionary → Elementor's own per-device CSS, its real
 * breakpoints, live in the editor; MFK_Widget_Tabs::orientation_vars()).
 * These class-keyed blocks are the identical fallback (a post CSS file not
 * yet regenerated, Elementor's default breakpoints). GENERATED — keep in
 * sync with orientation_vars().
 * v0.27.2 — DESCENDANT selectors only. After an editor redraw a layer can
 * sit between the wrapper and the root, and the 0.27.0/0.27.1 "wrapper >
 * root" forms stopped matching (Hagai: "nothing responds after switching
 * the floating mode"). The control itself targets the root by id. */

.mfk-tabs--horizontal,
.mfk-tabs-o-row .mfk-tabs:not(.mfk-tabs .mfk-tabs) {
	--mfk-tabs-orient: h;
	--_nav-dir: row;
	--_outer: var(--_h-outer, column);
	--_bar-flow: row;
	--_bar-align: var(--mfk-tabs-h-valign, center);
	--_bar-size: var(--mfk-tabs-hbar-size, 100%);
	--_bar-minh: var(--mfk-tabs-h-minh, auto);
	--_bar-ms: var(--mfk-tabs-hbar-ms, 0px);
	--_bar-me: var(--mfk-tabs-hbar-me, auto);
	--_f-size: var(--mfk-tabs-hbar-fsize, auto);
	--_f-bs: var(--_h-bs, var(--mfk-tabs-offset-y));
	--_f-be: var(--_h-be, auto);
	--_f-is: var(--mfk-tabs-offset-x);
	--_f-ie: var(--mfk-tabs-offset-x);
	--_c-bs: var(--_h-cbs, var(--mfk-tabs-host-offset));
	--_c-be: var(--_h-cbe, 0px);
	--_c-is: 0px;
	--_c-ie: 0px;
	--_nav-size: auto;
	--_nav-flex: var(--mfk-tabs-nav-flex, 1 1 auto);
	--_nav-order: var(--mfk-tabs-nav-order, 3);
	--_spacer: block;
	--_spacer-grow: var(--mfk-tabs-spacer-grow, 0);
	--_head-order: var(--mfk-tabs-head-order, 1);
	--_foot-order: var(--mfk-tabs-foot-order, 7);
	--_head-self: auto;
	--_foot-self: auto;
	--_slot-shrink: 1000;
	--_nav-wrap: var(--mfk-tabs-h-wrap, nowrap);
	--_nav-ovx: var(--mfk-tabs-h-ovx, auto);
	--_focus-off: var(--mfk-tabs-h-focus-off, -2px);
	--_hg-b: 0px;
	--_hg-i: var(--mfk-tabs-head-gap, 8px);
	--_fg-b: 0px;
	--_fg-i: var(--mfk-tabs-foot-gap, 8px);
	--_ind-after: none;
	--_ind-el: block;
	--_div: var(--mfk-tabs-h-divider, none);
	--_tab-ws: nowrap;
	--_tab-fm: var(--mfk-tabs-tab-first-ms, 0px);
	--_tab-lm: var(--mfk-tabs-tab-last-me, 0px);
}

/* Desktop wrapper class says Vertical (beats the PHP fallback class). */
.mfk-tabs-o-column .mfk-tabs:not(.mfk-tabs .mfk-tabs) {
	--mfk-tabs-orient: v;
	--_nav-dir: column;
	--_outer: var(--_v-outer, row);
	--_bar-flow: column;
	--_bar-align: stretch;
	--_bar-size: var(--_tpl-size);
	--_bar-minh: auto;
	--_bar-ms: 0px;
	--_bar-me: 0px;
	--_f-size: var(--_tpl-size);
	--_f-bs: var(--mfk-tabs-offset-y);
	--_f-be: auto;
	--_f-is: var(--_v-is, var(--mfk-tabs-offset-x));
	--_f-ie: var(--_v-ie, auto);
	--_c-bs: 0px;
	--_c-be: 0px;
	--_c-is: var(--_v-cis, var(--mfk-tabs-host-offset));
	--_c-ie: var(--_v-cie, 0px);
	--_nav-size: var(--_tpl-nav);
	--_nav-flex: 0 1 auto;
	--_nav-order: 0;
	--_spacer: none;
	--_spacer-grow: 0;
	--_head-order: 0;
	--_foot-order: 0;
	--_head-self: var(--mfk-tabs-head-self, stretch);
	--_foot-self: var(--mfk-tabs-foot-self, stretch);
	--_slot-shrink: 0;
	--_nav-wrap: nowrap;
	--_nav-ovx: visible;
	--_focus-off: 2px;
	--_hg-b: var(--mfk-tabs-head-gap, 8px);
	--_hg-i: 0px;
	--_fg-b: var(--mfk-tabs-foot-gap, 8px);
	--_fg-i: 0px;
	--_ind-after: block;
	--_ind-el: none;
	--_div: none;
	--_tab-ws: normal;
	--_tab-fm: 0px;
	--_tab-lm: 0px;
}

/* Tablet / mobile (Elementor's default breakpoints; an empty tablet/mobile
 * value stamps no class, so the desktop value carries down). */
@media (max-width: 1024px) {
	.mfk-tabs-o-tablet-row .mfk-tabs:not(.mfk-tabs .mfk-tabs) {
		--mfk-tabs-orient: h;
		--_nav-dir: row;
		--_outer: var(--_h-outer, column);
		--_bar-flow: row;
		--_bar-align: var(--mfk-tabs-h-valign, center);
		--_bar-size: var(--mfk-tabs-hbar-size, 100%);
		--_bar-minh: var(--mfk-tabs-h-minh, auto);
		--_bar-ms: var(--mfk-tabs-hbar-ms, 0px);
		--_bar-me: var(--mfk-tabs-hbar-me, auto);
		--_f-size: var(--mfk-tabs-hbar-fsize, auto);
		--_f-bs: var(--_h-bs, var(--mfk-tabs-offset-y));
		--_f-be: var(--_h-be, auto);
		--_f-is: var(--mfk-tabs-offset-x);
		--_f-ie: var(--mfk-tabs-offset-x);
		--_c-bs: var(--_h-cbs, var(--mfk-tabs-host-offset));
		--_c-be: var(--_h-cbe, 0px);
		--_c-is: 0px;
		--_c-ie: 0px;
		--_nav-size: auto;
		--_nav-flex: var(--mfk-tabs-nav-flex, 1 1 auto);
		--_nav-order: var(--mfk-tabs-nav-order, 3);
		--_spacer: block;
		--_spacer-grow: var(--mfk-tabs-spacer-grow, 0);
		--_head-order: var(--mfk-tabs-head-order, 1);
		--_foot-order: var(--mfk-tabs-foot-order, 7);
		--_head-self: auto;
		--_foot-self: auto;
		--_slot-shrink: 1000;
		--_nav-wrap: var(--mfk-tabs-h-wrap, nowrap);
		--_nav-ovx: var(--mfk-tabs-h-ovx, auto);
		--_focus-off: var(--mfk-tabs-h-focus-off, -2px);
		--_hg-b: 0px;
		--_hg-i: var(--mfk-tabs-head-gap, 8px);
		--_fg-b: 0px;
		--_fg-i: var(--mfk-tabs-foot-gap, 8px);
		--_ind-after: none;
		--_ind-el: block;
		--_div: var(--mfk-tabs-h-divider, none);
		--_tab-ws: nowrap;
		--_tab-fm: var(--mfk-tabs-tab-first-ms, 0px);
		--_tab-lm: var(--mfk-tabs-tab-last-me, 0px);
	}

	.mfk-tabs-o-tablet-column .mfk-tabs:not(.mfk-tabs .mfk-tabs) {
		--mfk-tabs-orient: v;
		--_nav-dir: column;
		--_outer: var(--_v-outer, row);
		--_bar-flow: column;
		--_bar-align: stretch;
		--_bar-size: var(--_tpl-size);
		--_bar-minh: auto;
		--_bar-ms: 0px;
		--_bar-me: 0px;
		--_f-size: var(--_tpl-size);
		--_f-bs: var(--mfk-tabs-offset-y);
		--_f-be: auto;
		--_f-is: var(--_v-is, var(--mfk-tabs-offset-x));
		--_f-ie: var(--_v-ie, auto);
		--_c-bs: 0px;
		--_c-be: 0px;
		--_c-is: var(--_v-cis, var(--mfk-tabs-host-offset));
		--_c-ie: var(--_v-cie, 0px);
		--_nav-size: var(--_tpl-nav);
		--_nav-flex: 0 1 auto;
		--_nav-order: 0;
		--_spacer: none;
		--_spacer-grow: 0;
		--_head-order: 0;
		--_foot-order: 0;
		--_head-self: var(--mfk-tabs-head-self, stretch);
		--_foot-self: var(--mfk-tabs-foot-self, stretch);
		--_slot-shrink: 0;
		--_nav-wrap: nowrap;
		--_nav-ovx: visible;
		--_focus-off: 2px;
		--_hg-b: var(--mfk-tabs-head-gap, 8px);
		--_hg-i: 0px;
		--_fg-b: var(--mfk-tabs-foot-gap, 8px);
		--_fg-i: 0px;
		--_ind-after: block;
		--_ind-el: none;
		--_div: none;
		--_tab-ws: normal;
		--_tab-fm: 0px;
		--_tab-lm: 0px;
	}
}

@media (max-width: 767px) {
	.mfk-tabs-o-mobile-row .mfk-tabs:not(.mfk-tabs .mfk-tabs) {
		--mfk-tabs-orient: h;
		--_nav-dir: row;
		--_outer: var(--_h-outer, column);
		--_bar-flow: row;
		--_bar-align: var(--mfk-tabs-h-valign, center);
		--_bar-size: var(--mfk-tabs-hbar-size, 100%);
		--_bar-minh: var(--mfk-tabs-h-minh, auto);
		--_bar-ms: var(--mfk-tabs-hbar-ms, 0px);
		--_bar-me: var(--mfk-tabs-hbar-me, auto);
		--_f-size: var(--mfk-tabs-hbar-fsize, auto);
		--_f-bs: var(--_h-bs, var(--mfk-tabs-offset-y));
		--_f-be: var(--_h-be, auto);
		--_f-is: var(--mfk-tabs-offset-x);
		--_f-ie: var(--mfk-tabs-offset-x);
		--_c-bs: var(--_h-cbs, var(--mfk-tabs-host-offset));
		--_c-be: var(--_h-cbe, 0px);
		--_c-is: 0px;
		--_c-ie: 0px;
		--_nav-size: auto;
		--_nav-flex: var(--mfk-tabs-nav-flex, 1 1 auto);
		--_nav-order: var(--mfk-tabs-nav-order, 3);
		--_spacer: block;
		--_spacer-grow: var(--mfk-tabs-spacer-grow, 0);
		--_head-order: var(--mfk-tabs-head-order, 1);
		--_foot-order: var(--mfk-tabs-foot-order, 7);
		--_head-self: auto;
		--_foot-self: auto;
		--_slot-shrink: 1000;
		--_nav-wrap: var(--mfk-tabs-h-wrap, nowrap);
		--_nav-ovx: var(--mfk-tabs-h-ovx, auto);
		--_focus-off: var(--mfk-tabs-h-focus-off, -2px);
		--_hg-b: 0px;
		--_hg-i: var(--mfk-tabs-head-gap, 8px);
		--_fg-b: 0px;
		--_fg-i: var(--mfk-tabs-foot-gap, 8px);
		--_ind-after: none;
		--_ind-el: block;
		--_div: var(--mfk-tabs-h-divider, none);
		--_tab-ws: nowrap;
		--_tab-fm: var(--mfk-tabs-tab-first-ms, 0px);
		--_tab-lm: var(--mfk-tabs-tab-last-me, 0px);
	}

	.mfk-tabs-o-mobile-column .mfk-tabs:not(.mfk-tabs .mfk-tabs) {
		--mfk-tabs-orient: v;
		--_nav-dir: column;
		--_outer: var(--_v-outer, row);
		--_bar-flow: column;
		--_bar-align: stretch;
		--_bar-size: var(--_tpl-size);
		--_bar-minh: auto;
		--_bar-ms: 0px;
		--_bar-me: 0px;
		--_f-size: var(--_tpl-size);
		--_f-bs: var(--mfk-tabs-offset-y);
		--_f-be: auto;
		--_f-is: var(--_v-is, var(--mfk-tabs-offset-x));
		--_f-ie: var(--_v-ie, auto);
		--_c-bs: 0px;
		--_c-be: 0px;
		--_c-is: var(--_v-cis, var(--mfk-tabs-host-offset));
		--_c-ie: var(--_v-cie, 0px);
		--_nav-size: var(--_tpl-nav);
		--_nav-flex: 0 1 auto;
		--_nav-order: 0;
		--_spacer: none;
		--_spacer-grow: 0;
		--_head-order: 0;
		--_foot-order: 0;
		--_head-self: var(--mfk-tabs-head-self, stretch);
		--_foot-self: var(--mfk-tabs-foot-self, stretch);
		--_slot-shrink: 0;
		--_nav-wrap: nowrap;
		--_nav-ovx: visible;
		--_focus-off: 2px;
		--_hg-b: var(--mfk-tabs-head-gap, 8px);
		--_hg-i: 0px;
		--_fg-b: var(--mfk-tabs-foot-gap, 8px);
		--_fg-i: 0px;
		--_ind-after: block;
		--_ind-el: none;
		--_div: none;
		--_tab-ws: normal;
		--_tab-fm: 0px;
		--_tab-lm: 0px;
	}
}

.mfk-tabs *,
.mfk-tabs *::before,
.mfk-tabs *::after {
	box-sizing: border-box;
}

/* ── Tab bar ─────────────────────────────────────────────────────────────── */

/* The bar holds [header slot?] [.mfk-tabs-nav (the tablist)] [footer slot?]
 * — a block-direction stack in a vertical menu, one row in a horizontal one
 * (v0.27.0). The gap/justify vars stay DECLARED here (controls write them
 * here; custom properties inherit into the nav) so every pre-v0.20.0
 * control selector keeps working unchanged. */
.mfk-tabs-bar {
	--mfk-tabs-gap: 6px;
	--mfk-tabs-bar-justify: flex-start;

	display: flex;
	flex-direction: var(--_bar-flow, column);
	align-items: var(--_bar-align, stretch);
	inline-size: var(--_bar-size, auto);
	min-block-size: var(--_bar-minh, auto);
	max-inline-size: var(--mfk-tabs-bar-max, none);
	margin: 0;
	/* Owned by the Horizontal "Bar position" control (fit-content bars).
	 * !important: the retired pre-0.27.0 "Menu position" control may still
	 * write margins into a not-yet-regenerated post CSS file. */
	margin-inline-start: var(--_bar-ms, 0px) !important;
	margin-inline-end: var(--_bar-me, 0px) !important;
	z-index: var(--mfk-tabs-z);
}

/* v0.27.9 — three alignment zones in a horizontal bar. Header, tabs and footer
 * each pick a zone through `order`: Start (0-1), Center (3), End (5-7). These
 * two empty flex items share the free room between the zones equally, so a
 * Center item centers in the remaining room (exactly on the bar's center only
 * when the items on both sides are equally wide). Off in a vertical menu. Grow stays 0
 * until "Align tabs" writes it: a post CSS file not yet regenerated keeps the
 * pre-0.27.9 layout, with the tab row filling the bar. */
.mfk-tabs-bar::before,
.mfk-tabs-bar::after {
	content: "";
	display: var(--_spacer, none);
	flex: var(--_spacer-grow, 0) 1 0;
	min-inline-size: 0;
}

.mfk-tabs-bar::before {
	order: 2;
}

.mfk-tabs-bar::after {
	order: 4;
}

/* The tablist itself — the tab buttons' layout (direction / gap / justify)
 * lives here. In a horizontal bar it takes the room between the slots and
 * scrolls sideways (or wraps) when the tabs don't fit. */
.mfk-tabs-nav {
	position: relative; /* the sliding indicator's containing block */
	display: flex;
	order: var(--_nav-order, 0);
	flex-direction: var(--_nav-dir, column);
	flex: var(--_nav-flex, 0 1 auto);
	flex-wrap: var(--_nav-wrap, nowrap);
	gap: var(--mfk-tabs-gap);
	justify-content: var(--mfk-tabs-bar-justify);
	align-items: stretch;
	inline-size: var(--_nav-size, auto);
	min-inline-size: 0;
	overflow-x: var(--_nav-ovx, visible);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.mfk-tabs-nav::-webkit-scrollbar {
	display: none;
}

/* Edge fade where more tabs are scrolled out of view (JS sets the physical
 * side(s) in data-mfk-fade; 0px fade = no visible fade). */
.mfk-tabs-nav[data-mfk-fade="l"] {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--mfk-tabs-fade, 24px));
	mask-image: linear-gradient(to right, transparent, #000 var(--mfk-tabs-fade, 24px));
}

.mfk-tabs-nav[data-mfk-fade="r"] {
	-webkit-mask-image: linear-gradient(to left, transparent, #000 var(--mfk-tabs-fade, 24px));
	mask-image: linear-gradient(to left, transparent, #000 var(--mfk-tabs-fade, 24px));
}

.mfk-tabs-nav[data-mfk-fade="lr"] {
	-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--mfk-tabs-fade, 24px), #000 calc(100% - var(--mfk-tabs-fade, 24px)), transparent);
	mask-image: linear-gradient(to right, transparent, #000 var(--mfk-tabs-fade, 24px), #000 calc(100% - var(--mfk-tabs-fade, 24px)), transparent);
}

/* ── Menu header/footer slots (v0.20.0) — chromeless shims inside the bar's
 *    padding box; each owns its gap to the tabs (block gap in a vertical
 *    menu, inline gap in a horizontal one), and the transparent inline
 *    padding is the "Extra menu width" lever (it widens the bar's
 *    fit-content measurement symmetrically, RTL-safe by construction). */

/* v0.27.9: Header/Footer alignment (zone = order, vertical = align-self). The
 * inline gap sits on the side facing the tabs; the -gs/-ge switches (0 or 1)
 * move it to the other side when an alignment moves the slot, so a slot at a
 * bar edge stays flush with that edge.
 * v0.27.10: Header/Footer width (--mfk-tabs-head-w / -foot-w). In a horizontal
 * bar the slots also give up room before the tabs do when the row doesn't fit
 * (--_slot-shrink), so a wide template can't squeeze the tabs out of view. */
.mfk-tabs-bar-header {
	position: relative; /* anchors the editor-only quick-edit pill */
	order: var(--_head-order, 0);
	align-self: var(--_head-self, auto);
	flex: 0 var(--_slot-shrink, 0) auto;
	box-sizing: content-box; /* the set width is the template's; the gap and Extra menu width add to it */
	inline-size: var(--mfk-tabs-head-w, auto);
	min-inline-size: 0;
	margin-block-end: var(--_hg-b, 8px);
	padding-inline-start: calc(var(--mfk-tabs-tpl-extra, 0px) / 2 + var(--_hg-i, 0px) * var(--mfk-tabs-head-gs, 0));
	padding-inline-end: calc(var(--mfk-tabs-tpl-extra, 0px) / 2 + var(--_hg-i, 0px) * var(--mfk-tabs-head-ge, 1));
}

.mfk-tabs-bar-footer {
	position: relative;
	order: var(--_foot-order, 0);
	align-self: var(--_foot-self, auto);
	flex: 0 var(--_slot-shrink, 0) auto;
	box-sizing: content-box; /* the set width is the template's; the gap and Extra menu width add to it */
	inline-size: var(--mfk-tabs-foot-w, auto);
	min-inline-size: 0;
	margin-block-start: var(--_fg-b, 8px);
	padding-inline-start: calc(var(--mfk-tabs-tpl-extra, 0px) / 2 + var(--_fg-i, 0px) * var(--mfk-tabs-foot-gs, 1));
	padding-inline-end: calc(var(--mfk-tabs-tpl-extra, 0px) / 2 + var(--_fg-i, 0px) * var(--mfk-tabs-foot-ge, 0));
}

/* Editor-only sample slot (v0.27.0, "Editor: show sample header & footer"). */
.mfk-tabs-slot-sample {
	padding: 10px 14px;
	border: 1px dashed #9fb8b7;
	border-radius: 8px;
	background: #f2f8f8;
	color: #4e6463;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
}

/* Editor-only quick-edit pill (v0.20.1) — opens the selected template's own
 * Elementor editor in a new browser tab. PHP emits it only inside the editor
 * preview, so these rules are inert on the live site. Pinned to the slot's
 * top corner; inline inside a panel's editor note. */
.mfk-tabs-slot-edit {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #007c79;
	color: #fff;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 12px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.mfk-tabs-slot-edit:hover,
.mfk-tabs-slot-edit:focus-visible {
	opacity: 0.9;
	color: #fff;
}

.mfk-tabs-bar-header > .mfk-tabs-slot-edit,
.mfk-tabs-bar-footer > .mfk-tabs-slot-edit {
	position: absolute;
	inset-block-start: 6px;
	inset-inline-end: 6px;
	z-index: 10;
}

.mfk-tabs-editor-note .mfk-tabs-slot-edit {
	margin-inline-start: 8px;
	vertical-align: middle;
}

/* ── Tab button — theme-neutralised so the controls actually drive the look
 *    (the v3.0.1 "invisible button" lesson: bare <button> inherits the theme). */

.mfk-tabs-tab {
	position: relative; /* divider + indicator anchor; above the pill */
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: var(--mfk-tabs-tab-grow, 0) 1 var(--mfk-tabs-tab-basis, auto); /* "Fill" = 1 1 0% (equal widths) */
	gap: var(--mfk-tabs-tab-gap, 8px);
	margin: 0;
	inline-size: auto;
	max-inline-size: 100%;
	border: 0 solid transparent;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: var(--_tab-ws, normal); /* nowrap in a horizontal bar: scroll, don't squash */
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Center/End alignment = auto margins on the first/last tab (they collapse
 * to 0 when the row overflows, so every tab stays scrollable). Applied only
 * in a row (--_tab-fm / --_tab-lm are 0 in the vertical var set, where an
 * inline auto margin would un-stretch the tab). */
.mfk-tabs-nav > .mfk-tabs-tab:first-of-type {
	margin-inline-start: var(--_tab-fm, 0px);
}

.mfk-tabs-nav > .mfk-tabs-tab:last-of-type {
	margin-inline-end: var(--_tab-lm, 0px);
}

/* Theme-proofing (v0.27.0): Hello / kit button:hover|:focus rules outrank
 * the bare .mfk-tabs-tab reset and painted their own background on a tab
 * the user left transparent (e.g. a Line-underline design after a click
 * focuses the tab). The widget controls still win: they are printed with
 * the higher-specificity {{WRAPPER}} selectors. */
.mfk-tabs .mfk-tabs-tab:hover,
.mfk-tabs .mfk-tabs-tab:focus {
	background-color: transparent;
	text-decoration: none;
}

.mfk-tabs-tab:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: var(--_focus-off, 2px);
}

.mfk-tabs-tab-label {
	min-inline-size: 0;
}

/* Divider between tabs (horizontal bar, opt-in) — centred in the gap. */
.mfk-tabs-tab + .mfk-tabs-tab::before {
	content: "";
	display: var(--_div, none);
	position: absolute;
	inset-inline-start: calc(var(--mfk-tabs-gap, 6px) / -2 - var(--mfk-tabs-div-w, 1px) / 2);
	inset-block: calc((100% - var(--mfk-tabs-div-h, 50%)) / 2);
	inline-size: var(--mfk-tabs-div-w, 1px);
	background: var(--mfk-tabs-div-color, #d7dce0);
	pointer-events: none;
}

/* ── Tab icon (font <i> or inline <svg>; the class lands on the element) ──── */

.mfk-tabs-tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	inline-size: var(--mfk-tabs-icon-size, 18px);
	block-size: var(--mfk-tabs-icon-size, 18px);
	font-size: var(--mfk-tabs-icon-size, 18px);
	line-height: 1;
}

.mfk-tabs-tab-icon svg {
	inline-size: 100%;
	block-size: 100%;
	display: block;
	fill: currentColor;
}

/* ── Content host + panels ──────────────────────────────────────────────── */

.mfk-tabs-host {
	position: relative;
	min-inline-size: 0;
}

/* External content area (v0.27.0): output hidden until JS has moved it into
 * the page element — never flashes inside the header. */
.mfk-tabs-host[hidden] {
	display: none !important;
}

.mfk-tabs-panel {
	min-inline-size: 0;
	/* Per-tab template offset (v0.20.0) — the vars are written per panel via
	 * its elementor-repeater-item class; a pure visual shift, so layout,
	 * floating-bar clearance and lazy-load are untouched.
	 * v0.27.8: relative insets instead of `translate`. Any translate value —
	 * even 0px 0px — makes the panel the containing block for position:fixed
	 * descendants, which pinned Elementor Pro's Sticky elements (fixed while
	 * scrolling) to the panel instead of the screen inside tab content.
	 * Physical left/top on purpose: X moves the same way the slider does in
	 * LTR and RTL, as the translate did. */
	position: relative;
	left: var(--mfk-tabs-panel-x, 0px);
	top: var(--mfk-tabs-panel-y, 0px);
}

/* Explicit hide — at equal specificity an author display rule can defeat the
 * UA [hidden] rule (the login-widget v0.2.2 bug). Be explicit. */
.mfk-tabs-panel[hidden] {
	display: none;
}

/* The shell JS builds around a moved content host (v0.27.0). It re-creates
 * the selector chain the widget's style controls target ({{WRAPPER}}
 * .mfk-tabs …), so panel/skeleton/offset controls keep working outside the
 * widget. The middle layer carries the widget's element class for that
 * purpose only — every box property Elementor's Advanced tab might write on
 * the widget wrapper is neutralised here. */
.mfk-tabs-ext {
	inline-size: 100%;
	min-inline-size: 0;
}

.mfk-tabs-ext > .mfk-tabs-ext-scope.elementor-element {
	display: block !important;
	position: static !important;
	inset: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	transform: none !important;
	inline-size: auto !important;
	max-inline-size: none !important;
	min-block-size: 0 !important;
	opacity: 1 !important;
}

.mfk-tabs-ext-root {
	display: block;
	min-inline-size: 0;
}

/* ── Float mode: INLINE / STICKY (in the page flow) ─────────────────────── */

.mfk-tabs--float-inline,
.mfk-tabs--float-sticky {
	display: flex;
	flex-direction: var(--_outer, row);
	gap: var(--mfk-tabs-bar-content-gap);
}

.mfk-tabs--float-inline > .mfk-tabs-host,
.mfk-tabs--float-sticky > .mfk-tabs-host {
	flex: 1 1 auto;
	min-inline-size: 0;
}

/* ── Float mode: STICKY (pins on scroll, stays in flow) ─────────────────── */

.mfk-tabs--float-sticky > .mfk-tabs-bar {
	position: sticky;
	align-self: flex-start;
	inset-block-start: var(--_f-bs, 0px);
	inset-block-end: var(--_f-be, auto);
}

/* ── Float mode: FIXED (floats over the page) ───────────────────────────── */

.mfk-tabs--float-fixed {
	display: block;
	/* Content clearance (measured by JS into --mfk-tabs-host-offset, or the
	 * Custom control) on the docked side only. On the root since v0.27.0 —
	 * the content panel's own padding control stays untouched. */
	padding-block-start: var(--_c-bs, 0px);
	padding-block-end: var(--_c-be, 0px);
	padding-inline-start: var(--_c-is, 0px);
	padding-inline-end: var(--_c-ie, 0px);
}

.mfk-tabs--float-fixed > .mfk-tabs-bar {
	position: fixed;
	z-index: var(--mfk-tabs-z, 100);
	inset-block-start: var(--_f-bs, 0px);
	inset-block-end: var(--_f-be, auto);
	inset-inline-start: var(--_f-is, 0px);
	inset-inline-end: var(--_f-ie, auto);
	inline-size: var(--_f-size, auto);
}

/* ── Active-tab indicator (optional) ────────────────────────────────────── */

/* Vertical "Line": a side bar on the active tab (the pre-0.27.0 look). */
.mfk-tabs--indicator .mfk-tabs-tab[aria-selected="true"]::after {
	content: "";
	display: var(--_ind-after, block);
	position: absolute;
	inset-block: 12%;
	inset-inline-start: calc(-1 * var(--mfk-tabs-ind-size));
	inline-size: var(--mfk-tabs-ind-size);
	background: var(--mfk-tabs-ind-color);
	border-radius: 999px;
}

/* Horizontal "Line" + every "Pill": ONE element that slides between tabs.
 * JS writes the active tab's physical box (--_ix/--_iy/--_iw/--_ih). */
.mfk-tabs-ind {
	display: var(--_ind-el, none);
	position: absolute;
	z-index: 0;
	left: calc(var(--_ix, 0px) + var(--_iw, 0px) * (1 - var(--mfk-tabs-ind-pct, 0.76)) / 2);
	top: calc(var(--_iy, 0px) + var(--_ih, 0px) - var(--mfk-tabs-ind-size, 3px) - var(--mfk-tabs-ind-offset, 0px));
	width: calc(var(--_iw, 0px) * var(--mfk-tabs-ind-pct, 0.76));
	height: var(--mfk-tabs-ind-size, 3px);
	background: var(--mfk-tabs-ind-color);
	border-radius: 999px;
	pointer-events: none;
	transition-property: left, top, width, height;
	transition-duration: var(--mfk-tabs-ind-dur, 250ms);
	transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Not positioned yet (first paint / no active tab) or the first placement. */
.mfk-tabs-ind:not([data-ready]) {
	opacity: 0;
}

.mfk-tabs-ind.is-instant {
	transition: none;
}

.mfk-tabs--ind-pill .mfk-tabs-ind {
	display: block;
	left: var(--_ix, 0px);
	top: var(--_iy, 0px);
	width: var(--_iw, 0px);
	height: var(--_ih, 0px);
	border-radius: var(--mfk-tabs-ind-radius, 10px);
}

.mfk-tabs--ind-pill .mfk-tabs-tab[aria-selected="true"]::after {
	display: none;
}

/* The pill IS the active background. */
.mfk-tabs--ind-pill .mfk-tabs-tab[aria-selected="true"] {
	background: transparent !important;
}

/* ── Loading / error states ─────────────────────────────────────────────── */

.mfk-tabs-skeleton {
	display: grid;
	gap: 12px;
	padding: 8px 0;
}

.mfk-tabs-skeleton span {
	display: block;
	block-size: 14px;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--mfk-tabs-skel-base, #e9edf0) 25%, var(--mfk-tabs-skel-high, #f6f8fa) 37%, var(--mfk-tabs-skel-base, #e9edf0) 63%);
	background-size: 400% 100%;
	animation: mfk-tabs-shimmer 1.4s ease infinite;
}

.mfk-tabs-skeleton span:nth-child(1) { inline-size: 55%; }
.mfk-tabs-skeleton span:nth-child(2) { inline-size: 92%; }
.mfk-tabs-skeleton span:nth-child(3) { inline-size: 78%; }
.mfk-tabs-skeleton span:nth-child(4) { inline-size: 85%; }

/* v0.19.0 — richer shapes + presence while a template panel fetches (the
   round-5 polish: the fetch moment should read like the MVS dashboard
   skeletons, not four thin lines). Placed AFTER the nth-child widths so the
   shape classes win. */
.mfk-tabs-skeleton .is-title { block-size: 22px; inline-size: 40%; }
.mfk-tabs-skeleton .is-card { block-size: 64px; inline-size: 100%; }
.mfk-tabs-panel--loading { min-block-size: 16em; }

/* ── Smart skeleton (v0.29.0) ───────────────────────────────────────────────
 * .mfk-tabs-skel is the skeleton JS mounts in Smart mode. Three kinds:
 *   --learned   shapes measured on the tab's real content last time
 *               (absolutely positioned; x/width in %, y/height in px)
 *   --bp        the server-built blueprint of the tab template's layout
 *   --simple    the fixed bars above, wrapped
 * Every shape (.mfk-tabs-skel-s) paints the same two colours as the bars
 * (--mfk-tabs-skel-base / -high: the widget's Skeleton colour controls) and
 * rides one shared wave: --_sx (set by JS) is the shape's distance from the
 * skeleton's left edge, so the highlight crosses the whole tab as one sweep,
 * right→left like every masterE skeleton. */

.mfk-tabs-skel {
	position: relative;
	min-inline-size: 0;
	pointer-events: none;
	user-select: none;
}

.mfk-tabs-panel--skel-own.mfk-tabs-panel--loading {
	min-block-size: 0;
}

.mfk-tabs-skel-s {
	display: block;
	box-sizing: border-box;
	border-radius: 6px;
	background-color: var(--mfk-tabs-skel-base, #e9edf0);
	background-image: linear-gradient(90deg, var(--mfk-tabs-skel-base, #e9edf0) 0, var(--mfk-tabs-skel-base, #e9edf0) 35%, var(--mfk-tabs-skel-high, #f6f8fa) 50%, var(--mfk-tabs-skel-base, #e9edf0) 65%, var(--mfk-tabs-skel-base, #e9edf0) 100%);
	background-size: 1200px 100%;
	background-repeat: repeat-x;
	animation: mfk-tabs-skel-wave 1.6s linear infinite;
}

@keyframes mfk-tabs-skel-wave {
	0%   { background-position: calc(0px - var(--_sx, 0px)) 0; }
	100% { background-position: calc(-1200px - var(--_sx, 0px)) 0; }
}

.mfk-tabs-skel--learned > .mfk-tabs-skel-s {
	position: absolute;
}

/* A card / panel surface: outline only, so the bars inside stay readable. */
.mfk-tabs-skel-s.is-frame {
	background: none;
	animation: none;
	box-shadow: inset 0 0 0 1px var(--mfk-tabs-skel-base, #e9edf0);
}

.mfk-tabs-skel-s.is-line {
	background-image: none;
	animation: none;
	border-radius: 0;
}

/* Blueprint: nested boxes mirroring the template's containers. */
.mfk-tabs-skel--bp {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-block: 8px;
}

.mfk-skel-box {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	gap: 16px;
	min-inline-size: 0;
}

.mfk-skel-box--row {
	flex-direction: row;
	align-items: flex-start;
}

/* --_w = the child's share of the row (its saved width in %, unitless):
 * a grow ratio, so the gaps can never push a child onto a second line. */
.mfk-skel-box--row > .mfk-skel-box,
.mfk-skel-box--row > .mfk-skel-w {
	flex: var(--_w, 1) 1 0%;
}

.mfk-skel-box--grid {
	display: grid;
	grid-template-columns: repeat(var(--_c, 3), minmax(0, 1fr));
}

.mfk-skel-w {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-inline-size: 0;
}

/* A plugin's own widget skeleton (mfk_tabs_widget_skeleton) lays itself out. */
.mfk-skel-w--own {
	display: block;
}

.mfk-skel-w--inline {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}

.mfk-skel-w .mfk-tabs-skel-s.is-text {
	block-size: 12px;
}

.mfk-skel-w .mfk-tabs-skel-s.is-media {
	inline-size: 100%;
	border-radius: 10px;
}

.mfk-skel-w .mfk-tabs-skel-s.is-ctl {
	inline-size: 140px;
	max-inline-size: 100%;
	block-size: 44px;
	border-radius: 8px;
}

@media (max-width: 1024px) {
	.mfk-skel-box--grid {
		grid-template-columns: repeat(var(--_ct, 2), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.mfk-skel-box--row {
		flex-direction: column;
		align-items: stretch;
	}
	.mfk-skel-box--row > .mfk-skel-box,
	.mfk-skel-box--row > .mfk-skel-w {
		flex: 0 0 auto;
	}
	.mfk-skel-box--grid {
		grid-template-columns: repeat(var(--_cm, 1), minmax(0, 1fr));
	}
}

/* Hold and reveal: the fetched content is in place (so its own scripts can
 * measure it) but unseen, with the skeleton pinned on top by JS; when nothing
 * inside is still loading the two cross-fade once. */
.mfk-tabs-panel--holding > :not(.mfk-tabs-skel) {
	opacity: 0;
	pointer-events: none;
}

.mfk-tabs-panel--holding > .mfk-tabs-skel,
.mfk-tabs-panel--revealing > .mfk-tabs-skel {
	position: absolute;
	overflow: hidden;
	margin: 0;
}

.mfk-tabs-panel--revealing > :not(.mfk-tabs-skel) {
	animation: mfk-tabs-reveal 0.18s ease both;
}

.mfk-tabs-panel--revealing > .mfk-tabs-skel {
	opacity: 0;
	transition: opacity 0.18s ease;
}

@keyframes mfk-tabs-reveal {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* Editor canvas: the "Preview skeleton" switch shows the blueprint in place. */
.mfk-tabs-skel-preview {
	position: relative;
}

/* v0.24.1 — sweeps right→left, matching every other masterE skeleton. */
@keyframes mfk-tabs-shimmer {
	0%   { background-position: 0 0; }
	100% { background-position: 100% 0; }
}

.mfk-tabs-error {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 16px;
}

.mfk-tabs-retry {
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 8px;
	padding: 6px 14px;
	font: inherit;
}

/* ── Editor canvas notes ────────────────────────────────────────────────── */

.mfk-tabs-editor-note,
.mfk-tabs-editor-empty {
	padding: 16px;
	border: 1px dashed #c7ccd1;
	border-radius: 10px;
	background: #fafbfc;
	color: #6b7177;
	font-size: 14px;
}

.mfk-tabs-ext-note {
	margin-block-end: 12px;
}

/* Admin-only (v0.27.4): the content area can't be placed on this page and no
 * Dashboard page is set. Printed by JS from a server string only editors get. */
/* Admin-only diagnostic readout (v0.27.6, ?mfk-tabs-debug=1). */
.mfk-tabs-diag {
	flex: 1 1 100%;
	margin-block-start: 6px;
	padding: 8px 10px;
	border: 1px solid #c7ccd1;
	border-radius: 8px;
	background: #f4f6f8;
	color: #2a2d2e;
	font: 11px/1.5 ui-monospace, Consolas, monospace;
	direction: ltr;
	text-align: left;
	white-space: pre-wrap;
	word-break: break-word;
}

.mfk-tabs-area-hint {
	flex: 1 1 100%;
	margin-block-start: 6px;
	padding: 6px 10px;
	border: 1px dashed #d9a400;
	border-radius: 8px;
	background: #fff8e1;
	color: #6b5300;
	font-size: 12px;
	line-height: 1.4;
}

/* ── Mobile: dock the bar to the bottom (recommended recipe) ─────────────── */

@media (max-width: 767px) {
	.mfk-tabs.mfk-tabs--mobile-bottom {
		display: block;
		padding: 0; /* the dock clears the content via the host rule below */
		/* The dock is always a horizontal row of tabs: the sliding
		 * indicator (not the side bar) marks the active tab. !important:
		 * the orientation control writes its own var set on this root at a
		 * higher specificity, and the dock must win on phones. */
		--_ind-after: none !important;
		--_ind-el: block !important;
		--_nav-ovx: auto !important;
		--_nav-wrap: nowrap !important;
		--_focus-off: -2px !important;
		--_tab-ws: nowrap !important;
		--_tab-fm: var(--mfk-tabs-tab-first-ms, 0px) !important;
		--_tab-lm: var(--mfk-tabs-tab-last-me, 0px) !important;
	}

	.mfk-tabs--mobile-bottom > .mfk-tabs-bar {
		position: fixed;
		inset-block-end: 0;
		inset-inline: 0;
		inset-block-start: auto;
		/* v0.20.0: defeats the --tpl fit-content sizing — a fixed box with both
		 * inline insets AND a fit-content width is over-constrained and would
		 * collapse the dock to content width. */
		inline-size: auto;
		max-inline-size: none;
		margin-inline: 0 !important;
		z-index: var(--mfk-tabs-z, 100);
		padding-block-end: calc(8px + env(safe-area-inset-bottom));
	}

	/* The button row scrolls on its own so opt-in header/footer slots don't
	 * scroll away with the buttons (v0.20.0: row/justify/scroll moved here
	 * from the bar). */
	.mfk-tabs--mobile-bottom .mfk-tabs-nav {
		flex-direction: row;
		justify-content: var(--mfk-tabs-bar-justify, center);
	}

	/* Header/footer slots default OFF inside the compact dock; the widget's
	 * "Keep header & footer in the mobile bottom bar" switcher opts back in. */
	.mfk-tabs--mobile-bottom .mfk-tabs-bar-header,
	.mfk-tabs--mobile-bottom .mfk-tabs-bar-footer {
		display: none;
	}

	.mfk-tabs--mobile-bottom.mfk-tabs--slots-mobile .mfk-tabs-bar-header,
	.mfk-tabs--mobile-bottom.mfk-tabs--slots-mobile .mfk-tabs-bar-footer {
		display: block;
	}

	.mfk-tabs--mobile-bottom > .mfk-tabs-host {
		padding-block-end: var(--mfk-tabs-host-offset, 64px);
		padding-inline: 0;
	}

	/* keep tap targets comfortable */
	.mfk-tabs--mobile-bottom .mfk-tabs-tab {
		min-block-size: 44px;
	}
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.mfk-tabs-skeleton span { animation: none; }
	.mfk-tabs-skel-s { animation: none; }
	.mfk-tabs-panel--revealing > :not(.mfk-tabs-skel) { animation: none; }
	.mfk-tabs-panel--revealing > .mfk-tabs-skel { transition: none; }
	.mfk-tabs-tab { transition: none; }
	.mfk-tabs-ind { transition: none; }
}
