/* Floating Contact Button - front end */

.wpfcta {
	position: fixed;
	z-index: 99999;
	bottom: var(--wpfcta-bottom, 20px);
}

.wpfcta[data-position="left"] {
	left: var(--wpfcta-side, 20px);
}

.wpfcta[data-position="right"] {
	right: var(--wpfcta-side, 20px);
}

.wpfcta__btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--wpfcta-size, 60px);
	height: var(--wpfcta-size, 60px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wpfcta-color, #3dbe4c);
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	-webkit-tap-highlight-color: transparent;
}

.wpfcta__btn svg {
	display: block;
	width: 50%;
	height: 50%;
}

.wpfcta__btn:hover,
.wpfcta__btn:focus {
	color: #fff;
	transform: scale(1.09);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.34);
}

.wpfcta__btn:active {
	transform: scale(0.96);
}

.wpfcta__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* Attention animations, first button / toggle only. */
.wpfcta--anim-pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid var(--wpfcta-color, #3dbe4c);
	border-radius: 50%;
	pointer-events: none;
	animation: wpfcta-ring 1.9s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

@keyframes wpfcta-ring {
	0% {
		transform: scale(1);
		opacity: 0.85;
	}
	70%,
	100% {
		transform: scale(1.7);
		opacity: 0;
	}
}

.wpfcta--anim-bounce {
	animation: wpfcta-bounce 3.2s ease-in-out infinite;
}

@keyframes wpfcta-bounce {
	0%,
	84%,
	92%,
	98%,
	100% {
		transform: translateY(0);
	}
	88% {
		transform: translateY(-9px);
	}
	95% {
		transform: translateY(-4px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpfcta--anim-pulse::after,
	.wpfcta--anim-bounce {
		animation: none;
	}
}

/* Style: stack */
.wpfcta--stack {
	display: flex;
	flex-direction: column;
	gap: var(--wpfcta-gap, 12px);
}

/* Style: fab */
.wpfcta--fab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wpfcta-gap, 12px);
}

.wpfcta--fab .wpfcta__items {
	display: flex;
	flex-direction: column;
	gap: var(--wpfcta-gap, 12px);
}

.wpfcta--fab .wpfcta__items .wpfcta__btn {
	opacity: 0;
	transform: translateY(18px) scale(0.4);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.2, 1.3, 0.35, 1);
	transition-delay: calc(var(--wpfcta-i, 0) * 45ms);
}

.wpfcta--fab.is-open .wpfcta__items .wpfcta__btn {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.wpfcta__toggle {
	--wpfcta-color: #1f2937;
}

.wpfcta__ico {
	position: absolute;
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.wpfcta__ico--close {
	opacity: 0;
	transform: rotate(-90deg) scale(0.6);
}

.wpfcta--fab.is-open .wpfcta__ico--open {
	opacity: 0;
	transform: rotate(90deg) scale(0.6);
}

.wpfcta--fab.is-open .wpfcta__ico--close {
	opacity: 1;
	transform: none;
}

.wpfcta--fab.is-open .wpfcta__toggle::after {
	animation: none;
	opacity: 0;
}

.wpfcta-scrim {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(15, 23, 42, 0.35);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.wpfcta-scrim.is-open {
	opacity: 1;
	pointer-events: auto;
}

.wpfcta-scrim[hidden] {
	display: none;
}

/* Style: dock */
.wpfcta--dock .wpfcta__dock {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: calc(var(--wpfcta-gap, 12px) - 2px);
	padding: 8px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 10px 34px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.wpfcta--dock .wpfcta__btn {
	width: calc(var(--wpfcta-size, 60px) - 10px);
	height: calc(var(--wpfcta-size, 60px) - 10px);
	box-shadow: none;
}

.wpfcta--dock .wpfcta__btn:hover,
.wpfcta--dock .wpfcta__btn:focus {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
