#wcf-button{
	position: fixed;
	bottom: 80px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #25D366;
	box-shadow: 0 10px 24px rgba(0,0,0,.18);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 99999;
}
#wcf-button.wcf-right-pos{ right: 18px; }
#wcf-button.wcf-left-pos{ left: 18px; }

#wcf-button img{ width: 34px; height: 34px; pointer-events:none; }

#wcf-chat{
	position: fixed;
	bottom: 92px;
	width: 340px;
	max-width: calc(100vw - 32px);
	background: #e5ddd5;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(0,0,0,.2);
	overflow: hidden;
	z-index: 99999;
	display: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
}
#wcf-chat.wcf-right-pos{ right: 18px; }
#wcf-chat.wcf-left-pos{ left: 18px; }

.wcf-hidden{ display: none; }

.wcf-chat-header{
	background: #075e54;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
    height: 60px;
}
.wcf-chat-avatar img{ width: 36px; height: 36px; border-radius: 50%; background: #fff; object-fit: cover; }
.wcf-chat-title{ 
	line-height: 1.1; 
	font-size: 15px;
}
.wcf-chat-title small{ opacity: .85; }
.wcf-chat-close{
	margin-left: auto;
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 26px;
    line-height: 26px;
    height: 60px;
    width: 15px;
}

.wcf-chat-close:hover{
	background: transparent;
}

.wcf-chat-body{
	height: 320px;
	overflow-y: auto;
	padding: 12px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><rect fill="%23e5ddd5" width="160" height="160"/></svg>') #e5ddd5;
}

.wcf-bubble{
	max-width: 78%;
	margin: 6px 0;
	padding: 8px 10px;
	border-radius: 8px;
	line-height: 1.35;
	font-size: 14px;
	box-shadow: 0 1px 0 rgba(0,0,0,.06);
	animation: fadein .2s ease;
}
.wcf-left{ background: #fff; color: #222; border-top-left-radius: 0; }
.wcf-right{ background: #d9fdd3; color: #111; border-top-right-radius: 0; margin-left: auto; }

.wcf-chat-input{
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 8px;
	background: #f0f2f5;
}
#wcf-user-input{
	flex: 1;
	border: 0;
	border-radius: 18px;
	padding: 0px 12px;
	font-size: 14px;
	background: #fff;
	outline: none;
	text-transform: none!important;
	margin-bottom: 0;
    height: 35px;
}
#wcf-send{
	border: 0;
    background: #25D366;
    color: #fff;
    width: 35px;
    height: 35px;
    cursor: pointer;
    margin: 0px;
    border-radius: 35px;
    font-size: 20px;
    line-height: 0;
    display: flex;
    justify-content: center;
}

.wcf-typing{
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fff;
	border-radius: 8px;
	padding: 8px 10px;
	box-shadow: 0 1px 0 rgba(0,0,0,.06);
	max-width: 40%;
}
.wcf-typing span{
	width: 6px;
	height: 6px;
	background: #9aa5a1;
	border-radius: 50%;
	display: inline-block;
	animation: blink 1.2s infinite ease-in-out;
}
.wcf-typing span:nth-child(2){ animation-delay: .2s; }
.wcf-typing span:nth-child(3){ animation-delay: .4s; }

.wcf-error{ color: #c62828; }

@keyframes blink{
	0%{ opacity: .2; transform: translateY(0); }
	20%{ opacity: 1; transform: translateY(-2px); }
	40%{ opacity: .2; transform: translateY(0); }
}
@keyframes fadein{
	from{ opacity: 0; transform: translateY(4px); }
	to{ opacity: 1; transform: translateY(0); }
}
