/**
 * Voice Agent Widget Styles
 *
 * Container styling for inline and floating modes.
 */

/* Inline mode */
.va-widget-container.va-inline {
	display: flex;
	justify-content: center;
	margin: 1em 0;
}

.va-widget-container.va-inline iframe {
	max-width: 100%;
}

/* Floating mode */
.va-widget-container.va-floating {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 99999;
}

/* Toggle button */
.va-floating-toggle {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	background: #4f46e5;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: background-color 0.2s, transform 0.2s;
	position: relative;
	z-index: 2;
}

.va-floating-toggle:hover {
	background: #4338ca;
	transform: scale(1.05);
}

.va-floating-toggle:focus-visible {
	outline: 2px solid #4f46e5;
	outline-offset: 2px;
}

.va-floating-toggle svg {
	width: 24px;
	height: 24px;
}

/* Floating panel */
.va-floating-panel {
	position: absolute;
	bottom: 70px;
	right: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	opacity: 0;
	transform: translateY(10px) scale(0.95);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.va-floating-panel iframe {
	display: block;
}

/* Open state */
.va-floating-open .va-floating-panel {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

/* Responsive: full-width on mobile */
@media (max-width: 768px) {
	.va-widget-container.va-inline iframe {
		width: 100% !important;
	}

	.va-widget-container.va-floating {
		bottom: 10px;
		right: 10px;
	}

	.va-floating-panel {
		position: fixed;
		bottom: 80px;
		right: 10px;
		left: 10px;
		width: auto !important;
		height: calc(100vh - 100px) !important;
	}
}
