/* Teza assistant widget (includes/teza.php) */
.teza{--tz:#1b6fed;--tz2:#7b1ff0;font-family:inherit}
.teza-fab{position:fixed;right:24px;bottom:28px;z-index:9998;width:50px;height:50px;padding:0;border:0;border-radius:50%;cursor:pointer;
  display:flex;align-items:center;justify-content:center;color:#fff;font-size:21px;background:linear-gradient(135deg,#1b6fed,#7b1ff0);
  box-shadow:0 6px 22px rgba(27,111,237,.35);transition:transform .15s}
.teza-fab:hover{transform:translateY(-2px)}
.teza-fab:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.teza-ava{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-size:18px;flex:none}
.teza-open .teza-fab{display:none}
/* website: round button in the column of floating buttons (back to top, Teza, WhatsApp) */
.teza-fab-col{position:relative;right:auto;bottom:auto;width:50px;height:50px;background:linear-gradient(135deg,#1b6fed,#7b1ff0)!important;color:#fff!important;font-size:21px}
.teza-fab-col:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.teza-is-open .floating-btns{visibility:hidden}
.teza-win{position:fixed;right:22px;bottom:22px;z-index:10000;width:380px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 44px);
  background:#fff;border-radius:18px;box-shadow:0 18px 60px rgba(15,23,42,.28);display:none;flex-direction:column;overflow:hidden;border:1px solid #e5e7eb}
.teza-open .teza-win{display:flex}
.teza-head{display:flex;align-items:center;gap:10px;padding:12px 14px;color:#fff;background:linear-gradient(120deg,var(--tz),var(--tz2))}
.teza-head .teza-ava{width:38px;height:38px}
.teza-title{font-weight:800;font-size:16px;line-height:1.1}
.teza-sub{font-size:11.5px;opacity:.85;margin-top:2px}
.teza-x{margin-left:auto;background:rgba(255,255,255,.16);border:0;color:#fff;width:34px;height:34px;border-radius:50%;cursor:pointer;font-size:16px}
.teza-x:hover{background:rgba(255,255,255,.28)}
.teza-body{flex:1;overflow-y:auto;padding:14px;background:#f6f8fc;display:flex;flex-direction:column;gap:10px}
.teza-msg{max-width:88%;padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.5;word-wrap:break-word;white-space:pre-line}
.teza-bot{background:#fff;color:#1f2937;border:1px solid #e8ecf3;border-top-left-radius:4px;align-self:flex-start}
.teza-me{background:var(--tz);color:#fff;border-top-right-radius:4px;align-self:flex-end}
.teza-msg ul{margin:6px 0 0;padding-left:18px;white-space:normal}
.teza-msg li{margin:2px 0}
.teza-more{color:#64748b;font-size:12.5px;margin-top:4px}
.teza-link{display:flex;width:fit-content;align-items:center;gap:6px;margin-top:8px;font-size:13px;font-weight:600;color:var(--tz);text-decoration:none}
.teza-link:hover{text-decoration:underline}
.teza-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;white-space:normal}
.teza-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:20px;font-size:13px;font-weight:600;text-decoration:none;border:1.5px solid var(--tz);color:var(--tz);background:#fff}
.teza-btn:hover{background:var(--tz);color:#fff}
.teza-btn.wa{border-color:#25D366;color:#128c4a}.teza-btn.wa:hover{background:#25D366;color:#fff}
.teza-chips{display:flex;flex-wrap:wrap;gap:6px;align-self:flex-start;max-width:100%}
.teza-chip{border:1px solid #c7d7fb;background:#eef4ff;color:#1e40af;border-radius:16px;padding:6px 11px;font-size:12.5px;cursor:pointer;text-align:left}
.teza-chip:hover{background:#dbe7ff}
.teza-typing{align-self:flex-start;background:#fff;border:1px solid #e8ecf3;border-radius:14px;padding:10px 14px}
.teza-typing i{display:inline-block;width:6px;height:6px;margin:0 2px;border-radius:50%;background:#94a3b8;animation:tezaDot 1s infinite}
.teza-typing i:nth-child(2){animation-delay:.15s}.teza-typing i:nth-child(3){animation-delay:.3s}
@keyframes tezaDot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.teza-foot{display:flex;gap:8px;padding:10px;border-top:1px solid #eef1f6;background:#fff}
.teza-in{flex:1;border:1.5px solid #e2e8f0;border-radius:22px;padding:10px 14px;font-size:14px;outline:none;font-family:inherit;min-width:0;color:#1f2937;background:#fff}
.teza-in:focus{border-color:var(--tz)}
.teza-send{width:42px;height:42px;border-radius:50%;border:0;background:var(--tz);color:#fff;cursor:pointer;font-size:17px;flex:none}
.teza-send:disabled{opacity:.5;cursor:default}
.teza-note{font-size:10.5px;color:#94a3b8;text-align:center;padding:0 10px 8px;background:#fff}
/* attention: pulse ring, waving hand, hello bubble */
.teza-attn{animation:tezaPulse 2.4s ease-out infinite}
@keyframes tezaPulse{0%{box-shadow:0 0 0 0 rgba(123,31,240,.55),0 6px 22px rgba(27,111,237,.35)}70%{box-shadow:0 0 0 16px rgba(123,31,240,0),0 6px 22px rgba(27,111,237,.35)}100%{box-shadow:0 0 0 0 rgba(123,31,240,0),0 6px 22px rgba(27,111,237,.35)}}
.teza-hand{position:absolute;top:-10px;left:-8px;font-size:20px;line-height:1;transform-origin:70% 80%;animation:tezaWave 1.8s ease-in-out infinite;filter:drop-shadow(0 2px 3px rgba(0,0,0,.2))}
@keyframes tezaWave{0%,60%,100%{transform:rotate(0)}10%,30%{transform:rotate(16deg)}20%,40%{transform:rotate(-10deg)}}
.teza-hello{position:fixed;z-index:9998;display:none;align-items:center;gap:2px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 10px 30px rgba(15,23,42,.18);padding:4px 4px 4px 2px;
  max-width:min(260px,calc(100vw - 100px));animation:tezaPop .35s ease-out}
.teza-hello.show{display:flex}
.teza-hello::after{content:"";position:absolute;right:-7px;top:50%;margin-top:-7px;border:7px solid transparent;border-right:0;border-left-color:#fff}
.teza-hello-txt{background:none;border:0;cursor:pointer;font-size:13.5px;font-weight:600;color:#1f2937;padding:6px 8px;text-align:left;font-family:inherit;line-height:1.35}
.teza-hello-x{background:none;border:0;color:#94a3b8;font-size:18px;line-height:1;cursor:pointer;padding:2px 6px}
.teza-hello-x:hover{color:#475569}
@keyframes tezaPop{from{opacity:0;transform:translateX(8px) scale(.96)}to{opacity:1;transform:none}}
.teza-is-open .teza-hello{display:none}
.teza-note a{color:#94a3b8;text-decoration:none}.teza-note a:hover{color:#64748b;text-decoration:underline}
@media (prefers-reduced-motion:reduce){.teza-attn,.teza-hand,.teza-hello{animation:none}}

@media (max-width:560px){
  /* phone: a card with space around it (not edge to edge) */
  .teza-win{left:12px;right:12px;top:calc(env(safe-area-inset-top, 0px) + 16px);bottom:calc(env(safe-area-inset-bottom, 0px) + 12px);
    width:auto;max-width:none;height:auto;max-height:none;border-radius:18px;border:1px solid #e5e7eb;box-shadow:0 18px 60px rgba(15,23,42,.35)}
  .teza-open::before{content:"";position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:9999}
  .teza-fab{right:16px;bottom:16px}
  .teza-fab.teza-fab-col{right:auto;bottom:auto}
  .teza-msg{max-width:92%}
}
@media print{.teza{display:none}}
