/* Breev AI Chatbot: chat button and chat window. Prefixed and reset so themes don't leak in. */

.breev-chatbot-root {
	--breev-chatbot-primary: #0d6efd;
	--breev-chatbot-text: #ffffff;
	--breev-chatbot-gap: 24px;
	position: fixed;
	bottom: var(--breev-chatbot-gap);
	right: var(--breev-chatbot-gap);
	z-index: 2147483000;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 16px;
	line-height: 1;
}

.breev-chatbot-root--left {
	right: auto;
	left: var(--breev-chatbot-gap);
	align-items: flex-start;
}

.breev-chatbot-button {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	cursor: pointer;
	background: var(--breev-chatbot-primary);
	color: var(--breev-chatbot-text);
	box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35);
	transition: transform .2s ease, box-shadow .2s ease;
}

.breev-chatbot-button:hover {
	transform: scale(1.06);
	box-shadow: 0 12px 28px -6px rgba(0, 0, 0, .4);
}

.breev-chatbot-button:focus-visible {
	outline: 3px solid var(--breev-chatbot-primary);
	outline-offset: 3px;
}

.breev-chatbot-button svg {
	width: 24px;
	height: 24px;
	pointer-events: none;
}

.breev-chatbot-panel {
	box-sizing: border-box;
	width: 400px;
	height: min(620px, calc(100vh - 120px));
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .06);
	opacity: 0;
	transform: translateY(12px) scale(.98);
	transform-origin: bottom right;
	transition: opacity .2s ease, transform .2s ease;
}

.breev-chatbot-root--left .breev-chatbot-panel {
	transform-origin: bottom left;
}

.breev-chatbot-panel[hidden] {
	display: none;
}

.breev-chatbot-root.is-open .breev-chatbot-panel {
	opacity: 1;
	transform: none;
}

.breev-chatbot-iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	margin: 0;
}

@media (max-width: 480px) {
	.breev-chatbot-root {
		--breev-chatbot-gap: 16px;
	}

	.breev-chatbot-panel {
		width: calc(100vw - 32px);
		height: calc(100vh - 108px);
		height: calc(100dvh - 108px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.breev-chatbot-button,
	.breev-chatbot-panel {
		transition: none;
	}
}

@media print {
	.breev-chatbot-root {
		display: none;
	}
}
