#az-chat{position:fixed;right:20px;bottom:calc(20px + var(--az-chat-keyboard,0px));z-index:80;font:16px/1.5 Manrope,'Noto Sans Georgian',sans-serif;color:#f0ede5;letter-spacing:normal;max-width:calc(100vw - 24px)}
#az-chat *{box-sizing:border-box}
#az-chat button,#az-chat input{font:inherit}
#az-chat button,#az-chat a{min-height:44px;touch-action:manipulation}
#az-chat button{cursor:pointer;color:inherit;background:none;border:0}
#az-chat button:focus-visible,#az-chat a:focus-visible,#az-chat input:focus-visible,#az-chat summary:focus-visible{outline:2px solid #ccb891;outline-offset:3px}
#az-chat .az-chat-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#az-chat .az-chat-launcher{display:flex;align-items:center;gap:10px;margin-left:auto;background:#ccb891;color:#151914;border:1px solid #e6d7bb;border-radius:28px;padding:11px 18px;box-shadow:0 4px 24px #0005;font-size:14px;font-weight:600;min-height:48px}
#az-chat svg{display:block;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#az-chat-panel{position:absolute;right:0;bottom:60px;display:flex;flex-direction:column;width:min(384px,calc(100vw - 32px));height:min(550px,calc(100dvh - 104px));max-height:calc(var(--az-chat-viewport,100dvh) - 104px);overflow:hidden;background:#1b1e1a;border:1px solid #4a4d42;border-radius:20px;box-shadow:0 20px 70px #0007}
#az-chat-panel[hidden]{display:none}
#az-chat .az-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 16px 12px 22px;flex:none}
#az-chat .az-chat-heading{min-width:0}
#az-chat .az-chat-head strong{display:block;font-size:22px;line-height:1.25;font-weight:500;letter-spacing:-.04em}
#az-chat .az-chat-controls{display:flex;gap:0;flex:none}
#az-chat .az-chat-icon{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;color:#b3b6aa}
#az-chat .az-chat-icon:hover{background:#ffffff08;color:#f0ede5}
#az-chat p{font-size:16px;line-height:1.55;margin:0}
#az-chat .az-chat-mode{font-size:12px;line-height:1.45;color:#b3b6aa;margin-top:4px;overflow-wrap:anywhere}
#az-chat .az-chat-topics{display:flex;gap:7px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#4a4d42 transparent;padding:2px 22px 12px;flex:none}
#az-chat .az-chat-topics button{flex:none;white-space:nowrap;border:1px solid #4a4d42;border-radius:22px;padding:9px 13px;font-size:14px;background:transparent;line-height:1.4}
#az-chat .az-chat-topics button:hover{border-color:#ccb891;background:#ccb8910a}
#az-chat .az-chat-log{min-height:52px;flex:1 1 0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:10px 22px 18px;scrollbar-width:thin;scrollbar-color:#4a4d42 transparent}
#az-chat .az-chat-answer{padding:13px 15px;border-radius:3px 16px 16px 16px;background:#252a23;flex-shrink:0;overflow-wrap:anywhere;white-space:pre-wrap}
#az-chat .az-chat-question{align-self:flex-end;max-width:94%;border-radius:16px 3px 16px 16px;background:#ccb89118;color:#e4d4b7}
#az-chat .az-chat-composer{flex:0 1 auto;max-height:60%;overflow-y:auto;overscroll-behavior:contain;padding:0 22px 12px;scrollbar-width:thin;border-top:1px solid #ffffff09}
#az-chat .az-chat-notice{font-size:12px;line-height:1.45;color:#b3b6aa;margin:10px 0}
#az-chat .az-chat-consent{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.45;margin:10px 0;color:#d2c7b1;cursor:pointer}
#az-chat .az-chat-consent[hidden]{display:none}
#az-chat .az-chat-consent input{width:18px;height:18px;flex:0 0 18px;margin:1px 0;accent-color:#ccb891}
#az-chat .az-chat-form{display:flex;align-items:center;gap:6px;padding:5px;background:#111411;border:1px solid #4a4d42;border-radius:15px}
#az-chat .az-chat-form:focus-within{border-color:#ccb891}
#az-chat .az-chat-form input{min-width:0;width:100%;background:transparent;color:#f0ede5;border:0;border-radius:10px;font-size:16px;line-height:1.5;padding:8px 7px;outline-offset:0}
#az-chat .az-chat-form input::placeholder{color:#a5ab9c;opacity:1}
#az-chat .az-chat-form button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:11px;background:#ccb891;color:#111411;padding:0}
#az-chat .az-chat-form button:hover{background:#e1cda9}
#az-chat button:disabled{opacity:.6;cursor:wait}
#az-chat .az-chat-privacy{color:#b3b6aa;font-size:12px;line-height:1.5;margin:2px 0 0}
#az-chat summary{cursor:pointer;min-height:44px;padding:13px 0;font-size:12px;width:fit-content}
#az-chat .az-chat-privacy p{font-size:12px;line-height:1.55;margin:0 0 6px;overflow-wrap:anywhere}
#az-chat .az-chat-privacy a{color:#d8c69f;text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;font-size:12px}
#az-chat .az-chat-footer{border-top:1px solid #ffffff0d}
#az-chat .az-chat-footer a{color:#e4d4b7;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;text-decoration:none;line-height:1.4;padding:10px 0;min-height:44px}
#az-chat .az-chat-footer a:hover{color:#f0ede5}
@media(max-width:480px){#az-chat{right:12px;bottom:calc(max(12px,env(safe-area-inset-bottom)) + var(--az-chat-keyboard,0px))}#az-chat-panel{width:calc(100vw - 24px);height:min(550px,calc(100dvh - 96px));max-height:calc(var(--az-chat-viewport,100dvh) - 96px)}#az-chat .az-chat-head{padding:16px 12px 10px 18px}#az-chat .az-chat-topics{padding-left:18px;padding-right:18px}#az-chat .az-chat-log{padding-left:18px;padding-right:18px}#az-chat .az-chat-composer{padding-left:18px;padding-right:18px}}
@media(max-height:500px){#az-chat .az-chat-head{padding-top:8px;padding-bottom:4px}#az-chat .az-chat-topics{padding-bottom:4px}#az-chat .az-chat-log{min-height:32px;padding-top:4px;padding-bottom:8px}#az-chat .az-chat-composer{max-height:55%}}
@media(prefers-reduced-motion:reduce){#az-chat *{scroll-behavior:auto}}

#az-chat .az-chat-launcher{width:60px;height:60px;min-height:60px;padding:12px;justify-content:center;border-radius:50%;background:linear-gradient(145deg,#2b3027,#151914);color:#d8c69f;border:1px solid #a6926d;box-shadow:0 8px 26px #0005,inset 0 1px 0 #ffffff12}#az-chat .az-chat-launcher svg{width:34px;height:34px;stroke-width:1.7}#az-chat .az-chat-launcher:hover{border-color:#e0cfaa;box-shadow:0 10px 32px #0006,inset 0 1px 0 #ffffff18}#az-chat-panel{bottom:72px;max-height:calc(var(--az-chat-viewport,100dvh) - 120px)}@media(max-width:480px){#az-chat .az-chat-launcher{width:56px;height:56px;min-height:56px}#az-chat-panel{bottom:68px;max-height:calc(var(--az-chat-viewport,100dvh) - 110px)}}

#az-chat .az-chat-launcher,#az-chat .az-chat-launcher:hover{width:68px;height:68px;min-height:68px;padding:0;border:0;border-radius:8px;background:none;box-shadow:none;filter:drop-shadow(0 5px 12px #0005)}#az-chat .az-chat-launcher svg{width:68px;height:68px;stroke:none}#az-chat .az-chat-star{fill:#ccb891;stroke:#e4d3ae;stroke-width:.8}#az-chat .az-chat-brand-mark{fill:none;stroke:#20271d;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}#az-chat .az-chat-launcher:hover .az-chat-star{fill:#dfcda7}@media(max-width:480px){#az-chat .az-chat-launcher,#az-chat .az-chat-launcher:hover{width:60px;height:60px;min-height:60px}#az-chat .az-chat-launcher svg{width:60px;height:60px}}

#az-chat .az-chat-topics[hidden],#az-chat .az-chat-composer[hidden]{display:none}#az-chat .az-chat-composer{max-height:42%;padding-top:8px}#az-chat .az-chat-log{min-height:110px}#az-chat .az-chat-consent{font-size:12px;margin:4px 0 10px}#az-chat .az-chat-draft-offer{align-self:flex-start;flex:none;color:#e4d3ae;border:1px solid #8a7c61;border-radius:12px;padding:9px 13px;font-size:14px;background:#ccb8910a}#az-chat .az-chat-draft-holder{flex:none}#az-chat .az-chat-launcher,#az-chat .az-chat-launcher:hover{width:64px;height:64px;min-height:64px;border-radius:18px;background:#ccb891;border:1px solid #e0d0ae;padding:5px;filter:drop-shadow(0 4px 12px #0004)}#az-chat .az-chat-launcher svg{width:54px;height:54px}#az-chat .az-chat-star,#az-chat .az-chat-launcher:hover .az-chat-star{fill:#252d20;stroke:#252d20}#az-chat .az-chat-brand-mark{stroke:#e2d1aa}#az-chat .az-chat-draft{padding:0}#az-chat .az-chat-draft input,#az-chat .az-chat-draft select,#az-chat .az-chat-draft textarea{background:#111411;color:#f0ede5;border-color:#777b6c}#az-chat .az-chat-draft button{border:1px solid #777b6c}#az-chat .az-chat-draft .az-chat-draft__primary{background:#ccb891;color:#151914}@media(max-width:480px){#az-chat .az-chat-launcher,#az-chat .az-chat-launcher:hover{width:58px;height:58px;min-height:58px;border-radius:16px}#az-chat .az-chat-launcher svg{width:48px;height:48px}}

#az-chat{color-scheme:only light}#az-chat .az-chat-launcher,#az-chat .az-chat-launcher:hover{width:68px;height:68px;min-height:68px;padding:0;border:1.5px solid #ccb891;border-radius:18px;background:transparent;box-shadow:none;filter:none}#az-chat .az-chat-launcher img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 1px 1px #0003)}@media(max-width:480px){#az-chat .az-chat-launcher,#az-chat .az-chat-launcher:hover{width:64px;height:64px;min-height:64px;padding:0;border-radius:16px}#az-chat .az-chat-launcher img{width:100%;height:100%}}

/* A keyboard or landscape viewport must not trap the composer below clipped
   history. Compact mode uses the visible height, one scroll surface and places
   the composer first; the close control stays reachable while scrolling. */
#az-chat[data-short-viewport="true"] {
  bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + var(--az-chat-keyboard, 0px));
}
#az-chat[data-short-viewport="true"] #az-chat-panel {
  bottom: 0;
  height: calc(var(--az-chat-viewport, 100dvh) - max(12px, env(safe-area-inset-bottom, 0px)) - 12px);
  max-height: calc(var(--az-chat-viewport, 100dvh) - max(12px, env(safe-area-inset-bottom, 0px)) - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#az-chat[data-short-viewport="true"] .az-chat-head {
  position: sticky;
  top: 0;
  z-index: 2;
  order: 0;
  background: #1b1e1a;
}
#az-chat[data-short-viewport="true"] .az-chat-composer {
  order: 1;
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
}
#az-chat[data-short-viewport="true"] .az-chat-topics { order: 2; }
#az-chat[data-short-viewport="true"] .az-chat-log {
  order: 3;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}
