/* Keep the portal's TOP control above the community-style floating trigger. */
#floatBtn:has(> #link-299-18 .dx-chatbot-badge) {
	left: auto;
	right: 24px;
	z-index: 1000;
}

#floatBtn:has(.dx-chatbot-badge):not(.unstuck) {
	bottom: 84px;
}

/* TOP still unpins above the footer; the launcher itself stays fixed. */
#floatBtn.unstuck:has(.dx-chatbot-badge) {
	top: -274px;
	bottom: auto;
}

#floatBtn #link-299-18.ask-ai-floating-button {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1000;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	width: auto;
	height: auto;
	padding: 12px 20px 12px 14px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(120deg, #0839b3 0%, #1f5fff 100%);
	box-shadow: 0 6px 20px rgba(31, 95, 255, .3);
	color: #fff;
	font: 600 15px/1.2 Pretendard, system-ui, sans-serif;
	letter-spacing: -.01em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: all 120ms cubic-bezier(.2, .8, .2, 1);
}

#floatBtn #link-299-18:hover {
	background: linear-gradient(120deg, #0b4ae6 0%, #33b6ee 140%);
	box-shadow: 0 12px 32px rgba(10, 31, 68, .12);
	transform: translateY(-1px);
}

#floatBtn #link-299-18:active {
	transform: scale(.98);
}

#floatBtn #link-299-18:focus-visible {
	outline: 3px solid rgba(31, 95, 255, .25);
	outline-offset: 2px;
}

#floatBtn #link-299-18 > span {
	font-family: inherit;
}

#floatBtn .dx-chatbot-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 8px;
	background: #fff;
	color: #0a1f44;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
}

/* Oxygen hides this entire group at tablet widths. Expose just the launcher. */
@media (max-width: 991px) {
	#floatBtn:has(> #link-299-18 .dx-chatbot-badge) {
		display: contents;
	}

	#floatBtn:has(.dx-chatbot-badge) > .top-btn {
		display: none;
	}
}

@media (max-width: 600px) {
	#floatBtn #link-299-18.ask-ai-floating-button {
		right: 16px;
		bottom: 16px;
		padding: 10px 16px 10px 12px;
		font-size: 14px;
	}
}
