/* Curiosi Chat Leads v1.1 */
.ccl-root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Arial,sans-serif;font-size:15px;line-height:1.4;color:#111827}
.ccl-root *{box-sizing:border-box}
.ccl-root [hidden]{display:none!important}
.ccl-root button{font:inherit;cursor:pointer;margin:0;text-transform:none;letter-spacing:normal;box-shadow:none;-webkit-tap-highlight-color:transparent}
.ccl-ico{display:inline-flex;line-height:0}
.ccl-ico svg{width:22px;height:22px}

/* ---------- Floating button (round, icon only by default) ---------- */
.ccl-fab{position:fixed;z-index:99992;-webkit-transform:translateZ(0);backface-visibility:hidden;will-change:transform;display:inline-flex;align-items:center;justify-content:center;gap:10px;width:60px;height:60px;padding:0;border:0;border-radius:50%;background:var(--ccl-color,#128C7E);color:var(--ccl-on-color,#fff);box-shadow:0 8px 24px rgba(0,0,0,.24),0 2px 6px rgba(0,0,0,.12)!important;touch-action:none;user-select:none;-webkit-user-select:none;transition:transform .18s ease,box-shadow .18s ease}
.ccl-pos-right .ccl-fab{right:18px;bottom:18px}
.ccl-pos-left .ccl-fab{left:18px;bottom:18px}
@media (hover:hover){.ccl-fab:hover{transform:scale(1.06)}}
.ccl-fab:active{transform:scale(.96)}
.ccl-fab:focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 6px var(--ccl-color,#128C7E)!important}
.ccl-fab.ccl-snapping{transition:left .25s cubic-bezier(.2,.9,.3,1.2),top .25s cubic-bezier(.2,.9,.3,1.2),transform .18s ease}
.ccl-dragging .ccl-fab{transform:scale(1.1);cursor:grabbing;box-shadow:0 14px 34px rgba(0,0,0,.32)!important;transition:none}

.ccl-fab-ico{position:relative;width:30px;height:30px;flex:none}
.ccl-fab-ico .ccl-ico{position:absolute;inset:0;align-items:center;justify-content:center;transition:transform .22s ease,opacity .22s ease}
.ccl-fab-ico .ccl-ico svg{width:30px;height:30px}
.ccl-fab-ico .ccl-ico:last-child{opacity:0;transform:rotate(-90deg) scale(.6)}
.ccl-open .ccl-fab-ico .ccl-ico:first-child{opacity:0;transform:rotate(90deg) scale(.6)}
.ccl-open .ccl-fab-ico .ccl-ico:last-child{opacity:1;transform:none}

/* Optional text label ("Show text on button" setting) */
.ccl-has-label .ccl-fab{width:auto;padding:0 20px 0 16px;border-radius:30px}
.ccl-fab-label{font-weight:600;font-size:15px;white-space:nowrap}

/* Unread dot */
.ccl-dot{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;padding:0 5px;border:2px solid #fff;border-radius:10px;background:#ef4444;color:#fff;font-size:11px;font-weight:700;line-height:16px;text-align:center;animation:ccl-pop .3s ease-out}
@keyframes ccl-pop{from{transform:scale(0)}to{transform:scale(1)}}

/* Gentle attention ring until first interaction */
.ccl-root:not(.ccl-open):not(.ccl-dragging) .ccl-fab::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 0 var(--ccl-color,#128C7E);opacity:.5;animation:ccl-ring 2.4s ease-out 2s 3;pointer-events:none}
@keyframes ccl-ring{0%{box-shadow:0 0 0 0 var(--ccl-color,#128C7E);opacity:.5}100%{box-shadow:0 0 0 16px var(--ccl-color,#128C7E);opacity:0}}

/* ---------- Greeting badge ---------- */
.ccl-greeting{position:fixed;z-index:99991;max-width:250px;background:#fff;border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.16),0 1px 3px rgba(0,0,0,.08);animation:ccl-in .28s cubic-bezier(.2,.9,.3,1.2)}
.ccl-greet-text{display:block;width:100%;padding:12px 34px 12px 14px;border:0;background:transparent;color:#111827;text-align:left;font-size:14px;font-weight:500}
.ccl-greet-x{position:absolute;top:6px;right:6px;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#f3f4f6;color:#6b7280;display:flex;align-items:center;justify-content:center}
.ccl-greet-x svg{width:13px;height:13px}

/* ---------- Panel ---------- */
.ccl-panel{position:fixed;z-index:99993;width:350px;max-width:calc(100vw - 24px);overflow:auto;overscroll-behavior:contain;background:#fff;border-radius:20px;box-shadow:0 20px 50px rgba(0,0,0,.22),0 2px 8px rgba(0,0,0,.08);animation:ccl-in .24s cubic-bezier(.2,.9,.3,1.15)}
@keyframes ccl-in{from{opacity:0;transform:scale(.92) translateY(6px)}to{opacity:1;transform:none}}
.ccl-handle{display:none}
.ccl-head{display:flex;align-items:flex-start;gap:12px;padding:18px 16px 18px 18px;background:var(--ccl-color,#128C7E);background-image:linear-gradient(135deg,rgba(255,255,255,.14),rgba(0,0,0,.08));color:var(--ccl-on-color,#fff)}
.ccl-avatar{flex:none;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;color:inherit}
.ccl-avatar svg{width:24px;height:24px}
.ccl-head-text{flex:1;min-width:0}
.ccl-title{margin:0;font-size:17px;font-weight:700;color:inherit;line-height:1.25}
.ccl-sub{margin:4px 0 0;font-size:13px;opacity:.92;color:inherit}
.ccl-status{display:flex;align-items:center;gap:6px;margin:8px 0 0;font-size:12px;opacity:.95;color:inherit}
.ccl-online{width:8px;height:8px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 2px rgba(255,255,255,.35)}
.ccl-x{flex:none;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:inherit;display:flex;align-items:center;justify-content:center}
.ccl-x:hover{background:rgba(255,255,255,.3)}
.ccl-x svg{width:18px;height:18px}
.ccl-body{padding:14px}

.ccl-list{display:flex;flex-direction:column;gap:8px}
.ccl-channel{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;color:#111827;text-align:left;transition:border-color .15s,background .15s,transform .15s}
.ccl-channel:focus-visible{border-color:var(--ccl-color,#128C7E);background:#f9fafb}
@media (hover:hover){.ccl-channel:hover{border-color:var(--ccl-color,#128C7E);background:#f9fafb;transform:translateX(2px)}}
.ccl-ch-ico{flex:none;width:40px;height:40px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center}
.ccl-ch-ico svg{width:20px;height:20px}
.ccl-ch-label{flex:1;font-weight:600}
.ccl-channel>.ccl-ico{color:#9ca3af}
.ccl-channel>.ccl-ico svg{width:18px;height:18px}

.ccl-note{margin:10px 0 0;text-align:center}
.ccl-link{display:inline-flex;align-items:center;gap:4px;padding:2px 0;border:0;background:none;color:#4b5563;font-size:13px;text-decoration:underline}
.ccl-back{display:flex;margin:0 0 14px;text-decoration:none}
.ccl-back svg{width:16px;height:16px}

.ccl-form{display:flex;flex-direction:column;gap:12px;margin:0}
.ccl-field{display:flex;flex-direction:column;gap:5px;margin:0;font-size:13px;font-weight:600;color:#374151}
.ccl-field input,.ccl-field select{width:100%;height:46px;margin:0;padding:0 12px;border:1px solid #d1d5db;border-radius:12px;background:#fff;color:#111827;font:inherit;font-size:16px;font-weight:400;box-shadow:none}
.ccl-field input:focus,.ccl-field select:focus{outline:2px solid var(--ccl-color,#128C7E);outline-offset:0;border-color:transparent}
.ccl-consent{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:12.5px;color:#4b5563}
.ccl-consent input{margin:2px 0 0;width:16px;height:16px;flex:none}
.ccl-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.ccl-err{margin:0;color:#b91c1c;font-size:13px}
.ccl-err:empty{display:none}
.ccl-submit{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:50px;border:0;border-radius:14px;color:#fff;font-weight:700;font-size:15px}
.ccl-submit:hover{filter:brightness(.95)}
.ccl-privacy{margin:0;text-align:center;font-size:12px;color:#6b7280}

.ccl-backdrop{display:none}

/* ---------- Inline / product buttons ---------- */
.ccl-inline-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border:0;border-radius:10px;background:#15803D;color:#fff;font-weight:700;font-size:15px;line-height:1.2;cursor:pointer}
.ccl-inline-btn:hover{filter:brightness(.95)}
.ccl-inline-btn::before{content:"";width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.4 8.4 0 0 1 3.8-.9h.5a8.5 8.5 0 0 1 8 8v.5z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.4 8.4 0 0 1 3.8-.9h.5a8.5 8.5 0 0 1 8 8v.5z'/%3E%3C/svg%3E") center/contain no-repeat}
.ccl-inline-btn.ccl-ch-telegram{background:#0369A1}
.ccl-inline-btn.ccl-ch-instagram{background:#BE185D}
.ccl-inline-btn.ccl-ch-messenger{background:#0866FF}
.ccl-inline-btn.ccl-ch-email{background:#4B5563}
.ccl-inline-btn.ccl-ch-call{background:#111827}
.ccl-inline-btn.ccl-ch-{background:var(--ccl-color,#128C7E);color:var(--ccl-on-color,#fff)}
.ccl-product-wrap{margin:14px 0}

/* ---------- Device visibility ---------- */
@media (min-width:769px){.ccl-hide-desktop{display:none!important}}
@media (max-width:768px){
	.ccl-hide-mobile{display:none!important}
	.ccl-fab{width:56px;height:56px}
	.ccl-pos-right .ccl-fab{right:12px;bottom:12px}
	.ccl-pos-left .ccl-fab{left:12px;bottom:12px}
	.ccl-has-label .ccl-fab{width:56px;padding:0;border-radius:50%}
	.ccl-has-label .ccl-fab-label{display:none}
	.ccl-fab:hover{transform:none}
}

/* ---------- Phones: panel becomes a bottom sheet ---------- */
@media (max-width:480px){
	.ccl-open .ccl-backdrop{display:block;position:fixed;inset:0;z-index:99990;background:rgba(17,24,39,.45);animation:ccl-fade .2s ease-out}
	@keyframes ccl-fade{from{opacity:0}to{opacity:1}}
	.ccl-panel{left:0!important;right:0!important;top:auto!important;bottom:0!important;width:100%;max-width:100%;max-height:88vh!important;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom);animation:ccl-up .28s cubic-bezier(.2,.9,.3,1)}
	@keyframes ccl-up{from{transform:translateY(100%)}to{transform:none}}
	.ccl-handle{display:block;position:absolute;top:7px;left:50%;width:40px;height:4px;margin-left:-20px;border-radius:2px;background:rgba(255,255,255,.55)}
	.ccl-head{padding-top:22px}
	.ccl-open .ccl-fab{opacity:0;pointer-events:none}
	.ccl-greeting{max-width:calc(100vw - 90px)}
}
@media (prefers-reduced-motion:reduce){.ccl-root *,.ccl-root *::after{animation:none!important;transition:none!important}}
