.trccb-call-button {
	align-items: center;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0.15);
	background: transparent;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	box-sizing: border-box;
	color: #000 !important;
	display: flex;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	gap: 9px;
	line-height: 1;
	min-height: 48px;
	padding: 11px 8px;
	position: fixed;
	text-decoration: none !important;
	transition: background-color 160ms ease, transform 160ms ease;
	white-space: nowrap;
	z-index: 99990;
}

.trccb-call-button:hover {
	background: rgba(0, 0, 0, 0.08);
	box-shadow: none;
	color: #000 !important;
	transform: translateY(-1px);
}

.trccb-call-button:active {
	transform: translateY(1px);
}

.trccb-call-button:focus-visible {
	outline: 3px solid #000;
	outline-offset: 3px;
}

.trccb-call-button__icon {
	fill: currentColor;
	flex: 0 0 22px;
	height: 22px;
	width: 22px;
}

.trccb-call-button--top-left {
	left: max(16px, env(safe-area-inset-left));
	top: max(16px, env(safe-area-inset-top));
}

.trccb-call-button--top-right {
	right: max(16px, env(safe-area-inset-right));
	top: max(16px, env(safe-area-inset-top));
}

.trccb-call-button--bottom-left {
	bottom: max(16px, env(safe-area-inset-bottom));
	left: max(16px, env(safe-area-inset-left));
}

.trccb-call-button--bottom-right {
	bottom: max(16px, env(safe-area-inset-bottom));
	right: max(16px, env(safe-area-inset-right));
}

/* The requested default: centered directly beneath the service heading. */
.trccb-call-button--after-service-text {
	display: none;
	margin: 18px auto 0;
	position: static;
	width: fit-content;
	z-index: auto;
}

.trccb-call-button--after-service-text.trccb-call-button--placed {
	display: flex;
}

/* Never leave the call action invisible if a theme changes its header markup. */
.trccb-call-button--after-service-text.trccb-call-button--fallback {
	bottom: max(16px, env(safe-area-inset-bottom));
	display: flex;
	left: max(16px, env(safe-area-inset-left));
	position: fixed;
	z-index: 99990;
}

/* Keep top-positioned buttons below WordPress' logged-in admin toolbar. */
.admin-bar .trccb-call-button--top-left,
.admin-bar .trccb-call-button--top-right {
	top: 62px;
}

@media screen and (min-width: 783px) {
	.admin-bar .trccb-call-button--top-left,
	.admin-bar .trccb-call-button--top-right {
		top: 48px;
	}

	.trccb-call-button--mobile {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.trccb-call-button {
		transition: none;
	}
}

