#scb-sticky-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18);
	-webkit-tap-highlight-color: transparent;
	transform: translateY(calc(100% + var(--scb-y, 0px)));
	transition: transform 0.3s ease;
}

/* Once JS confirms the page has settled, hand control over to two separate values:
   --scb-hide (0% visible / 130% off-screen, always relative to the bar's OWN current
   size, so it stays correct whether the bar is expanded or collapsed to icons-only)
   and --scb-y (a px nudge upward to clear a cookie banner). Starts at 0/0, so this
   also slides the bar in from off-screen on first load. */
#scb-sticky-bar.scb-in {
	transform: translateY(calc(var(--scb-hide, 0%) + var(--scb-y, 0px)));
}

#scb-sticky-bar .scb-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 56px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	color: var(--scb-text-color, #ffffff);
	text-decoration: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	transition: opacity 0.15s ease, filter 0.15s ease;
	white-space: nowrap;
}

#scb-sticky-bar.scb-single .scb-btn {
	flex: 1 1 100%;
}

#scb-sticky-bar .scb-btn:active {
	opacity: 0.85;
	filter: brightness(0.95);
}

#scb-sticky-bar .scb-btn svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
	flex-shrink: 0;
}

#scb-sticky-bar .scb-btn span {
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
	opacity: 1;
	margin-left: 0;
	transition: max-width 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
}

/* Idle-collapsed state: icon only, label fades and shrinks away.
   The link itself is unchanged, so a single tap still calls/messages straight away. */
#scb-sticky-bar.scb-compact .scb-btn span {
	max-width: 0;
	opacity: 0;
	margin-left: 0;
}

#scb-sticky-bar.scb-compact .scb-btn {
	flex: 0 0 auto;
	min-width: 56px;
	padding-left: 16px;
	padding-right: 16px;
}

#scb-sticky-bar.scb-compact {
	justify-content: center;
	gap: 10px;
	background: transparent;
	box-shadow: none;
}

#scb-sticky-bar.scb-compact .scb-btn {
	border-radius: 999px;
	margin-bottom: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Keep fixed, sticky-footer style plugins (cookie banners etc.) from sitting under the bar */
body.scb-has-bar {
	padding-bottom: 56px;
}
