/* FFU Chat. Brand: blue #13b0e1, yellow #ffe423, near-black text #212528. */
#ffu-chat {
	--ffu-blue: #13b0e1;
	--ffu-blue-dark: #0b86ad;
	--ffu-yellow: #ffe423;
	--ffu-text: #212528;
	--ffu-tint: #e8f7fc;
	position: fixed;
	right: 22px;
	bottom: 20px;
	z-index: 2147483000;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	color: var(--ffu-text);
}
#ffu-chat *,
#ffu-chat *::before,
#ffu-chat *::after { box-sizing: border-box; }
#ffu-chat.ffu-chat-away,
html.ffu-chat-open #ffu-chat { display: none; } /* the team (Tawk) chat is open */
#ffu-chat-btn { display: none !important; } /* the site's old paw: ours replaces it */
#ffu-chat [hidden] { display: none !important; }

#ffu-chat button {
	font: inherit;
	cursor: pointer;
	margin: 0;
	min-height: 0;
	width: auto;
	border-radius: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
}
#ffu-chat textarea { box-shadow: none; text-transform: none; letter-spacing: normal; }

#ffu-chat .ffu-chat-launcher {
	display: block;
	background: none;
	border: 0;
	padding: 0;
	margin-left: auto;
	-webkit-tap-highlight-color: transparent;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .55)) drop-shadow(0 1px 1px rgba(0, 0, 0, .35));
	transition: transform .15s ease;
}
#ffu-chat .ffu-chat-launcher:hover,
#ffu-chat .ffu-chat-launcher:focus { background: none; transform: scale(1.05); }
#ffu-chat .ffu-chat-launcher:active { transform: scale(.95); }
#ffu-chat .ffu-chat-launcher:focus-visible { outline: 3px solid var(--ffu-text); outline-offset: 2px; border-radius: 8px; }
#ffu-chat .ffu-chat-launcher svg { display: block; width: 96px; height: auto; }

#ffu-chat .ffu-chat-teaser {
	position: absolute;
	right: 104px;
	bottom: 34px;
	white-space: nowrap;
	background: #fff;
	color: var(--ffu-text);
	border: 2px solid var(--ffu-blue);
	border-radius: 18px;
	padding: 6px 14px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
	font-size: 14px;
}
#ffu-chat .ffu-chat-teaser:hover { background: var(--ffu-tint); color: var(--ffu-text); }

#ffu-chat .ffu-chat-panel {
	position: absolute;
	right: 0;
	bottom: 104px;
	width: 370px;
	height: min(560px, calc(100vh - 140px));
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#ffu-chat .ffu-chat-head {
	background: var(--ffu-blue);
	color: #fff;
	padding: 12px 12px 12px 16px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}
#ffu-chat .ffu-chat-title { font-weight: 700; font-size: 16px; }
#ffu-chat .ffu-chat-test {
	display: block;
	font-weight: 400;
	font-size: 12px;
	background: var(--ffu-yellow);
	color: var(--ffu-text);
	border-radius: 4px;
	padding: 1px 6px;
	margin-top: 4px;
	width: max-content;
}
#ffu-chat .ffu-chat-close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	padding: 0 4px;
}
#ffu-chat .ffu-chat-close:hover { background: transparent; color: var(--ffu-yellow); }

#ffu-chat .ffu-chat-log {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: var(--ffu-tint);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
#ffu-chat .ffu-chat-log > * { flex-shrink: 0; } /* never squash messages when the log scrolls */
#ffu-chat .ffu-chat-msg {
	max-width: 85%;
	padding: 9px 13px;
	border-radius: 14px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
#ffu-chat .ffu-chat-assistant { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
#ffu-chat .ffu-chat-user { background: var(--ffu-blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
#ffu-chat .ffu-chat-msg a { color: var(--ffu-blue-dark); text-decoration: underline; }
#ffu-chat .ffu-chat-user a { color: #fff; }

#ffu-chat .ffu-chat-teambtn {
	align-self: flex-start;
	background: var(--ffu-yellow);
	color: var(--ffu-text);
	border: 0;
	border-radius: 20px;
	padding: 8px 16px;
	font-weight: 700;
}
#ffu-chat .ffu-chat-teambtn:hover { background: #f5d800; color: var(--ffu-text); }

#ffu-chat .ffu-chat-typing { display: flex; gap: 4px; padding: 12px 14px; }
#ffu-chat .ffu-chat-typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ffu-blue);
	animation: ffu-chat-dot 1s infinite ease-in-out;
}
#ffu-chat .ffu-chat-typing span:nth-child(2) { animation-delay: .15s; }
#ffu-chat .ffu-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ffu-chat-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

#ffu-chat .ffu-chat-form {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e3e6e8;
	margin: 0;
}
#ffu-chat .ffu-chat-input {
	flex: 1;
	resize: none;
	border: 1px solid #c9d0d4;
	border-radius: 10px;
	padding: 9px 11px;
	font: inherit;
	font-size: 16px; /* stops iPhones zooming in */
	color: var(--ffu-text);
	background: #fff;
	max-height: 110px;
	min-height: 0;
}
#ffu-chat .ffu-chat-input:focus { outline: 2px solid var(--ffu-blue); border-color: transparent; }
#ffu-chat .ffu-chat-send {
	background: var(--ffu-blue);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 0 16px;
	font-weight: 700;
}
#ffu-chat .ffu-chat-send:hover { background: var(--ffu-blue-dark); color: #fff; }
#ffu-chat .ffu-chat-send:disabled { opacity: .5; cursor: default; }

#ffu-chat .ffu-chat-foot {
	font-size: 12px;
	color: #5c6366;
	padding: 0 12px 10px;
}
#ffu-chat .ffu-chat-teamlink {
	background: none;
	border: 0;
	padding: 0;
	color: var(--ffu-blue-dark);
	text-decoration: underline;
	font-weight: 700;
	font-size: 12px;
}
#ffu-chat .ffu-chat-teamlink:hover { background: none; color: var(--ffu-text); }

@media (max-width: 480px) {
	#ffu-chat { right: 12px; bottom: 14px; }
	#ffu-chat .ffu-chat-launcher svg { width: 84px; }
	#ffu-chat .ffu-chat-teaser { right: 90px; bottom: 28px; }
	#ffu-chat.ffu-chat-panel-open { left: 0; right: 0; bottom: 0; top: 0; }
	#ffu-chat.ffu-chat-panel-open .ffu-chat-panel {
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100%;
		border-radius: 0;
	}
	#ffu-chat.ffu-chat-panel-open .ffu-chat-launcher,
	#ffu-chat.ffu-chat-panel-open .ffu-chat-teaser { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	#ffu-chat .ffu-chat-launcher { transition: none; }
	#ffu-chat .ffu-chat-typing span { animation: none; opacity: .7; }
}
