.apdx-chat-panel.apd334-chat-panel{width:410px;right:22px;bottom:88px;border-radius:18px;max-height:min(700px,calc(100dvh - 110px));display:flex;flex-direction:column;overflow:hidden;background:#fff;color:#153049;box-shadow:0 18px 60px #11345034}
.apd334-chat-panel[hidden],.apd334-chat-panel [hidden],.apd334-staff-alerts[hidden],.apd334-staff-alerts [hidden]{display:none!important}
.apd334-chat-panel .apdx-chat-head{flex:0 0 auto;background:#11417e;color:#fff;padding:16px 18px}
.apd334-chat-panel .apdx-chat-head strong{font-size:17px;line-height:1.3}
.apd334-chat-panel .apdx-chat-head small{color:#e0efff;margin-top:3px;line-height:1.35}
.apd334-chat-panel #apdx-chat-start{padding:20px}
.apd334-chat-panel #apdx-chat-start h3{font-size:20px;margin:0 0 4px}
.apd334-chat-panel #apdx-chat-start p{margin:0}
.apd334-contact{display:block;text-align:center;margin-top:12px;color:#11417e}
.apd334-chat-icon{display:inline-block;width:15px;height:12px;border:2px solid currentColor;border-radius:4px;position:relative;margin-right:3px}
.apd334-chat-icon::after{content:"";position:absolute;width:4px;height:4px;bottom:-4px;left:2px;border-left:2px solid currentColor;transform:skewY(-32deg)}
.apd334-chat-panel #apdx-chat-conversation{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:auto}
.apd334-chat-panel #apd331-visitor-voice{flex:0 0 auto;background:#f3f7ff;border-bottom:1px solid #dce6f3}
.apd334-chat-panel .apdx-chat-messages{height:auto;flex:1 1 310px;min-height:95px;max-height:none;background:#f7f9fc;padding:14px;overflow:auto;overscroll-behavior:contain}
.apd334-chat-panel .chat-message{border-radius:13px}
.apd334-chat-panel .apd334-composer{flex:0 0 auto;background:#fff;border-top:1px solid #e2e9f1}
.apd334-chat-panel #apdx-chat-form{border:0;padding:7px 13px;align-items:center}
.apd334-chat-panel #apdx-chat-form textarea{resize:none;border-radius:12px;min-height:43px}
.apd334-chat-panel .apdx-chat-tools{justify-content:space-between;padding:4px 13px 11px;font-size:11px}
.apd334-chat-panel #apdx-chat-status:empty,.apd334-chat-panel #apd334-composer-tools:empty{display:none}
.apd334-chat-panel #apdx-chat-status{flex:0 0 auto;margin:0;padding:5px 13px}
.apd334-chat-panel #apd334-composer-tools .apd331-controls{padding:6px 13px 0}
.apd334-chat-panel .apd331-voice{display:grid;gap:7px;border:0}
.apd334-chat-panel .apd331-voice label,.apd331-desk .apd331-voice label{margin:0;display:flex;gap:6px;align-items:flex-start;flex-direction:row;font-size:11px}
.apd334-call-controls{display:flex;flex-wrap:wrap;gap:7px}
.apd334-call-controls button{min-height:38px;border-radius:10px;font-weight:650}
.apd334-call-controls button:not(:disabled){background:#fff;border-color:#9dbbe4;color:#134a86}
.apd334-call-controls .apd334-accept-call:not(:disabled){background:#16654c;border-color:#16654c;color:#fff}
.apd334-call-controls .apd334-end-call:not(:disabled){background:#a52839;border-color:#a52839;color:#fff}
.apd334-video-stage{position:relative;width:100%;aspect-ratio:16/10;max-height:340px;background:#142841;border-radius:13px;overflow:hidden}
.apd334-video-stage .apd332-video{margin:0;max-width:none;max-height:none}
.apd334-video-stage video:first-child{width:100%;height:100%;object-fit:contain}
.apd334-video-stage video:last-child{position:absolute;right:8px;bottom:8px;width:27%;aspect-ratio:4/3;object-fit:cover;border:2px solid #fff;border-radius:8px;background:#142841}
.apd334-staff-alerts{position:fixed;right:20px;bottom:18px;z-index:100001;display:grid;justify-items:end;gap:8px;font:600 14px/1.4 system-ui,sans-serif}
.apd334-staff-alerts a{background:#11417e;color:#fff;padding:11px 16px;border-radius:999px;text-decoration:none;box-shadow:0 4px 20px #11345037}
.apd334-staff-alerts .apd334-staff-notice{background:#fff0cb;color:#422b0c;border:1px solid #d6ab54;border-radius:12px}
.apd331-desk .apd331-desk-panel{border-radius:14px;border-color:#d0dce8}
.apd331-desk .apd331-voice{display:grid;gap:7px;margin:9px 0;border:1px solid #dce6f3;border-radius:12px;background:#f6f9ff}
@media(max-width:540px){
 .apdx-chat-panel.apd334-chat-panel{width:auto;right:8px;left:8px;bottom:max(70px,env(safe-area-inset-bottom));max-width:none;max-height:calc(100dvh - 84px)}
 .apd334-video-stage{max-height:29dvh}
 .apd334-staff-alerts{right:10px;bottom:12px;max-width:calc(100vw - 20px)}
}
body:not(.wp-admin) .apd334-staff-alerts{right:auto;left:14px;justify-items:start}
.apd334-chat-panel .apdx-chat-head button:focus-visible,.apd334-staff-alerts a:focus-visible{outline:3px solid #deaa37;outline-offset:3px}
@media print{.apd334-staff-alerts{display:none!important}}
.apd331-desk .apd331-queue-item.apd334-unread{border-left:4px solid #b87510;background:#fff7df}
.apd331-desk .apd331-queue-item.apd334-unread small{color:#804700;font-weight:700}
