/*
 * Chrome for the floating launcher and inline embed. The ChatKit chat UI
 * itself renders inside an iframe served from OpenAI's CDN, so there is
 * intentionally no styling here for anything inside <openai-chatkit>.
 */

.eniture-chat-launcher {
	position: fixed;
	z-index: 999999;
	bottom: 24px;
}

.eniture-chat-launcher--bottom-right {
	right: 24px;
}

.eniture-chat-launcher--bottom-left {
	left: 24px;
}

.eniture-chat-launcher-button {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	background: #1a1a1a;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.25 );
}

.eniture-chat-launcher-button:hover,
.eniture-chat-launcher-button:focus-visible {
	background: #333;
}

.eniture-chat-launcher-panel {
	position: absolute;
	bottom: 72px;
	width: min( 380px, calc( 100vw - 48px ) );
	height: min( 600px, calc( 100vh - 140px ) );
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba( 0, 0, 0, 0.2 );
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.eniture-chat-launcher--bottom-right .eniture-chat-launcher-panel {
	right: 0;
}

.eniture-chat-launcher--bottom-left .eniture-chat-launcher-panel {
	left: 0;
}

.eniture-chat-launcher-panel[hidden] {
	display: none;
}

.eniture-chat-launcher-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	font-weight: 600;
	border-bottom: 1px solid #e5e5e5;
}

.eniture-chat-launcher-close {
	border: none;
	background: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
}

.eniture-chat-mount {
	flex: 1;
	min-height: 0;
}

.eniture-chat-mount .eniture-chat-element {
	display: block;
	width: 100%;
	height: 100%;
}

/* Inline [eniture_support_chat] embed. */
.eniture-chat-embed {
	display: flex;
	flex-direction: column;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
}

.eniture-chat-embed .eniture-chat-mount {
	display: flex;
}
