/* DenZal site chat (v1.0.0). Self-contained: its own colors and resets, so the theme stylesheet cannot
   break it and it cannot break the theme. Markup is built by assets/js/dz-chat.js. */
.dzc{
  --d-blue:#005baa;--d-blue-dk:#00447f;--d-yellow:#eedf24;--d-red:#cc2020;
  --d-bg:#fff;--d-soft:#f3f6f9;--d-line:#dbe2ea;--d-text:#18222d;--d-muted:#5d6b7a;
  position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:9500;
  font-family:inherit;font-size:15px;line-height:1.5;color:var(--d-text);text-align:left;
  opacity:0;transform:translateY(16px) scale(.9);transition:opacity .45s ease,transform .45s cubic-bezier(.2,.9,.3,1.2);
}
.dzc.is-in{opacity:1;transform:none}
.dzc *,.dzc *::before,.dzc *::after{box-sizing:border-box}
.dzc [hidden]{display:none!important}
.dzc button,.dzc input,.dzc textarea{font:inherit;color:inherit;margin:0;text-transform:none;letter-spacing:normal}
.dzc button{cursor:pointer}
.dzc button:focus-visible,.dzc a:focus-visible{outline:3px solid var(--d-yellow);outline-offset:2px}

/* Avatar: photo, with the first initial behind it */
.dzc-av{display:flex;align-items:center;justify-content:center;flex:none;overflow:hidden;border-radius:50%;background:var(--d-blue);color:#fff;font-weight:700}
.dzc-av img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.dzc-av-lg{width:100%;height:100%;font-size:26px}
.dzc-av-md{width:42px;height:42px;font-size:18px;border:2px solid var(--d-yellow)}

/* Launcher */
.dzc-launch{
  position:relative;display:block;width:68px;height:68px;padding:0;border-radius:50%;
  border:3px solid #fff;background:var(--d-blue);
  box-shadow:0 8px 26px rgba(0,30,60,.35),0 0 0 3px var(--d-blue);transition:transform .2s,box-shadow .2s;
}
.dzc-launch:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 12px 30px rgba(0,30,60,.4),0 0 0 3px var(--d-yellow)}
.dzc-dot{position:absolute;right:1px;bottom:1px;width:15px;height:15px;border-radius:50%;background:#2fbf5b;border:2.5px solid #fff}

/* Hello bubble */
.dzc-teaser{
  position:absolute;right:82px;bottom:12px;display:flex;align-items:center;white-space:nowrap;
  background:#fff;border:1px solid var(--d-line);border-left:4px solid var(--d-yellow);border-radius:12px 12px 3px 12px;
  box-shadow:0 10px 30px rgba(0,30,60,.22);animation:dzc-pop .4s cubic-bezier(.2,.9,.3,1.3);
}
.dzc-teaser-open{background:none;border:0;padding:11px 4px 11px 14px;font-size:15.5px;font-weight:700;color:var(--d-text);text-align:left;min-height:46px}
.dzc-teaser-open:hover{color:var(--d-blue)}
.dzc-teaser-x{background:none;border:0;padding:8px 12px 8px 6px;font-size:18px;line-height:1;color:var(--d-muted)}
.dzc-teaser-x:hover{color:var(--d-red)}
@keyframes dzc-pop{from{opacity:0;transform:translateX(10px) scale(.92)}to{opacity:1;transform:none}}

/* Panel */
.dzc-panel{
  position:absolute;right:0;bottom:82px;width:376px;max-width:calc(100vw - 24px);
  height:min(600px,calc(100vh - 124px));height:min(600px,calc(100dvh - 124px));
  display:flex;flex-direction:column;overflow:hidden;
  background:var(--d-bg);border:1px solid var(--d-line);border-radius:14px;
  box-shadow:0 24px 70px rgba(0,30,60,.35);animation:dzc-up .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes dzc-up{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.dzc-head{display:flex;align-items:center;gap:11px;padding:12px 10px 12px 14px;background:var(--d-blue);border-bottom:4px solid var(--d-yellow);color:#fff}
.dzc-head-txt{flex:1;min-width:0}
.dzc-head-txt strong{display:block;font-size:16px;font-weight:700;line-height:1.25;color:#fff}
.dzc-head-txt span{display:block;font-size:12.5px;color:rgba(255,255,255,.85);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dzc-close{flex:none;width:38px;height:38px;border:0;border-radius:8px;background:none;font-size:26px;line-height:1;color:#fff}
.dzc-close:hover{background:rgba(255,255,255,.16)}

.dzc-msgs{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px;display:flex;flex-direction:column;gap:10px;background:var(--d-soft)}
.dzc-row{display:flex;flex-direction:column;align-items:flex-start;gap:6px;max-width:100%}
.dzc-you{align-items:flex-end}
.dzc-bubble{position:relative;max-width:88%;padding:10px 13px;border-radius:14px 14px 14px 3px;background:#fff;border:1px solid var(--d-line);white-space:pre-wrap;overflow-wrap:anywhere}
.dzc-you .dzc-bubble{border-radius:14px 14px 3px 14px;background:var(--d-blue);border-color:var(--d-blue);color:#fff}
.dzc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dzc-acts{display:flex;flex-wrap:wrap;gap:6px;max-width:100%}
.dzc-link{display:inline-block;padding:7px 12px;border-radius:999px;border:1px solid var(--d-blue);background:#fff;color:var(--d-blue)!important;font-size:13px;font-weight:600;line-height:1.4;text-decoration:none!important;transition:background .2s,color .2s}
.dzc-link:hover{background:var(--d-blue);color:#fff!important}
.dzc-link-call,.dzc-link-msg{background:var(--d-yellow);border-color:var(--d-yellow);color:#1c1a00!important}
.dzc-link-call:hover,.dzc-link-msg:hover{background:#d9cb14;border-color:#d9cb14;color:#1c1a00!important}
.dzc-typing .dzc-bubble{display:flex;gap:5px;padding:14px}
.dzc-typing i{width:6px;height:6px;border-radius:50%;background:var(--d-blue);animation:dzc-dot 1.1s ease-in-out infinite}
.dzc-typing i:nth-child(2){animation-delay:.15s}.dzc-typing i:nth-child(3){animation-delay:.3s}
@keyframes dzc-dot{0%,100%{opacity:.25;transform:none}50%{opacity:1;transform:translateY(-3px)}}

/* Quick buttons */
.dzc-quick{display:flex;gap:6px;padding:9px 14px;overflow-x:auto;border-top:1px solid var(--d-line);background:#fff;scrollbar-width:none}
.dzc-quick::-webkit-scrollbar{display:none}
.dzc-chip{flex:none;padding:7px 12px;border-radius:999px;border:1px solid var(--d-line);background:var(--d-soft);font-size:13px;color:var(--d-text);white-space:nowrap;transition:border-color .2s,color .2s}
.dzc-chip:hover{border-color:var(--d-blue);color:var(--d-blue)}

/* Input */
.dzc-form{display:flex;gap:8px;padding:0 14px 8px;background:#fff}
.dzc-form input{flex:1;min-width:0;height:44px;padding:0 14px;border-radius:10px;border:1px solid var(--d-line);background:#fff;font-size:16px;outline:0;box-shadow:none}
.dzc-form input:focus{border-color:var(--d-blue)}
.dzc-form input::placeholder,.dzc-lead ::placeholder{color:#8a96a3}
.dzc-form button{flex:none;width:44px;height:44px;border:0;border-radius:10px;background:var(--d-blue);color:#fff;font-size:18px;font-weight:700}
.dzc-form button:hover{background:var(--d-blue-dk)}
.dzc-form button:disabled{opacity:.5;cursor:default}
.dzc-note{margin:0;padding:0 14px 10px;font-size:11px;line-height:1.4;color:var(--d-muted);background:#fff}

/* Leave a message */
.dzc-lead{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:12px;border:1px solid var(--d-line);border-top:3px solid var(--d-yellow);background:#fff}
.dzc-f{display:flex;flex-direction:column;gap:3px;margin:0}
.dzc-f span{font-size:12px;font-weight:600;color:var(--d-muted)}
.dzc-f input,.dzc-f textarea{width:100%;padding:9px 11px;border-radius:8px;border:1px solid var(--d-line);background:#fff;font-size:16px;outline:0;resize:vertical;box-shadow:none}
.dzc-f input:focus,.dzc-f textarea:focus{border-color:var(--d-blue)}
.dzc-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.dzc-err{margin:0;font-size:13px;color:var(--d-red)}
.dzc-err:empty{display:none}
/* v7.12.6: scoped under .dzc so the white bold label beats the ".dzc button" reset (it was showing dark on blue) */
.dzc .dzc-send{height:44px;border:0;border-radius:8px;background:var(--d-blue);color:#fff;font-weight:700}
.dzc .dzc-send:hover{background:var(--d-blue-dk)}
.dzc .dzc-send:disabled{opacity:.6;cursor:default}

/* Phone: the panel becomes a sheet and the launcher steps aside while it is open */
@media (max-width:520px){
  .dzc{right:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  .dzc-launch{width:60px;height:60px}
  .dzc-teaser{right:72px;bottom:8px;white-space:normal;width:max-content;max-width:calc(100vw - 100px)}
  .dzc.is-open{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px))}
  .dzc.is-open .dzc-launch{display:none}
  .dzc-panel{position:relative;bottom:auto;width:100%;max-width:none;height:min(620px,calc(100vh - 24px));height:min(620px,calc(100dvh - 24px))}
}
@media (prefers-reduced-motion:reduce){
  .dzc,.dzc-panel,.dzc-teaser{transition:none;animation:none}
  .dzc-typing i{animation:none}
}
@media print{.dzc{display:none!important}}
