/* 1Office Features: chat launcher. Colours and placement can be overridden in Settings > 1Office Features > Chat > Custom CSS
   (for example .oo-chat-launcher { --oo-chat-bg: #000; bottom: 32px; }). */
.oo-chat-launcher {
	--oo-chat-bg: #103e34;
	--oo-chat-fg: #fff;
	--oo-chat-ring: rgba(16, 62, 52, 0.28);
	position: fixed;
	bottom: 20px;
	z-index: 2147482000;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 22px 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--oo-chat-bg);
	color: var(--oo-chat-fg);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: 0 12px 28px -10px rgba(10, 30, 25, 0.45), 0 2px 6px rgba(10, 30, 25, 0.12);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}
.oo-chat-launcher--right { right: 20px; }
.oo-chat-launcher--left { left: 20px; }
.oo-chat-launcher.is-visible { opacity: 1; transform: none; }
.oo-chat-launcher:hover { box-shadow: 0 16px 32px -10px rgba(10, 30, 25, 0.55), 0 2px 6px rgba(10, 30, 25, 0.14); transform: translateY(-2px); }
.oo-chat-launcher:focus-visible { outline: 3px solid var(--oo-chat-ring); outline-offset: 3px; }
.oo-chat-launcher__icon { position: relative; display: inline-flex; width: 22px; height: 22px; }
.oo-chat-launcher__icon svg {
	position: absolute;
	inset: 0;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: opacity 0.2s ease, transform 0.25s ease;
}
.oo-chat-launcher__close { opacity: 0; transform: rotate(-45deg) scale(0.6); }
.oo-chat-launcher[aria-expanded="true"] .oo-chat-launcher__chat { opacity: 0; transform: rotate(45deg) scale(0.6); }
.oo-chat-launcher[aria-expanded="true"] .oo-chat-launcher__close { opacity: 1; transform: none; }
.oo-chat-launcher[aria-expanded="true"] { padding: 0 15px; }
.oo-chat-launcher[aria-expanded="true"] .oo-chat-launcher__label { display: none; }
.oo-chat-launcher.is-loading .oo-chat-launcher__icon { animation: oo-chat-pulse 0.9s ease-in-out infinite; }
@keyframes oo-chat-pulse { 50% { opacity: 0.45; } }

/* Mobile: the provider window is full screen and has its own close button. */
@media (max-width: 767px) {
	.oo-chat-launcher { bottom: 16px; min-height: 48px; padding: 0 18px 0 14px; font-size: 14px; }
	.oo-chat-launcher--right { right: 16px; }
	.oo-chat-launcher--left { left: 16px; }
	html.oo-chat-open .oo-chat-launcher { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
	.oo-chat-launcher, .oo-chat-launcher__icon svg { transition: none; }
	.oo-chat-launcher.is-loading .oo-chat-launcher__icon { animation: none; }
}
@media print { .oo-chat-launcher { display: none; } }

/* Provider bubbles are hidden while the 1Office button is used. */
html.oo-chat-own-launcher #chatbase-bubble-button { display: none !important; }
html.oo-chat-no-popups #chatbase-message-bubbles { display: none !important; }
html.oo-chat-own-launcher.oo-chat-livechat:not(.oo-chat-lc-shown) #chat-widget-container { visibility: hidden !important; }

/* Left position: the Chatbase window follows the button. */
html.oo-chat-left #chatbase-bubble-window { right: auto !important; left: 1rem !important; }
