#fz-smart-contact {
	--fz-contact-mobile-bottom: 112px;
	--fz-contact-desktop-bottom: 24px;
	--fz-contact-launcher-start: #7554e8;
	--fz-contact-launcher-end: #3b82f6;
	--fz-contact-launcher-icon: #fff;
	position: fixed;
	left: 12px;
	left: max(12px, calc(env(safe-area-inset-left, 0px) + 8px));
	bottom: var(--fz-contact-desktop-bottom);
	bottom: calc(var(--fz-contact-desktop-bottom) + env(safe-area-inset-bottom, 0px));
	z-index: 99999;
	width: 56px;
	height: 56px;
	direction: ltr;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.4;
	isolation: isolate;
}

#fz-smart-contact,
#fz-smart-contact * {
	box-sizing: border-box;
}

#fz-smart-contact button,
#fz-smart-contact a {
	-webkit-tap-highlight-color: transparent;
}

#fz-smart-contact .fz-contact-intro {
	position: absolute;
	left: 0;
	bottom: calc(100% + 12px);
	width: max-content;
	max-width: min(240px, calc(100vw - 32px));
	padding: 10px 13px;
	border-radius: 7px;
	background: #3d3b62;
	color: #fff;
	box-shadow: 0 7px 18px rgba(20, 20, 40, 0.24);
	direction: rtl;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	text-align: right;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(5px);
	transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

#fz-smart-contact .fz-contact-intro::after {
	position: absolute;
	left: 20px;
	bottom: -8px;
	width: 0;
	height: 0;
	border-top: 8px solid #3d3b62;
	border-right: 8px solid transparent;
	border-left: 8px solid transparent;
	content: '';
}

#fz-smart-contact.is-intro .fz-contact-intro {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

#fz-smart-contact .fz-contact-launcher {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	background: linear-gradient(145deg, var(--fz-contact-launcher-start) 0%, var(--fz-contact-launcher-end) 100%);
	color: var(--fz-contact-launcher-icon);
	box-shadow: 0 8px 22px rgba(70, 91, 220, 0.34);
	cursor: pointer;
	transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

#fz-smart-contact .fz-contact-launcher:hover {
	transform: translateY(-2px);
	filter: brightness(0.92) saturate(1.08);
	box-shadow: 0 11px 26px rgba(70, 91, 220, 0.42);
}

#fz-smart-contact .fz-contact-launcher:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px var(--fz-contact-launcher-start), 0 8px 22px rgba(70, 91, 220, 0.36);
}

#fz-smart-contact .fz-contact-launcher > svg {
	width: 25px;
	height: 25px;
	fill: currentColor;
}

/* هدف لمسی ضربدر ۴۴ پیکسل است؛ دایره دیداری کوچک می‌ماند. */
#fz-smart-contact .fz-contact-dismiss {
	position: absolute;
	left: 6px;
	top: -48px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #555;
	cursor: pointer;
	opacity: 1;
	visibility: visible;
	transition: opacity 180ms ease, visibility 180ms ease;
}

#fz-smart-contact.is-intro .fz-contact-dismiss {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

#fz-smart-contact .fz-contact-dismiss-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid #d9d9d9;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
	transition: color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

#fz-smart-contact .fz-contact-dismiss:hover .fz-contact-dismiss-visual {
	color: #111;
	transform: scale(1.08);
	box-shadow: 0 5px 13px rgba(0, 0, 0, 0.2);
}

#fz-smart-contact .fz-contact-dismiss:focus-visible {
	outline: none;
}

#fz-smart-contact .fz-contact-dismiss:focus-visible .fz-contact-dismiss-visual {
	outline: 3px solid #25282d;
	outline-offset: 2px;
}

#fz-smart-contact .fz-contact-dismiss svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

#fz-smart-contact .fz-contact-menu {
	position: absolute;
	left: calc(100% + 11px);
	bottom: 0;
	width: 178px;
	padding: 8px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
	direction: rtl;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(-8px) scale(0.96);
	transform-origin: left bottom;
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

#fz-smart-contact .fz-contact-menu::before {
	position: absolute;
	left: -6px;
	top: auto;
	bottom: 22px;
	width: 12px;
	height: 12px;
	border-left: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	content: '';
	transform: rotate(45deg);
}

#fz-smart-contact.is-open .fz-contact-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0) scale(1);
}

#fz-smart-contact .fz-contact-menu-title {
	display: block;
	padding: 1px 8px 6px;
	color: #666;
	font-size: 11px;
	font-weight: 600;
	text-align: right;
}

#fz-smart-contact .fz-contact-menu-list {
	max-height: min(62vh, 420px);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
}

#fz-smart-contact .fz-contact-menu-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: 48px;
	padding: 5px 7px;
	border-radius: 12px;
	color: #222;
	text-decoration: none !important;
	transition: background-color 130ms ease, transform 130ms ease;
}

#fz-smart-contact .fz-contact-menu-item + .fz-contact-menu-item {
	margin-top: 3px;
}

#fz-smart-contact .fz-contact-menu-item:hover {
	background: #f4f5f6;
	color: #111;
	transform: translateX(-2px);
}

#fz-smart-contact .fz-contact-menu-item:focus-visible {
	outline: 3px solid #25282d;
	outline-offset: -2px;
	background: #f4f5f6;
	color: #111;
}

#fz-smart-contact .fz-contact-service-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--fz-contact-service-color, #59636e);
	color: #fff;
	flex: 0 0 38px;
}

#fz-smart-contact .fz-contact-service-icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

#fz-smart-contact .fz-contact-service-icon img {
	display: block;
	width: 25px;
	height: 25px;
	object-fit: contain;
}

#fz-smart-contact .fz-contact-instagram svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

#fz-smart-contact .fz-contact-instagram .fz-contact-dot {
	fill: currentColor;
	stroke: none;
}

#fz-smart-contact .fz-contact-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	text-align: right;
	white-space: nowrap;
}

#fz-smart-contact .fz-contact-copy strong {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

#fz-smart-contact .fz-contact-copy small {
	color: #777;
	font-size: 10.5px;
	line-height: 1.3;
}

#fz-smart-contact.is-hidden {
	display: none !important;
}

@media (max-width: 782px) {
	#fz-smart-contact {
		left: 20px;
		left: max(20px, calc(env(safe-area-inset-left, 0px) + 14px));
		bottom: var(--fz-contact-mobile-bottom);
		bottom: calc(var(--fz-contact-mobile-bottom) + env(safe-area-inset-bottom, 0px));
	}

	#fz-smart-contact .fz-contact-menu {
		width: 164px;
	}
}

@media (forced-colors: active) {
	#fz-smart-contact .fz-contact-launcher,
	#fz-smart-contact .fz-contact-dismiss-visual,
	#fz-smart-contact .fz-contact-menu {
		border: 2px solid ButtonText;
	}

	#fz-smart-contact .fz-contact-launcher,
	#fz-smart-contact .fz-contact-dismiss-visual {
		background: ButtonFace;
		color: ButtonText;
	}

	#fz-smart-contact .fz-contact-service-icon {
		border: 1px solid ButtonText;
	}
}

@media (prefers-reduced-motion: reduce) {
	#fz-smart-contact,
	#fz-smart-contact * {
		animation: none !important;
		transition: none !important;
	}
}
