.zqpro-chat {
	--zqpro-primary:#4f46e5;
	position:fixed;
	bottom:20px;
	z-index:999999;
	font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
	box-sizing:border-box
}
.zqpro-chat * {
	box-sizing:border-box
}
.zqpro-chat--right {
	right:20px
}
.zqpro-chat--left {
	left:20px
}
.zqpro-chat__toggle {
	width:var(--zqpro-size,58px);
	height:var(--zqpro-size,58px);
	display:flex;
	align-items:center;
	justify-content:center;
	padding:0;
	border:0;
	border-radius:50%;
	background:var(--zqpro-primary);
	color:#fff;
	font-size:25px;
	cursor:pointer;
	box-shadow:0 8px 28px rgba(0,0,0,.22)
}
.zqpro-chat__panel {
	position:absolute;
	bottom:calc(var(--zqpro-size,58px) + 14px);
	width:min(370px,calc(100vw - 32px));
	height:min(540px,calc(100vh - 120px));
	background:#fff;
	border:1px solid #e5e7eb;
	border-radius:16px;
	overflow:hidden;
	box-shadow:0 18px 50px rgba(0,0,0,.2)
}
.zqpro-chat--right .zqpro-chat__panel {
	right:0
}
.zqpro-chat--left .zqpro-chat__panel {
	left:0
}
.zqpro-chat__header {
	height:58px;
	padding:0 14px 0 18px;
	display:flex;
	align-items:center;
	justify-content:space-between;
	background:var(--zqpro-primary);
	color:#fff
}
.zqpro-chat__close {
	border:0;
	background:transparent;
	color:#fff;
	font-size:28px;
	line-height:1;
	cursor:pointer;
	padding:4px 8px
}
.zqpro-chat__messages {
	height:calc(100% - 124px);
	overflow-y:auto;
	padding:16px;
	background:#f8fafc
}
.zqpro-chat__message {
	max-width:84%;
	margin:0 0 10px;
	padding:10px 12px;
	border-radius:14px;
	white-space:pre-wrap;
	overflow-wrap:anywhere;
	font-size:14px;
	line-height:1.45
}
.zqpro-chat__message--assistant {
	background:#fff;
	border:1px solid #e5e7eb;
	color:#111827
}
.zqpro-chat__message--user {
	margin-left:auto;
	background:var(--zqpro-primary);
	color:#fff
}
.zqpro-chat__message--status {
	background:transparent;
	color:#6b7280;
	font-style:italic;
	padding-left:2px
}
.zqpro-chat__message--error {
	background:#fef2f2;
	color:#991b1b;
	border:1px solid #fecaca
}
.zqpro-chat__form {
	height:66px;
	display:flex;
	gap:8px;
	align-items:center;
	padding:10px;
	border-top:1px solid #e5e7eb;
	background:#fff
}
.zqpro-chat__input {
	flex:1;
	min-width:0;
	max-height:80px;
	resize:none;
	border:1px solid #d1d5db;
	border-radius:10px;
	padding:9px 10px;
	font:inherit;
	color:#111827;
	background:#fff
}
.zqpro-chat__input:focus {
	outline:2px solid var(--zqpro-primary);
	outline-offset:1px
}
.zqpro-chat__send {
	border:0;
	border-radius:10px;
	background:var(--zqpro-primary);
	color:#fff;
	padding:10px 13px;
	font-weight:600;
	cursor:pointer
}
.zqpro-chat__send:disabled {
	opacity:.55;
	cursor:wait
}
@media(max-width:480px) {
	.zqpro-chat {
	bottom:14px
}
.zqpro-chat--right {
	right:14px
}
.zqpro-chat--left {
	left:14px
}
.zqpro-chat__panel {
	position:fixed;
	left:12px!important;
	right:12px!important;
	bottom:calc(var(--zqpro-size,58px) + 26px);
	width:auto;
	height:min(560px,calc(100vh - 110px))
}

}
/* Rich assistant responses (Markdown rendered safely by chat.js). */
.zqpro-chat__message--assistant {
	white-space:normal
}
.zqpro-chat__message--assistant p {
	margin:0 0 9px
}
.zqpro-chat__message--assistant p:last-child {
	margin-bottom:0
}
.zqpro-chat__message--assistant ul,.zqpro-chat__message--assistant ol {
	margin:6px 0 10px;
	padding-left:22px
}
.zqpro-chat__message--assistant li {
	margin:4px 0
}
.zqpro-chat__message--assistant h3,.zqpro-chat__message--assistant h4,.zqpro-chat__message--assistant h5,.zqpro-chat__message--assistant h6 {
	margin:8px 0 6px;
	font-size:1em;
	line-height:1.35
}
.zqpro-chat__message--assistant a {
	color:var(--zqpro-primary);
	font-weight:600;
	text-decoration:underline;
	text-underline-offset:2px
}
.zqpro-chat__message--assistant code {
	padding:1px 4px;
	border-radius:4px;
	background:#f1f5f9;
	font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
	font-size:.92em
}
.zqpro-chat__product-image {
	display:block;
	width:100%;
	max-width:260px;
	height:auto;
	margin:9px auto;
	border-radius:10px;
	object-fit:contain;
	background:#fff
}
.zqpro-chat__message--assistant strong {
	font-weight:700
}
.zqpro-chat__products {
	display:flex;
	flex-direction:column;
	gap:8px;
	margin-top:10px
}
.zqpro-chat__product {
	display:flex;
	gap:10px;
	align-items:center;
	border:1px solid rgba(0,0,0,.12);
	border-radius:12px;
	padding:8px;
	background:#fff;
	color:#111
}
.zqpro-chat__product-thumb {
	width:52px;
	height:52px;
	object-fit:cover;
	border-radius:8px;
	flex:none
}
.zqpro-chat__product-info {
	display:flex;
	flex-direction:column;
	gap:3px;
	min-width:0;
	flex:1
}
.zqpro-chat__product-name {
	font-weight:600;
	font-size:13px;
	line-height:1.3;
	color:#111;
	text-decoration:none;
	overflow-wrap:anywhere
}
.zqpro-chat__product-price {
	font-size:12px;
	color:#444
}
.zqpro-chat__product-actions {
	display:flex;
	flex-wrap:wrap;
	gap:8px;
	align-items:center;
	margin-top:2px
}
.zqpro-chat__add {
	border:0;
	border-radius:8px;
	background:var(--zqpro-primary);
	color:#fff;
	font-size:12px;
	font-weight:600;
	padding:6px 10px;
	cursor:pointer;
	text-decoration:none;
	display:inline-block
}
.zqpro-chat__add:disabled {
	opacity:.7;
	cursor:default
}
.zqpro-chat__add.is-added {
	background:#15803d
}
.zqpro-chat__cart-link {
	font-size:12px;
	font-weight:600;
	color:var(--zqpro-primary)
}
.zqpro-chat__cart-error {
	font-size:12px;
	color:#b91c1c
}
.zqpro-chat__soldout {
	font-size:12px;
	color:#6b7280
}
.zqpro-chat__contact {
	margin:0 6px 0 auto;
	border:1px solid rgba(255,255,255,.7);
	border-radius:8px;
	background:transparent;
	color:#fff;
	font-size:12px;
	font-weight:600;
	padding:5px 9px;
	cursor:pointer
}
.zqpro-chat__contact:hover {
	background:rgba(255,255,255,.15)
}
.zqpro-chat__quick {
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	gap:6px;
	margin:0 0 10px
}
.zqpro-chat__quick-btn {
	max-width:100%;
	border:1px solid var(--zqpro-primary);
	border-radius:14px;
	background:#fff;
	color:var(--zqpro-primary);
	font-size:13px;
	line-height:1.3;
	padding:6px 11px;
	text-align:left;
	cursor:pointer
}
.zqpro-chat__quick-btn:hover {
	background:var(--zqpro-primary);
	color:#fff
}
.zqpro-chat__fb {
	display:flex;
	gap:6px;
	align-items:center;
	margin-top:6px;
	font-size:12px;
	color:#6b7280
}
.zqpro-chat__fb-btn {
	border:1px solid #e5e7eb;
	border-radius:8px;
	background:#fff;
	font-size:14px;
	line-height:1;
	padding:3px 7px;
	cursor:pointer
}
.zqpro-chat__fb-btn:hover {
	border-color:var(--zqpro-primary)
}
.zqpro-chat__fb-btn:disabled {
	opacity:.5;
	cursor:default
}
.zqpro-chat__fb-form {
	display:flex;
	gap:6px;
	width:100%
}
.zqpro-chat__fb-form input {
	flex:1;
	min-width:0;
	border:1px solid #d1d5db;
	border-radius:8px;
	padding:4px 8px;
	font-size:12px
}
.zqpro-chat__fb-send {
	border:0;
	border-radius:8px;
	background:var(--zqpro-primary);
	color:#fff;
	font-size:12px;
	padding:4px 10px;
	cursor:pointer
}
.zqpro-chat__fb-err {
	color:#b91c1c
}
.zqpro-chat__orderbtn {
	margin-left:0
}
.zqpro-chat__order-result {
	margin:0 0 10px;
	padding:10px 12px;
	border:1px solid #e5e7eb;
	border-radius:12px;
	background:#fff;
	color:#111827;
	font-size:13px;
	line-height:1.5
}
.zqpro-chat__order-title {
	font-weight:700;
	margin-bottom:4px
}
.zqpro-chat__order-line a {
	color:var(--zqpro-primary)
}
.zqpro-chat__lead-prompt {
	display:flex;
	flex-direction:column;
	gap:8px;
	align-items:flex-start;
	margin:0 0 10px;
	padding:10px 12px;
	border:1px dashed var(--zqpro-primary);
	border-radius:12px;
	background:#fff;
	color:#111827;
	font-size:13px;
	line-height:1.4
}
.zqpro-chat__lead-open,.zqpro-chat__lead-send {
	border:0;
	border-radius:8px;
	background:var(--zqpro-primary);
	color:#fff;
	font-size:13px;
	font-weight:600;
	padding:7px 12px;
	cursor:pointer
}
.zqpro-chat__lead-send:disabled {
	opacity:.6;
	cursor:wait
}
.zqpro-chat__lead-form {
	margin:0 0 10px;
	padding:12px;
	border:1px solid #e5e7eb;
	border-radius:12px;
	background:#fff;
	color:#111827;
	font-size:13px
}
.zqpro-chat__lead-row {
	display:block;
	margin:0 0 8px
}
.zqpro-chat__lead-row span {
	display:block;
	margin-bottom:3px;
	font-weight:600
}
.zqpro-chat__lead-row input,.zqpro-chat__lead-row textarea {
	width:100%;
	border:1px solid #d1d5db;
	border-radius:8px;
	padding:7px 9px;
	font:inherit;
	color:#111827;
	background:#fff
}
.zqpro-chat__lead-trap {
	position:absolute!important;
	left:-9999px!important;
	width:1px!important;
	height:1px!important;
	opacity:0!important
}
.zqpro-chat__lead-consent {
	display:block;
	margin:0 0 8px;
	font-size:12px;
	line-height:1.4
}
.zqpro-chat__lead-consent a {
	color:var(--zqpro-primary);
	text-decoration:underline
}
.zqpro-chat__lead-status {
	min-height:0;
	color:#b91c1c;
	font-size:12px;
	margin:0 0 6px
}
.zqpro-chat__lead-actions {
	display:flex;
	gap:8px
}
.zqpro-chat__lead-cancel {
	border:1px solid #d1d5db;
	border-radius:8px;
	background:#fff;
	color:#374151;
	font-size:13px;
	padding:7px 12px;
	cursor:pointer
}
.zqpro-chat__lead-hint {
	margin:0 0 8px;
	font-size:12px;
	color:#4b5563
}
.zqpro-chat__icon {
	display:inline-flex;
	align-items:center;
	justify-content:center;
	line-height:1
}
.zqpro-chat__icon svg,.zqpro-chat__icon img {
	display:block;
	max-width:100%;
	height:auto
}
.zqpro-chat__icon--header {
	margin-right:10px
}
.zqpro-chat__header {
	justify-content:flex-start
}
.zqpro-chat__header strong {
	flex:1
}
.zqpro-chat__toggle--logo {
	background:#fff;
	overflow:hidden;
	border:1px solid #e5e7eb
}
.zqpro-chat__toggle--logo .zqpro-chat__icon {
	width:100%;
	height:100%
}
.zqpro-chat__toggle--logo img {
	width:100%;
	height:100%;
	object-fit:contain;
	padding:3px
}
.zqpro-chat__icon--logo {
	background:#fff;
	border-radius:50%;
	padding:2px
}
.zqpro-chat__articles {
	display:flex;
	flex-direction:column;
	gap:8px;
	margin-top:10px
}
.zqpro-chat__article {
	display:flex;
	gap:10px;
	align-items:flex-start;
	border:1px solid rgba(0,0,0,.12);
	border-radius:12px;
	padding:8px;
	background:#fff;
	color:#111
}
.zqpro-chat__article-thumb {
	width:64px;
	height:64px;
	object-fit:cover;
	border-radius:8px;
	flex:none
}
.zqpro-chat__article-info {
	display:flex;
	flex-direction:column;
	gap:3px;
	min-width:0
}
.zqpro-chat__article-title {
	font-weight:700;
	font-size:13px;
	line-height:1.3;
	color:#111;
	text-decoration:none;
	overflow-wrap:anywhere
}
.zqpro-chat__article-title:hover {
	text-decoration:underline
}
.zqpro-chat__article-excerpt {
	font-size:12px;
	line-height:1.4;
	color:#4b5563;
	display:-webkit-box;
	-webkit-line-clamp:3;
	-webkit-box-orient:vertical;
	overflow:hidden
}
.zqpro-chat__article-more {
	font-size:12px;
	font-weight:600;
	color:var(--zqpro-primary);
	text-decoration:none
}
.zqpro-chat__article-more:hover {
	text-decoration:underline
}
.zqpro-chat__toolbar {
	display:flex;
	gap:8px;
	padding:8px 14px;
	border-bottom:1px solid #e5e7eb;
	background:#fff;
	flex-wrap:wrap
}
.zqpro-chat__toolbar .zqpro-chat__contact {
	margin:0;
	border:1px solid var(--zqpro-primary);
	background:#fff;
	color:var(--zqpro-primary);
	flex:0 1 auto
}
.zqpro-chat__toolbar .zqpro-chat__contact:hover {
	background:var(--zqpro-primary);
	color:#fff
}
.zqpro-chat__header strong {
	min-width:0;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap
}
.zqpro-chat__product-backorder {
	display:block;
	font-size:12px;
	color:#b45309;
	font-weight:600;
	margin-top:2px
}
.zqpro-chat__panel {
	display:flex;
	flex-direction:column
}
.zqpro-chat__panel[hidden] {
	display:none
}
.zqpro-chat__header,.zqpro-chat__toolbar,.zqpro-chat__form {
	flex:0 0 auto
}
.zqpro-chat__messages {
	flex:1 1 auto;
	height:auto;
	min-height:0
}
