.bauvora-call-fab {
	--fab-navy: #00308c;
	--fab-navy-deep: #001f5c;
	--fab-amber: #f1a12a;
	--fab-white: #ffffff;

	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(2.75rem, calc(env(safe-area-inset-bottom) + 1.5rem));
	z-index: 9500;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	max-width: calc(100vw - 2rem);
	padding: 0.7rem 1rem 0.7rem 0.7rem;
	border-radius: 999px;
	background: linear-gradient(145deg, var(--fab-navy) 0%, var(--fab-navy-deep) 100%);
	color: var(--fab-white);
	text-decoration: none;
	box-shadow:
		0 10px 28px rgba(0, 31, 92, 0.35),
		0 2px 0 rgba(255, 255, 255, 0.12) inset;
	transform: translateY(0);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		background 0.25s ease,
		opacity 0.25s ease,
		visibility 0.25s ease;
	animation: bauvoraCallIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.bauvora-call-fab:hover,
.bauvora-call-fab:focus-visible {
	transform: translateY(-2px);
	background: linear-gradient(145deg, #0a3ea8 0%, var(--fab-navy) 100%);
	box-shadow:
		0 14px 32px rgba(0, 31, 92, 0.42),
		0 2px 0 rgba(255, 255, 255, 0.14) inset;
	outline: none;
}

.bauvora-call-fab:focus-visible {
	box-shadow:
		0 0 0 3px var(--fab-white),
		0 0 0 6px var(--fab-amber),
		0 14px 32px rgba(0, 31, 92, 0.42);
}

.bauvora-call-fab__icon {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	width: 2.75rem;
	height: 2.75rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--fab-amber);
	color: var(--fab-navy-deep);
}

.bauvora-call-fab__pulse {
	position: absolute;
	left: 0.7rem;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: rgba(241, 161, 42, 0.45);
	animation: bauvoraCallPulse 2.4s ease-out infinite;
	pointer-events: none;
}

.bauvora-call-fab__label {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
	padding-right: 0.25rem;
}

.bauvora-call-fab__eyebrow {
	font-family: "Segoe UI", system-ui, sans-serif;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.1;
}

.bauvora-call-fab__number {
	font-family: "Segoe UI", system-ui, sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Lift above cookie banner when visible */
body:has(.bauvora-cookie-banner.is-visible) .bauvora-call-fab {
	bottom: max(8.75rem, calc(env(safe-area-inset-bottom) + 7.75rem));
}

@keyframes bauvoraCallIn {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.92);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes bauvoraCallPulse {
	0% {
		transform: scale(1);
		opacity: 0.55;
	}
	70% {
		transform: scale(1.55);
		opacity: 0;
	}
	100% {
		transform: scale(1.55);
		opacity: 0;
	}
}

@media (max-width: 520px) {
	.bauvora-call-fab {
		padding: 0.65rem;
		gap: 0;
		right: max(0.85rem, env(safe-area-inset-right));
		bottom: max(2.5rem, calc(env(safe-area-inset-bottom) + 1.25rem));
	}

	.bauvora-call-fab__label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.bauvora-call-fab__pulse {
		left: 0.65rem;
	}
}

@media (max-width: 520px) and (orientation: landscape) {
	.bauvora-call-fab {
		bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem));
		transform: scale(0.92);
		transform-origin: bottom right;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bauvora-call-fab,
	.bauvora-call-fab__pulse {
		animation: none;
	}

	.bauvora-call-fab:hover,
	.bauvora-call-fab:focus-visible {
		transform: none;
	}
}
