/* دکمه شناور تماس — پایین سمت راست */
.es-fcall {
	position: fixed;
	right: 18px;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	display: flex;
	align-items: center;
	flex-direction: row-reverse;
	gap: 0;
	text-decoration: none;
	direction: rtl;
	-webkit-tap-highlight-color: transparent;
}
.es-fcall-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: linear-gradient(145deg, #f0b323, #e2a100 60%, #c98a00);
	color: #14120e;
	box-shadow: 0 8px 22px rgba(226, 161, 0, .45), 0 2px 6px rgba(0, 0, 0, .25);
	animation: es-fcall-bob 3.2s ease-in-out infinite;
	transition: transform .2s ease;
}
.es-fcall-icon::before,
.es-fcall-icon::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(226, 161, 0, .7);
	animation: es-fcall-ring 2.4s cubic-bezier(.2, .6, .3, 1) infinite;
	pointer-events: none;
}
.es-fcall-icon::after { animation-delay: 1.2s; }
.es-fcall-icon svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
	transform-origin: 50% 50%;
	animation: es-fcall-ring-shake 2.4s ease-in-out infinite;
}
.es-fcall-label {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	padding: .45rem .9rem .45rem 1.6rem;
	margin-right: -1.1rem;
	background: #14120e;
	color: #f3efe6;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
	max-width: 0;
	padding-inline: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-width .35s ease, opacity .25s ease, padding .35s ease;
}
.es-fcall-label small { font-size: .68rem; font-weight: 500; color: #e2a100; direction: ltr; text-align: right; }
.es-fcall:hover .es-fcall-label,
.es-fcall:focus-visible .es-fcall-label {
	max-width: 190px;
	opacity: 1;
	padding: .45rem 1.5rem .45rem .9rem;
	margin-right: -1.4rem;
	order: 2;
}
.es-fcall:hover .es-fcall-icon { transform: scale(1.08); animation-play-state: paused; }
.es-fcall:active .es-fcall-icon { transform: scale(.95); }
.es-fcall:focus-visible { outline: none; }
.es-fcall:focus-visible .es-fcall-icon { outline: 3px solid #fff; outline-offset: 2px; }

@keyframes es-fcall-ring {
	0%   { transform: scale(1);   opacity: .85; }
	100% { transform: scale(1.9); opacity: 0; }
}
@keyframes es-fcall-ring-shake {
	0%, 55%, 100% { transform: rotate(0); }
	10% { transform: rotate(-16deg); }
	20% { transform: rotate(16deg); }
	30% { transform: rotate(-12deg); }
	40% { transform: rotate(12deg); }
	48% { transform: rotate(-6deg); }
}
@keyframes es-fcall-bob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-4px); }
}

@media (max-width: 480px) {
	.es-fcall { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
	.es-fcall-icon { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
	.es-fcall-icon, .es-fcall-icon::before, .es-fcall-icon::after, .es-fcall-icon svg { animation: none !important; }
}
@media print { .es-fcall { display: none; } }
