.fcb-bar {
	--fcb-icon: #fff;
	--fcb-bg: #07a86b;
	position: fixed;
	right: 18px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fcb-right-middle {
	top: 50%;
	transform: translateY(-50%);
}

.fcb-right-bottom {
	bottom: 24px;
}

.fcb-button {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	padding: 12px;
	border: 0;
	border-radius: 50%;
	background: var(--fcb-bg);
	color: var(--fcb-icon);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
	cursor: pointer;
	transition: transform .2s ease, filter .2s ease;
}

.fcb-button:hover,
.fcb-button:focus-visible {
	color: var(--fcb-icon);
	filter: brightness(.9);
	transform: translateX(-3px);
}

.fcb-button:focus-visible {
	outline: 3px solid rgba(30, 115, 190, .45);
	outline-offset: 2px;
}

.fcb-button svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.fcb-wechat-wrap,
.fcb-contact-wrap {
	position: relative;
}

.fcb-qr,
.fcb-tooltip {
	position: absolute;
	right: 60px;
	bottom: 0;
	padding: 10px;
	border-radius: 8px;
	background: #fff;
	color: #222;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
	opacity: 0;
	visibility: hidden;
	transform: translateX(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.fcb-qr {
	width: 180px;
}

.fcb-tooltip {
	bottom: 50%;
	width: max-content;
	max-width: min(320px, calc(100vw - 90px));
	padding: 9px 12px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	white-space: nowrap;
	transform: translate(8px, 50%);
	pointer-events: none;
}

.fcb-qr img {
	display: block;
	width: 100%;
	height: auto;
}

.fcb-wechat-wrap:hover .fcb-qr,
.fcb-wechat-wrap:focus-within .fcb-qr,
.fcb-contact-wrap:hover .fcb-tooltip,
.fcb-contact-wrap:focus-within .fcb-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.fcb-contact-wrap:hover .fcb-tooltip,
.fcb-contact-wrap:focus-within .fcb-tooltip {
	transform: translate(0, 50%);
}

@media (max-width: 600px) {
	.fcb-bar {
		right: 10px;
	}
	.fcb-button {
		width: 44px;
		height: 44px;
	}
	.fcb-qr,
	.fcb-tooltip {
		right: 52px;
	}
	.fcb-qr {
		width: min(160px, calc(100vw - 80px));
	}
	.fcb-tooltip {
		white-space: normal;
		overflow-wrap: anywhere;
	}
}
