.esscb-floating-social,
.esscb-floating-social * {
	box-sizing: border-box;
}

.esscb-floating-social {
	position: fixed;
	top: var(--esscb-top, 55%);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: var(--esscb-gap, 10px);
	transform: translateY(-50%);
	font-family: Arial, sans-serif;
}

.esscb-position-right {
	right: var(--esscb-edge, 20px);
}

.esscb-position-left {
	left: var(--esscb-edge, 20px);
}

.esscb-button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--esscb-size, 54px);
	height: var(--esscb-size, 54px);
	padding: 0;
	overflow: visible;
	color: #fff !important;
	text-decoration: none !important;
	background: var(--esscb-color, #118fe0);
	border: 2px solid rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(0, 83, 149, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
	transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
	-webkit-tap-highlight-color: transparent;
}

.esscb-button:hover,
.esscb-button:focus-visible {
	color: #fff !important;
	background: var(--esscb-hover, #0879c8);
	box-shadow: 0 11px 30px rgba(0, 83, 149, 0.38), 0 3px 8px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px) scale(1.06);
	outline: none;
}

.esscb-button:focus-visible {
	outline: 3px solid rgba(17, 143, 224, 0.28);
	outline-offset: 3px;
}

.esscb-icon {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52%;
	height: 52%;
	line-height: 1;
}

.esscb-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.esscb-zalo .esscb-icon {
	width: 72%;
	height: 56%;
}

.esscb-zalo-badge {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: Arial, Helvetica, sans-serif;
	font-size: calc(var(--esscb-size, 54px) * 0.22);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.7px;
	color: var(--esscb-color, #118fe0);
	background: #fff;
	border-radius: 7px;
}

.esscb-zalo-badge::after {
	position: absolute;
	bottom: -3px;
	left: 8px;
	width: 0;
	height: 0;
	content: '';
	border-top: 6px solid #fff;
	border-right: 6px solid transparent;
}

.esscb-phone::before {
	position: absolute;
	inset: -2px;
	content: '';
	border: 2px solid var(--esscb-color, #118fe0);
	border-radius: inherit;
	animation: esscb-pulse 2s infinite;
}

.esscb-button::after {
	position: absolute;
	top: 50%;
	width: max-content;
	max-width: 220px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
	pointer-events: none;
	content: attr(data-label);
	background: #102743;
	border-radius: 7px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	opacity: 0;
	transition: opacity 0.18s ease, transform 0.18s ease;
	transform: translateY(-50%);
}

.esscb-position-right .esscb-button::after {
	right: calc(100% + 12px);
	transform: translate(5px, -50%);
}

.esscb-position-left .esscb-button::after {
	left: calc(100% + 12px);
	transform: translate(-5px, -50%);
}

.esscb-button:hover::after,
.esscb-button:focus-visible::after {
	opacity: 1;
	transform: translate(0, -50%);
}

@keyframes esscb-pulse {
	0% {
		opacity: 0.75;
		transform: scale(1);
	}
	70%,
	100% {
		opacity: 0;
		transform: scale(1.35);
	}
}

@media (max-width: 767px) {
	.esscb-floating-social {
		--esscb-edge: 10px;
		--esscb-gap: 8px;
	}

	.esscb-button {
		width: min(var(--esscb-size, 54px), 48px);
		height: min(var(--esscb-size, 54px), 48px);
	}

	.esscb-button::after {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.esscb-button,
	.esscb-button::after {
		transition: none;
	}

	.esscb-phone::before {
		animation: none;
	}
}
