.dbiz-chatbot {
	position: fixed;
	bottom: 24px;
	right: 0;
	z-index: 9999;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.dbiz-chatbot * {
	box-sizing: border-box;
}

.dbiz-chatbot__button {
	border: none;
	background: transparent;
	border-radius: 999px;
	display: block;
	padding: 0;
	width: 60px;
	margin-right: 24px;
	/* height: 120px; */
	cursor: pointer;
	pointer-events: auto;
	position: relative;
	transition: transform 0.25s ease;
}

.dbiz-chatbot__button::before {
	content: 'Tôi là Ms.Sunny, tôi có thể hỗ trợ gì cho bạn?';
	position: absolute;
	bottom: calc(100% + 12px);
	left: -143%;
	transform: translateX(-50%);
	background: #172a52;
	color: #ffffff;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 10000;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.dbiz-chatbot__button.show-tooltip::before {
	opacity: 1;
	visibility: visible;
}

.dbiz-chatbot__button::after {
	content: '';
	position: absolute;
	bottom: calc(100%);
	left: 10%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #172a52;
	z-index: 10001;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.dbiz-chatbot__button.show-tooltip::after {
	opacity: 1;
	visibility: visible;
}

.dbiz-chatbot__button img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	position: relative;
	z-index: 1;
}

/* Glow effect using box-shadow on the button itself */
.dbiz-chatbot__button {
	box-shadow: 0 0 0 0 rgba(129, 104, 255, 0);
	transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.dbiz-chatbot__button:hover {
	transform: translateY(-2px);
}

.dbiz-chatbot.is-open .dbiz-chatbot__button {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	box-shadow: 0 0 30px 15px rgba(129, 104, 255, 0.3);
}

.dbiz-chatbot__label {
	font-size: 0.95rem;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.dbiz-chatbot {
		bottom: 16px;
		right: 0;
	}

	.dbiz-chatbot__label {
		display: none;
	}

	.dbiz-chatbot__button::before,
	.dbiz-chatbot__button::after {
		display: none;
	}
}

.dbiz-chatbot .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

