/* Wobble Contact Buttons — front-end styles */

:root {
	--wcb-email-color: #2271b1;
	--wcb-call-color: #25d366;
	--wcb-icon-color: #ffffff;
	--wcb-btn-size: 60px;
	--wcb-gap: 16px;
	--wcb-zindex: 999999;
}

.wcb-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wcb-gap);
}

.wcb-floating {
	position: fixed;
	bottom: 28px;
	z-index: var(--wcb-zindex);
}

.wcb-floating.wcb-bottom-right {
	right: 24px;
	align-items: flex-end;
}

.wcb-floating.wcb-bottom-left {
	left: 24px;
	align-items: flex-start;
}

.wcb-inline {
	position: relative;
	flex-direction: row;
	justify-content: center;
	padding: 20px 0;
}

.wcb-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--wcb-btn-size);
	height: var(--wcb-btn-size);
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	text-decoration: none;
	transform-origin: center center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wcb-btn:hover,
.wcb-btn:focus-visible {
	transform: scale(1.12);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
	animation-play-state: paused;
}

.wcb-btn-email {
	background-color: var(--wcb-email-color);
}

.wcb-btn-call {
	background-color: var(--wcb-call-color);
}

.wcb-icon {
	width: 46%;
	height: 46%;
	color: var(--wcb-icon-color);
	pointer-events: none;
}

/* Tooltip */
.wcb-tooltip {
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	transform: translateY(-50%) translateX(6px);
	background: #1e1e1e;
	color: #fff;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.wcb-tooltip::after {
	content: "";
	position: absolute;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent transparent #1e1e1e;
}

.wcb-bottom-left .wcb-tooltip {
	right: auto;
	left: calc(100% + 12px);
	transform: translateY(-50%) translateX(-6px);
}

.wcb-bottom-left .wcb-tooltip::after {
	left: auto;
	right: 100%;
	border-color: transparent #1e1e1e transparent transparent;
}

.wcb-btn:hover .wcb-tooltip,
.wcb-btn:focus-visible .wcb-tooltip {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

.wcb-inline .wcb-tooltip {
	display: none;
}

/* -------------------------------------------------- */
/* Ripple / glow ring effect (layered behind the icon) */
/* -------------------------------------------------- */
.wcb-ripple::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: inherit;
	opacity: 0.55;
	z-index: -1;
	animation: wcb-ripple-anim 2.2s ease-out infinite;
}

.wcb-btn-email.wcb-ripple::before {
	animation-delay: 0.4s;
}

@keyframes wcb-ripple-anim {
	0% {
		transform: scale(1);
		opacity: 0.55;
	}
	100% {
		transform: scale(1.9);
		opacity: 0;
	}
}

/* -------------------------------------------------- */
/* "High-type" attention animations                    */
/* -------------------------------------------------- */

.wcb-anim-wobble {
	animation-name: wcb-wobble;
	animation-duration: 2.4s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
}

@keyframes wcb-wobble {
	0%, 100% { transform: rotate(0deg); }
	12% { transform: rotate(-10deg); }
	24% { transform: rotate(8deg); }
	36% { transform: rotate(-6deg); }
	48% { transform: rotate(4deg); }
	60% { transform: rotate(-3deg); }
	72% { transform: rotate(2deg); }
	84% { transform: rotate(0deg); }
}

.wcb-anim-pulse {
	animation-name: wcb-pulse;
	animation-duration: 1.8s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
}

@keyframes wcb-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.14); }
}

.wcb-anim-tada {
	animation-name: wcb-tada;
	animation-duration: 2.6s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
}

@keyframes wcb-tada {
	0% { transform: scale(1) rotate(0); }
	8%, 18% { transform: scale(0.9) rotate(-4deg); }
	28%, 48%, 68% { transform: scale(1.12) rotate(4deg); }
	38%, 58%, 78% { transform: scale(1.12) rotate(-4deg); }
	88% { transform: scale(1) rotate(0); }
	100% { transform: scale(1) rotate(0); }
}

.wcb-anim-ring {
	animation-name: wcb-ring;
	animation-duration: 2.8s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
}

@keyframes wcb-ring {
	0%, 100% { transform: rotate(0); }
	4% { transform: rotate(16deg); }
	8% { transform: rotate(-14deg); }
	12% { transform: rotate(12deg); }
	16% { transform: rotate(-10deg); }
	20% { transform: rotate(8deg); }
	24% { transform: rotate(-6deg); }
	28% { transform: rotate(4deg); }
	32% { transform: rotate(-2deg); }
	36% { transform: rotate(0); }
}

.wcb-anim-bounce {
	animation-name: wcb-bounce;
	animation-duration: 2s;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
}

@keyframes wcb-bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
	40% { transform: translateY(-16px); }
	60% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
	.wcb-btn,
	.wcb-ripple::before {
		animation: none !important;
	}
}

@media (max-width: 480px) {
	.wcb-floating {
		bottom: 16px;
	}
	.wcb-floating.wcb-bottom-right {
		right: 14px;
	}
	.wcb-floating.wcb-bottom-left {
		left: 14px;
	}
}
