/* Felek — widget czatu. Tokeny motywu z fallbackami (plugin przeżyje wymianę skórki). */

.felek-fab{position:fixed;right:22px;bottom:90px;z-index:91;display:flex;align-items:center;gap:8px;
	padding:0 18px;height:56px;border-radius:28px;border:0;cursor:pointer;
	background:var(--acc,#3d8bfd);color:#fff;font:600 15px/1 var(--sans,system-ui,sans-serif);
	box-shadow:0 10px 28px rgba(61,139,253,.45);transition:transform .15s ease}
.felek-fab:hover{transform:translateY(-2px) scale(1.03)}
.felek-fab:focus-visible{outline:2px solid #fff;outline-offset:3px}
.felek-fab--open{display:none}

.felek-panel{position:fixed;right:22px;bottom:22px;z-index:95;width:370px;max-width:calc(100vw - 32px);
	height:540px;max-height:calc(100vh - 44px);display:flex;flex-direction:column;overflow:hidden;
	background:var(--panel,#12161d);color:var(--tx,#e8ecf1);border:1px solid var(--line,#232a33);
	border-radius:18px;box-shadow:0 24px 64px rgba(0,0,0,.5);font-family:var(--sans,system-ui,sans-serif)}

.felek-head{display:flex;align-items:center;justify-content:space-between;gap:10px;
	padding:14px 16px;border-bottom:1px solid var(--line,#232a33);background:rgba(61,139,253,.08)}
.felek-head-title{display:flex;align-items:center;gap:10px}
.felek-head-title strong{font-size:15px;display:block}
.felek-head-title small{color:var(--dim,#7a828c);font-size:12px}
.felek-avatar{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;
	background:var(--acc,#3d8bfd);color:#fff;font-weight:800;font-size:17px;flex:none}
.felek-close{border:0;background:none;color:var(--dim,#7a828c);font-size:26px;line-height:1;cursor:pointer;padding:2px 6px}
.felek-close:hover{color:var(--tx,#e8ecf1)}

.felek-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.felek-msg{display:flex;flex-direction:column;gap:8px;max-width:92%}
.felek-msg--user{align-self:flex-end;align-items:flex-end}
.felek-msg--bot{align-self:flex-start;align-items:flex-start}
.felek-bubble{padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.45;white-space:pre-line}
.felek-msg--user .felek-bubble{background:var(--acc,#3d8bfd);color:#fff;border-bottom-right-radius:4px}
.felek-msg--bot .felek-bubble{background:var(--bg2,#1a2029);border:1px solid var(--line,#232a33);border-bottom-left-radius:4px}

.felek-dots{display:inline-flex;gap:4px;padding:2px 0}
.felek-dots i{width:6px;height:6px;border-radius:50%;background:var(--dim,#7a828c);animation:felek-blink 1.2s infinite}
.felek-dots i:nth-child(2){animation-delay:.2s}
.felek-dots i:nth-child(3){animation-delay:.4s}
@keyframes felek-blink{0%,80%,100%{opacity:.25}40%{opacity:1}}

.felek-products{display:flex;flex-direction:column;gap:8px;width:100%}
.felek-product{display:flex;gap:10px;align-items:center;padding:8px;border:1px solid var(--line,#232a33);
	border-radius:12px;background:var(--bg2,#1a2029);text-decoration:none;color:inherit;transition:border-color .15s}
.felek-product:hover{border-color:var(--acc,#3d8bfd)}
.felek-product img{width:52px;height:52px;object-fit:cover;border-radius:8px;flex:none;background:#0b0e13}
.felek-product-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.felek-product-name{font-size:12.5px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.felek-product-specs{font-size:11.5px;color:var(--dim,#7a828c)}
.felek-product-price{font-size:13px;font-weight:700;color:var(--acc,#3d8bfd)}

.felek-more,.felek-link{display:inline-block;font-size:13px;font-weight:600;color:var(--acc,#3d8bfd);text-decoration:none}
.felek-more:hover,.felek-link:hover{text-decoration:underline}
.felek-links{display:flex;flex-wrap:wrap;gap:10px}

.felek-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 10px}
.felek-chip{border:1px solid var(--line,#232a33);background:none;color:var(--tx,#e8ecf1);
	padding:6px 11px;border-radius:999px;font-size:12.5px;cursor:pointer;transition:border-color .15s}
.felek-chip:hover{border-color:var(--acc,#3d8bfd);color:var(--acc,#3d8bfd)}

.felek-form{display:flex;gap:8px;padding:10px 16px;border-top:1px solid var(--line,#232a33)}
.felek-input{flex:1;background:var(--bg2,#1a2029);border:1px solid var(--line,#232a33);border-radius:12px;
	color:var(--tx,#e8ecf1);padding:10px 13px;font-size:14px;font-family:inherit}
.felek-input:focus{outline:none;border-color:var(--acc,#3d8bfd)}
.felek-send{width:44px;border:0;border-radius:12px;background:var(--acc,#3d8bfd);color:#fff;cursor:pointer;
	display:flex;align-items:center;justify-content:center}
.felek-send:hover{filter:brightness(1.1)}

.felek-privacy{padding:6px 16px 12px;font-size:10.5px;color:var(--dim,#7a828c);line-height:1.4}

@media(max-width:640px){
	.felek-fab{right:16px;bottom:80px;height:50px;padding:0 15px}
	.felek-panel{right:8px;left:8px;bottom:8px;width:auto;height:70vh}
}
