/* Base Launcher Container Settings */
:root {
	--ava-bottom-offset: 24px;
	--ava-side-offset: 24px;
	--ava-border-radius: 100%;
}

/* Common Launcher Button Reset */
.aiva-launcher {
	position: fixed;
	bottom: var(--ava-bottom-offset);
	right: var(--ava-side-offset);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 0;
	border-radius: var(--ava-border-radius);
	-webkit-tap-highlight-color: transparent;
}

/* Classic Launcher Specifics */
.ava-launcher-classic {
	/* Managed by realtime-voice-widget.css */
}

/* Robot Launcher Specifics */
.aiva-launcher-robot-btn {
	background: transparent !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	width: 140px !important;
	height: 140px !important;
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.aiva-launcher-robot-btn:hover,
.aiva-launcher-robot-btn:focus {
	transform: scale(1.05);
}

.aiva-launcher-robot-btn:active {
	transform: scale(0.95);
}

/* Robot Launcher Container */
.ava-launcher-container {
	position: fixed;
	bottom: var(--ava-bottom-offset);
	right: var(--ava-side-offset);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	pointer-events: none; /* Let clicks pass through container */
}

/* The actual button inside the container */
.ava-launcher-container .aiva-launcher {
	position: relative; /* Override fixed */
	bottom: auto;
	right: auto;
	pointer-events: auto; /* Re-enable clicks */
}

.ava-lottie-container {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: inherit;
	transform: scale(1.15); /* Make the robot fill the area better */
}

/* Adjust Message Bubble Position for Robot */
.aiva-launcher-robot-btn .aiva-agent-message {
	bottom: 110px !important; /* Move higher */
	right: 80% !important; /* Move further right */
}


/* Mobile specific styling */
@media (max-width: 768px) {
	.ava-launcher-container {
		display: none; /* Controlled by JS showOnMobile setting */
		bottom: 12px;
		right: 10px;
	}
	.ava-launcher-container.ava-mobile-visible {
		display: flex;
	}
	.aiva-launcher.ava-mobile-hidden {
		display: none;
	}
	.aiva-launcher-robot-btn {
		width: 120px !important;
		height: 120px !important;
	}
	.aiva-launcher-robot-btn .aiva-agent-message {
		bottom: 100px !important;
		right: 85% !important;
	}
}

/* Desktop specific styling */
@media (min-width: 769px) {
	.ava-launcher-container {
		display: none; /* Controlled by JS showOnDesktop setting */
	}
	.ava-launcher-container.ava-desktop-visible {
		display: flex;
	}
	.aiva-launcher.ava-desktop-hidden {
		display: none;
	}
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.aiva-launcher {
		transition: none;
	}
	.aiva-launcher-robot-btn:hover,
	.aiva-launcher-robot-btn:focus,
	.aiva-launcher-robot-btn:active {
		transform: none;
	}
}
