/* Jeff launcher widget. Tokens come from site.css. */
.cim360-jw {
	font-family: inherit;
	color: #1f2937;
}

.cim360-jw [hidden] {
	display: none !important;
}

.cim360-jw__wrap {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9990;
	display: flex;
	align-items: flex-end;
	gap: 12px;
	max-width: calc(100vw - 32px);
}

.cim360-jw__launcher {
	position: relative;
	flex: none;
	width: 68px;
	height: 68px;
	padding: 0;
	border-radius: 999px;
	border: 3px solid #fff;
	background: #1d75bb;
	cursor: pointer;
	box-shadow: 0 14px 30px -8px rgba(10, 40, 75, 0.55);
	overflow: visible;
	animation: cim360-jw-bob 3.2s ease-in-out infinite;
}

.cim360-jw__launcher img,
.cim360-jw__launcher .cim360-jw__avatar-fallback {
	width: 100%;
	height: 100%;
	border-radius: 999px;
	display: block;
}

.cim360-jw__avatar-fallback {
	display: flex !important;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 900;
	font-size: 28px;
}

.cim360-jw__pulse {
	position: absolute;
	right: 0;
	bottom: 2px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid #fff;
	animation: cim360-jw-pulse 1.6s ease-out infinite;
}

.cim360-jw__launcher:focus-visible,
.cim360-jw__greeting-close:focus-visible,
.cim360-jw__close:focus-visible,
.cim360-jw__prompt:focus-visible,
.cim360-jw__input:focus-visible,
.cim360-jw__send:focus-visible {
	outline: 3px solid #f2b705;
	outline-offset: 2px;
}

.cim360-jw__greeting {
	position: relative;
	max-width: 260px;
	background: #fff;
	border: 1px solid #d6dbe1;
	border-radius: 12px 12px 4px 12px;
	padding: 14px 44px 14px 16px;
	box-shadow: 0 20px 40px -12px rgba(10, 40, 75, 0.4);
	animation: cim360-jw-pop 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	transform-origin: bottom right;
}

.cim360-jw__greeting-title {
	margin: 0;
	font-weight: 900;
	color: #155389;
}

.cim360-jw__greeting-body {
	margin: 4px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: #374151;
}

.cim360-jw__greeting-close {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #4b5563;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
}

.cim360-jw__dialog {
	position: fixed;
	right: 24px;
	bottom: 108px;
	z-index: 9991;
	width: 400px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 140px);
	background: #fff;
	border: 1px solid #d6dbe1;
	border-radius: 14px;
	box-shadow: 0 30px 70px -14px rgba(10, 40, 75, 0.45);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: cim360-jw-pop 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	transform-origin: bottom right;
}

.cim360-jw__dialog[hidden] {
	display: none;
}

.cim360-jw__header {
	background: linear-gradient(100deg, #155389 0%, #1d75bb 70%, #2f86cc 100%);
	color: #fff;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.cim360-jw__header-avatar img,
.cim360-jw__header-avatar .cim360-jw__avatar-fallback {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, 0.7);
	display: block;
}

.cim360-jw__name {
	margin: 0;
	font-weight: 900;
}

.cim360-jw__status {
	margin: 0;
	font-size: 13px;
	color: #e6f0fa;
	display: flex;
	align-items: center;
	gap: 6px;
}

.cim360-jw__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
}

.cim360-jw__close {
	margin-left: auto;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.12);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cim360-jw__log {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 auto;
	min-height: 220px;
	overflow-y: auto;
	background: #f9fafb;
}

.cim360-jw__msg {
	font-size: 15px;
	line-height: 1.55;
	padding: 12px 16px;
	max-width: 86%;
	overflow-wrap: anywhere;
	animation: cim360-fade-up 0.35s ease both;
}

.cim360-jw__msg p {
	margin: 0;
}

.cim360-jw__msg--user {
	align-self: flex-end;
	max-width: 80%;
	background: #1d75bb;
	color: #fff;
	border-radius: 12px 12px 4px 12px;
}

.cim360-jw__msg--jeff {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #d6dbe1;
	border-radius: 12px 12px 12px 4px;
}

.cim360-jw__body > * + * {
	margin-top: 8px;
}

.cim360-jw__body ul {
	margin: 0;
	padding-left: 20px;
}

.cim360-jw__body a {
	color: #155389;
	font-weight: 700;
	text-decoration: underline;
}

.cim360-jw__typing {
	align-self: flex-start;
	background: #fff;
	border: 1px solid #d6dbe1;
	padding: 12px 14px;
	border-radius: 12px 12px 12px 4px;
}

.cim360-jw__prompts {
	padding: 12px 14px 4px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border-top: 1px solid #e4e8ed;
}

.cim360-jw__prompts:empty {
	display: none;
}

.cim360-jw__prompt {
	background: #fff;
	border: 1px solid rgba(29, 117, 187, 0.45);
	color: #155389;
	font-family: inherit;
	font-weight: 800;
	padding: 9px 13px;
	border-radius: 999px;
	font-size: 14px;
	cursor: pointer;
	min-height: 44px;
}

.cim360-jw__prompt:disabled {
	opacity: 0.6;
	cursor: default;
}

.cim360-jw__turnstile {
	padding: 0 14px;
}

.cim360-jw__form {
	padding: 10px 14px 14px;
	display: flex;
	gap: 10px;
}

.cim360-jw__input {
	flex: 1;
	min-width: 0;
	height: 44px;
	box-sizing: border-box;
	border: 1px solid #8a97a6;
	background: #fff;
	border-radius: 8px;
	padding: 0 14px;
	font-family: inherit;
	font-size: 16px;
	color: #1f2937;
}

.cim360-jw__send {
	width: 48px;
	height: 44px;
	border: 0;
	border-radius: 8px;
	background: #1d75bb;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cim360-jw__send:disabled {
	opacity: 0.6;
	cursor: progress;
}

@keyframes cim360-jw-pop {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.96);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes cim360-jw-bob {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-5px);
	}
}

@keyframes cim360-jw-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
	}

	100% {
		box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
	}
}

@media (max-width: 480px) {
	.cim360-jw__wrap {
		right: 16px;
		bottom: 16px;
	}

	.cim360-jw__dialog {
		right: 16px;
		bottom: 96px;
		max-height: calc(100vh - 112px);
	}

	/* On a phone the greeting covers the content it is greeting; the launcher alone is enough. */
	.cim360-jw__greeting {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cim360-jw *,
	.cim360-jw {
		animation: none !important;
		transition: none !important;
	}
}
