/* Viewport-anchored module position, outside the page and sidebar wrappers. */
#sp-fixed {
	position: fixed;
	right: max(20px, env(safe-area-inset-right, 0px));
	bottom: env(safe-area-inset-bottom, 0px);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	max-width: calc(100% - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
}

#sp-fixed > .sp-module {
	max-width: 100%;
	flex-shrink: 0;
	overflow-wrap: anywhere;
}

#sp-fixed .fixed-links {
	display: flex;
	align-items: center;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 8px;
}

#sp-fixed .fixed-links > li {
	margin: 0;
	padding: 0;
	border: 0;
}

#sp-fixed .fixed-links > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	box-sizing: border-box;
	padding: 6px;
	border: 0;
	border-radius: 50%;
	background: #1F5D7B;
	color: #fff;
	text-decoration: none;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: 0 3px 8px rgb(0 0 0 / 18%);
	transition: transform .2s ease, filter .2s ease;
}

#sp-fixed .fixed-links .phone > a {
	background: #E0BA27;
	color: #222;
}

#sp-fixed .fixed-links .whatsapp > a {
	background: #25D366;
	color: #fff;
}

#sp-fixed .fixed-links a > i {
	font-size: 26px;
	line-height: 1;
	color: inherit;
}
#sp-fixed .fixed-links .fa-phone {
	font-size: 20px;
}

@media (hover: hover) {
	#sp-fixed .fixed-links a:hover {
		transform: translateY(-3px);
		filter: brightness(1.08);
	}
}

#sp-fixed .fixed-links a:focus-visible {
	outline: 3px solid #222;
	outline-offset: 3px;
}

@media (max-width: 480px) {
	#sp-fixed .fixed-links { gap: 10px; }
	#sp-fixed .fixed-links > li > a { width: 52px; height: 52px; }
}

#sp-fixed .fixed-links > li.zamer > a {
	width: auto;
	padding-inline: 22px;
	border-radius: 999px;
	white-space: nowrap;
}

@media (max-width: 480px) {
	#sp-fixed .fixed-links > li.zamer > a {
		padding-inline: 14px;
		font-size: 13px;
	}
}

@media (min-width: 992px) {
	#sp-fixed .fixed-links > li.phone {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	#sp-fixed .fixed-links > li > a { transition: none; transform: none; }
}
