/* Amnetix — Faisal AI floating widget (Global Branding Standard 1.0)
   Approved appearance: the Amnetix mark on a white disc with a brand-green ring. */

.amxf-fab {
	position: fixed;
	z-index: 1500;
	bottom: 24px;
	right: 24px;
	width: 62px;
	height: 62px;
	padding: 0;
	margin: 0;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 3px solid var(--brand-primary, #0a5c36);
	background: #fff;
	box-shadow: 0 8px 22px -6px rgba(3, 29, 17, .38), 0 2px 6px rgba(3, 29, 17, .12);
	cursor: grab;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	-webkit-user-select: none;
	visibility: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
html[dir="rtl"] .amxf-fab { right: auto; left: 24px; }
.amxf-fab.is-ready { visibility: visible; }
.amxf-fab:hover { box-shadow: 0 12px 28px -6px rgba(3, 29, 17, .45), 0 2px 6px rgba(3, 29, 17, .14); }
.amxf-fab:focus-visible { outline: 3px solid #2f7df6; outline-offset: 3px; }
.amxf-fab.is-dragging { cursor: grabbing; transform: scale(1.06); box-shadow: 0 18px 36px -8px rgba(3, 29, 17, .5); transition: transform .12s ease; }

.amxf-fab__icon { display: grid; place-items: center; width: 100%; height: 100%; pointer-events: none; }
.amxf-fab__icon img { display: block; height: 62%; width: auto; pointer-events: none; }
/* An uploaded official Faisal icon is a complete design: show it as supplied. */
.amxf-fab:has(.amxf-fab__icon.is-custom) { border: 0; background: transparent; overflow: hidden; }
.amxf-fab__icon.is-custom img { width: 100%; height: 100%; object-fit: contain; }

/* Adopted launchers (e.g. the ERP's own Faisal button). */
.amxf-handle.amxf-draggable { cursor: grab; user-select: none; -webkit-user-select: none; }
.amxf-handle.is-dragging { cursor: grabbing; }

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

@media (max-width: 600px) {
	.amxf-fab { width: 54px; height: 54px; bottom: 16px; right: 16px; }
	html[dir="rtl"] .amxf-fab { left: 16px; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.amxf-fab, .amxf-fab.is-dragging { transition: none; transform: none; }
}
@media print { .amxf-fab { display: none !important; } }
