/**
 * ==========================================================================
 * MOVIN FLOATING WHATSAPP WIDGET — REFERENCE TREATMENT & PREMIUM ANIMATIONS
 * ==========================================================================
 * Visual target:
 * - Pure white rounded chat capsule + separate circular WhatsApp button
 * - Clean gap between elements (no merge)
 * - Deep botanical green button (#176447) with stationary white WhatsApp icon
 * - Thin gold orbiting line continuously travelling around circle circumference
 * - Subtle travelling gold hairline detail around white capsule perimeter
 * - Gentle luxury breathing shadow on capsule (no movement/jump)
 * - Restrained breathing online status dot
 * - Full responsive & reduced-motion support
 */

:root {
	--movin-wa-green: #176447;
	--movin-wa-green-deep: #134633;
	--movin-wa-gold: #D3A04A;
	--movin-wa-gold-bright: #F5D076;
	--movin-wa-dot: #25D366;
	--movin-wa-white: #FFFFFF;
}

/* 1. Floating Sticky Viewport Container */
.movin-whatsapp-float-wrap {
	position: fixed !important;
	bottom: var(--movin-wa-bottom, 28px) !important;
	z-index: 999999 !important;
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	box-sizing: border-box !important;
	user-select: none !important;
	-webkit-user-select: none !important;
	pointer-events: auto !important;
}

.movin-whatsapp-pos-bottom-right {
	right: var(--movin-wa-side, 28px) !important;
	left: auto !important;
	flex-direction: row !important;
}

.movin-whatsapp-pos-bottom-left {
	left: var(--movin-wa-side, 28px);
	right: auto;
	flex-direction: row-reverse;
}

/* ==========================================================================
   2. WHITE CHAT CAPSULE (LEFT ELEMENT)
   ========================================================================== */
.movin-whatsapp-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	background: var(--movin-wa-tip-bg, #FFFFFF);
	padding: 12px 36px 12px 22px;
	border-radius: 9999px;
	border: 1px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.03);
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
	z-index: 4;
	animation: movinWaCapsuleBreathing 3.8s ease-in-out infinite alternate;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.movin-whatsapp-tooltip:hover {
	border-color: rgba(211, 160, 74, 0.28);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(211, 160, 74, 0.08);
}

/* Subtle Travelling Gold Perimeter Highlight around Capsule */
.movin-wa-capsule-border-glow {
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	pointer-events: none;
	padding: 1px;
	background: conic-gradient(
		from 0deg,
		transparent 0deg,
		transparent 270deg,
		rgba(211, 160, 74, 0.15) 310deg,
		rgba(211, 160, 74, 0.55) 345deg,
		rgba(245, 208, 118, 0.75) 355deg,
		transparent 360deg
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0.5;
	animation: movinWaRotate 6s linear infinite;
	z-index: 2;
}

.movin-whatsapp-tooltip-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

/* Capsule Text Layout */
.movin-whatsapp-tooltip-text {
	display: flex;
	flex-direction: column;
	text-align: left;
	line-height: 1.25;
}

.movin-whatsapp-tip-title {
	font-family: var(--e-global-typography-primary-font-family, "Montserrat"), sans-serif;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--movin-wa-tip-color, #163A2B);
	letter-spacing: -0.01em;
	margin-bottom: 2px;
	display: block;
	white-space: nowrap;
}

.movin-whatsapp-tip-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1;
}

.movin-whatsapp-tip-sub {
	font-family: var(--e-global-typography-text-font-family, "Poppins"), sans-serif;
	font-size: 11.5px;
	font-weight: 400;
	color: #777777;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

/* Online Indicator Dot (Restrained Breathing) */
.movin-whatsapp-online-dot {
	width: 6.5px;
	height: 6.5px;
	border-radius: 50%;
	background-color: var(--movin-wa-dot, #25D366);
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
	animation: movinWaDotBreathe 2.4s ease-in-out infinite alternate;
}

/* Close (X) Dismiss Button — Pure Icon, ZERO Background */
.movin-whatsapp-tip-close,
span.movin-whatsapp-tip-close,
button.movin-whatsapp-tip-close,
.elementor-kit-11 button.movin-whatsapp-tip-close {
	position: absolute !important;
	top: 8px !important;
	right: 12px !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: 16px !important;
	max-height: 16px !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	color: #9CA3AF !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	border-radius: 0 !important;
	z-index: 10 !important;
	transition: color 0.2s ease, transform 0.2s ease !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.movin-whatsapp-tip-close:hover,
span.movin-whatsapp-tip-close:hover,
button.movin-whatsapp-tip-close:hover,
.elementor-kit-11 button.movin-whatsapp-tip-close:hover {
	background: transparent !important;
	background-color: transparent !important;
	color: #176447 !important;
	transform: scale(1.15) !important;
}

.movin-whatsapp-tip-close svg {
	width: 11px !important;
	height: 11px !important;
	stroke: currentColor !important;
	stroke-width: 2 !important;
	fill: none !important;
	display: block !important;
	pointer-events: none !important;
}

/* ==========================================================================
   3. WHATSAPP BUTTON (RIGHT ELEMENT)
   ========================================================================== */
.movin-whatsapp-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--movin-wa-btn-size, 58px);
	height: var(--movin-wa-btn-size, 58px);
	border-radius: 50%;
	background: var(--movin-wa-bg, #176447);
	color: var(--movin-wa-icon-color, #FFFFFF);
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 0 0 1px rgba(211, 160, 74, 0.25), 0 8px 22px rgba(23, 100, 71, 0.35);
	outline: none;
	z-index: 5;
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movin-whatsapp-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 0 1px rgba(211, 160, 74, 0.40), 0 12px 28px rgba(23, 100, 71, 0.45);
	color: #FFFFFF;
}

.movin-whatsapp-btn:active {
	transform: scale(0.96);
}

/* Animated Gold Line Ring around WhatsApp Circle */
.movin-wa-gold-ring {
	position: absolute;
	inset: -3.5px;
	border-radius: 50%;
	pointer-events: none;
	padding: 1.5px;
	z-index: 4;
	background: conic-gradient(
		from 0deg,
		rgba(211, 160, 74, 0.00) 0deg,
		rgba(211, 160, 74, 0.15) 220deg,
		rgba(211, 160, 74, 0.75) 310deg,
		#F5D076 345deg,
		rgba(211, 160, 74, 0.95) 360deg
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: movinWaRotate 3.4s linear infinite;
}

/* Stationary WhatsApp Icon (Icon itself never rotates) */
.movin-whatsapp-icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--movin-wa-icon-size, 32px);
	height: var(--movin-wa-icon-size, 32px);
	pointer-events: none;
	z-index: 5;
}

.movin-whatsapp-icon-box svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	display: block;
}

/* ==========================================================================
   4. KEYFRAME ANIMATIONS (PERFORMANT GPU DRIVEN)
   ========================================================================== */

/* Continuous 360 Rotation for Gold Ring & Hairline Highlight */
@keyframes movinWaRotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* Capsule Shadow Breathing (Imperceptible Luxury Breathing) */
@keyframes movinWaCapsuleBreathing {
	0% {
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.03);
	}
	100% {
		box-shadow: 0 12px 30px rgba(0, 0, 0, 0.11), 0 4px 12px rgba(211, 160, 74, 0.08);
	}
}

/* Online Dot Breathing */
@keyframes movinWaDotBreathe {
	0% {
		opacity: 0.65;
		transform: scale(0.95);
	}
	100% {
		opacity: 1;
		transform: scale(1.05);
	}
}

/* ==========================================================================
   5. RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 1024px) {
	.movin-whatsapp-btn {
		width: 54px;
		height: 54px;
	}

	.movin-whatsapp-icon-box {
		width: 29px;
		height: 29px;
	}

	.movin-whatsapp-tooltip {
		padding: 11px 32px 11px 18px;
	}
}

@media (max-width: 767px) {
	.movin-whatsapp-float-wrap {
		bottom: 18px;
		right: 16px;
		gap: 10px;
	}

	.movin-whatsapp-pos-bottom-left {
		left: 16px;
	}

	.movin-whatsapp-btn {
		width: 48px;
		height: 48px;
	}

	.movin-whatsapp-icon-box {
		width: 26px;
		height: 26px;
	}

	.movin-whatsapp-tooltip {
		padding: 9px 28px 9px 15px;
	}

	.movin-whatsapp-tip-title {
		font-size: 13px;
	}

	.movin-whatsapp-tip-sub {
		font-size: 10.5px;
	}

	.movin-whatsapp-float-wrap.movin-wa-hide-mobile {
		display: none !important;
	}

	.movin-whatsapp-tooltip.movin-wa-tip-hide-mobile {
		display: none !important;
	}
}

/* ==========================================================================
   6. REDUCED MOTION SUPPORT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.movin-wa-gold-ring,
	.movin-wa-capsule-border-glow,
	.movin-whatsapp-tooltip,
	.movin-whatsapp-online-dot,
	.movin-whatsapp-btn {
		animation: none !important;
		transition: none !important;
	}

	.movin-wa-gold-ring {
		background: rgba(211, 160, 74, 0.45) !important;
	}
}
