#qwert-chat-root{position:fixed;right:20px;bottom:20px;z-index:99999;font-family:Arial,Helvetica,sans-serif;}

.qwert-chat-bubble{height:56px;padding:0 18px 0 15px;border-radius:28px;background:#ea2e49;color:#fff;border:none;box-shadow:0 4px 14px rgba(0,0,0,.25);cursor:pointer;display:flex;align-items:center;gap:8px;line-height:1;position:relative;transition:background .15s,transform .15s;}
.qwert-chat-bubble:hover{background:#d31f3a;transform:scale(1.03);}
.qwert-chat-bubble-label{color:#fff;font-size:15px;font-weight:700;white-space:nowrap;}
.qwert-chat-badge{position:absolute;top:-2px;right:-2px;width:14px;height:14px;border-radius:50%;background:#ffcc00;border:2px solid #fff;display:none;}
.qwert-chat-badge.qwert-chat-badge-visible{display:block;}

.qwert-chat-window{display:flex;flex-direction:column;position:fixed;right:20px;bottom:88px;width:350px;max-width:calc(100vw - 24px);
	height:auto;min-height:320px;max-height:calc(100vh - 120px);
	background:#fff;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.3);overflow:hidden;
	opacity:0;transform:translateY(14px) scale(.97);pointer-events:none;
	transition:opacity .18s ease, transform .18s ease, height .15s ease;
}
.qwert-chat-window.qwert-chat-window-open{opacity:1;transform:translateY(0) scale(1);pointer-events:auto;}

.qwert-chat-header{background:linear-gradient(135deg,#3c4f63 0%,#232f3b 100%);color:#fff;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;}
.qwert-chat-header-info{display:flex;align-items:center;gap:10px;}
.qwert-chat-avatar{width:36px;height:36px;border-radius:50%;flex-shrink:0;overflow:hidden;box-shadow:0 0 0 2px rgba(255,255,255,.35);}
.qwert-chat-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.qwert-chat-header strong{display:block;font-size:16px;line-height:1.3;}
.qwert-chat-header small{display:block;font-weight:400;font-size:11px;line-height:1.3;opacity:.85;margin-top:0;}
.qwert-chat-status{display:flex !important;align-items:center;gap:5px;color:#7CFFA8 !important;opacity:1 !important;font-weight:600 !important;}
.qwert-chat-status-dot{width:7px;height:7px;border-radius:50%;background:#3ddc6a;box-shadow:0 0 0 2px rgba(255,255,255,.35);flex-shrink:0;}
.qwert-chat-agent{display:block;font-weight:400;font-size:11px;line-height:1.3;opacity:.85;margin-top:0;}
.qwert-chat-close{background:none;border:none;color:#fff;font-size:20px;cursor:pointer;line-height:1;padding:2px 4px;}

.qwert-chat-messages{flex:1 1 auto;min-height:210px;overflow-y:auto;padding:16px;background:#f7f7f7;}
.qwert-chat-msg{max-width:82%;margin-bottom:12px;padding:10px 14px;border-radius:12px;font-size:13px;line-height:1.5;word-wrap:break-word;white-space:pre-wrap;box-shadow:0 1px 2px rgba(0,0,0,.06);}
.qwert-chat-msg-visitor{margin-left:auto;background:#219653;color:#fff;border-bottom-right-radius:3px;}
.qwert-chat-msg-manager{margin-right:auto;background:#fff;color:#333;border:1px solid #e8e8e8;border-bottom-left-radius:3px;}
.qwert-chat-msg-photo{padding:5px;max-width:70%;}
.qwert-chat-msg-photo a{display:block;}
.qwert-chat-msg-photo img{display:block;width:100%;max-width:220px;border-radius:8px;}
.qwert-chat-msg-photo .qwert-chat-msg-caption{padding:6px 4px 2px;font-size:13px;line-height:1.4;}
.qwert-chat-msg-manager.qwert-chat-msg-photo .qwert-chat-msg-caption{color:#333;}
.qwert-chat-msg-visitor.qwert-chat-msg-photo .qwert-chat-msg-caption{color:#fff;}

.qwert-chat-quick{border-top:1px solid #eaeaea;padding:14px 16px;flex-shrink:0;}
.qwert-chat-quick-toggle{background:none;border:none;color:#909090;font-size:11px;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;display:flex;align-items:center;gap:5px;padding:0;font-family:inherit;}
.qwert-chat-quick-arrow{display:inline-block;transition:transform .15s;font-size:10px;}
.qwert-chat-quick-toggle[aria-expanded="false"] .qwert-chat-quick-arrow{transform:rotate(-90deg);}
.qwert-chat-quick-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.qwert-chat-quick-btn{background:#e8f7ee;color:#219653;border:1px solid #bfe8cf;border-radius:16px;padding:8px 14px;font-size:12px;cursor:pointer;font-family:inherit;transition:background .15s,color .15s;}
.qwert-chat-quick-btn:hover{background:#219653;color:#fff;}

.qwert-chat-consent{padding:14px 16px;font-size:11px;line-height:1.5;color:#666;border-top:1px solid #eaeaea;display:flex;align-items:flex-start;gap:8px;flex-shrink:0;}
.qwert-chat-consent input{margin-top:2px;flex-shrink:0;}
.qwert-chat-consent a{color:#ea2e49;}

.qwert-chat-inputrow{display:flex;align-items:flex-end;border-top:1px solid #eaeaea;padding:14px 16px;gap:10px;flex-shrink:0;}
.qwert-chat-input{flex:1;resize:none;border:1px solid #dadada;border-radius:8px;padding:10px 12px;font-size:13px;font-family:inherit;max-height:140px;overflow-y:auto;line-height:1.5;}
.qwert-chat-send{background:#ea2e49;color:#fff;border:none;border-radius:8px;padding:0 18px;height:38px;font-size:13px;font-weight:700;cursor:pointer;flex-shrink:0;}
.qwert-chat-send:disabled{background:#dadada;cursor:not-allowed;}

.qwert-chat-invite{position:fixed;right:20px;bottom:88px;width:260px;max-width:calc(100vw - 40px);
	background:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.22);padding:14px 30px 14px 16px;
	font-size:13px;line-height:1.5;color:#333;cursor:pointer;
	opacity:0;transform:translateY(8px);pointer-events:none;
	transition:opacity .25s ease,transform .25s ease;
}
.qwert-chat-invite.qwert-chat-invite-visible{opacity:1;transform:translateY(0);pointer-events:auto;}
.qwert-chat-invite::after{content:'';position:absolute;bottom:-7px;right:24px;width:14px;height:14px;background:#fff;transform:rotate(45deg);box-shadow:2px 2px 4px rgba(0,0,0,.05);}
.qwert-chat-invite-close{position:absolute;top:6px;right:6px;background:none;border:none;font-size:16px;line-height:1;color:#aaa;cursor:pointer;padding:4px;}
.qwert-chat-invite-close:hover{color:#666;}

@media (max-width:420px){
	.qwert-chat-window{right:8px;left:8px;bottom:78px;width:auto;}
	.qwert-chat-invite{right:12px;bottom:78px;width:auto;max-width:calc(100vw - 24px);}
	#qwert-chat-root{right:12px;bottom:12px;}
}
