/**
 * Floating Call Button Styles
 *
 * @package FloatingCallButton
 * @since   1.0.1
 */

/* ==========================================================================
   Main Container
   ========================================================================== */

.fcb-container {
	position: fixed;
	bottom: 100px;
	right: 30px;
	border-radius: 50%;
	z-index: 9999;
}

/* ==========================================================================
   Tooltip Components
   ========================================================================== */

.fcb-container > .fcb-tooltip {
	position: relative;
	max-width: 200px;
	font-size: 1.2rem;
	font-weight: 600;
	background-color: #f1fbff;
	color: #1f2937;
	padding: 25px 30px;
	margin-bottom: 25px;
	border-radius: 10px;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Tooltip arrow */
.fcb-container > .fcb-tooltip::before {
	content: "";
	position: absolute;
	bottom: -10px;
	right: 35px;
	width: 0;
	height: 0;
	border-left: 11px solid transparent;
	border-right: 11px solid transparent;
	border-top: 11px solid #f1fbff;
}

/* Hidden state */
.fcb-container > .fcb-tooltip.fcb-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ==========================================================================
   Floating Button Icon
   ========================================================================== */

.fcb-container > .fcb-icon {
	float: right;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	cursor: pointer;
}

.fcb-container > .fcb-icon > img {
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: cover;
}

/* Pulse animation */
.fcb-pulse {
	animation: fcb-icon-pulse 2s infinite;
	transition: opacity 0.3s ease;
}

/* Icon disabled state */
.fcb-icon.fcb-disabled {
	opacity: 0.5;
}

/* Close button */
.fcb-container > .fcb-tooltip .fcb-close-btn {
	position: absolute;
	top: 8px;
	right: 10px;
	background: none;
	border: none;
	font-size: 0.9rem;
	cursor: pointer;
	color: #1f2937;
	padding: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.fcb-container > .fcb-tooltip .fcb-close-btn:hover {
	color: #0b1a48;
}

/* ==========================================================================
   Expanded Message Panel
   ========================================================================== */

.fcb-container > .fcb-message {
	position: absolute;
	bottom: 90px;
	right: 0;
	max-width: 200px;
	font-size: 1.25rem;
	font-weight: 600;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 1;
}

.fcb-container > .fcb-message.fcb-expanded {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.fcb-container > .fcb-message > p {
	color: #0b1a48;
	margin: 0 0 20px 0;
}

/* Phone link button */
.fcb-container > .fcb-message > .fcb-phone-link {
	display: inline-block;
	background-color: #5cc9f5;
	color: #fff !important;
	text-decoration: none;
	font-size: 1.2rem;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 5px;
	transition: background-color 0.3s ease;
}

.fcb-container > .fcb-message > .fcb-phone-link:hover {
	background-color: #4fb2da;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fcb-icon-pulse {
	0% {
		box-shadow: 0 0 0 0 #5cc9f5b3;
	}
	50% {
		box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
	}
}

/* ==========================================================================
   Responsive Design - Mobile
   ========================================================================== */

@media (max-width: 768px) {
	.fcb-container {
		right: 20px;
	}

	/* Hide desktop tooltip on mobile */
	.fcb-container > #fcb-tooltip-message {
		display: none;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.fcb-container > .fcb-tooltip {
		width: 150px;
		font-size: 1rem;
		padding: 15px 20px;
		margin-bottom: 15px;
	}

	.fcb-container > .fcb-tooltip::before {
		right: 25px;
	}

	.fcb-container > .fcb-icon {
		width: 75px;
		height: 75px;
	}

	.fcb-container > .fcb-message {
		bottom: 75px;
		width: 150px;
	}

	.fcb-container > .fcb-message > p {
		font-size: 1rem;
	}

	.fcb-container > .fcb-message > .fcb-phone-link {
		color: #fff !important;
		font-size: 0.95rem;
		padding: 8px 12px;
	}
}
