/**
 * WhatsApp Floating Button Styles
 */

.hme-whatsapp-button {
	position: fixed;
	bottom: 151px;
	right: 20px;
	width: 56px;
	height: 56px;
	background: #25D366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
	z-index: 9999;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	text-decoration: none;
	overflow: visible;
	border: 2px solid rgba(255, 255, 255, 0.2);
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	font-family: 'Cairo', sans-serif;
}

.hme-whatsapp-button:hover {
	background: #128C7E;
	box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
	transform: translateY(-3px) scale(1.05);
}

.hme-whatsapp-button:active {
	transform: translateY(-1px) scale(1.02);
}

.hme-whatsapp-button svg {
	width: 24px;
	height: 24px;
	fill: #ffffff;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.hme-whatsapp-button:hover svg {
	transform: scale(1.1);
}

.hme-whatsapp-text {
	position: absolute;
	bottom: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%) translateY(0);
	background: #333;
	color: #fff;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	pointer-events: none;
	font-family: 'Cairo', sans-serif;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	margin-left: 0;
	max-width: none;
	overflow: visible;
}

.hme-whatsapp-text::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #333;
}

.hme-whatsapp-text .ar {
	display: none;
}

.hme-whatsapp-button:hover .hme-whatsapp-text {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-10px);
}

[dir="rtl"] .hme-whatsapp-text .en,
body.rtl .hme-whatsapp-text .en {
	display: none;
}

[dir="rtl"] .hme-whatsapp-text .ar,
body.rtl .hme-whatsapp-text .ar {
	display: inline;
}

/* Pulse animation */
@keyframes whatsapp-pulse {
	0% {
		box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
	}
	50% {
		box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
	}
	100% {
		box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
	}
}

.hme-whatsapp-button {
	animation: whatsapp-pulse 2s infinite;
}

.hme-whatsapp-button:hover {
	animation: none;
}

/* RTL Support */
[dir="rtl"] .hme-whatsapp-button,
body.rtl .hme-whatsapp-button {
	right: auto;
	left: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.hme-whatsapp-button {
		width: 50px;
		height: 50px;
		bottom: 194px;
		right: 20px;
	}
	
	.hme-whatsapp-button svg {
		width: 22px;
		height: 22px;
	}
	
	.hme-whatsapp-text {
		font-size: 12px;
		padding: 6px 10px;
		bottom: calc(100% + 10px);
	}

	[dir="rtl"] .hme-whatsapp-button,
	body.rtl .hme-whatsapp-button {
		left: 20px;
		right: auto;
	}
}

/* Accessibility */
.hme-whatsapp-button:focus {
	outline: 2px solid rgba(37, 211, 102, 0.5);
	outline-offset: 2px;
}
