/* Grizzly CRM — віджет чату на сайті. Темна тема сайту: #141418 / #F4F0E8 / gold #C9A24A / red #C8102E.
   z-index нижчий за банер згоди cookie-banners-mka (99998). */
.gzc-chat{--gzc-ink:#141418;--gzc-panel:#1c1c22;--gzc-line:rgba(255,255,255,.1);--gzc-bone:#f4f0e8;--gzc-sand:#d9d2c5;--gzc-muted:#a3a3ad;--gzc-gold:#c9a24a;--gzc-gold-2:#e7ce84;--gzc-red:#c8102e;--gzc-red-2:#e63946;
	position:fixed;right:20px;bottom:20px;z-index:99990;font-family:Manrope,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:15px;line-height:1.45;color:var(--gzc-bone);-webkit-font-smoothing:antialiased}
.gzc-chat--left{right:auto;left:20px}
.gzc-chat *,.gzc-chat *::before,.gzc-chat *::after{box-sizing:border-box}
.gzc-chat button{font:inherit;cursor:pointer}
.gzc-chat__btn{position:relative;width:56px;height:56px;border:0;border-radius:50%;background:var(--gzc-red);color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;transition:transform .2s,background .2s}
.gzc-chat__btn:hover{background:var(--gzc-red-2);transform:translateY(-1px)}
.gzc-chat__btn:focus-visible{outline:2px solid var(--gzc-gold);outline-offset:3px}
.gzc-chat__btn svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gzc-chat__btn .gzc-chat__ico-x{display:none}
.gzc-chat.is-open .gzc-chat__btn .gzc-chat__ico-chat{display:none}
.gzc-chat.is-open .gzc-chat__btn .gzc-chat__ico-x{display:block}
.gzc-chat__badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--gzc-gold);color:#141418;font-size:12px;font-weight:700;line-height:20px;text-align:center;box-shadow:0 0 0 2px #0b0b0d}
.gzc-chat__badge[hidden]{display:none}

.gzc-chat__panel{position:absolute;right:0;bottom:70px;width:360px;max-width:calc(100vw - 40px);height:560px;max-height:calc(100vh - 100px);display:flex;flex-direction:column;background:var(--gzc-ink);border:1px solid var(--gzc-line);border-radius:12px;box-shadow:0 24px 60px rgba(0,0,0,.5);overflow:hidden;opacity:0;transform:translateY(12px);pointer-events:none;transition:opacity .2s,transform .2s}
.gzc-chat--left .gzc-chat__panel{right:auto;left:0}
.gzc-chat.is-open .gzc-chat__panel{opacity:1;transform:none;pointer-events:auto}
.gzc-chat__head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#0b0b0d;border-bottom:1px solid var(--gzc-gold)}
.gzc-chat__logo{width:38px;height:38px;border-radius:50%;background:var(--gzc-red);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.gzc-chat__logo svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gzc-chat__title{font-weight:700;font-size:15px;letter-spacing:.01em}
.gzc-chat__sub{font-size:12px;color:var(--gzc-gold-2);display:flex;align-items:center;gap:6px}
.gzc-chat__sub::before{content:"";width:7px;height:7px;border-radius:50%;background:#48c774;box-shadow:0 0 0 3px rgba(72,199,116,.2)}
.gzc-chat__close{margin-left:auto;width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:var(--gzc-sand);display:flex;align-items:center;justify-content:center}
.gzc-chat__close:hover{background:rgba(255,255,255,.08);color:#fff}
.gzc-chat__close svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round}

.gzc-chat__log{flex:1 1 auto;overflow-y:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth;overscroll-behavior:contain}
.gzc-chat__msg{max-width:86%;padding:9px 13px;border-radius:14px;white-space:pre-wrap;word-wrap:break-word;font-size:14.5px}
.gzc-chat__msg--assistant,.gzc-chat__msg--manager{align-self:flex-start;background:var(--gzc-panel);border:1px solid var(--gzc-line);border-bottom-left-radius:4px;color:var(--gzc-bone)}
.gzc-chat__msg--manager{border-color:rgba(201,162,74,.5)}
.gzc-chat__msg--user{align-self:flex-end;background:var(--gzc-red);color:#fff;border-bottom-right-radius:4px}
.gzc-chat__msg--status{align-self:center;max-width:95%;background:transparent;color:var(--gzc-muted);font-size:12.5px;text-align:center;padding:2px 8px}
.gzc-chat__who{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--gzc-gold);margin-bottom:3px}
.gzc-chat__msg a{color:var(--gzc-gold-2);text-decoration:underline;text-underline-offset:2px}
.gzc-chat__msg--user a{color:#fff}
.gzc-chat__typing{align-self:flex-start;display:flex;gap:5px;padding:12px 14px;background:var(--gzc-panel);border:1px solid var(--gzc-line);border-radius:14px;border-bottom-left-radius:4px}
.gzc-chat__typing i{width:7px;height:7px;border-radius:50%;background:var(--gzc-sand);animation:gzcDot 1s infinite ease-in-out}
.gzc-chat__typing i:nth-child(2){animation-delay:.15s}.gzc-chat__typing i:nth-child(3){animation-delay:.3s}
@keyframes gzcDot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}

.gzc-chat__chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 14px 10px}
.gzc-chat__chips[hidden]{display:none}
.gzc-chat__chip{border:1px solid var(--gzc-gold);border-radius:999px;background:transparent;color:var(--gzc-gold-2);padding:7px 12px;font-size:13px;line-height:1.2;transition:background .15s,color .15s;min-height:34px}
.gzc-chat__chip:hover{background:var(--gzc-gold);color:#141418}
.gzc-chat__chip--primary{background:var(--gzc-gold);color:#141418;font-weight:600}
.gzc-chat__chip--primary:hover{background:var(--gzc-gold-2)}

.gzc-chat__form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--gzc-line);background:#0b0b0d}
.gzc-chat__input{flex:1 1 auto;min-width:0;border:1px solid var(--gzc-line);border-radius:10px;background:var(--gzc-panel);color:var(--gzc-bone);padding:10px 12px;font:inherit;font-size:15px;resize:none;max-height:96px;line-height:1.35}
.gzc-chat__input::placeholder{color:var(--gzc-muted)}
.gzc-chat__input:focus{outline:none;border-color:var(--gzc-gold)}
.gzc-chat__send{width:44px;height:44px;border:0;border-radius:10px;background:var(--gzc-red);color:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 auto;align-self:flex-end}
.gzc-chat__send:hover{background:var(--gzc-red-2)}
.gzc-chat__send:disabled{opacity:.5;cursor:default}
.gzc-chat__send svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.gzc-chat__contact{display:flex;flex-direction:column;gap:8px;margin:2px 14px 10px;padding:12px;background:var(--gzc-panel);border:1px solid rgba(201,162,74,.5);border-radius:12px}
.gzc-chat__contact[hidden]{display:none}
.gzc-chat__contact strong{font-size:14px;color:var(--gzc-gold-2)}
.gzc-chat__contact input{border:1px solid var(--gzc-line);border-radius:8px;background:#0b0b0d;color:var(--gzc-bone);padding:10px 12px;font:inherit;font-size:15px;width:100%}
.gzc-chat__contact input:focus{outline:none;border-color:var(--gzc-gold)}
.gzc-chat__contact input::placeholder{color:var(--gzc-muted)}
.gzc-chat__contact-row{display:flex;gap:8px;align-items:center}
.gzc-chat__contact-submit{flex:1 1 auto;border:0;border-radius:8px;background:var(--gzc-red);color:#fff;padding:11px 14px;font-weight:600}
.gzc-chat__contact-submit:hover{background:var(--gzc-red-2)}
.gzc-chat__contact-cancel{border:0;background:transparent;color:var(--gzc-muted);padding:8px 10px}
.gzc-chat__contact-cancel:hover{color:var(--gzc-bone)}
.gzc-chat__err{font-size:12.5px;color:#ff8a94;min-height:1em}
.gzc-chat__hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.gzc-chat__foot{padding:6px 14px 10px;font-size:11px;color:var(--gzc-muted);text-align:center;background:#0b0b0d}

@media (max-width:640px){
	.gzc-chat{right:16px;bottom:16px}
	.gzc-chat--left{left:16px}
	.gzc-chat__btn{width:52px;height:52px}
	.gzc-chat__btn svg{width:24px;height:24px}
	.gzc-chat__panel{position:fixed;inset:0;width:auto;max-width:none;height:auto;max-height:none;border-radius:0;border:0;bottom:0}
	.gzc-chat.is-open .gzc-chat__btn{display:none}
	.gzc-chat__head{padding:12px 14px;padding-top:max(12px,env(safe-area-inset-top))}
	.gzc-chat__form{padding-bottom:max(10px,env(safe-area-inset-bottom))}
	.gzc-chat__input{font-size:16px}
	.gzc-chat__msg{max-width:90%}
}
@media (prefers-reduced-motion:reduce){.gzc-chat__panel,.gzc-chat__btn{transition:none}.gzc-chat__typing i{animation:none;opacity:.7}.gzc-chat__log{scroll-behavior:auto}}
@media print{.gzc-chat{display:none}}
