/* SFMA Floating Layer Manager v3.30.0-rc86 */
:root {
	--sfma-z-mobile-bar: 9965;
	--sfma-z-sticky-bar: 9970;
	--sfma-z-order-actions: 100020; /* Customer order actions: above nav/FABs, below modal windows. */
	--sfma-z-sticky-pill: 100005;
	--sfma-z-chat: 100010;
	--sfma-z-fab: 100015;
	--sfma-z-window-base: 100100;
	--sfma-z-drawer-backdrop: 100110;
	--sfma-z-drawer: 100120;
	--sfma-z-modal: 100150;
	--sfma-z-dropdown: 100900;
	/* LP-CHAT-001 (B4): التوستات داخل مقياس FLM لكن تحت أدنى نافذة (100100)
	   حتى لا تغطي مودال/درج مفتوحاً أبداً، وفوق كل الكروم الثابت (100020). */
	--sfma-z-toast: 100090;
	/* LP-UX-003 (B4): الشريط السفلي الموحد للموبايل على مقياس FLM (لا 99999
	   مكتوبة يدوياً في sfma-myaccount.css)، وارتفاعه المقاس runtime. */
	--sfma-z-mobile-nav: 99999;
	--sfma-mobile-nav-height: 60px;
	/* LP-CHAT-001 (B4): تنبيهات المودال العاجلة فوق أعلى نافذة (100880)
	   مباشرة وتحت القوائم المنسدلة (100900). */
	--sfma-z-modal-alert: 100890;
	--sfma-safe-top: env(safe-area-inset-top, 0px);
	--sfma-safe-bottom: env(safe-area-inset-bottom, 0px);
	--sfma-safe-left: env(safe-area-inset-left, 0px);
	--sfma-safe-right: env(safe-area-inset-right, 0px);
	--sfma-chat-bottom-offset: 76px;
	--sfma-fab-bottom-offset: 76px;
}
#sfma-live-sticky-pill,
.sfma-live-sticky-pill {
	z-index: var(--sfma-z-sticky-pill, 100005) !important;
}
#sfma-floating-notif-control,
.sfma-floating-notif-control,
#sfma-floating-drawer-trigger,
#sfma-floating-cart-trigger {
	z-index: var(--sfma-z-fab, 100015) !important;
}
.sfma-toasts-container,
.sfma-banners-container {
	z-index: var(--sfma-z-toast, 100090) !important;
	pointer-events: none !important;
}
.sfma-toasts-container > *,
.sfma-banners-container > *,
.sfma-live-toast,
.sfma-live-banner,
.sfma-undo-toast,
.sfma-snooze-notice {
	z-index: var(--sfma-z-toast, 100090) !important;
	pointer-events: auto !important;
}
/* LP-CHAT-001 (B4): سقف ارتفاع للتوستات على الديسكتوب أيضاً — كانت بلا
   سقف فتغطي مساحة العمل كلها عند تكدسها. الموبايل عنده 38vh أدناه. */
.sfma-toasts-container {
	max-height: 50vh !important;
	overflow-y: auto !important;
}
#sfma-floating-drawer-backdrop,
#sfma-side-cart-backdrop,
#sfma-quick-view-backdrop,
#sfma-quick-view-overlay,
#sfma-timeline-overlay,
#sfma-note-overlay,
#sfma-live-chat-drawer-backdrop,
#sfma-mobile-notif-backdrop {
	z-index: var(--sfma-z-drawer-backdrop, 100110) !important;
}
.sfma-sf-cart-drawer .sfma-sf-drawer-backdrop,
.sfma-sf-drawer-backdrop {
	z-index: 1;
}
.sfma-sf-cart-drawer .sfma-sf-drawer-panel,
.sfma-sf-drawer-panel {
	z-index: 2;
}
#sfma-floating-drawer,
#sfma-side-cart-drawer,
#sfma-quick-view-drawer,
#sfma-timeline-drawer,
#sfma-note-drawer,
#sfma-live-chat-drawer,
#sfma-mobile-notif-sheet {
	z-index: var(--sfma-z-drawer, 100120) !important;
}
#sfma-floating-drawer:not(.is-open) {
	visibility: hidden !important;
	pointer-events: none !important;
	box-shadow: none !important;
	transform: translate3d(-120%, 0, 0) !important;
}
body:not(.rtl) #sfma-floating-drawer:not(.is-open),
html[dir="ltr"] #sfma-floating-drawer:not(.is-open) {
	transform: translate3d(120%, 0, 0) !important;
}
#sfma-floating-drawer.is-open {
	visibility: visible !important;
	pointer-events: auto !important;
	transform: translate3d(0, 0, 0) !important;
}
#sfma-side-cart-drawer:not(.active),
.sfma-sf-cart-drawer:not(.is-open) {
	visibility: hidden !important;
	pointer-events: none !important;
}
.sfma-sf-cart-drawer:not(.is-open) .sfma-sf-drawer-panel {
	box-shadow: none !important;
	transform: translate3d(-120%, 0, 0) !important;
}
.sfma-live-toast .sfma-notif-close-btn,
.sfma-live-toast .sfma-notif-snooze-btn,
.sfma-live-banner .sfma-notif-close-btn,
#sfma-floating-drawer-close,
.sfma-sidecart-close,
.sfma-sf-drawer-close {
	min-width: 44px !important;
	min-height: 44px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	touch-action: manipulation;
}
.sfma-live-toast .sfma-notif-ctrl-group {
	top: 2px !important;
	left: 4px !important;
	gap: 2px !important;
}
@media screen and (max-width: 782px) {
	.sfma-orders-wrap,
	.sfma-otab-pane {
		padding-bottom: calc(84px + var(--sfma-safe-bottom, 0px)) !important;
	}
	.sfma-toasts-container {
		top: calc(52px + var(--sfma-safe-top, 0px)) !important;
		bottom: auto !important;
		left: max(8px, var(--sfma-safe-left, 8px)) !important;
		right: max(8px, var(--sfma-safe-right, 8px)) !important;
		max-width: calc(100vw - 16px) !important;
		transform: none !important;
		max-height: 38vh !important;
		overflow-y: auto !important;
		pointer-events: auto;
	}
	#sfma-live-sticky-pill,
	.sfma-live-sticky-pill {
		bottom: calc(56px + var(--sfma-safe-bottom, 0px)) !important;
		left: max(10px, var(--sfma-safe-left, 10px)) !important;
		right: auto !important;
		max-width: calc(100vw - 76px) !important;
		padding: 5px 10px !important;
		font-size: 11px !important;
	}
	#sfma-floating-notif-control:not(.sfma-user-dragged),
	.sfma-floating-notif-control:not(.sfma-user-dragged) {
		top: auto !important;
		bottom: calc(52px + var(--sfma-safe-bottom, 0px)) !important;
		right: max(10px, var(--sfma-safe-right, 10px)) !important;
		left: auto !important;
		width: 46px !important;
		height: 46px !important;
	}
	#sfma-floating-drawer-trigger {
		display: none !important;
	}
}
@media screen and (max-width: 390px) {
	#sfma-live-sticky-pill,
	.sfma-live-sticky-pill {
		font-size: 10.5px !important;
		padding: 4px 8px !important;
		gap: 5px !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	#sfma-live-sticky-pill,
	.sfma-live-sticky-pill,
	.sfma-live-sticky-pill .sfma-pill-dot,
	#sfma-floating-notif-control,
	#sfma-floating-drawer,
	.sfma-live-toast,
	.sfma-live-banner,
	.sfma-sf-drawer-panel {
		animation: none !important;
		transition: none !important;
	}
}
body.sfma-drawer-open .sfma-sf-sp-sticky-bar,
body.sfma-chat-modal-open .sfma-sf-sp-sticky-bar {
	transform: translate3d(0, 120%, 0);
	pointer-events: none;
	opacity: 0;
}
body.sfma-drawer-open #sfma-storefront-chat-wrapper {
	z-index: 99980 !important;
}
body.woocommerce-checkout .sfma-sf-sp-sticky-bar,
body.woocommerce-cart .sfma-sf-sp-sticky-bar,
body.woocommerce-checkout #sfma-floating-cart-trigger,
body.woocommerce-cart #sfma-floating-cart-trigger {
	display: none !important;
}
.sfma-sf-mobile-bar {
	z-index: var(--sfma-z-mobile-bar, 9965) !important;
	padding-bottom: var(--sfma-safe-bottom, 0px) !important;
}
#sfma-sp-sticky-buy-bar,
.sfma-sf-sp-sticky-bar {
	z-index: var(--sfma-z-sticky-bar, 9970) !important;
}
#sfma-storefront-chat-wrapper {
	z-index: var(--sfma-z-chat, 100010) !important;
}
#seftam-agent-fab,
.seftam-agent-fab,
#seftam-speed-fab,
.seftam-speed-fab,
[data-seftam-agent-fab] {
	z-index: var(--sfma-z-fab, 100015) !important;
	min-width: 44px !important;
	min-height: 44px !important;
}
#sfma-chat-launcher-btn,
.sfma-sf-sp-zoom-btn,
.sfma-sf-sp-thumb-btn,
.sfma-sf-mobile-bar__item {
	min-width: 44px !important;
	min-height: 44px !important;
}
body.sfma-sticky-buy-visible {
	--sfma-chat-bottom-offset: 146px;
	--sfma-fab-bottom-offset: 146px;
}
@media screen and (max-width: 782px) {
	.sfma-sf-single-product {
		padding-bottom: calc(140px + var(--sfma-safe-bottom, 0px)) !important;
	}
	#sfma-storefront-chat-wrapper:not([data-dragged="1"]) {
		left: max(12px, var(--sfma-safe-left, 12px)) !important;
		right: auto !important;
		max-width: calc(100vw - 24px) !important;
		bottom: calc(var(--sfma-chat-bottom-offset, 76px) + var(--sfma-safe-bottom, 0px)) !important;
		transition: bottom 0.22s ease, transform 0.22s ease;
	}
	html[dir="ltr"] #sfma-storefront-chat-wrapper:not([data-dragged="1"]),
	body[dir="ltr"] #sfma-storefront-chat-wrapper:not([data-dragged="1"]) {
		right: max(12px, var(--sfma-safe-right, 12px)) !important;
		left: auto !important;
	}
	#sfma-storefront-chat-wrapper #sfma-chat-modal-window {
		max-width: calc(100vw - 24px) !important;
		box-sizing: border-box !important;
	}
	#seftam-agent-fab:not([data-dragged="1"]),
	.seftam-agent-fab:not([data-dragged="1"]),
	#seftam-speed-fab:not([data-dragged="1"]),
	.seftam-speed-fab:not([data-dragged="1"]),
	[data-seftam-agent-fab]:not([data-dragged="1"]) {
		right: max(12px, var(--sfma-safe-right, 12px)) !important;
		left: auto !important;
		top: auto !important;
		bottom: calc(var(--sfma-fab-bottom-offset, 76px) + var(--sfma-safe-bottom, 0px)) !important;
		transition: bottom 0.22s ease, transform 0.22s ease;
	}
	html[dir="ltr"] #seftam-agent-fab:not([data-dragged="1"]),
	html[dir="ltr"] .seftam-agent-fab:not([data-dragged="1"]),
	html[dir="ltr"] #seftam-speed-fab:not([data-dragged="1"]),
	html[dir="ltr"] .seftam-speed-fab:not([data-dragged="1"]),
	html[dir="ltr"] [data-seftam-agent-fab]:not([data-dragged="1"]) {
		left: max(12px, var(--sfma-safe-left, 12px)) !important;
		right: auto !important;
	}
	#sfma-sp-sticky-buy-bar,
	.sfma-sf-sp-sticky-bar {
		left: 0 !important;
		right: 0 !important;
		/* LP-UX-003 (B4): رفع الشريط بارتفاع الـ nav المقاس لا 60px ثابتة. */
		bottom: calc(var(--sfma-mobile-nav-height, 60px) + var(--sfma-safe-bottom, 0px)) !important;
	}
}
body.sfma-studio-fullbleed #seftam-agent-fab,
body.sfma-studio-fullbleed .seftam-agent-fab,
body.sfma-studio-fullbleed #seftam-speed-fab,
body.sfma-studio-fullbleed .seftam-speed-fab,
body.sfma-studio-fullbleed #sfma-floating-drawer-trigger,
body.sfma-ai-modal-open #seftam-agent-fab,
body.sfma-ai-modal-open .seftam-agent-fab,
body.sfma-ai-modal-open #seftam-speed-fab,
body.sfma-ai-modal-open .seftam-speed-fab,
body.sfma-ai-modal-open #sfma-floating-drawer-trigger,
body.sfma-filter-drawer-open #seftam-agent-fab,
body.sfma-filter-drawer-open .seftam-agent-fab,
body.sfma-filter-drawer-open #seftam-speed-fab,
body.sfma-filter-drawer-open .seftam-speed-fab,
body.sfma-filter-drawer-open #sfma-floating-drawer-trigger {
	display: none !important;
}
@media (pointer: coarse) {
	#sfma-floating-drawer-trigger {
		display: none !important;
	}
}
body.sfma-pm-drawer-open #sfma-ucopilot-fab,
body.sfma-pm-drawer-open #sfma-ucopilot-drawer,
body.sfma-pm-drawer-open #seftam-agent-fab,
body.sfma-pm-drawer-open .seftam-agent-fab,
body.sfma-pm-drawer-open #seftam-speed-fab,
body.sfma-pm-drawer-open .seftam-speed-fab,
body.sfma-pm-drawer-open #sfma-floating-notif-control,
body.sfma-pqe-open #sfma-ucopilot-fab,
body.sfma-pqe-open #sfma-ucopilot-drawer,
body.sfma-pqe-open #seftam-agent-fab,
body.sfma-pqe-open .seftam-agent-fab,
body.sfma-pqe-open #seftam-speed-fab,
body.sfma-pqe-open .seftam-speed-fab,
body.sfma-pqe-open #sfma-floating-notif-control,
body.sfma-modal-open #sfma-ucopilot-fab,
body.sfma-modal-open #sfma-ucopilot-drawer,
body.sfma-modal-open #seftam-agent-fab,
body.sfma-modal-open .seftam-agent-fab,
body.sfma-modal-open #seftam-speed-fab,
body.sfma-modal-open .seftam-speed-fab,
body.sfma-modal-open #sfma-floating-notif-control,
body.sfma-ai-chat-modal-open #sfma-ucopilot-fab,
body.sfma-ai-chat-modal-open #sfma-ucopilot-drawer,
body.sfma-ai-chat-modal-open #seftam-agent-fab,
body.sfma-ai-chat-modal-open .seftam-agent-fab,
body.sfma-ai-chat-modal-open #seftam-speed-fab,
body.sfma-ai-chat-modal-open .seftam-speed-fab,
body.sfma-ai-chat-modal-open #sfma-floating-notif-control,
body.sfma-ai-route-modal-open #sfma-ucopilot-fab,
body.sfma-ai-route-modal-open #sfma-ucopilot-drawer,
body.sfma-ai-route-modal-open #seftam-agent-fab,
body.sfma-ai-route-modal-open .seftam-agent-fab,
body.sfma-ai-route-modal-open #seftam-speed-fab,
body.sfma-ai-route-modal-open .seftam-speed-fab,
body.sfma-ai-route-modal-open #sfma-floating-notif-control,
body.sfma-editing-modal-active #sfma-ucopilot-fab,
body.sfma-editing-modal-active #sfma-ucopilot-drawer,
body.sfma-editing-modal-active #seftam-agent-fab,
body.sfma-editing-modal-active .seftam-agent-fab,
body.sfma-editing-modal-active #seftam-speed-fab,
body.sfma-editing-modal-active .seftam-speed-fab,
body.sfma-editing-modal-active #sfma-floating-notif-control {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	opacity: 0 !important;
}
.sfma-pqe-overlay,
.sfma-pm-drawer.is-open,
.sfma-pm-modal.is-open,
#sfma-pm-ai-intel-modal,
#sfma-ai-route-modal,
#sfma-ai-provider-modal {
	z-index: 1000010 !important;
}
#sfma-ai-route-spotlight-backdrop.is-open {
	z-index: 1000050 !important;
}
.sfma-ai-task-card.is-editing,
.sfma-ai-task-card.is-spotlight-modal {
	z-index: 1000060 !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}
#sfma-ai-test-chat-modal.is-open {
	z-index: 1000080 !important;
}
body.sfma-pm-drawer-open #sfma-live-sticky-pill,
body.sfma-pm-drawer-open .sfma-live-sticky-pill,
body.sfma-pm-drawer-open #sfma-floating-drawer-trigger,
body.sfma-pm-drawer-open #sfma-floating-notif-control,
body.sfma-pm-drawer-open .sfma-floating-notif-control,
body.sfma-pm-drawer-open #sfma-ucopilot-fab,
body.sfma-pm-drawer-open #sfma-ucopilot-drawer,
body.sfma-pm-drawer-open #sfma-storefront-chat-wrapper,
body.sfma-pm-drawer-open [id*="speed-fab"],
body.sfma-pm-drawer-open [class*="speed-fab"],
body.sfma-pm-drawer-open [id*="agent-fab"],
body.sfma-pm-drawer-open [class*="agent-fab"],
body.sfma-pqe-open #sfma-live-sticky-pill,
body.sfma-pqe-open .sfma-live-sticky-pill,
body.sfma-pqe-open #sfma-floating-drawer-trigger,
body.sfma-pqe-open #sfma-floating-notif-control,
body.sfma-pqe-open .sfma-floating-notif-control,
body.sfma-pqe-open #sfma-ucopilot-fab,
body.sfma-pqe-open #sfma-ucopilot-drawer,
body.sfma-pqe-open #sfma-storefront-chat-wrapper,
body.sfma-pqe-open [id*="speed-fab"],
body.sfma-pqe-open [class*="speed-fab"],
body.sfma-pqe-open [id*="agent-fab"],
body.sfma-pqe-open [class*="agent-fab"],
body.sfma-modal-open #sfma-live-sticky-pill,
body.sfma-modal-open .sfma-live-sticky-pill,
body.sfma-modal-open #sfma-floating-drawer-trigger,
body.sfma-modal-open #sfma-floating-notif-control,
body.sfma-modal-open .sfma-floating-notif-control,
body.sfma-modal-open #sfma-ucopilot-fab,
body.sfma-modal-open #sfma-ucopilot-drawer,
body.sfma-modal-open [id*="speed-fab"],
body.sfma-modal-open [class*="speed-fab"],
body.sfma-modal-open [id*="agent-fab"],
body.sfma-modal-open [class*="agent-fab"],
body.sfma-editing-modal-active #sfma-live-sticky-pill,
body.sfma-editing-modal-active .sfma-live-sticky-pill,
body.sfma-editing-modal-active #sfma-floating-drawer-trigger,
body.sfma-editing-modal-active #sfma-floating-notif-control,
body.sfma-editing-modal-active .sfma-floating-notif-control,
body.sfma-editing-modal-active #sfma-ucopilot-fab,
body.sfma-editing-modal-active #sfma-ucopilot-drawer,
body.sfma-editing-modal-active [id*="speed-fab"],
body.sfma-editing-modal-active [class*="speed-fab"],
body.sfma-editing-modal-active [id*="agent-fab"],
body.sfma-editing-modal-active [class*="agent-fab"] {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	z-index: -1 !important;
}
.sfma-ai-copilot-wrapper,
#sfma-ucopilot-fab {
	z-index: 990 !important;
	inset-inline-start: 20px;
	inset-inline-end: auto;
	cursor: grab;
}
.sfma-ai-copilot-wrapper.is-minimized,
#sfma-ucopilot-fab.is-minimized {
	width: 50px !important;
	height: 50px !important;
	border-radius: 50% !important;
	padding: 0 !important;
}
.select2-container--open,
.select2-dropdown {
	z-index: var(--sfma-z-dropdown, 100900) !important;
}
#sfma-storefront-chat-wrapper {
	pointer-events: none;
}
#sfma-storefront-chat-wrapper #sfma-chat-launcher-btn,
#sfma-storefront-chat-wrapper #sfma-chat-modal-window,
#sfma-storefront-chat-wrapper #sfma-chat-floating-preview {
	pointer-events: auto;
}
html[dir="ltr"] #sfma-storefront-chat-wrapper:not([data-dragged="1"]),
body[dir="ltr"] #sfma-storefront-chat-wrapper:not([data-dragged="1"]) {
	right: 20px;
	left: auto;
}
html[dir="ltr"] #sfma-storefront-chat-wrapper #sfma-chat-modal-window,
body[dir="ltr"] #sfma-storefront-chat-wrapper #sfma-chat-modal-window {
	right: 0;
	left: auto;
}
html[dir="rtl"] #sfma-storefront-chat-wrapper:not([data-dragged="1"]),
body[dir="rtl"] #sfma-storefront-chat-wrapper:not([data-dragged="1"]) {
	left: 20px;
	right: auto;
}
html[dir="rtl"] #sfma-storefront-chat-wrapper #sfma-chat-modal-window,
body[dir="rtl"] #sfma-storefront-chat-wrapper #sfma-chat-modal-window {
	left: 0;
	right: auto;
}
[data-sfma-window-active="true"]#sfma-chat-modal-window,
[data-sfma-window-active="true"]#sfma-oe-modal,
[data-sfma-window-active="true"].sfma-popover-card,
[data-sfma-window-active="true"]#sfma-live-chat-drawer {
	box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.42), 0 0 0 2px rgba(79, 70, 229, 0.35) !important;
}
#sfma-chat-modal-window.sfma-window-minimized {
	height: 54px !important;
	max-height: 54px !important;
	min-height: 54px !important;
	overflow: hidden !important;
}
#sfma-live-chat-drawer.sfma-window-minimized {
	top: auto !important;
	height: 60px !important;
	max-height: 60px !important;
	width: 340px !important;
	border-radius: 14px 14px 0 0 !important;
	overflow: hidden !important;
}
body.sfma-multi-window-coexist #sfma-oe-overlay,
body.sfma-multi-window-coexist .sfma-popover-overlay {
	pointer-events: none !important;
	background: rgba(15, 23, 42, 0.28) !important;
}
body.sfma-multi-window-coexist #sfma-oe-overlay #sfma-oe-modal,
body.sfma-multi-window-coexist .sfma-popover-overlay .sfma-popover-card {
	pointer-events: auto !important;
}
