/* Lotti – asystentka AI LittleLoft (ll-lotti.php) – 6.11.2026 */
#ll-lotti{--lt-navy:#1E2A40;--lt-navy2:#2D3F5E;--lt-gold:#F3C98B;--lt-beige:#F6EEE6;--lt-cream:#FBF8F4;--lt-wood:#8B5E3C;--lt-btn:#8B6748;--lt-line:#E9DFD3;--lt-muted:#5A6270;--lt-green:#2E7D32;--lt-b:60px;--lt-r:24px;font-family:inherit;color:var(--lt-navy);-webkit-font-smoothing:antialiased}
#ll-lotti *,#ll-lotti *::before,#ll-lotti *::after{box-sizing:border-box}
#ll-lotti button{font-family:inherit;text-transform:none;letter-spacing:normal;margin:0;box-shadow:none;min-height:0;line-height:1.2}
#ll-lotti svg{display:block}

/* czat zespołu (IChatMZ) schowany, dopóki Lotti nie przekaże rozmowy */
html.ll-lotti-an:not(.ll-lotti-mensch) #wct-chat-widget{display:none!important}
html.ll-lotti-otwarte #wct-toggle-btn{opacity:0!important;pointer-events:none!important}

/* ---------- przycisk ---------- */
#ll-lotti .lt-launcher{position:fixed;right:var(--lt-r);bottom:var(--lt-b);z-index:999990;display:flex;align-items:center;gap:10px;height:56px;padding:6px 18px 6px 6px;border:0;border-radius:999px;background:var(--lt-navy);color:#fff;cursor:pointer;box-shadow:0 10px 28px rgba(30,42,64,.28),0 2px 6px rgba(30,42,64,.18);transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease,bottom .25s ease}
#ll-lotti .lt-launcher:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(30,42,64,.32),0 3px 8px rgba(30,42,64,.2)}
#ll-lotti .lt-launcher:focus-visible{outline:3px solid var(--lt-gold);outline-offset:3px}
#ll-lotti .lt-av{position:relative;width:44px;height:44px;flex:none;border-radius:50%;box-shadow:0 0 0 2px rgba(243,201,139,.55)}
#ll-lotti .lt-av svg{width:44px;height:44px}
#ll-lotti .lt-dot{position:absolute;right:0;bottom:1px;width:11px;height:11px;border-radius:50%;background:#34C759;border:2px solid var(--lt-navy)}
#ll-lotti .lt-lab{font-size:15px;font-weight:700;white-space:nowrap}
html.ll-lotti-mensch #ll-lotti .lt-launcher{bottom:calc(var(--lt-b) + 76px)}
html.ll-lotti-otwarte #ll-lotti .lt-launcher,html.ll-lotti-wct-otwarty #ll-lotti .lt-launcher{opacity:0;pointer-events:none;transform:scale(.9)}

/* ---------- dymek zachęty ---------- */
#ll-lotti .lt-teaser{position:fixed;right:var(--lt-r);bottom:calc(var(--lt-b) + 70px);z-index:999991;display:flex;align-items:flex-start;gap:10px;max-width:290px;padding:14px 34px 14px 14px;border-radius:16px;background:#fff;box-shadow:0 12px 34px rgba(30,42,64,.2);cursor:pointer;opacity:0;transform:translateY(8px) scale(.98);transition:opacity .25s ease,transform .25s ease}
#ll-lotti .lt-teaser.lt-in{opacity:1;transform:none}
#ll-lotti .lt-teaser::after{content:"";position:absolute;right:30px;bottom:-7px;width:14px;height:14px;background:#fff;transform:rotate(45deg);box-shadow:3px 3px 6px rgba(30,42,64,.06)}
html.ll-lotti-mensch #ll-lotti .lt-teaser{bottom:calc(var(--lt-b) + 146px)}
#ll-lotti .lt-teaser p{margin:0;font-size:14px;line-height:1.4;color:var(--lt-navy)}
#ll-lotti .lt-tav svg{width:34px;height:34px}
#ll-lotti .lt-tx{position:absolute;top:6px;right:6px;width:24px;height:24px;padding:4px;border:0;border-radius:50%;background:transparent;color:var(--lt-muted);cursor:pointer}
#ll-lotti .lt-tx:hover{background:var(--lt-beige)}

/* ---------- panel ---------- */
#ll-lotti .lt-panel{position:fixed;right:var(--lt-r);bottom:24px;z-index:999995;display:flex;flex-direction:column;width:384px;height:min(640px,calc(100vh - 48px));border-radius:22px;background:var(--lt-cream);box-shadow:0 24px 60px rgba(30,42,64,.28),0 4px 14px rgba(30,42,64,.14);overflow:hidden;opacity:0;transform:translateY(14px) scale(.97);transform-origin:bottom right;transition:opacity .22s ease,transform .22s ease}
#ll-lotti .lt-panel.lt-in{opacity:1;transform:none}
#ll-lotti .lt-panel[hidden]{display:none}
#ll-lotti .lt-head{display:flex;align-items:center;gap:12px;padding:14px 12px 14px 16px;background:linear-gradient(135deg,var(--lt-navy) 0%,var(--lt-navy2) 100%);color:#fff;flex:none}
#ll-lotti .lt-hav{width:42px;height:42px;flex:none;border-radius:50%;box-shadow:0 0 0 2px rgba(243,201,139,.6)}
#ll-lotti .lt-hav svg{width:42px;height:42px}
#ll-lotti .lt-ht{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#ll-lotti .lt-ht b{font-size:17px;line-height:1.2;color:#fff}
#ll-lotti .lt-ht small{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--lt-gold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ll-lotti .lt-dot2{width:7px;height:7px;flex:none;border-radius:50%;background:#34C759;box-shadow:0 0 0 3px rgba(52,199,89,.2)}
#ll-lotti .lt-ib{width:34px;height:34px;padding:7px;border:0;border-radius:10px;background:transparent;color:rgba(255,255,255,.78);cursor:pointer;flex:none}
#ll-lotti .lt-ib:hover{background:rgba(255,255,255,.12);color:#fff}

/* ---------- wiadomości ---------- */
#ll-lotti .lt-msgs{position:relative;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 14px 8px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}
#ll-lotti .lt-row{display:flex;gap:8px;align-items:flex-end;max-width:100%;animation:ltUp .25s ease both}
@keyframes ltUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
#ll-lotti .lt-u{justify-content:flex-end}
#ll-lotti .lt-mav{width:28px;height:28px;flex:none;border-radius:50%;align-self:flex-start;margin-top:2px}
#ll-lotti .lt-mav svg{width:28px;height:28px}
#ll-lotti .lt-col{display:flex;flex-direction:column;gap:8px;min-width:0;max-width:86%}
#ll-lotti .lt-u .lt-col{align-items:flex-end}
#ll-lotti .lt-b{padding:10px 13px;border-radius:18px 18px 18px 6px;background:#fff;border:1px solid var(--lt-line);font-size:14.5px;line-height:1.48;color:var(--lt-navy);overflow-wrap:anywhere}
#ll-lotti .lt-u .lt-b{border-radius:18px 18px 6px 18px;background:var(--lt-navy);border-color:var(--lt-navy);color:#fff}
#ll-lotti .lt-err .lt-b{background:#FFF4F2;border-color:#F3C9C2}
#ll-lotti .lt-b p{margin:0 0 6px}
#ll-lotti .lt-b p:last-child{margin-bottom:0}
#ll-lotti .lt-b ul{margin:4px 0 6px;padding-left:18px}
#ll-lotti .lt-b li{margin:2px 0}
#ll-lotti .lt-b strong{font-weight:700}
#ll-lotti .lt-b a{color:var(--lt-wood);font-weight:600;text-decoration:underline;text-underline-offset:2px}
#ll-lotti .lt-u .lt-b a{color:var(--lt-gold)}

/* pisze… */
#ll-lotti .lt-dots{display:inline-flex;gap:4px;padding:4px 2px}
#ll-lotti .lt-dots i{width:7px;height:7px;border-radius:50%;background:#B9A48E;animation:ltDot 1.2s infinite ease-in-out}
#ll-lotti .lt-dots i:nth-child(2){animation-delay:.15s}#ll-lotti .lt-dots i:nth-child(3){animation-delay:.3s}
@keyframes ltDot{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-4px);opacity:1}}

/* szybkie odpowiedzi */
#ll-lotti .lt-chips{display:flex;flex-wrap:wrap;gap:6px}
#ll-lotti .lt-chip{padding:8px 12px;border:1.5px solid #D9C6B3;border-radius:999px;background:#fff;color:var(--lt-navy);font-size:13.5px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
#ll-lotti .lt-chip:hover{background:var(--lt-beige);border-color:var(--lt-wood)}

/* karty produktów */
#ll-lotti .lt-cards{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scroll-snap-type:x mandatory;max-width:100%}
#ll-lotti .lt-card{flex:0 0 156px;scroll-snap-align:start;display:flex;flex-direction:column;gap:3px;padding:0 0 10px;border-radius:14px;background:#fff;border:1px solid var(--lt-line);text-decoration:none;color:var(--lt-navy);overflow:hidden;transition:transform .15s,box-shadow .15s}
#ll-lotti .lt-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(30,42,64,.12)}
#ll-lotti .lt-card img{width:100%;height:110px;object-fit:cover;display:block;margin:0 0 4px;border-radius:0}
#ll-lotti .lt-cn{padding:0 10px;font-size:13px;font-weight:700;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#ll-lotti .lt-cp{padding:0 10px;font-size:13px}
#ll-lotti .lt-cp b{color:var(--lt-green)}
#ll-lotti .lt-cp s{color:var(--lt-muted);font-size:12px}
#ll-lotti .lt-cl{padding:0 10px;font-size:12.5px;font-weight:600;color:var(--lt-wood)}
/* karta konfiguratora 3D (1.2.0) */
#ll-lotti .lt-card{position:relative}
#ll-lotti .lt-konf{border-color:var(--lt-wood);background:var(--lt-beige)}
#ll-lotti .lt-konf .lt-cl{color:var(--lt-navy)}
#ll-lotti .lt-3d{position:absolute;top:8px;left:8px;z-index:1;padding:3px 8px;border-radius:999px;background:var(--lt-navy);color:#fff;font-style:normal;font-size:11px;font-weight:800;line-height:1.2;letter-spacing:.05em;box-shadow:0 2px 6px rgba(30,42,64,.25)}

/* przekazanie do zespołu */
#ll-lotti .lt-hand{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:16px;background:#FFF8EC;border:1px solid var(--lt-gold)}
#ll-lotti .lt-hand b{font-size:14px}
#ll-lotti .lt-hb{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border:0;border-radius:12px;background:var(--lt-btn);color:#fff;font-size:15px;font-weight:700;cursor:pointer}
#ll-lotti .lt-hb:hover{background:#7A5A3E}
#ll-lotti .lt-hb svg,#ll-lotti .lt-hm svg{width:18px;height:18px;flex:none}
#ll-lotti .lt-hm{display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:12px;border:1.5px solid #D9C6B3;background:#fff;color:var(--lt-navy);font-size:14px;font-weight:600;text-decoration:none}
#ll-lotti .lt-hand small{font-size:12px;color:var(--lt-muted);text-align:center}

/* ocena */
#ll-lotti .lt-rate{display:flex;gap:4px;margin-top:-2px;opacity:.55;transition:opacity .15s}
#ll-lotti .lt-row:hover .lt-rate,#ll-lotti .lt-rate:focus-within{opacity:1}
#ll-lotti .lt-rated{font-size:12px;color:var(--lt-muted);opacity:1}
#ll-lotti .lt-rb{width:28px;height:28px;padding:5px;border:0;border-radius:8px;background:transparent;color:var(--lt-muted);cursor:pointer}
#ll-lotti .lt-rb:hover{background:var(--lt-beige);color:var(--lt-navy)}
#ll-lotti .lt-dn svg{transform:rotate(180deg)}

/* pole tekstowe */
#ll-lotti .lt-form{display:flex;align-items:flex-end;gap:8px;margin:0;padding:10px 12px;background:#fff;border-top:1px solid var(--lt-line);flex:none}
#ll-lotti .lt-form textarea{flex:1;min-width:0;height:44px;min-height:44px!important;max-height:120px;margin:0;padding:11px 14px;border:1.5px solid #E2D6C8;border-radius:14px;background:var(--lt-cream);color:var(--lt-navy);font:inherit;font-size:15px;line-height:1.35;resize:none;outline:none;box-shadow:none}
#ll-lotti .lt-form textarea:focus{border-color:var(--lt-wood);background:#fff}
#ll-lotti .lt-form .lt-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none}
#ll-lotti .lt-send{width:44px;height:44px;flex:none;padding:10px;border:0;border-radius:50%;background:var(--lt-btn);color:#fff;cursor:pointer;transition:background .15s,opacity .15s}
#ll-lotti .lt-send:disabled{opacity:.35;cursor:default}
#ll-lotti .lt-send:not(:disabled):hover{background:#7A5A3E}
#ll-lotti .lt-foot{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 14px 10px;background:#fff;flex:none}
#ll-lotti .lt-human{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:0;border-radius:8px;background:transparent;color:var(--lt-wood);font-size:13px;font-weight:600;cursor:pointer}
#ll-lotti .lt-human svg{width:15px;height:15px}
#ll-lotti .lt-human:hover{background:var(--lt-beige)}
#ll-lotti .lt-foot span{font-size:11px;line-height:1.3;color:#8A909A;text-align:center}

/* ---------- czat zespołu (IChatMZ) w kolorach LittleLoft – tylko gdy działa Lotti ---------- */
html.ll-lotti-an #wct-chat-widget{--wct-primary:#8B6748!important;--wct-primary-dark:#7A5A3E!important;--wct-header-bg:linear-gradient(135deg,#1E2A40 0%,#2D3F5E 100%)!important;--wct-header-text-color:#fff!important;--wct-visitor-bubble:#1E2A40!important;--wct-admin-bubble:#fff!important;--wct-btn-bg:#1E2A40!important;--wct-bubble-radius:20px!important}
html.ll-lotti-an #wct-chat-widget .wct-widget-header{padding-top:16px;padding-bottom:16px}
html.ll-lotti-an #wct-chat-widget .wct-header-info small{color:#F3C98B!important;opacity:1}
html.ll-lotti-an #wct-chat-widget .wct-pre-form-notice{background:#FFF8EC!important;border:1px solid #F3C98B!important;border-left:4px solid #8B5E3C!important;color:#1E2A40!important;border-radius:12px!important}
html.ll-lotti-an #wct-chat-widget .wct-start-form input{border-radius:12px!important;border-color:#E2D6C8!important;background:#FBF8F4!important}
html.ll-lotti-an #wct-chat-widget .wct-start-form input:focus{border-color:#8B6748!important;background:#fff!important}
html.ll-lotti-an #wct-chat-widget .wct-btn-primary{border-radius:12px!important;font-weight:700!important}
html.ll-lotti-an #wct-chat-widget .wct-messages{background:#FBF8F4!important}
html.ll-lotti-an #wct-chat-widget .wct-msg-admin{border-color:#E9DFD3!important;color:#1E2A40!important}
html.ll-lotti-an #wct-chat-widget .wct-input-bar textarea{border-radius:14px!important;border-color:#E2D6C8!important}
html.ll-lotti-an #wct-chat-widget .wct-btn-send{background:#8B6748!important;border-radius:50%!important}
html.ll-lotti-an button#wct-toggle-btn.wct-toggle-btn{box-shadow:0 10px 28px rgba(30,42,64,.28),0 2px 6px rgba(30,42,64,.18)!important}

/* ---------- telefon ---------- */
@media (max-width:600px){
	#ll-lotti{--lt-r:16px}
	#ll-lotti .lt-launcher{width:58px;height:58px;padding:7px;justify-content:center}
	#ll-lotti .lt-lab{display:none}
	#ll-lotti .lt-teaser{right:12px;left:auto;max-width:calc(100vw - 88px)}
	#ll-lotti .lt-panel{left:0;right:0;bottom:0;width:auto;height:min(88dvh,720px);border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom,0px);transform:translateY(24px);transform-origin:bottom center}
	#ll-lotti .lt-form textarea{font-size:16px}
	#ll-lotti .lt-col{max-width:88%}
	html.ll-lotti-otwarte body{overflow:hidden}
	html.ll-lotti-otwarte #CookiebotWidget{display:none!important}
	/* karta produktu (ll-karta-lekka): przycisk nad paskiem „Dein Bett / In den Warenkorb” – jak czat IChatMZ */
	body.ll-lekka #ll-lotti .lt-launcher,body.ll-lekka #ll-lotti .lt-teaser{transform:translateY(calc(-16px - env(safe-area-inset-bottom,0px)))}
	body.ll-lekka #ll-lotti .lt-teaser.lt-in{transform:translateY(calc(-16px - env(safe-area-inset-bottom,0px)))}
}
@media (prefers-reduced-motion:reduce){#ll-lotti *{animation:none!important;transition:none!important}}
#ll-lotti .lt-konf img{object-fit:contain;background:#F7F5F2}
