/* ==========================================================================
   Floating contact buttons — vertical stack of circular icon buttons.
   Default: icon only (circle). Hover: label slides out to the left.
   Replaces the old full-width 3-color bottom bar. Site-wide.
   Note: this widget lives inside footer#footer, which has a site-wide rule
   "footer#footer a { border-radius:5px !important; color:...; }" — an ID
   selector, so class-only selectors can never beat it even with !important
   (ID tier is compared before class tier). We piggyback on the links' own
   IDs (#chatzalo / #goidien2 / #goidien) to tie the ID tier and win on the
   class tier.
   ========================================================================== */

.bottom-contact.floating-contact-v2 {
	display: block !important;
	position: fixed !important;
	left: auto !important;
	right: 18px !important;
	bottom: 18px !important;
	width: auto !important;
	background: none !important;
	border-top: none !important;
	box-shadow: none !important;
	z-index: 999 !important;
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.floating-contact-v2 ul {
	display: flex !important;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.floating-contact-v2 ul li {
	width: auto !important;
	float: none !important;
	background: none !important;
	margin: 0 !important;
	text-align: right;
}

/* Base pill/circle button: 52px circle by default, grows leftward on hover */
.floating-contact-v2 .fc-btn {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	min-width: 52px;
	height: 52px !important;
	max-width: 52px;
	overflow: hidden;
	text-decoration: none !important;
	box-shadow: 0 6px 16px rgba(16, 24, 40, 0.22) !important;
	transition: max-width 0.25s ease;
	line-height: normal !important;
	position: relative !important;
	white-space: nowrap;
}
.floating-contact-v2 .fc-btn:hover {
	max-width: 320px;
}

.floating-contact-v2 .fc-icon {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.floating-contact-v2 .fc-icon svg {
	flex-shrink: 0;
}

.floating-contact-v2 .fc-label {
	display: inline-block;
	padding: 0;
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	font-weight: 700;
	font-size: 13px !important;
	white-space: nowrap;
	transition: max-width 0.25s ease, opacity 0.2s ease 0.05s, padding 0.25s ease;
}
.floating-contact-v2 .fc-btn:hover .fc-label {
	max-width: 260px;
	opacity: 1;
	padding: 0 16px 0 4px;
}

/* Colors (tie the ID tier via #chatzalo / #goidien2 / #goidien to beat
   footer#footer a{border-radius/color !important}) */
.floating-contact-v2 .fc-zalo .fc-btn,
.floating-contact-v2 #chatzalo {
	border-radius: 999px !important;
	background: #1b64f2 !important;
	color: #fff !important;
}
.floating-contact-v2 .fc-call-1 .fc-btn,
.floating-contact-v2 #goidien2 {
	border-radius: 999px !important;
	background: #16a34a !important;
	color: #fff !important;
}
.floating-contact-v2 .fc-call-2 .fc-btn,
.floating-contact-v2 #goidien {
	border-radius: 999px !important;
	background: #0f2942 !important;
	color: #fff !important;
}

@media (max-width: 549px) {
	.bottom-contact.floating-contact-v2 { right: 12px; bottom: 12px; }
	.floating-contact-v2 .fc-btn { min-width: 46px; height: 46px !important; max-width: 46px; }
	.floating-contact-v2 .fc-icon { flex-basis: 46px; width: 46px; height: 46px; }
	.floating-contact-v2 .fc-label { font-size: 12px !important; }
}
