/* EFFVIT Chat Launcher — sitewide corner widget. All rules scoped under #effvit-cl-widget
   or the GHL hide rule below, so nothing here should ever touch host theme styles. */

:root {
	--effvit-cl-ink: #132039;
	--effvit-cl-teal: #40828f;
	--effvit-cl-gold: #eac545;
}

/* Hide GoHighLevel's own idle bubble without disabling the widget itself — its own
   `data-active` attribute (confirmed on the live component) still controls the panel. */
chat-widget:not([data-active="true"]) {
	visibility: hidden !important;
}

#effvit-cl-widget,
#effvit-cl-widget * {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.3;
}

#effvit-cl-widget {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999990;
}

.effvit-cl-menu {
	position: absolute;
	bottom: 68px;
	right: 0;
	width: 220px;
	background: #fff;
	border-radius: 14px;
	padding: 6px;
	box-shadow: 0 14px 30px rgba(19, 32, 57, 0.22);
	opacity: 0;
	transform: translateY(10px) scale(0.96);
	transform-origin: bottom right;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}
#effvit-cl-widget.is-open .effvit-cl-menu {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.effvit-cl-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 10px 11px;
	border-radius: 9px;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--effvit-cl-ink);
	transition: background 0.12s ease;
	text-decoration: none;
}
.effvit-cl-opt:hover {
	background: #f4f6f8;
}
.effvit-cl-opt .effvit-cl-opt-ic {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 7px;
	color: #fff;
	background: var(--effvit-cl-teal);
	display: flex;
	align-items: center;
	justify-content: center;
}
.effvit-cl-opt .effvit-cl-opt-ic svg {
	width: 16px;
	height: 16px;
}

.effvit-cl-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 56px;
	padding: 0 16px 0 6px;
	background: var(--effvit-cl-ink);
	color: #fff;
	border: none;
	border-radius: 28px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(19, 32, 57, 0.28);
}

.effvit-cl-ic-wrap {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	flex: none;
}

.effvit-cl-label {
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

/* -------- Waving hand icon style -------- */
.effvit-cl-ic-wrap img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 27px;
	height: 27px;
	margin: -13.5px 0 0 -13.5px;
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgba(19, 32, 57, 0.35));
}
.effvit-cl-wave-ic {
	transform-origin: 50% 82%;
	animation: effvit-cl-handwave 3.4s ease-in-out infinite;
}
@keyframes effvit-cl-handwave {
	0%, 14%, 86%, 100% { transform: rotate(0deg); }
	22% { transform: rotate(22deg); }
	30% { transform: rotate(-14deg); }
	38% { transform: rotate(20deg); }
	46% { transform: rotate(-10deg); }
	54% { transform: rotate(14deg); }
	62% { transform: rotate(0deg); }
}
.effvit-cl-point-ic {
	display: none;
	transform-origin: 50% 50%;
	transition: transform 0.25s ease;
}
#effvit-cl-widget:hover .effvit-cl-wave-ic { display: none; }
#effvit-cl-widget:hover .effvit-cl-point-ic { display: block; transform: rotate(90deg); }
#effvit-cl-widget.is-open .effvit-cl-wave-ic { display: none; }
#effvit-cl-widget.is-open .effvit-cl-point-ic { display: block; transform: rotate(0deg); }

/* -------- Static chat bubble icon style -------- */
.effvit-cl-static-bubble {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
}

@media (max-width: 480px) {
	#effvit-cl-widget {
		bottom: 14px;
		right: 14px;
	}
	.effvit-cl-menu {
		width: 78vw;
		max-width: 260px;
	}
}
