#wcf-button{
	position: fixed;
	bottom: 80px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, #25D366, #16b958);
	box-shadow: 0 14px 30px rgba(0,0,0,.22);
	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: 36px; height: 36px; pointer-events:none; }

#wcf-chat{
	position: fixed;
	bottom: 75px;
	width: 360px;
	max-width: calc(100vw - 32px);
	background: #e5ddd5;
	border-radius: 20px;
	box-shadow: 0 16px 34px rgba(0,0,0,.24);
	overflow: hidden;
	z-index: 99999;
	display: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#wcf-chat.wcf-right-pos{ right: 18px; }
#wcf-chat.wcf-left-pos{ left: 18px; }
.wcf-hidden{ display: none; }

.wcf-chat-header{
	background: linear-gradient(135deg, #075e54, #0b7d6b);
	color: #fff;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	min-height: 68px;
}
.wcf-chat-avatar img{
	width: 42px;
	height: 42px;
	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 !important;
	color: #fff !important;
	border: 0 !important;
	font-size: 28px !important;
	line-height: 1 !important;
	width: 28px;
	height: 28px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
}
.wcf-chat-body{
	height: 320px;
	overflow-y: auto;
	padding: 14px;
	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: 80%;
	margin: 6px 0;
	padding: 10px 12px;
	border-radius: 12px;
	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: 2px; }
.wcf-right{ background: #d9fdd3; color: #111; border-top-right-radius: 2px; margin-left: auto; }

.wcf-choice-area{
	display: none;
	padding: 12px;
	background: #f5f6f7;
	border-top: 1px solid rgba(0,0,0,.06);
}
.wcf-choice-area.wcf-choice-visible{ display: block; }
.wcf-choice-label{
	font-size: 12px;
	color: #556;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.wcf-choice-options{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.wcf-choice-btn,
.wcf-choice-confirm{
	border: 0;
	border-radius: 999px;
	padding: 9px 14px;
	font-size: 14px;
    line-height: 1.3;
	cursor: pointer;
	transition: .2s ease;
}
.wcf-choice-btn{
	background: #fff;
	color: #1f2937;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.wcf-choice-btn:hover,
.wcf-choice-btn.is-active{
	background: #dcfce7;
	box-shadow: inset 0 0 0 1px #16a34a;
}
.wcf-choice-confirm{
	background: #25D366;
	color: #fff;
	margin-top: 10px;
}

.wcf-chat-input{
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 10px;
	background: #f0f2f5;
}
#wcf-user-input{
	flex: 1;
	border: 0;
	border-radius: 18px;
	padding: 0 12px;
	font-size: 14px;
	background: #fff;
	outline: none;
	text-transform: none !important;
	margin-bottom: 0;
	height: 38px;
}
#wcf-send{
	border: 0;
	background: #25D366;
	color: #fff;
	width: 38px;
	height: 38px;
	cursor: pointer;
	margin: 0;
	border-radius: 50%;
	font-size: 20px;
	line-height: 38px;
	display: flex;
	justify-content: center;
	align-items: 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); }
}
