.jwcp-chat-button-wrap {
	position: fixed;
	z-index: 9999;
	opacity: 0;
	transition: opacity .35s ease, transform .35s ease;
}

.jwcp-chat-button-wrap.jwcp-visible {
	opacity: 1;
}

.jwcp-chat-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	border: 0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	transition: transform .2s ease, box-shadow .2s ease;
}

/* Theme link :hover colors must not wash out label on custom button backgrounds. */
.jwcp-chat-button:hover,
.jwcp-chat-button:focus,
.jwcp-chat-button:focus-visible,
.jwcp-chat-button:active {
	color: #fff;
	text-decoration: none;
}

.jwcp-chat-button:hover .jwcp-text,
.jwcp-chat-button:focus .jwcp-text,
.jwcp-chat-button:focus-visible .jwcp-text,
.jwcp-chat-button:active .jwcp-text {
	color: #fff;
}

.jwcp-chat-button-wrap a.jwcp-chat-button:hover,
.jwcp-chat-button-wrap a.jwcp-chat-button:focus,
.jwcp-chat-button-wrap a.jwcp-chat-button:focus-visible,
.jwcp-chat-button-wrap a.jwcp-chat-button:active,
.jwcp-chat-button-wrap button.jwcp-chat-button:hover,
.jwcp-chat-button-wrap button.jwcp-chat-button:focus,
.jwcp-chat-button-wrap button.jwcp-chat-button:focus-visible,
.jwcp-chat-button-wrap button.jwcp-chat-button:active {
	color: #fff !important;
}

.jwcp-chat-button-wrap a.jwcp-chat-button:hover .jwcp-text,
.jwcp-chat-button-wrap a.jwcp-chat-button:focus .jwcp-text,
.jwcp-chat-button-wrap button.jwcp-chat-button:hover .jwcp-text,
.jwcp-chat-button-wrap button.jwcp-chat-button:focus .jwcp-text {
	color: #fff !important;
}

.jwcp-chat-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
}

.jwcp-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.jwcp-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.jwcp-chat-button-wrap.jwcp-animation-slide {
	transform: translateY(12px);
}

.jwcp-chat-button-wrap.jwcp-animation-slide.jwcp-visible {
	transform: translateY(0);
}

.jwcp-chat-button-wrap.jwcp-animation-pulse .jwcp-chat-button {
	animation: jwcpPulse 1.8s ease-in-out infinite;
}

@keyframes jwcpPulse {
	0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
	70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.jwcp-agents-popup {
	position: absolute;
	bottom: calc(100% + 10px);
	right: 0;
	width: 260px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
	overflow: hidden;
	color: #1d2327;
}

.jwcp-pos-left .jwcp-agents-popup {
	left: 0;
	right: auto;
}

.jwcp-agents-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	background: #f6f7f7;
}

.jwcp-close-popup {
	border: 0;
	background: transparent;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.jwcp-agents-list {
	list-style: none;
	margin: 0;
	padding: 8px;
	max-height: 240px;
	overflow-y: auto;
}

.jwcp-agents-list li + li {
	margin-top: 8px;
}

.jwcp-agents-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #1d2327;
	padding: 8px;
	border-radius: 8px;
	background: #fff;
}

.jwcp-agents-list a:hover {
	background: #f0f0f1;
}

.jwcp-agents-list img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

@media (max-width: 600px) {
	.jwcp-chat-button {
		padding: 11px 14px;
	}
}
