.ag-chat-widget{position:fixed;right:24px;bottom:24px;z-index:1010;font-family:inherit;color:#172033}
.ag-chat-launcher{display:flex;align-items:center;gap:12px;border:0;border-radius:999px;padding:11px 18px 11px 11px;background:linear-gradient(125deg,#17233f,#293b65 65%,#5942c8);color:#fff;font-family:inherit;font-size:15px;font-weight:700;line-height:1.2;box-shadow:0 12px 34px rgba(17,28,57,.3);cursor:pointer;transition:transform .2s,box-shadow .2s}
.ag-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(17,28,57,.36)}
.ag-chat-launcher-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:rgba(255,255,255,.12)}
.ag-chat-launcher-icon svg,.ag-chat-avatar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ag-chat-launcher-dot,.ag-chat-header i{width:9px;height:9px;border-radius:50%;background:#59e0a5;box-shadow:0 0 0 4px rgba(89,224,165,.16)}
.ag-chat-panel{position:absolute;right:0;bottom:67px;width:min(398px,calc(100vw - 28px));height:min(660px,calc(100vh - 120px));min-height:420px;overflow:hidden;border:1px solid rgba(255,255,255,.72);border-radius:24px;background:#fff;box-shadow:0 24px 80px rgba(12,20,40,.27);display:flex;flex-direction:column}
.ag-chat-panel[hidden],.ag-chat-panel [hidden]{display:none!important}
.ag-chat-header{position:relative;top:auto;left:auto;width:auto;z-index:auto;display:flex;flex:0 0 auto;align-items:center;gap:12px;padding:20px 18px;color:#fff;background:radial-gradient(circle at 92% -22%,rgba(154,116,255,.9),transparent 34%),linear-gradient(130deg,#17233f,#263d6d 65%,#4937ad)}
.ag-chat-avatar{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:15px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25)}
.ag-chat-header>div:nth-child(2){display:flex;flex-direction:column;gap:5px;min-width:0}
.ag-chat-header strong{font-size:15px;letter-spacing:.1px}
.ag-chat-header span{font-size:12px;color:#dbe5ff;display:flex;align-items:center;gap:8px}
.ag-chat-header i{width:7px;height:7px;box-shadow:none}
.ag-chat-close{margin-left:auto;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:25px;line-height:1;cursor:pointer}
.ag-chat-close:hover{background:rgba(255,255,255,.22)}
.ag-chat-intro{padding:18px 20px 20px;overflow-y:auto}
.ag-chat-intro>p{margin:0 0 16px;color:#45516a;font-size:14px;line-height:1.55}
#ag-chat-start-form{display:grid;gap:12px}
#ag-chat-start-form label{display:grid;gap:6px;color:#28344d;font-size:12px;font-weight:750}
#ag-chat-start-form label span{display:inline;color:#7b8498;font-weight:500}
#ag-chat-start-form input,#ag-chat-start-form select,#ag-chat-start-form textarea,.ag-chat-compose textarea{width:100%;min-height:42px;border:1px solid #dfe4ee;border-radius:11px;background:#fbfcff;padding:10px 12px;color:#1c2740;font-family:inherit;font-size:14px;line-height:1.45;outline:none}
#ag-chat-start-form input:focus,#ag-chat-start-form select:focus,#ag-chat-start-form textarea:focus,.ag-chat-compose textarea:focus{border-color:#7062e7;box-shadow:0 0 0 3px rgba(112,98,231,.13)}
#ag-chat-start-form textarea,.ag-chat-compose textarea{resize:vertical;min-height:76px}
.ag-chat-privacy{margin:0;color:#798297;font-size:11px;line-height:1.5}
.ag-chat-primary{display:flex;justify-content:space-between;align-items:center;border:0;border-radius:12px;padding:13px 15px;background:linear-gradient(100deg,#3159dc,#6042c7);color:#fff;font-family:inherit;font-size:14px;font-weight:750;cursor:pointer;box-shadow:0 8px 18px rgba(69,75,202,.2)}
.ag-chat-primary:disabled,.ag-chat-compose button:disabled{opacity:.55;cursor:wait}
.ag-chat-error{margin:8px 0 0;color:#b32637;font-size:12px;line-height:1.45}
.ag-chat-conversation{display:flex;flex:1;min-height:0;flex-direction:column;background:linear-gradient(180deg,#fafbff,#fff)}
.ag-chat-chat-meta{padding:10px 18px;border-bottom:1px solid #edf0f6;color:#758097;font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.ag-chat-messages{display:flex;flex:1;min-height:0;flex-direction:column;gap:11px;overflow-y:auto;padding:17px}
.ag-chat-empty{margin:auto;color:#8790a2;font-size:13px;text-align:center}
.ag-chat-message{max-width:88%;padding:10px 12px;border-radius:15px;box-shadow:0 3px 10px rgba(27,42,74,.06)}
.ag-chat-message.is-team{align-self:flex-start;border:1px solid #e8eaf4;border-bottom-left-radius:5px;background:#fff}
.ag-chat-message.is-visitor{align-self:flex-end;border-bottom-right-radius:5px;background:#e9eaff}
.ag-chat-message-label{display:block;margin-bottom:4px;color:#6b57cc;font-size:10px;font-weight:800}
.ag-chat-message p{margin:0;color:#28334c;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.ag-chat-message time{display:block;margin-top:5px;color:#8790a2;font-size:9px;text-align:right}
.ag-chat-closed{padding:11px 16px;border-top:1px solid #f1d8bd;background:#fff8ef;color:#895a27;font-size:12px;line-height:1.45}
.ag-chat-compose{display:flex;align-items:flex-end;gap:9px;padding:12px 14px;border-top:1px solid #edf0f6;background:#fff}
.ag-chat-compose textarea{min-height:48px;max-height:110px;resize:vertical}
.ag-chat-compose button,.ag-chat-restart{flex:0 0 auto;min-height:44px;border:0;border-radius:11px;padding:0 14px;background:#443fc1;color:#fff;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}
.ag-chat-restart{margin:0 14px 12px}
.ag-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}
@media(max-width:600px){.ag-chat-widget{right:14px;bottom:14px}.ag-chat-panel{position:fixed;right:10px;bottom:74px;width:calc(100vw - 20px);height:min(690px,calc(100dvh - 92px));min-height:390px;border-radius:20px}.ag-chat-launcher{padding:9px 14px 9px 9px;font-size:14px}.ag-chat-launcher-icon{width:38px;height:38px}}
@media(prefers-reduced-motion:reduce){.ag-chat-launcher{transition:none}}
.ag-chat-launcher{position:relative}
.ag-chat-unread-badge{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border:2px solid #fff;border-radius:99px;background:#f04462;color:#fff;font-size:11px;font-weight:850;line-height:1;box-shadow:0 4px 12px rgba(240,68,98,.32)}
.ag-chat-unread-badge[hidden]{display:none!important}
.ag-chat-ended-notice{margin:0 0 14px;padding:11px 12px;border:1px solid #d8d4ff;border-radius:11px;background:#f2f0ff;color:#4438a7;font-size:12px;line-height:1.45}
.ag-chat-message-image{display:block;width:auto;max-width:min(100%,320px);max-height:320px;margin-top:8px;border:1px solid #e5e7ef;border-radius:12px;object-fit:contain;background:#f7f8fc}
.ag-chat-compose{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}
.ag-chat-compose-tools{display:flex;align-items:center;gap:8px;min-width:0}
.ag-chat-compose-tools button{min-height:42px}
.ag-chat-compose-tools .ag-chat-send{margin-left:auto}
.ag-chat-pick-image{border:1px solid #dfe3ef!important;background:#f6f7fc!important;color:#404b64!important}
.ag-chat-image-name{overflow:hidden;color:#778197;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.ag-chat-ended-notice{margin:0 0 14px;padding:11px 12px;border:1px solid #d8d4ff;border-radius:11px;background:#f2f0ff;color:#4438a7;font-size:12px;line-height:1.45}
.ag-chat-file{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
