/**
 * Rashid Floating Chat Button
 * Stylesheet
 *
 * @package Rashid_Floating_Chat_Button
 */

/* Floating WhatsApp Button */
.rfcb-whatsapp-button {
	position: fixed;
	bottom: 20px;
	z-index: 9999;
	transition: transform 0.3s ease;
}

.rfcb-whatsapp-button.rfcb-position-right {
	right: 20px;
}

.rfcb-whatsapp-button.rfcb-position-left {
	left: 20px;
}

.rfcb-button-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background-color: #25D366;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
	text-decoration: none;
	color: #ffffff;
	transition: all 0.3s ease;
	cursor: pointer;
}

.rfcb-button-link:hover {
	background-color: #20BA5A;
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
	transform: scale(1.1);
}

.rfcb-button-link:active {
	transform: scale(0.95);
}

.rfcb-button-link svg {
	width: 28px;
	height: 28px;
}

/* Shortcode Button */
.rfcb-shortcode-button {
	display: inline-block;
	padding: 12px 24px;
	background-color: #25D366;
	color: #ffffff;
	text-decoration: none;
	border-radius: 25px;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.rfcb-shortcode-button:hover {
	background-color: #20BA5A;
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
	transform: translateY(-2px);
}

.rfcb-shortcode-button:active {
	transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
	.rfcb-whatsapp-button {
		bottom: 15px;
	}

	.rfcb-whatsapp-button.rfcb-position-right {
		right: 15px;
	}

	.rfcb-whatsapp-button.rfcb-position-left {
		left: 15px;
	}

	.rfcb-button-link {
		width: 56px;
		height: 56px;
	}

	.rfcb-button-link svg {
		width: 26px;
		height: 26px;
	}
}

@media (max-width: 480px) {
	.rfcb-whatsapp-button {
		bottom: 10px;
	}

	.rfcb-whatsapp-button.rfcb-position-right {
		right: 10px;
	}

	.rfcb-whatsapp-button.rfcb-position-left {
		left: 10px;
	}

	.rfcb-button-link {
		width: 52px;
		height: 52px;
	}

	.rfcb-button-link svg {
		width: 24px;
		height: 24px;
	}
}

/* Animation for button appearance */
@keyframes rfcb-fade-in {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.rfcb-whatsapp-button {
	animation: rfcb-fade-in 0.5s ease-out;
}

/* Screen reader text */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

