/*
 * Feature `a11y-trigger-css` (BUILD_PLAN 0.15, D19): the morin-a11y 1.2.6 trigger in the new palette, inset from the corner.
 * CSS only; morin-a11y itself is never edited. Deleted when the morin-a11y release that reads an offset variable lands (R9).
 * Why the overrides are this strong:
 * - `.elementor-kit-121 button` (0,1,1) outranks the plugin's `.morin-a11y-trigger` and paints it beige: the #morin-a11y-root id wins here.
 * - toolbar.js writes `style.left` and `style.bottom` = 0px (safeOffset(null) is 0), so the inset needs !important.
 * 16px inset + 44px target = 60px, inside --mf-a11y-reserve (68px).
 */

#morin-a11y-root .morin-a11y-trigger {
	--mf-a11y-inset: 16px;
	--mf-a11y-size: 44px;
	inline-size: var(--mf-a11y-size);
	block-size: var(--mf-a11y-size);
	min-block-size: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mf-color-brand);
	color: var(--mf-color-paper);
	box-shadow: var(--mf-shadow-lift);
}
#morin-a11y-root .morin-a11y-trigger:hover {
	background: var(--mf-color-brand-hover);
	color: var(--mf-color-paper);
}
#morin-a11y-root .morin-a11y-trigger:focus { outline: none; }
/* Two-tone ring (R12): readable on the paper page and on dark photos. */
#morin-a11y-root .morin-a11y-trigger:focus-visible {
	background: var(--mf-color-brand);
	outline: var(--mf-focus-width) solid var(--mf-color-brand);
	outline-offset: var(--mf-focus-offset);
	box-shadow: 0 0 0 var(--mf-focus-offset) var(--mf-focus-inner), var(--mf-shadow-lift);
}
#morin-a11y-root .morin-a11y-trigger svg {
	inline-size: 58%;
	block-size: 58%;
}

/* Physical sides on purpose: the plugin positions by `left`/`right`/`bottom`/`top` classes and inline styles. */
#morin-a11y-root .morin-a11y-trigger.morin-a11y-pos-left { left: max(var(--mf-a11y-inset), env(safe-area-inset-left, 0px)) !important; }
#morin-a11y-root .morin-a11y-trigger.morin-a11y-pos-right { right: max(var(--mf-a11y-inset), env(safe-area-inset-right, 0px)) !important; }
#morin-a11y-root .morin-a11y-trigger.morin-a11y-pos-bottom { bottom: max(var(--mf-a11y-inset), env(safe-area-inset-bottom, 0px)) !important; }

/* The once-per-browser "Alt+1" hint: beside the moved trigger (toolbar.js places it at 60px, now under the button). */
#morin-a11y-root .morin-a11y-tooltip {
	background: var(--mf-color-deep);
	color: var(--mf-color-footer-text);
	font-family: var(--mf-font-body);
	border-radius: var(--mf-radius-card-sm);
	box-shadow: var(--mf-shadow-lift);
}
#morin-a11y-root .morin-a11y-pos-left.morin-a11y-pos-bottom ~ .morin-a11y-tooltip {
	left: calc(max(16px, env(safe-area-inset-left, 0px)) + 44px + var(--mf-space-2)) !important;
	bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
}
