/**
 * Equippedly custom Crisp chat launcher.
 *
 * Desktop: horizontal pill with visible "Chat with us" label.
 * Mobile (≤640px): compact icon-only FAB.
 *
 * Note: Bricks sets html { font-size: 62.5% } (~10px rem). Critical
 * launcher dimensions use px so visual size stays correct.
 *
 * @package equippedly-child
 */

.eq-chat-launcher {
	--eq-chat-height: 50px;
	--eq-chat-icon: 20px;
	position: fixed;
	z-index: 130;
	inset-inline-end: max(20px, env(safe-area-inset-right, 0px));
	/* Overridable (e.g. configure host sticky ATC stack). */
	inset-block-end: var(--eq-chat-launcher-bottom, max(20px, env(safe-area-inset-bottom, 0px)));
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: auto;
	min-width: 136px;
	height: var(--eq-chat-height);
	margin: 0;
	padding-block: 0;
	padding-inline: 18px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: var(--eq-color-ink-black, #111111);
	color: var(--eq-color-pure-white, #ffffff);
	box-shadow: 0 8px 24px rgba(17, 17, 17, 0.2);
	font-family: var(--eq-font-body, inherit);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		border-color 0.18s ease,
		background-color 0.18s ease;
}

.eq-chat-launcher[hidden] {
	display: none !important;
}

.eq-chat-launcher:hover {
	background: #1a1a1a;
	border-color: rgba(203, 255, 77, 0.35);
	box-shadow: 0 12px 28px rgba(17, 17, 17, 0.28);
	transform: translateY(-2px);
}

.eq-chat-launcher:focus-visible {
	outline: 2px solid var(--eq-color-volt, #cbff4d);
	outline-offset: 3px;
}

.eq-chat-launcher__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: var(--eq-chat-icon);
	height: var(--eq-chat-icon);
	color: var(--eq-color-volt, #cbff4d);
	pointer-events: none;
}

.eq-chat-launcher__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

.eq-chat-launcher__text {
	display: inline-block;
	pointer-events: none;
}

/* Mobile: compact icon-only — keep ≥44px touch target. */
@media (max-width: 640px) {
	.eq-chat-launcher {
		--eq-chat-height: 50px;
		--eq-chat-icon: 20px;
		width: var(--eq-chat-height);
		min-width: var(--eq-chat-height);
		height: var(--eq-chat-height);
		padding-inline: 0;
		gap: 0;
		/* Sit above mobile bottom nav (56px + safe area). Configure hosts override --eq-chat-launcher-bottom. */
		inset-block-end: var(--eq-chat-launcher-bottom, calc(56px + 14px + env(safe-area-inset-bottom, 0px)));
		inset-inline-end: max(16px, env(safe-area-inset-right, 0px));
	}

	.eq-chat-launcher__text {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.eq-chat-launcher:hover {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.eq-chat-launcher {
		transition: none !important;
	}

	.eq-chat-launcher:hover {
		transform: none;
	}
}
