/* Autohandel24 Business Chat – isolated styles, no global header/button selectors */
.ah24-chat{font-family:inherit;position:relative;z-index:20;width:100%;margin:0 0 18px;color:#202124}
.ah24-chat-profile-card{display:flex;align-items:center;gap:11px;padding:12px;background:#fff;border:1px solid #e7e7e7;border-radius:12px;box-shadow:0 3px 12px rgba(0,0,0,.045);max-width:100%;box-sizing:border-box}
.ah24-chat-profile-avatar,.ah24-chat-head-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:50%;overflow:hidden;background:#171717;color:#e4b52f;display:flex;align-items:center;justify-content:center;font-weight:700}
.ah24-chat-profile-avatar img,.ah24-chat-head-avatar img{width:100%;height:100%;object-fit:cover}
.ah24-chat-profile-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.ah24-chat-profile-info strong{font-size:14px;line-height:1.25}.ah24-chat-profile-info small{font-size:12px;color:#666}
.ah24-chat-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#999;margin-right:6px}.ah24-chat-dot.is-online{background:#19ad68}
.ah24-chat-launch{border:0!important;border-radius:22px!important;background:#e4b52f!important;color:#171717!important;padding:9px 16px!important;font-size:13px!important;font-weight:700!important;cursor:pointer;white-space:nowrap}
.ah24-chat-window{position:fixed!important;right:22px!important;bottom:22px!important;left:auto!important;top:auto!important;width:360px!important;max-width:calc(100vw - 28px)!important;height:490px!important;max-height:calc(100vh - 44px)!important;background:#fff!important;border:1px solid #e2e2e2!important;border-radius:16px!important;box-shadow:0 15px 50px rgba(0,0,0,.22)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;z-index:2147483000!important;margin:0!important;padding:0!important;box-sizing:border-box!important}
.ah24-chat-window[hidden]{display:none!important}
.ah24-chat-head{flex:0 0 auto;display:flex;align-items:center;gap:10px;background:#171717;color:#fff;padding:13px 15px;min-height:66px;box-sizing:border-box}
.ah24-chat-head-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.ah24-chat-head-info strong{font-size:14px;color:#fff}.ah24-chat-head-info small{font-size:11px;color:#d7d7d7}
.ah24-chat-close{border:0!important;background:transparent!important;color:#fff!important;font-size:25px!important;line-height:1!important;padding:4px 7px!important;cursor:pointer}
.ah24-chat-log{flex:1;min-height:0;overflow-y:auto;padding:14px;background:#f8f8f8;color:#222;box-sizing:border-box}.ah24-chat-log p{width:fit-content;max-width:86%;padding:10px 12px;margin:0 0 9px;background:#fff;border:1px solid #ededed;border-radius:12px;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.ah24-chat-log .ah24-chat-mine{margin-left:auto;background:#fff0bd;border-color:#f4df9b}.ah24-chat-log .ah24-chat-advisor{background:#fff}.ah24-chat-log .ah24-chat-error{max-width:100%;width:auto;color:#9e2424;background:#fff0f0;border-color:#f0caca}
.ah24-chat-form{flex:0 0 auto;padding:11px;background:#fff;border-top:1px solid #eee;box-sizing:border-box}.ah24-chat-visitor-fields{display:flex;gap:7px;margin-bottom:8px}.ah24-chat-visitor-fields input{width:50%;min-width:0;box-sizing:border-box;padding:9px;border:1px solid #ddd;border-radius:8px;font-size:12px}.ah24-chat-compose{display:flex;gap:0}.ah24-chat-compose input{flex:1;min-width:0;padding:11px;border:1px solid #ddd;border-radius:9px 0 0 9px;font-size:13px;box-sizing:border-box}.ah24-chat-compose button{border:0!important;background:#e4b52f!important;color:#171717!important;padding:0 17px!important;border-radius:0 9px 9px 0!important;font-weight:700!important;cursor:pointer}.ah24-chat-compose button:disabled{opacity:.6;cursor:wait}.ah24-chat-privacy{display:block;color:#999;font-size:10px;margin-top:7px}
.ah24-panel{max-width:1000px;margin:30px auto;padding:20px}.ah24-panel label{display:block;margin:14px 0}.ah24-panel input:not([type=checkbox]),.ah24-panel select{display:block;width:100%;max-width:500px;padding:10px;border:1px solid #ddd;border-radius:7px}.ah24-panel button{border-radius:7px;cursor:pointer}.ah24-conversation{border:1px solid #ddd;border-radius:10px;padding:15px;margin:12px 0}.ah24-owner-chat{max-height:260px;overflow:auto;background:#fafafa;padding:10px;border-radius:8px}
@media(max-width:600px){.ah24-chat-profile-card{padding:10px}.ah24-chat-window{right:10px!important;bottom:10px!important;width:calc(100vw - 20px)!important;max-height:80vh!important;height:480px!important}.ah24-chat-visitor-fields{flex-direction:column}.ah24-chat-visitor-fields input{width:100%}}
/* V1.1.3 premium business inbox */
.ah24-panel{max-width:1180px;margin:28px auto 50px;padding:28px;background:#fff;border:1px solid #e9e9e9;border-radius:18px;box-shadow:0 8px 30px rgba(0,0,0,.045);color:#202124}
.ah24-panel h1{font-size:27px;font-weight:800;margin:0 0 24px;color:#171717}.ah24-panel h2{font-size:20px;font-weight:750;margin:30px 0 16px;padding-bottom:12px;border-bottom:1px solid #eee}
.ah24-panel form:first-of-type{background:#fafafa;border:1px solid #eee;border-radius:14px;padding:20px;max-width:100%;}
.ah24-panel form:first-of-type label{font-size:13px;font-weight:650;color:#333;margin:0 0 16px}.ah24-panel input:not([type=checkbox]),.ah24-panel select{max-width:100%;min-height:43px;margin-top:7px;background:#fff;box-sizing:border-box}
.ah24-panel button{background:#e4b52f;border:0;color:#171717;font-weight:750;padding:10px 18px;min-height:40px}.ah24-panel button:hover{background:#d3a21d}
.ah24-conversation{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:12px 20px;border:1px solid #e7e7e7;border-radius:14px;padding:18px;margin:14px 0;background:#fff;box-shadow:0 3px 12px rgba(0,0,0,.035)}
.ah24-conversation>strong{font-size:15px}.ah24-conversation>small,.ah24-conversation>p{grid-column:1;color:#777;margin:0;font-size:12px}.ah24-owner-chat{grid-column:2;grid-row:1 / span 3;min-height:125px;max-height:300px;overflow:auto;background:#f7f7f7;padding:14px;border-radius:11px;display:flex;flex-direction:column;gap:8px}
.ah24-owner-chat p{margin:0;max-width:85%;width:fit-content;padding:9px 12px;border-radius:11px;background:#fff;border:1px solid #e9e9e9;font-size:13px;overflow-wrap:anywhere}.ah24-reply-form{grid-column:2;display:flex;gap:8px;align-items:center}.ah24-reply-form input{flex:1!important;width:auto!important;margin:0!important}.ah24-reply-form button{flex:0 0 auto}
@media(max-width:700px){.ah24-panel{margin:12px;padding:16px;border-radius:12px}.ah24-conversation{display:flex;flex-direction:column}.ah24-owner-chat{min-height:150px}.ah24-reply-form{display:flex}.ah24-panel h1{font-size:23px}}

/* V1.2 – professional shared inbox layout */
.ah24-inbox-page{max-width:1240px!important;padding:26px!important;margin:24px auto 48px!important}
.ah24-panel-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.ah24-panel-title h1{margin:3px 0 4px!important;font-size:28px!important}.ah24-panel-title p{margin:0;color:#777;font-size:13px}.ah24-eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#bd8e12}.ah24-settings-toggle{background:#202020!important;color:#fff!important;border-radius:9px!important;padding:11px 16px!important}.ah24-settings[hidden],.ah24-inbox-active[hidden],.ah24-inbox-placeholder[hidden]{display:none!important}.ah24-settings{margin:0 0 18px}.ah24-settings-form{padding:18px;background:#fafafa;border:1px solid #ececec;border-radius:13px}.ah24-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ah24-settings-grid label{font-size:12px;font-weight:700}.ah24-settings-grid input,.ah24-settings-grid select{width:100%!important;max-width:none!important}.ah24-inbox{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:590px;border:1px solid #e7e7e7;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 5px 22px rgba(0,0,0,.045)}.ah24-inbox-list{border-right:1px solid #e9e9e9;min-width:0;background:#fff}.ah24-inbox-list-head{height:60px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee}.ah24-inbox-list-head strong{font-size:16px}.ah24-inbox-list-head span{font-size:11px;color:#888}.ah24-inbox-items{max-height:680px;overflow:auto}.ah24-inbox-item{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:14px 13px!important;border:0!important;border-bottom:1px solid #f0f0f0!important;border-radius:0!important;background:#fff!important;color:#222!important;min-height:76px!important}.ah24-inbox-item:hover,.ah24-inbox-item.is-active{background:#fff9e8!important}.ah24-inbox-item.is-active{box-shadow:inset 3px 0 #e4b52f}.ah24-inbox-avatar{width:40px;height:40px;flex:0 0 40px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#191919;color:#e4b52f;font-size:16px;font-weight:800}.ah24-inbox-item-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.ah24-inbox-item-copy strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ah24-inbox-item-copy small{font-size:11px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}.ah24-inbox-item-meta{display:flex;align-items:flex-end;flex-direction:column;gap:7px}.ah24-inbox-item-meta small{font-size:10px;color:#999;font-weight:400}.ah24-inbox-item-meta b{background:#e4b52f;color:#171717;border-radius:20px;min-width:19px;height:19px;display:flex;align-items:center;justify-content:center;font-size:10px}.ah24-inbox-chat{min-width:0;display:flex;flex-direction:column;background:#fbfbfb}.ah24-inbox-placeholder{margin:auto;display:flex;align-items:center;flex-direction:column;gap:9px;color:#777;text-align:center;padding:25px}.ah24-inbox-placeholder span{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff0bd;color:#171717;font-size:24px}.ah24-inbox-placeholder strong{color:#222;font-size:16px}.ah24-inbox-placeholder small{font-size:12px}.ah24-inbox-active{display:flex;flex:1;min-height:590px;flex-direction:column}.ah24-inbox-chat-head{height:72px;flex:0 0 72px;display:flex;align-items:center;gap:11px;padding:0 18px;background:#fff;border-bottom:1px solid #eee}.ah24-inbox-chat-head>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.ah24-inbox-chat-head strong{font-size:14px}.ah24-inbox-chat-head small{font-size:11px;color:#888}.ah24-chat-status{font-size:11px;color:#888}.ah24-inbox-log{flex:1;min-height:0;max-height:490px;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:10px}.ah24-inbox-bubble{max-width:75%;display:flex;flex-direction:column;gap:4px}.ah24-inbox-bubble p{margin:0;padding:11px 14px;border:1px solid #e9e9e9;border-radius:13px;background:#fff;color:#222;font-size:13px;line-height:1.45;overflow-wrap:anywhere}.ah24-inbox-bubble small{font-size:9px;color:#999;padding:0 4px}.ah24-inbox-bubble.is-advisor{align-self:flex-end}.ah24-inbox-bubble.is-advisor p{background:#fff0bd;border-color:#f2df9d}.ah24-inbox-reply{display:flex;gap:9px;padding:14px;background:#fff;border-top:1px solid #eee}.ah24-inbox-reply input{flex:1!important;width:auto!important;max-width:none!important;margin:0!important;border:1px solid #ddd!important;border-radius:9px!important;padding:12px 13px!important;min-height:44px}.ah24-inbox-reply button{min-width:86px;border-radius:9px!important}.ah24-inbox-empty{padding:28px 18px;color:#777;font-size:13px;text-align:center}.ah24-inbox-empty small{display:block;margin-top:7px;font-size:11px;color:#999}
@media(max-width:760px){.ah24-inbox-page{padding:13px!important;margin:10px auto 28px!important}.ah24-inbox{grid-template-columns:1fr;min-height:0}.ah24-inbox-list{border-right:0;border-bottom:1px solid #e9e9e9}.ah24-inbox-items{max-height:230px}.ah24-inbox-active{min-height:460px}.ah24-inbox-log{max-height:350px;padding:13px}.ah24-settings-grid{grid-template-columns:1fr}.ah24-panel-title{align-items:flex-start}.ah24-panel-title h1{font-size:23px!important}.ah24-chat-status{display:none}}
/* V2 live refresh status and isolated responsive tweaks */
.ah24live-connection{font-size:11px;color:#888;margin:9px 2px}.ah24live-page{max-width:100%;box-sizing:border-box}.ah24live-inbox{min-height:620px}.ah24live-inbox .ah24-inbox-active{min-height:620px}.ah24live-inbox .ah24-inbox-log{min-height:420px}.ah24live-inbox .ah24-inbox-reply button{background:#e5b52f!important;color:#171717!important;font-weight:700!important}.ah24-inbox-item{cursor:pointer}
@media(max-width:760px){.ah24live-inbox{min-height:0}.ah24live-inbox .ah24-inbox-active{min-height:480px}.ah24live-inbox .ah24-inbox-log{min-height:300px}.ah24live-inbox .ah24-inbox-reply{position:sticky;bottom:0}}
