.vtxvn-floating-tools {
	position: fixed;
	z-index: 10010;
	right: 18px;
	bottom: calc(18px + env(safe-area-inset-bottom));
	display: flex;
	align-items: flex-end;
	font-family: inherit;
	pointer-events: none;
	transform-origin: right bottom;
	animation: vtxvn-floating-tools-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes vtxvn-floating-tools-enter {
	from {
		opacity: 0;
		transform: translate3d(0, 14px, 0) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@keyframes vtxvn-floating-tool-button-enter {
	from {
		opacity: 0;
		transform: translate3d(8px, 10px, 0) scale(0.9);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@keyframes vtxvn-floating-panel-enter {
	from {
		opacity: 0;
		transform: translate3d(10px, 8px, 0) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

.vtxvn-floating-tools [hidden] {
	display: none !important;
}

body.vtxvn-vchat-integrated #vnp_eyechat {
	display: none !important;
}

body.vtxvn-vchat-integrated #vnp_chat.vtxvn-vchat-collapsed {
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.vtxvn-floating-tools.has-open-chat {
	visibility: hidden;
}

.vtxvn-floating-tools__buttons {
	display: grid;
	gap: 10px;
	pointer-events: auto;
}

.vtxvn-floating-tools__button,
.vtxvn-floating-tools__panel-close {
	margin: 0;
	padding: 0;
	border: 0;
	appearance: none;
	-webkit-appearance: none;
}

.vtxvn-floating-tools__button {
	position: relative;
	display: grid;
	width: 50px;
	height: 50px;
	min-width: 50px;
	min-height: 50px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 16px;
	background: #0878c9;
	box-shadow: 0 8px 24px rgba(4, 46, 84, 0.22);
	color: #fff;
	cursor: pointer;
	transform: translate3d(0, 0, 0) scale(1);
	transform-origin: center;
	animation: vtxvn-floating-tool-button-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
	transition:
		transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.28s ease,
		background-color 0.28s ease,
		border-color 0.28s ease;
}

.vtxvn-floating-tools__button:nth-child(2) { animation-delay: 0.05s; }
.vtxvn-floating-tools__button:nth-child(3) { animation-delay: 0.1s; }

.vtxvn-floating-tools__button:hover,
.vtxvn-floating-tools__button:focus-visible {
	background: #006ab5;
	box-shadow: 0 14px 32px rgba(4, 46, 84, 0.28);
	color: #fff;
	transform: translate3d(0, -3px, 0) scale(1.035);
}

.vtxvn-floating-tools__button:active {
	box-shadow: 0 7px 18px rgba(4, 46, 84, 0.24);
	transform: translate3d(0, -1px, 0) scale(0.97);
}

.vtxvn-floating-tools__button:focus-visible,
.vtxvn-floating-tools__panel-close:focus-visible,
.vtxvn-floating-tools__contact-action:focus-visible {
	outline: 3px solid rgba(0, 136, 229, 0.28);
	outline-offset: 3px;
}

.vtxvn-floating-tools__button--chat {
	background: #119b61;
}

.vtxvn-floating-tools__button--chat:hover,
.vtxvn-floating-tools__button--chat:focus-visible {
	background: #078650;
}

.vtxvn-floating-tools__button--top {
	background: #123f69;
}

.vtxvn-floating-tools__button--top:hover,
.vtxvn-floating-tools__button--top:focus-visible {
	background: #0a3156;
}

.vtxvn-floating-tools__button > svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
	transform: translateZ(0);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.vtxvn-floating-tools__button:hover > svg,
.vtxvn-floating-tools__button:focus-visible > svg {
	transform: translateZ(0) scale(1.08);
}

.vtxvn-floating-tools__button-label {
	position: absolute;
	right: calc(100% + 10px);
	top: 50%;
	width: max-content;
	max-width: 180px;
	padding: 7px 10px;
	border-radius: 8px;
	opacity: 0;
	background: #102f4d;
	box-shadow: 0 6px 18px rgba(4, 33, 58, 0.2);
	color: #fff;
	font-size: 12px;
	font-weight: 650;
	line-height: 1.2;
	pointer-events: none;
	transform: translate(6px, -50%);
	transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.vtxvn-floating-tools__button:hover .vtxvn-floating-tools__button-label,
.vtxvn-floating-tools__button:focus-visible .vtxvn-floating-tools__button-label {
	opacity: 1;
	transform: translate(0, -50%);
}

.vtxvn-floating-tools.has-open-panel .vtxvn-floating-tools__button-label {
	display: none;
}

.vtxvn-floating-tools__panel {
	width: min(340px, calc(100vw - 92px));
	max-height: min(570px, calc(100vh - 36px));
	margin-right: 12px;
	padding: 18px;
	overflow: auto;
	border: 1px solid #cddfeb;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 20px 54px rgba(5, 38, 67, 0.24);
	pointer-events: auto;
	transform-origin: right bottom;
	animation: vtxvn-floating-panel-enter 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.vtxvn-floating-tools__panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.vtxvn-floating-tools__panel-header span {
	display: block;
	margin-bottom: 3px;
	color: #198c5a;
	font-size: 11px;
	font-weight: 650;
}

.vtxvn-floating-tools__panel-title {
	margin: 0;
	color: #0d3b66;
	font-size: 20px;
	line-height: 1.25;
}

.vtxvn-floating-tools__panel-close {
	display: grid;
	width: 34px;
	height: 34px;
	min-width: 34px;
	place-items: center;
	border: 1px solid #d5e3ed;
	border-radius: 10px;
	background: #f5f9fc;
	color: #48667f;
	cursor: pointer;
	transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.vtxvn-floating-tools__panel-close:hover {
	background: #eaf4fa;
	color: #0878c9;
	transform: scale(1.04);
}

.vtxvn-floating-tools__panel-close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.vtxvn-floating-tools__panel-intro {
	margin: 9px 0 14px;
	color: #61768a;
	font-size: 12px;
}

.vtxvn-floating-tools__contacts {
	display: grid;
	gap: 8px;
}

.vtxvn-floating-tools__contact {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 10px;
	border: 1px solid #dce9f2;
	border-radius: 13px;
	background: #f8fbfd;
}

.vtxvn-floating-tools__contact-icon {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 11px;
	background: #e4f4fd;
	color: #0878c9;
}

.vtxvn-floating-tools__contact-icon svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.vtxvn-floating-tools__contact-info {
	min-width: 0;
}

.vtxvn-floating-tools__contact-info strong,
.vtxvn-floating-tools__contact-info a {
	display: block;
}

.vtxvn-floating-tools__contact-info strong {
	overflow: hidden;
	color: #183b5b;
	font-size: 13px;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vtxvn-floating-tools__contact-info a {
	margin-top: 3px;
	color: #e5232d;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.vtxvn-floating-tools__contact-actions {
	display: flex;
	gap: 6px;
}

.vtxvn-floating-tools__contact-action {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border: 1px solid #b9d9eb;
	border-radius: 10px;
	background: #fff;
	color: #0878c9;
	font-size: 9px;
	font-weight: 750;
	text-decoration: none;
	transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.vtxvn-floating-tools__contact-action:hover {
	border-color: #0878c9;
	background: #edf8fe;
	color: #006ebc;
	transform: translateY(-1px);
}

.vtxvn-floating-tools__contact-action svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.vtxvn-floating-tools__contact-action--zalo {
	border-color: #0878c9;
	background: #0878c9;
	color: #fff;
}

.vtxvn-floating-tools__contact-action--zalo:hover {
	background: #006ebc;
	color: #fff;
}

.vtxvn-floating-tools__status {
	position: absolute;
	right: 0;
	bottom: calc(100% + 10px);
	width: max-content;
	max-width: min(280px, calc(100vw - 36px));
	margin: 0;
	padding: 9px 12px;
	border: 1px solid #cce1ee;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(4, 46, 84, 0.18);
	color: #294b67;
	font-size: 12px;
	pointer-events: auto;
}

.vtxvn-floating-tools__status.is-error {
	border-color: #f0c3c6;
	color: #b4232d;
}

@media (max-width: 767px) {
	.vtxvn-floating-tools {
		right: 10px;
		bottom: calc(12px + env(safe-area-inset-bottom));
	}

	.vtxvn-floating-tools__buttons {
		gap: 8px;
	}

	.vtxvn-floating-tools__button {
		width: 46px;
		height: 46px;
		min-width: 46px;
		min-height: 46px;
		border-radius: 14px;
	}

	.vtxvn-floating-tools__button-label {
		display: none;
	}

	.vtxvn-floating-tools__panel {
		width: calc(100vw - 78px);
		max-height: calc(100vh - 24px - env(safe-area-inset-bottom));
		margin-right: 10px;
		padding: 15px;
		border-radius: 15px;
	}

	.vtxvn-floating-tools__contact {
		grid-template-columns: 36px minmax(0, 1fr) auto;
		gap: 8px;
		padding: 9px;
	}

	.vtxvn-floating-tools__contact-icon {
		width: 36px;
		height: 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vtxvn-floating-tools,
	.vtxvn-floating-tools__panel,
	.vtxvn-floating-tools__button,
	.vtxvn-floating-tools__button-label,
	.vtxvn-floating-tools__button > svg,
	.vtxvn-floating-tools__panel-close,
	.vtxvn-floating-tools__contact-action {
		animation: none !important;
		transition: none;
	}
}
