/* WiserMart Support Centre (v3.11.06) — mobile first. Uses design tokens --wm-ui-* with fallbacks. */
.wmsp{--sp-pri:var(--wm-ui-primary,#000000);--sp-pt:var(--wm-ui-button-text,#fff);--sp-bd:var(--wm-ui-border,#e4e7ec);--sp-bg:var(--wm-ui-surface,#fff);--sp-alt:var(--wm-ui-surface-alt,#f6f7f9);--sp-tx:var(--wm-ui-text,#111827);--sp-mu:#667085;font-family:inherit;color:var(--sp-tx);box-sizing:border-box;line-height:1.45}
.wmsp *{box-sizing:border-box}
.wmsp [hidden],.wmsp-launcher[hidden]{display:none!important}
/* launcher */
.wmsp-launcher{position:fixed;right:14px;bottom:calc(88px + env(safe-area-inset-bottom,0px));z-index:99990;display:inline-flex;align-items:center;gap:8px;min-height:50px;padding:0 18px;border:0;border-radius:999px;background:var(--wm-ui-primary,#000000);color:var(--wm-ui-button-text,#fff);font-weight:700;font-size:15px;box-shadow:0 10px 30px rgba(0,0,0,.25);cursor:pointer}
.wmsp-launcher-badge{position:absolute;top:-6px;right:-4px;min-width:22px;height:22px;border-radius:11px;background:#d92d20;color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center;padding:0 5px}
@media(min-width:900px){.wmsp-launcher{bottom:24px;right:24px}}
body.wmsp-lock{overflow:hidden;overscroll-behavior:none;width:100%}
/* overlay + inline frame — height driven by --wmsp-vh (visualViewport) with 100dvh fallback */
.wmsp-overlay{position:fixed;top:var(--wmsp-offset-top,0px);left:var(--wmsp-offset-left,0px);right:auto;bottom:auto;width:var(--wmsp-vw,100vw);height:var(--wmsp-vh,100dvh);max-height:var(--wmsp-vh,100dvh);z-index:99995;background:var(--sp-bg);display:flex;flex-direction:column;padding-top:0;overflow:hidden;box-sizing:border-box}
.wmsp-overlay[hidden]{display:none}
@media(min-width:900px){.wmsp-overlay{top:auto;left:auto;right:24px;bottom:24px;width:420px;height:min(680px,calc(100dvh - 48px));max-height:min(680px,calc(100dvh - 48px));border-radius:18px;border:1px solid var(--sp-bd);box-shadow:0 24px 60px rgba(0,0,0,.28);overflow:hidden}}
.wmsp-inline{display:flex;flex-direction:column;min-height:70vh;max-width:760px;margin:0 auto;border:1px solid var(--sp-bd);border-radius:16px;overflow:hidden;background:var(--sp-bg)}
.wmsp-overlay>.wmsp-body,.wmsp-inline>.wmsp-body,.wmsp-overlay>.wmsp-chatwrap,.wmsp-inline>.wmsp-chatwrap{flex:1 1 auto;min-height:0;overflow:auto}
.wmsp-top{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--sp-bd);background:var(--sp-bg);font-size:16px}
.wmsp-top strong{flex:1;min-width:0;overflow-wrap:anywhere}
.wmsp-x,.wmsp-back{width:40px;height:40px;border:1px solid var(--sp-bd);border-radius:50%;background:var(--sp-alt);font-size:22px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;color:var(--sp-tx);padding:0;flex:0 0 40px}
.wmsp-body{padding:14px;display:flex;flex-direction:column;gap:12px}
.wmsp-body h4{margin:8px 0 0;font-size:15px}
.wmsp-hero{background:linear-gradient(135deg,var(--sp-pri),#0b3d2e);color:var(--sp-pt);border-radius:16px;padding:16px}
.wmsp-hero p{margin:0 0 6px}.wmsp-hello{font-size:20px;font-weight:800}
.wmsp-online{display:inline-flex;align-items:center;gap:6px;font-size:13px;background:rgba(255,255,255,.16);padding:4px 10px;border-radius:999px}
.wmsp-lead{margin:0;color:var(--sp-mu)}
.wmsp-card{border:1px solid var(--sp-bd);border-radius:14px;padding:16px;background:var(--sp-bg)}
.wmsp-tiles{display:grid;/* neutralized grid-template-columns */gap:10px}
.wmsp-tile{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--sp-bd);border-radius:14px;background:var(--sp-bg);padding:12px;min-height:56px;font-size:14px;font-weight:600;cursor:pointer;color:var(--sp-tx)}
.wmsp-tile-ic{font-size:22px}
.wmsp-hintbar{/* neutralized grid-column */background:#fffaeb;border:1px solid #fedf89;color:#93370d;border-radius:10px;padding:8px 12px;font-size:13px}
.wmsp-input{width:100%;min-height:46px;border:1px solid var(--sp-bd);border-radius:12px;padding:10px 12px;font-size:16px;background:var(--sp-bg);color:var(--sp-tx);font-family:inherit}
textarea.wmsp-input{resize:vertical}
.wmsp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 18px;border:1px solid var(--sp-pri);border-radius:999px;background:var(--sp-pri);color:var(--sp-pt);font-weight:700;font-size:15px;cursor:pointer;text-decoration:none;white-space:normal;text-align:center}
.wmsp-btn-ghost{background:var(--sp-bg);color:var(--sp-tx);border-color:var(--sp-bd)}
.wmsp-btn-block{width:100%}.wmsp-btn:disabled{opacity:.55}
.wmsp-btnrow{display:flex;flex-wrap:wrap;gap:8px}.wmsp-btnrow>*{flex:1 1 140px}
.wmsp-kb .wmsp-art{border:1px solid var(--sp-bd);border-radius:12px;padding:10px 12px;margin-bottom:8px;background:var(--sp-alt)}
.wmsp-art summary{font-weight:600;cursor:pointer}
.wmsp-tlist{display:flex;flex-direction:column;gap:8px}
.wmsp-trow{display:flex;justify-content:space-between;gap:10px;text-align:left;border:1px solid var(--sp-bd);border-radius:12px;background:var(--sp-bg);padding:12px;cursor:pointer;color:var(--sp-tx)}
.wmsp-trow-main{min-width:0;display:flex;flex-direction:column;gap:2px}.wmsp-trow-main b,.wmsp-trow-main small{overflow-wrap:anywhere}.wmsp-trow-main small{color:var(--sp-mu)}
.wmsp-trow-side{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:0 0 auto;color:var(--sp-mu)}
.wmsp-badge{min-width:20px;height:20px;border-radius:10px;background:#d92d20;color:#fff;font-size:12px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.wmsp-chip{display:inline-block;font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;background:#eef2f6;color:#344054;text-transform:capitalize;white-space:nowrap}
.wmsp-st-open{background:#fff4e5;color:#b54708}.wmsp-st-pending_staff{background:#e0f2fe;color:#026aa2}.wmsp-st-pending_user{background:#fef0c7;color:#93370d}.wmsp-st-resolved,.wmsp-st-closed{background:#dcfae6;color:#067647}.wmsp-st-on_hold{background:#eef2f6}
.wmsp-pr-urgent{background:#fee4e2;color:#b42318}.wmsp-pr-high{background:#fff4e5;color:#b54708}.wmsp-pr-low{background:#f2f4f7;color:#667085}
.wmsp-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#98a2b3;margin-right:2px}.wmsp-dot-online{background:#12b76a}.wmsp-dot-away{background:#f79009}
/* chat */
.wmsp-chatwrap,.wmsp-chatcol{display:flex;flex-direction:column;min-height:0;height:100%}
.wmsp-chat{display:flex;flex-direction:column;height:100%;min-height:0}
.wmsp-chat-head{display:grid;/* neutralized grid-template-columns */gap:8px 10px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--sp-bd);background:var(--sp-bg)}
.wmsp-who{display:flex;align-items:center;gap:10px;min-width:0}.wmsp-who strong,.wmsp-who small{display:block;overflow-wrap:anywhere}.wmsp-who small{color:var(--sp-mu);font-size:12px}
.wmsp-subject{/* neutralized grid-column */display:flex;flex-direction:column;gap:2px;font-size:13px}.wmsp-subject b{overflow-wrap:anywhere}.wmsp-rel{color:var(--sp-mu)}
.wmsp-av{width:32px;height:32px;border-radius:50%;object-fit:cover;background:var(--sp-alt);flex:0 0 32px}.wmsp-av.lg{width:42px;height:42px;flex-basis:42px}
.wmsp-msgs{flex:1 1 auto;min-height:0;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:var(--sp-alt);-webkit-overflow-scrolling:touch}
.wmsp-row{display:flex;gap:8px;max-width:100%;align-items:flex-end}.wmsp-row.mine{justify-content:flex-end}
.wmsp-bubble{max-width:82%;padding:9px 12px;border-radius:16px;background:var(--sp-bg);border:1px solid var(--sp-bd);overflow-wrap:anywhere}
.wmsp-row.mine .wmsp-bubble{background:var(--sp-pri);color:var(--sp-pt);border-color:var(--sp-pri);border-bottom-right-radius:4px}
.wmsp-row.theirs .wmsp-bubble{border-bottom-left-radius:4px}
.wmsp-row.internal .wmsp-bubble{background:#fffaeb;color:#7a2e0e;border:1px dashed #f79009}
.wmsp-tag{display:block;font-size:11px;text-transform:uppercase;margin-bottom:2px}
.wmsp-meta{display:block;opacity:.7;font-size:11px;margin-top:3px}
.wmsp-txt a{color:inherit;text-decoration:underline}
.wmsp-att-img{max-width:100%;max-height:200px;border-radius:10px;margin-top:6px;display:block}.wmsp-att-file{display:inline-block;margin-top:6px;color:inherit}
.wmsp-sys{align-self:center;text-align:center;font-size:12px;color:var(--sp-mu);background:#eef2f6;padding:5px 12px;border-radius:999px;max-width:92%;overflow-wrap:anywhere}
.wmsp-note{background:#fffaeb;color:#93370d}
.wmsp-typing{padding:4px 16px;font-size:12px;color:var(--sp-mu);background:var(--sp-alt)}
.wmsp-foot{border-top:1px solid var(--sp-bd);background:var(--sp-bg);padding:8px 12px 2px;display:flex;flex-direction:column;gap:6px;margin-top:auto;flex:0 0 auto}
.wmsp-composer{display:flex;flex-direction:column;gap:10px;align-items:stretch}.wmsp-composer .wmsp-input{min-height:48px;max-height:160px;width:100%;flex:0 0 auto}
.wmsp-ico{width:44px;height:44px;border:1px solid var(--sp-bd);border-radius:50%;background:var(--sp-alt);font-size:18px;cursor:pointer;flex:0 0 44px}
.wmsp-send{min-height:44px;padding:0 18px;border:0;border-radius:999px;background:var(--sp-pri);color:var(--sp-pt);font-weight:700;cursor:pointer}
.wmsp-endlink{align-self:center;background:none;border:0;color:var(--sp-mu);text-decoration:underline;font-size:13px;padding:6px;cursor:pointer}
.wmsp-files{display:flex;flex-wrap:wrap;gap:6px}.wmsp-fchip{display:inline-flex;align-items:center;gap:6px;background:var(--sp-alt);border:1px solid var(--sp-bd);border-radius:999px;padding:4px 10px;font-size:12px}.wmsp-fchip button{border:0;background:none;font-size:16px;cursor:pointer}
.wmsp-ended{display:flex;flex-direction:column;gap:10px;text-align:center}.wmsp-ended p{margin:0;color:var(--sp-mu)}
.wmsp-rate{display:flex;flex-direction:column;gap:10px;text-align:left;border:1px solid var(--sp-bd);border-radius:14px;padding:12px;background:var(--sp-alt)}
.wmsp-stars{display:inline-flex;gap:2px}.wmsp-star{border:0;background:none;font-size:30px;line-height:1;color:#d0d5dd;cursor:pointer;padding:2px}.wmsp-star.on{color:#f5a623}.wmsp-star:disabled{cursor:default;font-size:16px}
.wmsp-toast{position:absolute;left:50%;bottom:90px;transform:translateX(-50%);background:#101828;color:#fff;padding:9px 16px;border-radius:999px;font-size:13px;z-index:5;max-width:90%}
.wmsp-overlay,.wmsp-inline{position:fixed}.wmsp-inline{position:relative}
.wmsp-agentbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.wmsp-canned{min-height:40px;border:1px solid var(--sp-bd);border-radius:10px;padding:0 8px;font-size:14px;flex:1 1 160px;background:var(--sp-bg)}.wmsp-int{font-size:13px;display:inline-flex;gap:6px;align-items:center}
.wmsp-chat.is-note .wmsp-composer .wmsp-input{background:#fffaeb;border-color:#f79009}
.wmsp-claim{width:100%}
/* ---------- staff console ---------- */
.wmsp-agent{--sp-pri:#101828;max-width:1500px}
.wmsp-atop{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.wmsp-presence{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#fff;border:1px solid var(--sp-bd);border-radius:14px;padding:10px 12px}
.wmsp-plabel{font-weight:700;margin-right:auto;text-transform:capitalize}
.wmsp-pbtn{min-height:38px;padding:0 14px;border:1px solid var(--sp-bd);border-radius:999px;background:#fff;cursor:pointer;font-weight:600}.wmsp-pbtn.on{background:#101828;color:#fff;border-color:#101828}
.wmsp-stats{display:grid;/* neutralized grid-template-columns */gap:8px}
.wmsp-stat{background:#fff;border:1px solid var(--sp-bd);border-radius:12px;padding:10px;text-align:center}.wmsp-stat b{display:block;font-size:22px}.wmsp-stat small{color:var(--sp-mu)}
.wmsp-alayout{display:grid;/* neutralized grid-template-columns */gap:12px;align-items:start}
.wmsp-acol,.wmsp-bcol{min-width:0;background:#fff;border:1px solid var(--sp-bd);border-radius:14px;padding:10px}
.wmsp-scopes{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.wmsp-scope{min-height:38px;padding:0 14px;border:1px solid var(--sp-bd);border-radius:999px;background:#fff;cursor:pointer;font-weight:600}.wmsp-scope.on{background:#101828;color:#fff;border-color:#101828}
.wmsp-afilters{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.wmsp-two{display:grid;/* neutralized grid-template-columns */gap:8px}
.wmsp-alist{display:flex;flex-direction:column;gap:8px;max-height:none;overflow:visible}
.wmsp-arow{text-align:left;border:1px solid var(--sp-bd);border-left:4px solid #98a2b3;border-radius:10px;background:#fff;padding:10px;cursor:pointer;display:flex;flex-direction:column;gap:4px;color:var(--sp-tx)}
.wmsp-arow.on{background:#f5f7fa}.wmsp-arow.pr-urgent{border-left-color:#d92d20}.wmsp-arow.pr-high{border-left-color:#f79009}.wmsp-arow.pr-normal{border-left-color:#2e90fa}
.wmsp-arow-top{display:flex;justify-content:space-between;gap:8px}.wmsp-arow-sub{overflow-wrap:anywhere;font-size:13px;color:var(--sp-mu)}.wmsp-arow-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.wmsp-empty{padding:30px 10px;text-align:center;color:var(--sp-mu)}
.wmsp-splitpane{display:grid;/* neutralized grid-template-columns */gap:12px;align-items:start}
.wmsp-agent .wmsp-chatcol{height:68vh;border:1px solid var(--sp-bd);border-radius:12px;overflow:hidden}
.wmsp-info{display:flex;flex-direction:column;gap:10px}.wmsp-infocard{border:1px solid var(--sp-bd);border-radius:12px;padding:12px;background:#fff}.wmsp-infocard h4{margin:0 0 8px}.wmsp-infocard label{display:block;font-size:12px;font-weight:700;margin:8px 0 3px}.wmsp-infocard ul{margin:6px 0 0 16px}
.wmsp-cust{display:flex;gap:10px}.wmsp-cust small,.wmsp-cust a{display:block;overflow-wrap:anywhere}
.wmsp-team{background:#fff;border:1px solid var(--sp-bd);border-radius:14px;padding:12px}.wmsp-member{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--sp-bd)}.wmsp-grow{flex:1;min-width:0}.wmsp-grow small{display:block;color:var(--sp-mu)}.wmsp-rating{text-align:right}
.wmsp-back{display:none}
.wmsp-agent .wmsp-chat-head .wmsp-back{display:none}
@media(max-width:899px){
  .wmsp-alayout{/* neutralized grid-template-columns */padding:0;border:0;background:transparent}
  .wmsp-splitpane{/* neutralized grid-template-columns */min-height:420px}
  .wmsp-agent .wmsp-chat-head .wmsp-back{display:inline-flex}
  .wmsp-info{order:2}
}
.wmsp-top .wmsp-back,.wmsp-overlay .wmsp-chat-head .wmsp-back,.wmsp-inline .wmsp-chat-head .wmsp-back{display:inline-flex}
.wmsp-top-chat{justify-content:space-between}

/* v3.11.06 layout hardening: intermediate flex/grid items must be allowed to
   shrink or wp-admin/dashboard wrappers can push the history and controls
   outside the visible chat surface. Only the message history owns scrolling. */
.wmsp-agent,.wmsp-agent .wmsp-alayout,.wmsp-agent .wmsp-acol,.wmsp-agent .wmsp-bcol,
.wmsp-agent .wmsp-apane,.wmsp-agent .wmsp-splitpane,.wmsp-agent .wmsp-chatcol,
.wmsp-agent .wmsp-chat,.wmsp-chat-view,.wmsp-chat-view>.wmsp-chatwrap{min-width:0;min-height:0}
.wmsp-agent .wmsp-bcol,.wmsp-agent .wmsp-apane,.wmsp-agent .wmsp-splitpane{height:100%}
.wmsp-agent .wmsp-bcol{overflow:hidden}.wmsp-agent .wmsp-apane{display:flex;flex-direction:column}
.wmsp-agent .wmsp-splitpane{width:100%}.wmsp-agent .wmsp-chatcol{display:flex;flex-direction:column}
.wmsp-agent .wmsp-chat{flex:1 1 auto}.wmsp-agent .wmsp-msgs{flex:1 1 0%;min-height:80px;overflow-y:auto;overflow-x:hidden;touch-action:pan-y}
.wmsp-agent .wmsp-foot{flex:0 0 auto;min-height:0;overflow:visible}
.wmsp-chat-view .wmsp-chatwrap{display:flex;flex:1 1 0%;overflow:hidden}.wmsp-chat-view .wmsp-chat{flex:1 1 0%;min-height:0}
.wmsp-chat-view .wmsp-msgs{flex:1 1 0%;min-height:80px;overflow-y:auto;overflow-x:hidden}.wmsp-chat-view .wmsp-foot{flex:0 0 auto;min-height:0;overflow:visible}

/* v2.09 — dashboard-native support, AI assistant and full admin workspace */
.wmsp-launcher.wmsp-pos-left-bottom{left:24px;right:auto;bottom:24px}
.wmsp-launcher.wmsp-pos-right-top{right:24px;left:auto;top:24px;bottom:auto}
.wmsp-launcher.wmsp-pos-left-top{left:24px;right:auto;top:24px;bottom:auto}
.wmsp-dashboard-entry,.wmsp-manager-card{margin:18px 0;padding:18px;border:1px solid var(--sp-bd);border-radius:18px;background:var(--sp-bg);box-shadow:0 8px 30px rgba(16,24,40,.06);display:flex;align-items:center;justify-content:space-between;gap:18px}
.wmsp-dashboard-entry h3{margin:4px 0 4px;font-size:20px}.wmsp-dashboard-entry p{margin:0;color:var(--sp-mu);max-width:720px}.wmsp-dashboard-kicker{display:block;font-size:11px;letter-spacing:.09em;font-weight:800;color:var(--sp-mu);margin-bottom:4px}.wmsp-dashboard-actions{display:flex;gap:8px;flex-wrap:wrap;flex:0 0 auto}
.wmsp-manager-card{background:linear-gradient(135deg,#f8fbff,#fff)}.wmsp-manager-card strong,.wmsp-manager-card small{display:block}.wmsp-manager-card small{color:var(--sp-mu);margin-top:3px}
.wmsp-dashboard-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:18px}.wmsp-dashboard-modal[hidden]{display:none!important}.wmsp-dashboard-modal-backdrop{position:absolute;inset:0;background:rgba(16,24,40,.62)}.wmsp-dashboard-modal-dialog{position:relative;z-index:2;width:min(1120px,100%);height:min(820px,calc(100dvh - 36px));background:var(--sp-bg);border:1px solid var(--sp-bd);border-radius:20px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.28)}.wmsp-dashboard-close{position:absolute;right:12px;top:12px;z-index:5}
.wmsp-dashboard-modal-dialog>.wmsp{height:100%;max-width:none}.wmsp-dashboard-modal-dialog .wmsp-top{padding-right:64px}.wmsp-dashboard-modal-dialog .wmsp-body{overflow:auto}
.wmsp-ai-list{flex:1;min-height:0;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:10px;background:var(--sp-alt)}.wmsp-ai-msg{max-width:min(760px,90%);padding:10px 13px;border-radius:15px;border:1px solid var(--sp-bd);background:var(--sp-bg)}.wmsp-ai-msg.user{align-self:flex-end;background:var(--sp-pri);color:var(--sp-pt);border-color:var(--sp-pri)}.wmsp-ai-label{font-size:11px;font-weight:800;opacity:.7;margin-bottom:3px}.wmsp-ai-text{overflow-wrap:anywhere}.wmsp-ai-composer{display:flex;gap:8px;padding:10px;border-top:1px solid var(--sp-bd);background:var(--sp-bg);align-items:flex-end}.wmsp-ai-composer .wmsp-input{flex:1;max-height:150px}
@media(min-width:900px){.wmsp-agent{max-width:none;width:100%}.wmsp-agent .wmsp-alayout{/* neutralized grid-template-columns */gap:16px}.wmsp-agent .wmsp-chatcol{height:calc(100dvh - 260px);min-height:620px}.wmsp-agent .wmsp-splitpane{/* neutralized grid-template-columns */flex-direction:column}.wmsp-dashboard-actions{width:100%}.wmsp-dashboard-actions>*{flex:1}.wmsp-dashboard-modal{padding:0}.wmsp-dashboard-modal-dialog{width:100%;height:100dvh;border-radius:0}.wmsp-launcher.wmsp-pos-left-bottom{left:14px}.wmsp-launcher.wmsp-pos-right-top{right:14px;top:14px}.wmsp-launcher.wmsp-pos-left-top{left:14px;top:14px}}
/* Conversational journeys — strict WiserMart black/white UI */
.wmsp-flow-grid{display:grid;/* neutralized grid-template-columns */gap:10px;margin:10px 0 18px}
.wmsp-flow-card{appearance:none;border:1px solid #d0d0d0;background:#fff;color:#111;border-radius:16px;padding:14px;text-align:left;display:grid;/* neutralized grid-template-columns */column-gap:10px;cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease,transform .15s ease,box-shadow .15s ease}
.wmsp-flow-card:hover,.wmsp-flow-card:focus-visible{background:#000;color:#fff;border-color:#000;transform:translateY(-1px);box-shadow:0 8px 22px rgba(0,0,0,.16);outline:none}
.wmsp-flow-card:hover small,.wmsp-flow-card:focus-visible small{color:#fff}.wmsp-flow-icon{/* neutralized grid-row */font-size:22px;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#000;color:#fff}.wmsp-flow-card:hover .wmsp-flow-icon,.wmsp-flow-card:focus-visible .wmsp-flow-icon{background:#fff;color:#000}.wmsp-flow-card strong{font-size:14px}.wmsp-flow-card small{color:#555;line-height:1.4;margin-top:3px}.wmsp-flow-list{display:grid;gap:9px}.wmsp-flow-shipment{width:100%;border:1px solid #d0d0d0;background:#fff;color:#111;border-radius:14px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer}.wmsp-flow-shipment:hover,.wmsp-flow-shipment:focus-visible{background:#000;color:#fff;border-color:#000;outline:none}.wmsp-flow-shipment:hover small,.wmsp-flow-shipment:focus-visible small{color:#fff}.wmsp-flow-shipment strong,.wmsp-flow-shipment small{display:block}.wmsp-flow-shipment small{color:#555;margin-top:4px}.wmsp-flow-timeline{position:relative;margin:6px 0 20px;padding-left:26px}.wmsp-flow-stage{position:relative;min-height:48px;padding:0 0 18px;border-left:2px solid #d0d0d0;padding-left:18px;color:#111}.wmsp-flow-stage i{position:absolute;left:-8px;top:0;width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid #111}.wmsp-flow-stage.done i{background:#000;border-color:#000}.wmsp-flow-stage.current i{background:#000;border-color:#000;box-shadow:0 0 0 4px rgba(0,0,0,.12)}.wmsp-flow-stage strong,.wmsp-flow-stage small{display:block}.wmsp-flow-stage small{color:#111;margin-top:3px;font-weight:700}.wmsp-flow-summary{display:grid;/* neutralized grid-template-columns */gap:8px;margin-bottom:18px}.wmsp-flow-summary span{border:1px solid #d0d0d0;border-radius:12px;padding:11px;background:#fff;color:#111}.wmsp-flow-summary small,.wmsp-flow-summary b{display:block}.wmsp-flow-summary small{color:#555;margin-bottom:3px}.wmsp-flow-events{display:grid;gap:8px}.wmsp-flow-event{border-left:3px solid #000;padding:9px 12px;background:#f7f7f7;color:#111;border-radius:0 10px 10px 0}.wmsp-flow-event strong,.wmsp-flow-event small{display:block}.wmsp-flow-event small{color:#555;margin-top:4px}.wmsp-guide-steps{display:grid;gap:8px}.wmsp-guide-step{display:grid;/* neutralized grid-template-columns */text-align:left;gap:10px;align-items:center;width:100%;padding:12px;border:1px solid #d0d0d0;background:#fff;color:#111;border-radius:13px;cursor:pointer}.wmsp-guide-step:hover,.wmsp-guide-step:focus-visible{background:#000;color:#fff;border-color:#000;outline:none}.wmsp-guide-step:hover small,.wmsp-guide-step:focus-visible small{color:#fff}.wmsp-guide-step>b{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#000;color:#fff;font-weight:800}.wmsp-guide-step:hover>b,.wmsp-guide-step:focus-visible>b{background:#fff;color:#000}.wmsp-guide-step strong,.wmsp-guide-step small{display:block}.wmsp-guide-step small{color:#555;margin-top:2px;line-height:1.35}.wmsp-guide-detail{border:1px solid #d0d0d0;background:#fff;color:#111;border-radius:16px;padding:16px;margin-top:10px}.wmsp-guide-detail h4{margin:0 0 6px}.wmsp-guide-detail p{margin:0 0 10px;color:#444}.wmsp-guide-detail ul{margin:8px 0 14px 20px}.wmsp-guide-detail li{margin:5px 0}.wmsp-guide-choice{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.wmsp-guide-choice button{border:1px solid #000;background:#fff;color:#000;border-radius:10px;padding:9px 12px;font-weight:700;cursor:pointer}.wmsp-guide-choice button:hover,.wmsp-guide-choice button:focus-visible{background:#000;color:#fff;outline:none}.wmsp-flow-number{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#000;color:#fff;font-weight:800}@media(max-width:600px){.wmsp-flow-grid{/* neutralized grid-template-columns */border-radius:16px;background:var(--sp-bg);padding:16px;color:var(--sp-tx)}
.wmsp-ai-intro p{margin:0 0 6px}.wmsp-ai-intro p:last-child{margin-bottom:0;color:var(--sp-mu)}
.wmsp-rich{line-height:1.65}.wmsp-rich p{margin:0 0 10px}.wmsp-rich p:last-child{margin-bottom:0}.wmsp-rich h2,.wmsp-rich h3,.wmsp-rich h4{margin:10px 0 6px;line-height:1.25}.wmsp-rich ul{margin:6px 0 10px 20px;padding:0}.wmsp-rich li{margin:4px 0}.wmsp-rich hr{border:0;border-top:1px solid currentColor;opacity:.2;margin:10px 0}.wmsp-rich code{padding:2px 5px;border-radius:5px;background:rgba(0,0,0,.08)}.wmsp-ai-msg.user .wmsp-rich code{background:rgba(255,255,255,.14)}
.wmsp-dashboard-nav{display:flex;gap:7px;align-items:center;overflow-x:auto;padding:5px 0 12px;margin:0 0 4px;border-bottom:1px solid var(--sp-bd)}
.wmsp-dashboard-nav-link{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border:1px solid var(--sp-bd);border-radius:10px;background:#fff;color:#111;text-decoration:none;font-weight:700;white-space:nowrap;cursor:pointer}.wmsp-dashboard-nav-link:hover,.wmsp-dashboard-nav-link:focus-visible,.wmsp-dashboard-nav-link.is-active{background:#000;color:#fff;border-color:#000;outline:none}
.wmsp-launcher{right:var(--wmsp-fx,24px);bottom:calc(var(--wmsp-fy,24px) + env(safe-area-inset-bottom,0px))}.wmsp-launcher.wmsp-pos-left-bottom{left:var(--wmsp-fx,24px);right:auto}.wmsp-launcher.wmsp-pos-right-top{right:var(--wmsp-fx,24px);top:var(--wmsp-fy,24px);bottom:auto}.wmsp-launcher.wmsp-pos-left-top{left:var(--wmsp-fx,24px);right:auto;top:var(--wmsp-fy,24px);bottom:auto}.wmsp-launcher.wmsp-anchored{position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;margin:0}
.wmsp-ai-list{scroll-behavior:smooth}
}
/* v2.10.05 conversational polish + voice */
.wmsp-ai-text{font-size:15px;line-height:1.72;letter-spacing:.005em}.wmsp-ai-text strong{font-weight:800}.wmsp-ai-text p{margin:0 0 10px}.wmsp-ai-text p:last-child{margin-bottom:0}.wmsp-ai-text h2,.wmsp-ai-text h3,.wmsp-ai-text h4{margin:10px 0 6px}.wmsp-ai-text ul,.wmsp-ai-text ol{padding-left:22px;margin:7px 0 11px}.wmsp-ai-text li{margin:4px 0}.wmsp-ai-text blockquote{margin:9px 0;padding:8px 12px;border-left:3px solid currentColor;opacity:.82}.wmsp-ai-actions{display:flex;gap:5px;margin-top:7px}.wmsp-voice-read{border:1px solid currentColor;background:transparent;color:inherit;border-radius:999px;width:30px;height:30px;cursor:pointer}.wmsp-voice-read:hover{background:#000;color:#fff}.wmsp-ai-msg.user .wmsp-voice-read:hover{background:#fff;color:#000}.wmsp-ai-intro{transition:opacity .2s,transform .2s}.wmsp-ai-list{scroll-behavior:smooth;overscroll-behavior:contain}.wmsp-ai-composer{position:sticky;bottom:0}.wmsp-ico{min-width:42px;min-height:42px;border:1px solid var(--sp-bd);background:var(--sp-bg);color:var(--sp-tx);border-radius:10px;cursor:pointer}.wmsp-ico:hover{background:#000;color:#fff;border-color:#000}
/* Platform-wide voice controls */
.wmsp-chat-view{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden}
.wmsp-chat-view>.wmsp-top{flex:0 0 auto}
.wmsp-inline.wmsp-chat-view{height:min(78dvh,820px);max-height:calc(100dvh - 16px);min-height:min(520px,calc(100dvh - 16px))}
@media(min-width:900px){.wmsp-overlay.wmsp-chat-view{height:min(680px,calc(100dvh - 48px))}}
.wmsp-chat-view>.wmsp-chatwrap{flex:1 1 0%;min-height:0;height:auto;overflow:hidden}
.wmsp-chat-view .wmsp-chat{flex:1 1 0%;height:auto;min-height:0;overflow:hidden}
.wmsp-chat-view .wmsp-chat-head{flex:0 0 auto}
.wmsp-chat-view .wmsp-msgs{flex:1 1 0%;min-height:72px;overscroll-behavior:contain}
.wmsp-chat-view .wmsp-foot{flex:0 0 auto;max-height:55%;overflow-y:auto;overscroll-behavior:contain}
.wmsp-bot-reply{align-self:flex-start;max-width:min(88%,760px);padding:11px 13px;border:1px solid var(--sp-bd);border-radius:16px 16px 16px 4px;background:var(--sp-bg);overflow-wrap:anywhere}
.wmsp-bot-label{display:block;margin-bottom:4px;font-size:11px;letter-spacing:.03em;color:var(--sp-mu)}
.wmsp-bot-text{line-height:1.55}.wmsp-bot-reply .wmsp-meta{margin-top:7px}
.wmsp-human-handoff{width:100%;border-color:#98a2b3}
.wmsp-int{padding:6px 9px;border:1px solid #fdb022;border-radius:10px;background:#fffaeb;color:#7a2e0e}
.wmsp-int span,.wmsp-int strong,.wmsp-int small{display:block}.wmsp-int small{font-size:11px;line-height:1.3}
.wmsp-primary-chat{width:100%;margin:2px 0 4px}
.wmsp-st-bot_active{background:#e0e7ff;color:#3730a3}
.wmsp-agent .wmsp-apane{min-width:0}
@media(max-width:899px){
  .wmsp-chat-view .wmsp-composer{gap:6px}
  .wmsp-chat-view .wmsp-composer .wmsp-input{min-width:0}
  .wmsp-chat-view .wmsp-composer .wmsp-ico{width:40px;height:40px;flex-basis:40px}
  .wmsp-chat-view .wmsp-composer .wmsp-send{padding:0}
  .wmsp-agent .wmsp-chatcol{height:calc(100dvh - 190px);min-height:360px}
  .wmsp-agent .wmsp-composer{width:100%;gap:5px}
  .wmsp-agent .wmsp-composer .wmsp-input{min-width:0;flex:1 1 90px;max-height:100px}
  .wmsp-agent .wmsp-composer .wmsp-ico{width:40px;height:40px;flex:0 0 40px}
  .wmsp-agent .wmsp-composer .wmsp-send{min-height:44px;padding:0;width:44px;height:44px;border-radius:50%}
  .wmsp-agent .wmsp-agentbar{align-items:stretch}
  .wmsp-agent .wmsp-canned{flex:1 1 100%;min-width:0}
  .wmsp-agent .wmsp-int{flex:1 1 100%}
  .wmsp-agent.wmsp-mobile-chat .wmsp-atop{display:none!important}
  .wmsp-agent.wmsp-mobile-chat .wmsp-alayout{height:calc(100dvh - 155px);min-height:360px}
  .wmsp-agent.wmsp-mobile-chat .wmsp-alayout.show-chat .wmsp-bcol{height:100%;min-height:0;overflow:hidden}
  .wmsp-agent.wmsp-mobile-chat .wmsp-splitpane{height:100%;min-height:0}
  .wmsp-agent.wmsp-mobile-chat .wmsp-chatcol{height:100%;min-height:0}
  .wmsp-agent.wmsp-mobile-chat .wmsp-info{display:none}
}
/* v3.11.03 — legible support avatars, guided help and reliable touch scrolling */
.wmsp-bot-avatar,.wmsp-avatar-fallback{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#101828;color:#fff;font-weight:900;box-shadow:0 2px 7px rgba(16,24,40,.2)}
.wmsp-bot-avatar b{font-size:15px;line-height:1}.wmsp-bot-avatar i{position:absolute;right:-2px;top:-3px;font-size:12px;font-style:normal;color:#f5c451}
.wmsp-avatar-fallback{background:#e9eef5;color:#344054;border:1px solid #d0d5dd}.wmsp-avatar-fallback.lg{width:42px;height:42px;flex-basis:42px}
.wmsp-who .wmsp-bot-avatar{width:42px;height:42px;flex-basis:42px}
.wmsp-bot-row{align-items:flex-end}.wmsp-bot-message{background:#fff}.wmsp-bot-label{display:block;font-size:11px;letter-spacing:.02em;color:var(--sp-mu);margin-bottom:4px}
.wmsp-team-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--sp-bd);border-radius:14px;background:var(--sp-bg)}
.wmsp-team-strip>.wmsp-av,.wmsp-team-strip>.wmsp-avatar-fallback{width:34px;height:34px;flex-basis:34px;margin-left:-3px;border:2px solid #fff;box-shadow:0 0 0 1px var(--sp-bd)}
.wmsp-team-copy{flex:1 1 180px;min-width:0}.wmsp-team-copy strong,.wmsp-team-copy small{display:block}.wmsp-team-copy small{font-size:12px;color:var(--sp-mu);line-height:1.35}
.wmsp-att-audio{display:grid;gap:3px;margin-top:7px;max-width:min(340px,100%)}.wmsp-att-audio audio{width:100%;max-width:100%;height:40px}.wmsp-att-audio small{font-size:11px;color:var(--sp-mu)}
.wmsp-record{font-size:20px;color:#b42318}.wmsp-record.is-recording{background:#fee4e2;border-color:#fda29b;color:#b42318;animation:wmsp-record-pulse 1.2s infinite}
@keyframes wmsp-record-pulse{50%{box-shadow:0 0 0 5px rgba(217,45,32,.14)}}
.wmsp-guide-cards{display:grid;/* neutralized grid-template-columns */gap:10px}
.wmsp-guide-card{appearance:none;display:flex;flex-direction:column;gap:7px;text-align:left;padding:12px;border:1px solid var(--sp-bd);border-radius:16px;background:#fff;color:var(--sp-tx);cursor:pointer}
.wmsp-guide-card:hover,.wmsp-guide-card:focus-visible{border-color:#101828;box-shadow:0 7px 20px rgba(16,24,40,.1);outline:none}
.wmsp-guide-card>strong{font-size:15px}.wmsp-guide-card>small{color:var(--sp-mu);line-height:1.4}
.wmsp-guide-illustration{display:grid;justify-items:center;gap:4px;width:100%;padding:5px;border-radius:12px;background:#f7f7f7;color:var(--sp-mu);font-size:11px;font-weight:700}
.wmsp-guide-illustration svg{display:block;width:min(100%,260px);height:auto}
.wmsp-guide-page-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.wmsp-guide-page-head strong{font-size:16px}.wmsp-guide-page-head small{color:var(--sp-mu);white-space:nowrap}
.wmsp-guide-progress{height:7px;overflow:hidden;border-radius:99px;background:#eaecf0}.wmsp-guide-progress span{display:block;height:100%;border-radius:inherit;background:#101828;transition:width .2s ease}
.wmsp-guide-nav{display:flex;flex-wrap:wrap;gap:8px}.wmsp-guide-nav>*{flex:1 1 125px}
.wmsp-guide-nav button:disabled{opacity:.5;cursor:not-allowed}
.wmsp-guide-detail{line-height:1.6}.wmsp-guide-detail ul{padding-left:21px}
.wmsp-chat-view .wmsp-chatwrap,.wmsp-chat-view .wmsp-chat{min-height:0;height:100%;overflow:hidden}
.wmsp-chat-view .wmsp-msgs{min-height:0;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y;scrollbar-gutter:stable}
.wmsp-chat-view .wmsp-foot{flex:0 0 auto;max-height:48%;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.wmsp-chat-view .wmsp-composer{touch-action:manipulation}
.wmsp-chat-view .wmsp-composer .wmsp-input{min-width:0}
@media(max-width:600px){
  .wmsp-guide-nav{display:grid;/* neutralized grid-template-columns */max-height:calc(100dvh - 12px);min-height:min(480px,calc(100dvh - 12px))}
}

/* Mobile chat is a fixed header + scrollable conversation + always-visible controls.
   Only the message history scrolls; the composer is not hidden inside a second scroller. */
@media(max-width:899px){
  .wmsp-chat-view>.wmsp-top-chat{flex:0 0 auto;position:relative;z-index:2}
  .wmsp-chat-view>.wmsp-chatwrap{display:flex;flex:1 1 0%;min-height:0;height:auto;overflow:hidden}
  .wmsp-chat-view .wmsp-chat{display:flex;flex:1 1 0%;flex-direction:column;height:100%;min-height:0;overflow:hidden}
  .wmsp-chat-view .wmsp-chat-head{flex:0 0 auto}
  .wmsp-chat-view .wmsp-msgs{flex:1 1 0%;min-height:80px;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y}
  .wmsp-chat-view .wmsp-foot{flex:0 0 auto;max-height:none;overflow:visible;overscroll-behavior:auto;padding:4px 8px 0;gap:4px;margin-top:auto}
  .wmsp-chat-view .wmsp-composer{display:flex !important;flex-direction:column !important;align-items:stretch !important;}
  .wmsp-chat-view .wmsp-composer .wmsp-input{/* neutralized grid-column *//* neutralized grid-row */width:100%;min-width:0;min-height:48px;max-height:112px;resize:none}
  .wmsp-chat-view .wmsp-composer .wmsp-attach{/* neutralized grid-column *//* neutralized grid-row */min-height:44px;width:44px;height:44px;padding:0;border-radius:50%;white-space:nowrap}
}

/* v3.11.06 — definitive chat geometry repair.
   Some WordPress themes/admin shells leave percentage heights unresolved. Keep
   the support application itself responsible for the flex height, while the
   message history remains the sole scrollable region. */
.wmsp-chat-view,
.wmsp-chat-view.wmsp-inline,
.wmsp-chat-view.wmsp-overlay{display:flex !important;flex-direction:column !important;min-width:0 !important;min-height:0 !important;overflow:hidden !important}
.wmsp-chat-view.wmsp-inline{height:min(82dvh,820px) !important;max-height:calc(100dvh - 16px) !important;min-height:min(520px,calc(100dvh - 16px)) !important}
.wmsp-chat-view.wmsp-overlay{height:var(--wmsp-vh,100dvh) !important;max-height:var(--wmsp-vh,100dvh) !important}
.wmsp-chat-view>.wmsp-top-chat{flex:0 0 auto !important}
.wmsp-chat-view>.wmsp-chatwrap{display:flex !important;flex:1 1 0% !important;width:100% !important;min-width:0 !important;min-height:0 !important;height:auto !important;overflow:hidden !important}
.wmsp-chat-view .wmsp-chat,
.wmsp-chat-view .wmsp-chat-ready{display:flex !important;flex:1 1 0% !important;flex-direction:column !important;width:100% !important;min-width:0 !important;min-height:0 !important;height:auto !important;overflow:hidden !important}
.wmsp-chat-view .wmsp-chat-head{display:grid !important;flex:0 0 auto !important;min-height:62px !important}
.wmsp-chat-view .wmsp-msgs{display:flex !important;flex:1 1 0% !important;width:100% !important;min-width:0 !important;min-height:80px !important;height:auto !important;overflow-y:auto !important;overflow-x:hidden !important;-webkit-overflow-scrolling:touch !important;touch-action:pan-y !important}
.wmsp-chat-view .wmsp-foot{display:flex !important;flex:0 0 auto !important;width:100% !important;min-width:0 !important;min-height:0 !important;max-height:none !important;height:auto !important;overflow:visible !important}

/* Staff desk: establish a real height before percentage-height descendants are
   evaluated. This fixes the empty right pane on desktop/tablet admin screens. */
.wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-bcol{display:none}
.wmsp-agent .wmsp-alayout{width:100%;min-width:0;min-height:560px;height:min(68dvh,760px);align-items:stretch}
.wmsp-agent .wmsp-acol,.wmsp-agent .wmsp-bcol{min-width:0;min-height:0;height:100%}
.wmsp-agent .wmsp-bcol{overflow:hidden}
.wmsp-agent .wmsp-apane{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden}
.wmsp-agent .wmsp-splitpane{display:grid;/* neutralized grid-template-columns */gap:12px;width:100%;height:100%;min-width:0;min-height:0;align-items:stretch}
.wmsp-agent .wmsp-chatcol{display:flex;flex-direction:column;width:100%;height:100% !important;min-width:0;min-height:0;overflow:hidden}
.wmsp-agent .wmsp-chatcol .wmsp-chat{display:flex;flex:1 1 0%;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
.wmsp-agent .wmsp-chatcol .wmsp-msgs{flex:1 1 0%;min-height:80px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.wmsp-agent .wmsp-chatcol .wmsp-foot{flex:0 0 auto;max-height:none;overflow:visible}

@media (min-width:900px) and (max-width:1199px){
  .wmsp-agent .wmsp-alayout{height:min(70dvh,760px);min-height:540px;/* neutralized grid-template-columns */max-height:calc(100dvh - 12px) !important;min-height:min(480px,calc(100dvh - 12px)) !important}
  .wmsp-agent .wmsp-alayout{height:auto !important;min-height:0 !important;max-height:none !important;/* neutralized grid-template-columns */padding:0;border:0;background:transparent;height:100%;overflow:hidden}
  .wmsp-agent .wmsp-splitpane{/* neutralized grid-template-columns */height:100%;gap:0}
  .wmsp-agent .wmsp-info{display:none}
  .wmsp-agent .wmsp-chatcol{height:100% !important;min-height:0 !important}
  .wmsp-agent .wmsp-chatcol .wmsp-foot{padding:4px 8px 0;max-height:none;overflow:visible;margin-top:auto}
}



/* v3.11.08 — chat renderer + mobile control polish.
   The helper now safely accepts mixed child arrays. Keep the mobile staff composer
   compact so the conversation history gets the largest possible share of the screen. */
.wmsp-composer .wmsp-ico{display:inline-flex;align-items:center;justify-content:center;font-size:21px;line-height:1;font-weight:700;box-sizing:border-box}
.wmsp-composer .wmsp-attach{color:#344054;background:#fff}
.wmsp-composer .wmsp-dictate{color:#175cd3;background:#fff}
.wmsp-composer .wmsp-record{color:#b42318;background:#fff}
.wmsp-composer .wmsp-attach:hover,.wmsp-composer .wmsp-dictate:hover,.wmsp-composer .wmsp-record:hover{color:#fff;background:#101828;border-color:#101828}
.wmsp-composer .wmsp-record.is-recording{color:#b42318;background:#fee4e2}
@media(max-width:899px){
  .wmsp-agent.wmsp-mobile-chat .wmsp-alayout.show-chat,
  html body.wp-admin .wmsp-agent.wmsp-mobile-chat .wmsp-alayout.show-chat{
    height:calc(100dvh - 108px) !important;
    min-height:420px !important;
    max-height:none !important;
  }
  .wmsp-agent.wmsp-mobile-chat .wmsp-chatcol,
  html body.wp-admin .wmsp-agent.wmsp-mobile-chat .wmsp-chatcol{
    height:100% !important;min-height:0 !important;
  }
  .wmsp-agent.wmsp-mobile-chat .wmsp-chat-head{min-height:56px;padding:8px 10px}
  .wmsp-agent.wmsp-mobile-chat .wmsp-msgs{min-height:140px !important;padding:10px}
  .wmsp-agent.wmsp-mobile-chat .wmsp-foot{padding:3px 7px 0 !important;gap:4px !important;margin-top:auto !important}
  .wmsp-agent.wmsp-mobile-chat .wmsp-agentbar{/* neutralized grid-template-columns */gap:5px}
  .wmsp-agent.wmsp-mobile-chat .wmsp-canned{min-height:34px;height:34px;font-size:12px}
  .wmsp-agent.wmsp-mobile-chat .wmsp-int{min-height:34px;padding:3px 6px;font-size:11px}
  .wmsp-agent.wmsp-mobile-chat .wmsp-composer{/* neutralized grid-template-columns *//* neutralized grid-template-rows */gap:5px}
  .wmsp-agent.wmsp-mobile-chat .wmsp-composer .wmsp-input{min-height:44px !important;max-height:84px;font-size:15px}
  .wmsp-agent.wmsp-mobile-chat .wmsp-composer .wmsp-ico{width:42px !important;height:42px !important;min-width:42px !important;min-height:42px !important;font-size:21px !important;border-radius:10px}
  .wmsp-agent.wmsp-mobile-chat .wmsp-composer .wmsp-send{min-height:44px !important;height:44px !important;width:44px !important;max-width:44px !important;padding:0 !important;border-radius:50% !important;font-size:0}
}

/* v3.11.08 — final responsive chat polish.
   Keep the identity/status header from stealing horizontal space. On narrow
   screens the status becomes its own row, while the conversation keeps the
   bulk of the viewport. */
.wmsp-chat-head.wmsp-no-back{/* neutralized grid-template-columns */overflow:hidden;text-overflow:ellipsis}
.wmsp-chat-head .wmsp-who small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Make the actual symbols larger than their button chrome. The recording
   control gets a deliberate dark foreground so it cannot disappear on white. */
.wmsp-composer .wmsp-ico{
  width:44px;height:44px;min-width:44px;min-height:44px;
  padding:0;border-radius:9px;font-size:25px;line-height:1;
  font-weight:800;display:inline-flex;align-items:center;justify-content:center;
}
.wmsp-composer .wmsp-attach{color:#101828;background:#f8fafc;border-color:#cfd4dc}
.wmsp-composer .wmsp-dictate{color:#175cd3;background:#f8fafc;border-color:#cfd4dc}
.wmsp-composer .wmsp-record{color:#101828;background:#f8fafc;border-color:#cfd4dc}
.wmsp-composer .wmsp-record.is-recording{color:#b42318;background:#fee4e2;border-color:#fecdca}

@media(max-width:899px){
  /* Stable mobile geometry. Do not wait for the JS mobile class before sizing
     the active admin conversation, which removes the first-load size jump. */
  .wmsp-agent .wmsp-alayout.show-chat{
    height:calc(100dvh - 120px) !important;
    min-height:500px !important;
    max-height:none !important;
  }
  .wmsp-agent .wmsp-alayout.show-chat .wmsp-bcol{
    height:100% !important;min-height:0 !important;overflow:hidden !important;
  }
  .wmsp-agent .wmsp-splitpane{height:100% !important;min-height:0 !important}
  .wmsp-agent .wmsp-chatcol{height:100% !important;min-height:0 !important}
  .wmsp-agent .wmsp-chatcol .wmsp-chat{height:100% !important;min-height:0 !important}
  .wmsp-agent .wmsp-chatcol .wmsp-msgs{flex:1 1 0%;min-height:160px !important;overflow-y:auto !important}

  /* Header: name/presence first, status chip below. This prevents long
     'Waiting for support' notices from compressing the identity into a sliver. */
  .wmsp-chat-head,
  .wmsp-chat-head.wmsp-no-back,
  .wmsp-chat-head.wmsp-has-back{
    /* neutralized grid-template-columns */
    gap:7px 8px !important;
    padding:9px 10px !important;
  }
  .wmsp-chat-head.wmsp-has-back{/* neutralized grid-template-columns */
    /* neutralized grid-row */
    justify-self:start;
    max-width:100%;
    overflow:hidden;text-overflow:ellipsis;
  }
  .wmsp-chat-head .wmsp-subject{/* neutralized grid-column */min-width:0}
  .wmsp-chat-head .wmsp-who strong{font-size:15px}
  .wmsp-chat-head .wmsp-who small{font-size:12px}

  /* The composer remains comfortably tappable without making the buttons
     look like giant empty boxes. */
  .wmsp-agent.wmsp-mobile-chat .wmsp-composer,
  .wmsp-agent .wmsp-composer{
    /* neutralized grid-template-columns */
    gap:6px !important;
  }
  .wmsp-agent.wmsp-mobile-chat .wmsp-composer .wmsp-ico,
  .wmsp-agent .wmsp-composer .wmsp-ico{
    width:44px !important;height:44px !important;min-width:44px !important;min-height:44px !important;
    font-size:25px !important;border-radius:9px !important;
  }
  .wmsp-agent.wmsp-mobile-chat .wmsp-composer .wmsp-send,
  .wmsp-agent .wmsp-composer .wmsp-send{
    min-height:44px !important;height:44px !important;font-size:14px !important;
  }
}

@media(max-width:420px){
  /* v3.11.52: never collapse the mobile support header to 38px. It contains avatar, status, back/fullscreen controls and subject. */
  .wmsp-chat-head.wmsp-has-back{height:auto;min-height:62px;flex-basis:auto;overflow:visible}
  .wmsp-agent .wmsp-chatcol .wmsp-msgs{padding:8px !important}
  .wmsp-agent .wmsp-foot{padding-left:6px !important;padding-right:6px !important}
}


/* v3.11.09 — hardened support header, deterministic mobile controls and diagnostics. */
.wmsp-chat-head{/* neutralized grid-template-columns *//* neutralized grid-template-rows */align-items:center;min-width:0;}
.wmsp-chat-head .wmsp-who{/* neutralized grid-column *//* neutralized grid-row */min-width:0;width:100%;}
.wmsp-chat-head .wmsp-chip{/* neutralized grid-column *//* neutralized grid-row */justify-self:end;max-width:min(42vw,260px);overflow:hidden;text-overflow:ellipsis;}
.wmsp-chat-head .wmsp-subject{/* neutralized grid-column *//* neutralized grid-row */min-width:0;width:100%;}
.wmsp-chat-head .wmsp-subject b,.wmsp-chat-head .wmsp-rel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.wmsp-chat-head .wmsp-back{/* neutralized grid-column *//* neutralized grid-row */}
.wmsp-chat-head.wmsp-no-back .wmsp-who{/* neutralized grid-column */}
.wmsp-chat-head.wmsp-no-back .wmsp-chip{/* neutralized grid-column */}
.wmsp-icon{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;flex:0 0 26px;pointer-events:none;}
.wmsp-icon svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.wmsp-record .wmsp-icon svg{fill:currentColor;stroke:none;}
.wmsp-stop-icon{display:block;width:16px;height:16px;border-radius:3px;background:currentColor;}
.wmsp-composer .wmsp-ico{width:46px;height:46px;min-width:46px;min-height:46px;border-radius:10px;padding:0;display:inline-flex;align-items:center;justify-content:center;}
.wmsp-composer .wmsp-ico .wmsp-icon{width:28px;height:28px;flex-basis:28px;}
.wmsp-composer .wmsp-ico .wmsp-icon svg{width:28px;height:28px;}
.wmsp-composer .wmsp-attach{color:#101828;background:#f8fafc;border-color:#cfd4dc;}
.wmsp-composer .wmsp-dictate{color:#175cd3;background:#f8fafc;border-color:#cfd4dc;}
.wmsp-composer .wmsp-record{color:#101828;background:#f8fafc;border-color:#cfd4dc;}
.wmsp-composer .wmsp-send{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;}
.wmsp-composer .wmsp-send .wmsp-icon{width:20px;height:20px;flex-basis:20px;}
.wmsp-composer .wmsp-send .wmsp-icon svg{width:20px;height:20px;}

@media(max-width:899px){
  .wmsp-chat-head,.wmsp-chat-head.wmsp-has-back,.wmsp-chat-head.wmsp-no-back{
    /* neutralized grid-template-columns */
    /* neutralized grid-template-rows */
    gap:6px 8px !important;padding:9px 10px !important;
  }
  .wmsp-chat-head .wmsp-who,.wmsp-chat-head.wmsp-no-back .wmsp-who{/* neutralized grid-column *//* neutralized grid-row */}
  .wmsp-chat-head .wmsp-back{/* neutralized grid-column *//* neutralized grid-row */}
  .wmsp-chat-head .wmsp-chip,.wmsp-chat-head.wmsp-no-back .wmsp-chip{
    /* neutralized grid-column *//* neutralized grid-row */justify-self:start !important;
    max-width:100% !important;white-space:normal !important;overflow:visible !important;text-overflow:clip !important;
  }
  .wmsp-chat-head .wmsp-subject{/* neutralized grid-column *//* neutralized grid-row */}
  .wmsp-chat-head .wmsp-who strong{font-size:16px !important;line-height:1.2;}
  .wmsp-chat-head .wmsp-who small{font-size:12px !important;line-height:1.2;}
  .wmsp-chat-view .wmsp-chat-head{min-height:0 !important;}
  .wmsp-chat-view .wmsp-composer .wmsp-ico,.wmsp-agent.wmsp-mobile-chat .wmsp-composer .wmsp-ico{
    width:46px !important;height:46px !important;min-width:46px !important;min-height:46px !important;font-size:initial !important;border-radius:10px !important;
  }
  .wmsp-chat-view .wmsp-composer .wmsp-ico .wmsp-icon,.wmsp-agent.wmsp-mobile-chat .wmsp-composer .wmsp-ico .wmsp-icon{width:28px;height:28px;flex-basis:28px;}
  .wmsp-chat-view .wmsp-composer .wmsp-ico .wmsp-icon svg,.wmsp-agent.wmsp-mobile-chat .wmsp-composer .wmsp-ico .wmsp-icon svg{width:28px;height:28px;}
  .wmsp-chat-view .wmsp-composer .wmsp-send,.wmsp-agent.wmsp-mobile-chat .wmsp-composer .wmsp-send{min-height:44px !important;height:44px !important;width:44px !important;max-width:44px !important;padding:0 !important;border-radius:50% !important;font-size:0 !important;}
  .wmsp-agent.wmsp-mobile-chat .wmsp-composer{/* neutralized grid-template-columns */gap:7px !important;}
}

/* Persistent diagnostic panel for v3.11.51 mobile-first deep debugging. */
#wm-support-debug-panel{position:fixed;left:8px;right:8px;bottom:8px;z-index:2147483647;background:#101828;color:#f8fafc;border:1px solid #344054;border-radius:10px;box-shadow:0 18px 50px rgba(0,0,0,.35);font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;max-height:45dvh;overflow:hidden;}
#wm-support-debug-panel .wm-support-debug-title{display:flex;align-items:center;gap:6px;padding:7px 8px;border-bottom:1px solid #344054;background:#1d2939;}
#wm-support-debug-panel .wm-support-debug-title strong{margin-right:auto;font:700 12px/1.2 system-ui,sans-serif;}
#wm-support-debug-panel button{border:1px solid #667085;background:#344054;color:#fff;border-radius:6px;padding:5px 8px;cursor:pointer;font:600 11px/1 system-ui,sans-serif;}
#wm-support-debug-panel pre{margin:0;padding:8px;white-space:pre-wrap;word-break:break-word;overflow:auto;max-height:calc(45dvh - 42px);}


/* v3.11.10 — lock support chat to the large mobile viewport.
   100dvh follows the browser's expanding/collapsing address bar, which made the
   chat grow while scrolling down and collapse while scrolling up. Use lvh for
   a stable chat canvas and let the surrounding page handle any browser chrome. */
.wmsp-chat-view.wmsp-inline{height:min(82lvh,820px) !important;max-height:none !important;min-height:min(520px,82lvh) !important;}
.wmsp-chat-view.wmsp-overlay{height:100lvh !important;max-height:100lvh !important;}
@media(max-width:899px){
  .wmsp-chat-view.wmsp-inline{height:min(88lvh,900px) !important;max-height:none !important;min-height:min(520px,88lvh) !important;}
  .wmsp-agent .wmsp-alayout.show-chat,
  html body.wp-admin .wmsp-agent .wmsp-alayout.show-chat,
  html body.wm-admin-page .wmsp-agent .wmsp-alayout.show-chat{
    height:min(calc(100lvh - 145px),900px) !important;
    min-height:min(520px,calc(100lvh - 145px)) !important;
    max-height:none !important;
  }
}

/* v3.11.10 — deterministic send control contrast. The send button is the
   fourth control outside the three icon buttons and must never inherit a white
   foreground from an admin theme. */
.wmsp-composer .wmsp-send,
.wmsp-chat-view .wmsp-composer .wmsp-send,
.wmsp-agent .wmsp-composer .wmsp-send{
  color:#fff !important;background:#101828 !important;border:1px solid #101828 !important;
}
.wmsp-composer .wmsp-send .wmsp-icon{color:#fff !important;}
.wmsp-composer .wmsp-send .wmsp-icon svg{stroke:currentColor !important;fill:none !important;}
.wmsp-composer .wmsp-send:hover,.wmsp-composer .wmsp-send:focus-visible{color:#fff !important;background:#000 !important;border-color:#000 !important;}
.wmsp-composer .wmsp-send:disabled{color:#fff !important;background:#667085 !important;border-color:#667085 !important;}


/* v3.11.11 — support desk separation. The management/context controls are a
   sibling of the conversation, not a child of the chat split pane. */
.wmsp-agent .wmsp-alayout{display:grid !important;/* neutralized grid-template-columns */gap:12px !important;width:100% !important;min-width:0 !important;align-items:stretch !important;}
.wmsp-agent .wmsp-alayout .wmsp-acol,.wmsp-agent .wmsp-alayout .wmsp-bcol,.wmsp-agent .wmsp-alayout .wmsp-ccol{min-width:0 !important;min-height:0 !important;height:100% !important;}
.wmsp-agent .wmsp-alayout .wmsp-bcol{display:block !important;padding:10px !important;background:#fff !important;border:1px solid var(--sp-bd) !important;border-radius:14px !important;overflow:hidden !important;}
.wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-bcol,.wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-ccol{display:none !important;}
.wmsp-agent .wmsp-alayout:not(.show-chat){/* neutralized grid-template-columns */}
.wmsp-agent .wmsp-apane{display:flex !important;flex-direction:column !important;width:100% !important;height:100% !important;min-width:0 !important;min-height:0 !important;overflow:hidden !important;}
.wmsp-agent .wmsp-chatcol{display:flex !important;flex:1 1 0% !important;flex-direction:column !important;width:100% !important;height:100% !important;min-width:0 !important;min-height:0 !important;border:0 !important;border-radius:0 !important;overflow:hidden !important;}
.wmsp-agent .wmsp-ccol{display:flex !important;flex-direction:column !important;width:100% !important;padding:0 !important;background:transparent !important;border:0 !important;overflow:hidden !important;}
.wmsp-agent .wmsp-context{display:flex !important;flex-direction:column !important;gap:10px !important;width:100% !important;height:100% !important;min-width:0 !important;min-height:0 !important;overflow-y:auto !important;overflow-x:hidden !important;-webkit-overflow-scrolling:touch;padding-right:2px;}
.wmsp-agent .wmsp-context .wmsp-info{display:flex !important;flex-direction:column;gap:10px;min-width:0;}
.wmsp-agent .wmsp-context .wmsp-infocard{width:100%;min-width:0;}
@media (min-width:900px) and (max-width:1199px){.wmsp-agent .wmsp-alayout.show-chat{/* neutralized grid-template-columns */}}
@media (max-width:899px){
  .wmsp-agent .wmsp-alayout.show-chat{/* neutralized grid-template-columns */height:min(calc(100lvh - 110px),1200px) !important;min-height:min(520px,calc(100lvh - 110px)) !important;max-height:none !important;}
  .wmsp-agent .wmsp-alayout.show-chat .wmsp-acol{display:none !important;}
  .wmsp-agent .wmsp-alayout.show-chat .wmsp-bcol{display:block !important;width:100% !important;height:100% !important;min-width:0 !important;min-height:0 !important;padding:0 !important;border:0 !important;background:transparent !important;border-radius:0 !important;overflow:hidden !important;}
  .wmsp-agent .wmsp-alayout.show-chat .wmsp-ccol{display:none !important;}
  .wmsp-agent .wmsp-alayout.show-chat .wmsp-apane,.wmsp-agent .wmsp-alayout.show-chat .wmsp-chatcol,.wmsp-agent .wmsp-alayout.show-chat .wmsp-chat{width:100% !important;height:100% !important;min-width:0 !important;min-height:0 !important;overflow:hidden !important;}
  .wmsp-agent .wmsp-alayout.show-chat .wmsp-msgs{flex:1 1 0% !important;width:100% !important;min-width:0 !important;min-height:100px !important;overflow-y:auto !important;overflow-x:hidden !important;}
  .wmsp-agent .wmsp-alayout.show-chat .wmsp-foot{flex:0 0 auto !important;max-height:none !important;overflow:visible !important;}
}

/* v3.11.15 — stable customer mobile chat + explicit sticky chrome.
      No artificial 960px minimum is used, because that made shorter phones look closer to 3x.
   The message list is the only scrolling region; header and composer stay visible. */
.wmsp-chat-view.wmsp-inline{overflow:hidden !important;}
.wmsp-chat-view .wmsp-chatwrap,.wmsp-chat-view .wmsp-chat{min-height:0 !important;height:100% !important;overflow:hidden !important;}
.wmsp-chat-view .wmsp-msgs{flex:1 1 auto !important;min-height:0 !important;overflow-y:auto !important;overflow-x:hidden !important;-webkit-overflow-scrolling:touch !important;touch-action:pan-y !important;overscroll-behavior-y:auto !important;overscroll-behavior-x:hidden !important;scrollbar-gutter:stable !important;}
.wmsp-chat-view .wmsp-top-chat,.wmsp-chat-view .wmsp-chat-head{position:sticky !important;top:0 !important;z-index:20 !important;flex:0 0 auto !important;}
.wmsp-chat-view .wmsp-foot{position:sticky !important;bottom:0 !important;z-index:20 !important;flex:0 0 auto !important;overflow:visible !important;background:inherit !important;}
@media(max-width:899px){
  .wmsp-chat-view.wmsp-overlay{height:var(--wmsp-vh,100dvh) !important;max-height:var(--wmsp-vh,100dvh) !important;}
  .wmsp-chat-view .wmsp-msgs{min-height:120px !important;overscroll-behavior-y:contain !important;}
  .wmsp-chat-view .wmsp-foot{max-height:none !important;overflow:visible !important;padding:3px 6px 0 !important;margin-top:auto !important;}
}

/* v3.11.12 — admin support layout: queue | conversation | management. */
.wmsp-agent .wmsp-alayout{display:grid !important;/* neutralized grid-template-columns */width:100% !important;min-width:0 !important;align-items:stretch !important;gap:12px !important;}
.wmsp-agent .wmsp-alayout:not(.show-chat){/* neutralized grid-template-columns */}
.wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-bcol,.wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-ccol{display:none !important;}
.wmsp-agent .wmsp-acol,.wmsp-agent .wmsp-bcol,.wmsp-agent .wmsp-ccol{min-width:0 !important;min-height:0 !important;height:100% !important;}
.wmsp-agent .wmsp-bcol{display:block !important;overflow:hidden !important;}
.wmsp-agent .wmsp-apane,.wmsp-agent .wmsp-chatcol,.wmsp-agent .wmsp-chat{min-width:0 !important;min-height:0 !important;width:100% !important;height:100% !important;overflow:hidden !important;display:flex !important;flex-direction:column !important;}
.wmsp-agent .wmsp-ccol{display:flex !important;flex-direction:column !important;overflow:hidden !important;}
.wmsp-agent .wmsp-context{width:100% !important;height:100% !important;min-width:0 !important;min-height:0 !important;overflow-y:auto !important;overflow-x:hidden !important;-webkit-overflow-scrolling:touch !important;}
@media(min-width:900px) and (max-width:1199px){.wmsp-agent .wmsp-alayout.show-chat{/* neutralized grid-template-columns */}}
@media(max-width:899px){
  .wmsp-agent .wmsp-alayout.show-chat{/* neutralized grid-template-columns */height:min(calc(100svh - 110px),900px) !important;min-height:min(520px,calc(100svh - 110px)) !important;max-height:none !important;}
  .wmsp-agent .wmsp-alayout.show-chat .wmsp-acol,.wmsp-agent .wmsp-alayout.show-chat .wmsp-ccol{display:none !important;}
  .wmsp-agent .wmsp-alayout.show-chat .wmsp-bcol{display:block !important;width:100% !important;height:100% !important;min-width:0 !important;min-height:0 !important;padding:0 !important;border:0 !important;background:transparent !important;overflow:hidden !important;}
  .wmsp-agent .wmsp-alayout.show-chat .wmsp-msgs{flex:1 1 0% !important;min-height:100px !important;overflow-y:auto !important;overflow-x:hidden !important;touch-action:pan-y !important;}
}
.wmsp-admin-loading,.wmsp-admin-error{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:30px;text-align:center;border:1px solid var(--sp-bd);border-radius:14px;background:#fff;}
.wmsp-admin-loading small,.wmsp-admin-error p,.wmsp-admin-error small{color:var(--sp-mu);margin:0;}
.wmsp-admin-error p{max-width:620px;}


/* v3.11.15 — final admin support boot/layout guard.
   Keep the queue visible before a conversation is selected, and never allow
   old two-column rules to collapse the admin console to an empty shell. */
html body.wp-admin .wmsp-agent#wm-support-console,
html body.wp-admin #wm-support-console.wmsp-agent{display:block !important;width:100% !important;max-width:none !important;min-width:0 !important;visibility:visible !important;}
html body.wp-admin .wmsp-agent .wmsp-atop{display:flex !important;}
html body.wp-admin .wmsp-agent .wmsp-alayout{display:grid !important;width:100% !important;min-width:0 !important;min-height:560px !important;height:min(68dvh,760px) !important;}
html body.wp-admin .wmsp-agent .wmsp-alayout:not(.show-chat){/* neutralized grid-template-columns */}
html body.wp-admin .wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-acol{display:block !important;visibility:visible !important;}
html body.wp-admin .wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-bcol,
html body.wp-admin .wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-ccol{display:none !important;}
html body.wp-admin .wmsp-agent .wmsp-acol{min-width:0 !important;min-height:0 !important;overflow:hidden !important;}
@media(max-width:899px){
  html body.wp-admin .wmsp-agent .wmsp-alayout:not(.show-chat){height:auto !important;min-height:0 !important;max-height:none !important;overflow:visible !important;}
  html body.wp-admin .wmsp-agent .wmsp-alayout.show-chat{height:calc(100svh - 110px) !important;min-height:520px !important;max-height:none !important;}
  html body.wp-admin .wmsp-agent .wmsp-alayout.show-chat .wmsp-acol,
  html body.wp-admin .wmsp-agent .wmsp-alayout.show-chat .wmsp-ccol{display:none !important;}
  html body.wp-admin .wmsp-agent .wmsp-alayout.show-chat .wmsp-bcol{display:block !important;}
}

/* v3.11.15 — always-visible admin boot diagnostic and final layout precedence. */
.wm-support-server-debug{margin-top:12px;padding:10px 12px;border:1px solid #d0d5dd;border-radius:12px;background:#fff;color:#344054;}
.wm-support-server-debug summary{cursor:pointer;font-weight:700;}
.wm-support-server-debug pre{max-height:220px;overflow:auto;white-space:pre-wrap;font:11px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:#f8fafc;padding:10px;border-radius:8px;}
#wm-support-boot-diagnostic{position:relative;z-index:9999;margin-top:12px;padding:14px;border:2px solid #b42318;border-radius:12px;background:#fff7f7;color:#7a271a;font:13px/1.45 system-ui,sans-serif;}
#wm-support-boot-diagnostic pre{max-height:260px;overflow:auto;white-space:pre-wrap;background:#fff;border:1px solid #fecdca;border-radius:8px;padding:10px;font:11px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;}
#wm-support-boot-diagnostic .wm-support-diag-actions{display:flex;gap:8px;flex-wrap:wrap;}
#wm-support-boot-diagnostic button{border:1px solid #b42318;background:#fff;color:#7a271a;border-radius:8px;padding:7px 10px;font-weight:700;cursor:pointer;}
@media(max-width:899px){#wm-support-boot-diagnostic{font-size:12px;}}


/* v3.11.18 — Support workspace refinement.  Visual layer only; chat/API lifecycle remains unchanged. */
.wmsp{--sp-radius:18px;--sp-shadow:0 14px 40px rgba(16,24,40,.08)}
.wmsp-top,.wmsp-atop{background:#fff}
.wmsp-kicker{display:block;font-size:10px;line-height:1.2;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#667085}
.wmsp-hero-modern{display:grid;/* neutralized grid-template-columns */gap:22px;align-items:center;padding:26px;border:1px solid var(--sp-bd);border-radius:22px;background:linear-gradient(135deg,#fff 0%,#f8fafc 100%);box-shadow:var(--sp-shadow);margin-bottom:12px}
.wmsp-hero-modern .wmsp-hello{font-size:30px;font-weight:800;letter-spacing:-.04em;margin:5px 0 2px;color:#101828}
.wmsp-hero-modern h2{font-size:22px;line-height:1.2;margin:0 0 8px;color:#101828}
.wmsp-hero-modern p:not(.wmsp-hello){max-width:620px;color:#667085;line-height:1.55;margin:0 0 12px}
.wmsp-hero-action{display:flex;flex-direction:column;gap:8px;align-items:stretch}.wmsp-hero-action .wmsp-primary-chat{min-height:52px;border-radius:14px;font-size:14px}.wmsp-hero-action small{color:#667085;line-height:1.45;text-align:center}
.wmsp-team-strip-modern{border:1px solid var(--sp-bd);border-radius:14px;background:#fff;padding:11px 13px;margin:0 0 18px}.wmsp-team-strip-modern .wmsp-team-copy{flex:1}
.wmsp-section{margin:18px 0}.wmsp-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 10px}.wmsp-section-head h4{font-size:16px;margin:3px 0 2px}.wmsp-section-head p{font-size:12px;color:#667085;margin:0}.wmsp-section-count{display:grid;place-items:center;min-width:28px;height:28px;padding:0 8px;border-radius:999px;background:#f2f4f7;color:#344054;font-size:12px;font-weight:800}.wmsp-link-btn{border:0;background:none;color:#101828;font-weight:800;cursor:pointer;padding:4px 0}.wmsp-link-btn:hover{text-decoration:underline}
.wmsp-help-section{padding-top:2px}.wmsp-help-search{margin-top:10px;height:48px!important;border-radius:13px!important;background:#fff!important}.wmsp-quick-grid{/* neutralized grid-template-columns */gap:9px!important;margin:0!important}.wmsp-quick-grid .wmsp-tile{min-height:72px!important;border-radius:14px!important;display:flex!important;align-items:center!important;gap:10px!important;padding:12px!important}.wmsp-quick-grid .wmsp-tile-ic{width:34px!important;height:34px!important;flex:0 0 34px!important;font-size:17px!important}.wmsp-quick-grid .wmsp-tile span:last-child{font-size:13px;font-weight:750}

/* Agent workspace */
.wmsp-agent-topbar{display:flex!important;align-items:center;justify-content:space-between;gap:18px;padding:3px 2px 14px;border-bottom:1px solid #eaecf0;margin-bottom:10px}.wmsp-agent-title h2{margin:3px 0 2px;font-size:23px;letter-spacing:-.03em}.wmsp-agent-title p{margin:0;color:#667085;font-size:12px}.wmsp-agent-actions{display:flex;align-items:center;gap:10px}.wmsp-agent-actions .wmsp-presence{margin:0}.wmsp-stats-wrap{overflow-x:auto;overflow-y:hidden;margin-bottom:10px;padding-bottom:2px}.wmsp-stats-wrap .wmsp-stats{min-width:max-content}
.wmsp-agent .wmsp-alayout{gap:10px!important}.wmsp-agent .wmsp-acol,.wmsp-agent .wmsp-bcol,.wmsp-agent .wmsp-ccol{border-radius:16px!important}.wmsp-agent .wmsp-acol{background:#fff;border:1px solid var(--sp-bd);overflow:hidden!important}.wmsp-agent .wmsp-bcol{padding:0!important;background:#fff!important;border:1px solid var(--sp-bd)!important;box-shadow:0 8px 30px rgba(16,24,40,.05)}.wmsp-agent .wmsp-ccol{background:#f8fafc;border:1px solid var(--sp-bd)!important;padding:10px!important}.wmsp-agent .wmsp-chatcol{border-radius:16px;overflow:hidden!important}.wmsp-agent .wmsp-chat-head{padding:13px 16px!important;background:#fff;border-bottom:1px solid #eaecf0}.wmsp-agent .wmsp-msgs{padding:18px!important;background:#fbfcfd}.wmsp-agent .wmsp-foot{background:#fff!important;border-top:1px solid #eaecf0!important;padding:10px 12px 12px!important}
.wmsp-agent .wmsp-context{padding:2px!important}.wmsp-agent .wmsp-infocard{border:1px solid #eaecf0!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;padding:13px!important}.wmsp-agent .wmsp-infocard h4{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#667085;margin:0 0 9px}.wmsp-agent .wmsp-afilters{padding:10px!important;background:#fff;border-bottom:1px solid #eaecf0}.wmsp-agent .wmsp-scopes{padding:9px 9px 0!important;gap:5px!important;overflow-x:auto}.wmsp-agent .wmsp-scope{border-radius:9px!important;font-size:11px!important;padding:7px 9px!important}.wmsp-agent .wmsp-alist{padding:5px!important}.wmsp-agent .wmsp-arow{border-radius:12px!important;border:1px solid transparent!important;margin:3px 0!important;padding:11px!important}.wmsp-agent .wmsp-arow:hover{border-color:#d0d5dd!important;background:#f8fafc!important}.wmsp-agent .wmsp-arow.on{border-color:#101828!important;background:#f2f4f7!important;box-shadow:inset 3px 0 0 #101828}.wmsp-agent .wmsp-empty{color:#98a2b3}
.wmsp-agent .wmsp-composer{border:1px solid #d0d5dd!important;border-radius:15px!important;padding:5px!important;gap:5px!important;background:#fff!important;box-shadow:0 4px 14px rgba(16,24,40,.06)}.wmsp-agent .wmsp-composer .wmsp-input{border:0!important;background:transparent!important;box-shadow:none!important;padding:10px 7px!important;min-height:42px!important}.wmsp-agent .wmsp-composer .wmsp-ico{border:0!important;background:transparent!important;width:40px!important;height:40px!important;min-width:40px!important}.wmsp-agent .wmsp-composer .wmsp-ico:hover{background:#f2f4f7!important;color:#101828!important}.wmsp-agent .wmsp-composer .wmsp-send{min-height:40px!important;border-radius:10px!important;padding:0 13px!important}.wmsp-agent .wmsp-agentbar{margin-bottom:7px}.wmsp-agent .wmsp-files{margin:0 2px 6px!important}

/* Customer chat workspace */
.wmsp-chat-view .wmsp-top{padding:11px 14px!important;border-bottom:1px solid #eaecf0!important;background:#fff!important}.wmsp-chat-view .wmsp-chat-head{background:#fff!important}.wmsp-chat-view .wmsp-msgs{background:#f8fafc!important;padding:18px!important}.wmsp-chat-view .wmsp-foot{background:rgba(255,255,255,.97)!important;border-top:1px solid #eaecf0!important;padding:4px 8px 0!important;margin-top:auto!important;backdrop-filter:blur(10px)}.wmsp-chat-view .wmsp-composer{border:1px solid #d0d5dd!important;border-radius:16px!important;padding:5px!important;gap:4px!important;background:#fff!important;box-shadow:0 5px 20px rgba(16,24,40,.07)}.wmsp-chat-view .wmsp-composer .wmsp-input{border:0!important;background:transparent!important;box-shadow:none!important;padding:9px 6px!important}.wmsp-chat-view .wmsp-composer .wmsp-ico{border:0!important;background:transparent!important;width:40px!important;height:40px!important;min-width:40px!important}.wmsp-chat-view .wmsp-composer .wmsp-ico:hover{background:#f2f4f7!important;color:#101828!important}.wmsp-chat-view .wmsp-composer .wmsp-send{min-height:44px!important;width:44px!important;height:44px!important;max-width:44px!important;border-radius:50%!important;padding:0!important}.wmsp-chat-view .wmsp-human-handoff{margin-top:7px!important}.wmsp-chat-view .wmsp-row{margin-bottom:12px}.wmsp-chat-view .wmsp-bubble{box-shadow:0 1px 2px rgba(16,24,40,.04)}
@media(max-width:899px){
 .wmsp-hero-modern{/* neutralized grid-template-columns */padding:20px;border-radius:18px}.wmsp-hero-modern .wmsp-hello{font-size:26px}.wmsp-hero-action{order:2}.wmsp-quick-grid{/* neutralized grid-template-columns */min-width:40px;padding:0!important}.wmsp-agent .wmsp-composer .wmsp-input{font-size:16px!important}.wmsp-chat-view .wmsp-composer .wmsp-record{display:none}.wmsp-chat-view .wmsp-composer .wmsp-send span{display:none}.wmsp-chat-view .wmsp-composer .wmsp-send{width:40px;min-width:40px;padding:0!important}.wmsp-chat-view .wmsp-composer .wmsp-input{font-size:16px!important}.wmsp-section-head{align-items:center}.wmsp-agent .wmsp-agent-topbar{padding-bottom:10px}
}
@media(max-width:480px){.wmsp-hero-modern{padding:17px}.wmsp-hero-modern .wmsp-hello{font-size:23px}.wmsp-hero-modern h2{font-size:19px}.wmsp-team-strip-modern{margin-bottom:14px}.wmsp-quick-grid .wmsp-tile{min-height:64px!important}.wmsp-help-search{height:46px!important}.wmsp-chat-view .wmsp-msgs{padding:11px!important}.wmsp-chat-view .wmsp-chat-head{padding:9px 10px!important}.wmsp-chat-view .wmsp-foot{padding-left:7px!important;padding-right:7px!important}.wmsp-agent .wmsp-chat-head{padding:8px 9px!important}}


/* v3.11.18 — customer chat compact composer/header refinement. */
/* The support workspace owns its own voice control; hide the platform-wide
   voice button whenever the support UI is mounted. */

/* Customer chat uses one chrome row. The duplicated outer "Support chat"
   bar was consuming valuable vertical space before the real conversation. */
.wmsp-chat-view > .wmsp-top-chat{display:none !important;}
.wmsp-chat-view .wmsp-chat-head{/* neutralized grid-template-columns *//* neutralized grid-template-rows */gap:4px 7px !important;min-height:0 !important;padding:8px 10px !important;}
.wmsp-chat-view .wmsp-chat-head .wmsp-back{display:inline-flex !important;/* neutralized grid-column *//* neutralized grid-row */align-self:center;width:34px;height:34px;min-width:34px;border:0;background:transparent;font-size:28px;}
.wmsp-chat-view .wmsp-chat-head .wmsp-who{/* neutralized grid-column *//* neutralized grid-row */align-self:center;}
.wmsp-chat-view .wmsp-chat-head .wmsp-chip{/* neutralized grid-column *//* neutralized grid-row */align-self:center;}
.wmsp-chat-view .wmsp-chat-head .wmsp-chat-close{/* neutralized grid-column *//* neutralized grid-row */width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#344054;font-size:24px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;}
.wmsp-chat-view .wmsp-chat-head .wmsp-chat-close:hover{background:#f2f4f7;color:#101828;}
.wmsp-chat-view .wmsp-chat-head .wmsp-subject{/* neutralized grid-column *//* neutralized grid-row */margin:0!important;padding:0!important;font-size:11px!important;line-height:1.3!important;color:#667085!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wmsp-chat-view .wmsp-chat-head .wmsp-subject b{font-weight:600;color:#667085;}
.wmsp-chat-view .wmsp-chat-head .wmsp-subject .wmsp-rel{display:none;}
.wmsp-chat-view .wmsp-chat-head .wmsp-who strong{font-size:14px;line-height:1.15;}
.wmsp-chat-view .wmsp-chat-head .wmsp-who small{font-size:11px;line-height:1.2;}
.wmsp-chat-view .wmsp-chat-head .wmsp-who .wmsp-av{width:30px!important;height:30px!important;flex-basis:30px!important;}

/* Compact full-height customer surface. */
.wmsp-chat-view.wmsp-inline{height:min(100dvh,820px)!important;max-height:100dvh!important;min-height:min(520px,100dvh)!important;}
.wmsp-chat-view .wmsp-chatwrap{min-height:0!important;}
.wmsp-chat-view .wmsp-msgs{padding:10px 12px!important;}
.wmsp-chat-view .wmsp-foot{padding:4px 8px 0!important;gap:4px!important;margin-top:auto!important;}

/* Hostinger-style composer: attachment on the left, message in the middle,
   microphone while empty and send arrow only after the user starts typing. */
.wmsp-chat-view .wmsp-composer{display:grid!important;/* neutralized grid-template-columns */align-items:end!important;gap:3px!important;padding:4px!important;border-radius:18px!important;min-height:48px!important;}
.wmsp-chat-view .wmsp-composer .wmsp-attach,
.wmsp-chat-view .wmsp-composer .wmsp-dictate,
.wmsp-chat-view .wmsp-composer .wmsp-send{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;border-radius:12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.wmsp-chat-view .wmsp-composer .wmsp-attach{/* neutralized grid-column *//* neutralized grid-row */color:#344054!important;}
.wmsp-chat-view .wmsp-composer .wmsp-input{/* neutralized grid-column *//* neutralized grid-row */min-height:38px!important;max-height:120px!important;padding:8px 5px!important;font-size:16px!important;line-height:1.35!important;}
.wmsp-chat-view .wmsp-composer .wmsp-dictate{/* neutralized grid-column *//* neutralized grid-row */color:#344054!important;background:#f2f4f7!important;}
.wmsp-chat-view .wmsp-composer .wmsp-send{/* neutralized grid-column *//* neutralized grid-row */background:#101828!important;color:#fff!important;border:0!important;}
.wmsp-chat-view .wmsp-composer .wmsp-send .wmsp-icon,
.wmsp-chat-view .wmsp-composer .wmsp-send svg{color:#fff!important;stroke:#fff!important;}
.wmsp-chat-view .wmsp-composer .wmsp-send:hover{background:#000!important;color:#fff!important;}
.wmsp-chat-view .wmsp-composer .wmsp-send[hidden],
.wmsp-chat-view .wmsp-composer .wmsp-dictate[hidden]{display:none!important;}

/* Human handoff belongs to the bot response, not below the composer. */
.wmsp-handoff-suggestion{display:inline-flex;align-items:center;justify-content:center;margin-top:9px;padding:7px 11px;border:1px solid #d0d5dd;border-radius:999px;background:#fff;color:#101828;font-size:12px;font-weight:700;cursor:pointer;}
.wmsp-handoff-suggestion:hover{background:#f2f4f7;border-color:#98a2b3;}
.wmsp-handoff-suggestion:disabled{opacity:.55;cursor:default;}
.wmsp-chat-view .wmsp-human-handoff{display:none!important;}

@media(max-width:899px){
  .wmsp-chat-view.wmsp-inline{height:100dvh!important;max-height:100dvh!important;min-height:0!important;}
  .wmsp-chat-view .wmsp-chat-head{padding:7px 8px!important;}
  .wmsp-chat-view .wmsp-chat-head .wmsp-chip{font-size:10px!important;padding:3px 7px!important;}
  .wmsp-chat-view .wmsp-chat-head .wmsp-subject{font-size:10px!important;}
  .wmsp-chat-view .wmsp-msgs{padding:8px 9px!important;}
  .wmsp-chat-view .wmsp-foot{padding:3px 6px 0!important;gap:3px!important;margin-top:auto!important;}
  .wmsp-chat-view .wmsp-composer{/* neutralized grid-template-columns */border-radius:17px!important;}
  .wmsp-chat-view .wmsp-composer .wmsp-attach,
  .wmsp-chat-view .wmsp-composer .wmsp-dictate,
  .wmsp-chat-view .wmsp-composer .wmsp-send{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border-radius:11px!important;}
}


/* v3.11.19 — support workspace stabilization + Wiser AI handoff. */
html body.wmsp-support-fullscreen,
html body.wmsp-support-active:has(.wmsp-chat-view){overscroll-behavior:none;}
.wmsp-chat-view.wmsp-inline{height:100dvh !important;max-height:100dvh !important;min-height:0 !important;}
.wmsp-chat-view.wmsp-overlay{position:fixed !important;top:var(--wmsp-offset-top,0px) !important;left:var(--wmsp-offset-left,0px) !important;right:auto !important;bottom:auto !important;width:var(--wmsp-vw,100vw) !important;height:var(--wmsp-vh,100dvh) !important;max-height:var(--wmsp-vh,100dvh) !important;min-height:0 !important;padding:0 !important;overflow:hidden !important;}
.wmsp-chat-view .wmsp-chat-head{position:relative !important;top:auto !important;bottom:auto !important;}
.wmsp-chat-view .wmsp-foot{position:relative !important;top:auto !important;bottom:auto !important;padding:4px 8px 0 !important;margin-top:auto !important;}
.wmsp-chat-view .wmsp-msgs{overscroll-behavior:contain !important;}
/* High-contrast send action for both customer and agent. */
.wmsp-composer .wmsp-send,
.wmsp-chat-view .wmsp-composer .wmsp-send,
.wmsp-agent .wmsp-composer .wmsp-send{background:#111827 !important;color:#fff !important;border:1px solid #111827 !important;box-shadow:0 2px 7px rgba(16,24,40,.18) !important;}
.wmsp-composer .wmsp-send .wmsp-icon,
.wmsp-composer .wmsp-send .wmsp-icon svg,
.wmsp-composer .wmsp-send svg{color:#fff !important;stroke:#fff !important;fill:none !important;}
.wmsp-composer .wmsp-send:hover{background:#000 !important;color:#fff !important;}
/* Live voice-input feedback. */
.wmsp-composer .wmsp-dictate.is-listening{color:#b42318 !important;background:#fff1f0 !important;border-color:#fda29b !important;animation:wmsp-listening-pulse 1s ease-in-out infinite;}
.wmsp-composer .wmsp-dictate.is-listening .wmsp-icon{animation:wmsp-listening-bounce .7s ease-in-out infinite alternate;}
@keyframes wmsp-listening-pulse{50%{box-shadow:0 0 0 5px rgba(217,45,32,.12)}}
@keyframes wmsp-listening-bounce{from{transform:scale(.9)}to{transform:scale(1.08)}}
/* Compact close/actions menu. */
.wmsp-chat-actions{position:relative;display:inline-flex;align-items:center;justify-content:center;/* neutralized grid-column *//* neutralized grid-row */}
.wmsp-chat-actions .wmsp-chat-close{position:relative !important;/* neutralized grid-column *//* neutralized grid-row */}
.wmsp-chat-action-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:80;min-width:150px;padding:5px;border:1px solid #d0d5dd;border-radius:12px;background:#fff;box-shadow:0 14px 35px rgba(16,24,40,.16);}
.wmsp-chat-action-menu[hidden]{display:none !important;}
.wmsp-chat-action-menu button{display:block;width:100%;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:#101828;text-align:left;font:inherit;font-size:13px;font-weight:650;cursor:pointer;}
.wmsp-chat-action-menu button:hover{background:#f2f4f7;}.wmsp-chat-action-menu button.danger{color:#b42318;}
/* Admin full-screen conversation workspace. */
.wmsp-admin-fullscreen{position:fixed !important;inset:0 !important;z-index:999999 !important;width:100vw !important;height:100dvh !important;max-width:none !important;max-height:none !important;margin:0 !important;padding:18px !important;background:#f7f8fa !important;overflow:hidden !important;box-sizing:border-box !important;}
.wmsp-admin-fullscreen .wmsp-alayout{height:calc(100dvh - 36px) !important;min-height:0 !important;max-height:none !important;}
.wmsp-admin-fullscreen .wmsp-bcol{border-radius:18px !important;box-shadow:0 10px 35px rgba(16,24,40,.08);}
.wmsp-admin-fullscreen .wmsp-chat-head{padding:12px 16px !important;}
.wmsp-fullscreen-toggle{width:34px;height:34px;border:1px solid #d0d5dd;border-radius:9px;background:#fff;color:#101828;display:inline-flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer;/* neutralized grid-column *//* neutralized grid-row */}
.wmsp-fullscreen-toggle:hover{background:#f2f4f7;}
.wmsp-handoff-queue{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 10px;margin-bottom:7px;border:1px solid #d0d5dd;border-radius:12px;background:#fff;}
.wmsp-handoff-queue-main{display:grid;gap:1px;flex:1 1 180px;min-width:0;}.wmsp-handoff-queue-main strong{font-size:12px}.wmsp-handoff-queue-main span{font-size:11px;color:#667085;}
.wmsp-handoff-timer{font-size:12px;font-weight:800;white-space:nowrap;color:#344054;}.wmsp-handoff-actions{display:flex;gap:5px;}
.wmsp-handoff-actions .wmsp-btn{padding:6px 9px;font-size:11px;min-height:30px;}
@media(max-width:899px){
  .wmsp-admin-fullscreen{padding:0 !important;}
  .wmsp-admin-fullscreen .wmsp-alayout{height:100dvh !important;}
  .wmsp-admin-fullscreen .wmsp-chat-head{padding:8px 10px !important;}
  .wmsp-admin-fullscreen .wmsp-chatcol{border-radius:0 !important;}
  .wmsp-fullscreen-toggle{width:34px;height:34px;}
}

/* v3.11.19 final geometry authority. */
html body.wmsp-support-fullscreen{overflow:hidden !important;}
.wmsp-admin-fullscreen .wmsp-atop,
.wmsp-admin-fullscreen .wmsp-stats-wrap,
.wmsp-admin-fullscreen .wmsp-team{display:none !important;}
.wmsp-admin-fullscreen .wmsp-alayout{display:grid !important;/* neutralized grid-template-columns */width:100% !important;height:100% !important;min-height:0 !important;max-height:none !important;gap:0 !important;}
.wmsp-admin-fullscreen .wmsp-acol,
.wmsp-admin-fullscreen .wmsp-ccol{display:none !important;}
.wmsp-admin-fullscreen .wmsp-bcol{display:block !important;width:100% !important;height:100% !important;min-height:0 !important;border:0 !important;background:transparent !important;overflow:hidden !important;}
.wmsp-admin-fullscreen .wmsp-apane{width:100% !important;height:100% !important;min-height:0 !important;}
.wmsp-admin-fullscreen .wmsp-chatcol{height:100% !important;min-height:0 !important;border-radius:18px !important;overflow:hidden !important;}
.wmsp-admin-fullscreen .wmsp-chat-head{/* neutralized grid-template-columns */}
.wmsp-admin-fullscreen .wmsp-chat-head .wmsp-who{/* neutralized grid-column *//* neutralized grid-row */}
.wmsp-admin-fullscreen .wmsp-chat-head .wmsp-chip{/* neutralized grid-column *//* neutralized grid-row */}
.wmsp-admin-fullscreen .wmsp-chat-head .wmsp-fullscreen-toggle{/* neutralized grid-column *//* neutralized grid-row */}
.wmsp-agent:not(.wmsp-admin-fullscreen) .wmsp-chat-head{/* neutralized grid-template-columns */}
.wmsp-agent:not(.wmsp-admin-fullscreen) .wmsp-chat-head .wmsp-who{/* neutralized grid-column *//* neutralized grid-row */}
.wmsp-agent:not(.wmsp-admin-fullscreen) .wmsp-chat-head .wmsp-chip{/* neutralized grid-column *//* neutralized grid-row */}
.wmsp-agent:not(.wmsp-admin-fullscreen) .wmsp-chat-head .wmsp-fullscreen-toggle{/* neutralized grid-column *//* neutralized grid-row */}
@media(max-width:899px){
  .wmsp-admin-fullscreen .wmsp-chatcol{border-radius:0 !important;}
  .wmsp-agent:not(.wmsp-admin-fullscreen) .wmsp-chat-head .wmsp-fullscreen-toggle{/* neutralized grid-column *//* neutralized grid-row */justify-self:end;}
}


/* ========== v3.11.20 — admin minimalist + voice action circle + customer space ========== */

/* Compact presence dropdown (admin topbar) */
.wmsp-presence.wmsp-presence-compact{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:0;
  background:transparent;
  border:0;
  border-radius:0;
  padding:0;
  flex-wrap:nowrap;
}
.wmsp-presence-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--sp-bd);
  border-radius:999px;
  background:#fff;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  color:#101828;
  text-transform:capitalize;
}
.wmsp-presence-toggle:hover{background:#f2f4f7}
.wmsp-presence-caret{font-size:11px;opacity:.7}
.wmsp-presence-menu{
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  z-index:40;
  min-width:140px;
  background:#fff;
  border:1px solid var(--sp-bd);
  border-radius:12px;
  box-shadow:0 12px 32px rgba(16,24,40,.14);
  padding:6px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.wmsp-presence-menu[hidden]{display:none!important}
.wmsp-presence-menu .wmsp-pbtn{
  width:100%;
  min-height:34px;
  justify-content:flex-start;
  text-align:left;
  border-radius:8px;
}

/* Hide bulky presence entirely in fullscreen (extra safety) */
.wmsp-admin-fullscreen .wmsp-presence,
.wmsp-admin-fullscreen .wmsp-atop,
.wmsp-admin-fullscreen .wmsp-stats-wrap,
.wmsp-admin-fullscreen .wmsp-team{display:none !important;}

/* Smaller status chip in chat header */
.wmsp-chat-head .wmsp-chip{
  font-size:10px !important;
  font-weight:700;
  padding:2px 7px !important;
  line-height:1.3;
  max-width:min(38vw,160px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Compact claim button */
.wmsp-claim.wmsp-claim-compact{
  width:auto;
  min-height:36px;
  padding:0 14px;
  font-size:13px;
  border-radius:10px;
  align-self:flex-start;
}

/* Agent Options / Actions menus */
.wmsp-agentbar-compact{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.wmsp-menu-wrap{position:relative;display:inline-flex}
.wmsp-menu-btn{
  min-height:34px !important;
  padding:0 12px !important;
  font-size:13px !important;
  border-radius:10px !important;
  flex:0 0 auto !important;
}
.wmsp-actions-btn{
  background:#101828 !important;
  color:#fff !important;
  border-color:#101828 !important;
}
.wmsp-popmenu{
  position:absolute;
  bottom:calc(100% + 6px);
  right:0;
  z-index:50;
  min-width:200px;
  max-width:min(92vw,280px);
  background:#fff;
  border:1px solid var(--sp-bd);
  border-radius:12px;
  box-shadow:0 14px 36px rgba(16,24,40,.16);
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.wmsp-popmenu[hidden]{display:none!important}
.wmsp-popmenu-section{display:flex;flex-direction:column;gap:6px}
.wmsp-popmenu-label{font-size:11px;font-weight:800;color:#667085;text-transform:uppercase;letter-spacing:.04em}
.wmsp-popmenu .wmsp-canned{width:100%;min-height:36px;font-size:13px}
.wmsp-popmenu .wmsp-int{font-size:12px}
.wmsp-popmenu-item{
  width:100%;
  min-height:38px;
  border:0;
  background:#f8fafc;
  border-radius:8px;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  text-align:left;
  padding:0 12px;
  color:#101828;
}
.wmsp-popmenu-item:hover{background:#eef2f6}
.wmsp-popmenu-item.danger{color:#b42318;background:#fef3f2}
.wmsp-popmenu-item.danger:hover{background:#fee4e2}

/* Circular primary action (voice ↔ pause ↔ send) */
.wmsp-composer .wmsp-send.wmsp-action-circle,
.wmsp-composer .wmsp-send{
  width:44px !important;
  min-width:44px !important;
  max-width:44px !important;
  height:44px !important;
  min-height:44px !important;
  padding:0 !important;
  border-radius:50% !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#101828 !important;
  color:#fff !important;
  border:0 !important;
  position:relative;
  flex:0 0 44px !important;
  box-shadow:0 4px 12px rgba(16,24,40,.18);
}
.wmsp-composer .wmsp-send .wmsp-icon{
  display:inline-flex;
  width:22px;
  height:22px;
  color:#fff !important;
}
.wmsp-composer .wmsp-send .wmsp-icon svg{
  width:22px;
  height:22px;
  stroke:#fff !important;
  fill:none;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.wmsp-composer .wmsp-send .wmsp-icon svg rect,
.wmsp-composer .wmsp-send .wmsp-icon svg circle{
  fill:#fff !important;
  stroke:none;
}
.wmsp-composer .wmsp-send.is-listening{
  background:#175cd3 !important;
}
.wmsp-composer .wmsp-send.is-ready{
  background:#101828 !important;
}
.wmsp-composer .wmsp-send span{display:none !important} /* never show text label */

/* Wave animation while dictating */
.wmsp-wave{
  position:absolute;
  left:50%;
  top:-14px;
  transform:translateX(-50%);
  display:flex;
  align-items:flex-end;
  gap:2px;
  height:12px;
  pointer-events:none;
}
.wmsp-wave i{
  display:block;
  width:3px;
  height:6px;
  border-radius:2px;
  background:#fff;
  animation:wmsp-wave 0.9s ease-in-out infinite;
}
.wmsp-wave i:nth-child(2){animation-delay:.12s;height:10px}
.wmsp-wave i:nth-child(3){animation-delay:.24s;height:14px}
.wmsp-wave i:nth-child(4){animation-delay:.36s;height:10px}
.wmsp-wave i:nth-child(5){animation-delay:.48s;height:6px}
@keyframes wmsp-wave{
  0%,100%{transform:scaleY(.45);opacity:.55}
  50%{transform:scaleY(1);opacity:1}
}

/* Composer layout: attach + input + circular action */
.wmsp-composer{
  display:flex !important;
  align-items:flex-end !important;
  gap:8px !important;
  /* neutralized grid-template-columns */
}
.wmsp-composer .wmsp-input{
  flex:1 1 auto !important;
  min-width:0 !important;
}
.wmsp-composer .wmsp-attach{
  flex:0 0 40px;
  width:40px;
  height:40px;
  border-radius:50% !important;
}

/* Customer: remove excess top whitespace in chat + home */
.wmsp-overlay.wmsp-chat-view,
.wmsp-chat-view.wmsp-overlay{
  padding-top:0 !important;
  padding-bottom:0 !important;
}
.wmsp-overlay:not(.wmsp-chat-view){
  padding-top:env(safe-area-inset-top,0px);
}
.wmsp-chat-view > .wmsp-top,
.wmsp-chat-view > .wmsp-top-chat{display:none !important;}
.wmsp-chat-view .wmsp-chat-head{
  padding-top:8px !important;
  margin-top:0 !important;
}
.wmsp-overlay .wmsp-top{
  padding:10px 12px !important;
  min-height:0;
}
/* Fill bottom: let foot/composer sit flush — no extra safe-area gap under the input */
.wmsp-chat-view .wmsp-foot{
  padding:4px 8px 0 !important;
  gap:4px !important;
  max-height:none !important;
  overflow:visible !important;
  margin-top:auto !important;
  background:var(--sp-bg);
  border-top:1px solid var(--sp-bd);
}
.wmsp-chat-view .wmsp-composer{
  min-height:52px;
  padding:6px 8px !important;
  border-radius:18px !important;
  align-items:center !important;
}
.wmsp-chat-view .wmsp-composer .wmsp-input{
  min-height:40px !important;
  padding:10px 8px !important;
  font-size:16px !important;
}
.wmsp-chat-view .wmsp-composer .wmsp-send.wmsp-action-circle{
  width:46px !important;
  height:46px !important;
  min-width:46px !important;
  min-height:46px !important;
  flex-basis:46px !important;
}

/* Agent foot tighter */
.wmsp-agent .wmsp-foot{
  padding:4px 8px 0 !important;
  gap:4px !important;
  margin-top:auto !important;
}
.wmsp-agent .wmsp-agentbar-compact{margin:0;}
.wmsp-agent .wmsp-composer .wmsp-send.wmsp-action-circle{
  width:44px !important;
  height:44px !important;
}

/* Mobile refinements */
@media(max-width:899px){
  .wmsp-chat-head .wmsp-chip{
    font-size:9px !important;
    padding:2px 6px !important;
    max-width:min(46vw,140px);
  }
  .wmsp-agentbar-compact{width:100%;justify-content:stretch}
  .wmsp-agentbar-compact .wmsp-menu-wrap{flex:1 1 auto}
  .wmsp-agentbar-compact .wmsp-menu-btn{width:100%}
  .wmsp-claim.wmsp-claim-compact{width:100%;text-align:center}
  .wmsp-overlay.wmsp-chat-view{
    padding:0 !important;
  }
  .wmsp-chat-view .wmsp-msgs{min-height:120px !important}
}

/* Ensure black-on-black is never an issue for send icon */
.wmsp-composer .wmsp-send.is-ready .wmsp-icon svg,
.wmsp-composer .wmsp-send .wmsp-icon svg{
  stroke:#ffffff !important;
}
.wmsp-composer .wmsp-send.is-ready .wmsp-icon svg path{
  stroke:#ffffff !important;
  fill:none !important;
}

/* v3.11.20b — further tighten customer home/header gap */
.wmsp-overlay > .wmsp-top{
  padding:8px 12px !important;
  min-height:44px;
  flex:0 0 auto;
}
.wmsp-overlay > .wmsp-body{
  padding-top:4px !important;
}
.wmsp-hero-modern{margin-top:0 !important;padding-top:16px !important;}
.wmsp-chat-view .wmsp-chatwrap{
  flex:1 1 0% !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
}
.wmsp-chat-view .wmsp-chat{
  flex:1 1 0% !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  height:100% !important;
}
/* Keep circular action visible and never black-on-black */
.wmsp-composer .wmsp-send.wmsp-action-circle:disabled{
  opacity:.55;
  cursor:not-allowed;
}


/* ========== v3.11.21 — true admin fullscreen + Hostinger-style composer ========== */

/* Kill any leftover chrome in fullscreen — ONLY the chat fills the viewport */
html.wmsp-support-fullscreen,
html.wmsp-support-fullscreen body,
body.wmsp-support-fullscreen{
  overflow:hidden !important;
  margin:0 !important;
  height:100% !important;
  max-height:100dvh !important;
}
.wmsp-agent.wmsp-admin-fullscreen,
.wmsp-admin-fullscreen{
  position:fixed !important;
  inset:0 !important;
  top:0 !important; right:0 !important; bottom:0 !important; left:0 !important;
  z-index:2147483000 !important;
  width:100vw !important;
  width:100dvw !important;
  height:100vh !important;
  height:100dvh !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:#fff !important;
  box-shadow:none !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}
.wmsp-admin-fullscreen .wmsp-atop,
.wmsp-admin-fullscreen .wmsp-agent-topbar,
.wmsp-admin-fullscreen .wmsp-stats-wrap,
.wmsp-admin-fullscreen .wmsp-stats,
.wmsp-admin-fullscreen .wmsp-team,
.wmsp-admin-fullscreen .wmsp-presence,
.wmsp-admin-fullscreen .wmsp-acol,
.wmsp-admin-fullscreen .wmsp-ccol{
  display:none !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}
.wmsp-admin-fullscreen .wmsp-alayout,
.wmsp-admin-fullscreen .wmsp-alayout.show-chat{
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  gap:0 !important;
  border:0 !important;
  border-radius:0 !important;
  /* neutralized grid-template-columns */
}
.wmsp-admin-fullscreen .wmsp-bcol,
.wmsp-admin-fullscreen .wmsp-apane,
.wmsp-admin-fullscreen .wmsp-chatcol,
.wmsp-admin-fullscreen .wmsp-chatcol .wmsp-chat,
.wmsp-admin-fullscreen .wmsp-splitpane{
  display:flex !important;
  flex-direction:column !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:#fff !important;
  overflow:hidden !important;
}
.wmsp-admin-fullscreen .wmsp-chat-head{
  flex:0 0 auto !important;
  border-radius:0 !important;
  padding:10px 12px !important;
  border-bottom:1px solid #eaecf0 !important;
}
.wmsp-admin-fullscreen .wmsp-msgs{
  flex:1 1 0% !important;
  min-height:0 !important;
  overflow-y:auto !important;
  padding:12px !important;
}
.wmsp-admin-fullscreen .wmsp-foot{
  flex:0 0 auto !important;
  border-radius:0 !important;
  padding:4px 10px 0 !important;
  border-top:1px solid #eaecf0 !important;
  background:#fff !important;
  margin-top:auto !important;
}
.wmsp-admin-fullscreen .wmsp-fullscreen-toggle{
  background:#f2f4f7 !important;
}

/* Hostinger-style unified composer */
.wmsp-composer.wmsp-composer-host,
.wmsp-composer{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:6px !important;
  padding:6px 8px !important;
  border:1px solid #d0d5dd !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:0 4px 16px rgba(16,24,40,.06) !important;
  position:relative;
}
.wmsp-composer .wmsp-input{
  flex:1 1 100% !important;
  width:100% !important;
  min-height:40px !important;
  max-height:120px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:8px 6px !important;
  font-size:15px !important;
  resize:none !important;
  order:1;
}
.wmsp-composer .wmsp-attach{
  order:2;
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  border-radius:50% !important;
  border:0 !important;
  background:transparent !important;
  color:#344054 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.wmsp-composer .wmsp-attach:hover{background:#f2f4f7 !important;color:#101828 !important;}
.wmsp-composer .wmsp-send.wmsp-action-circle,
.wmsp-composer .wmsp-send{
  order:4;
  margin-left:auto;
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  min-height:44px !important;
  max-width:44px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:#101828 !important;
  color:#ffffff !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 0 44px !important;
  box-shadow:0 4px 12px rgba(16,24,40,.2);
  position:relative;
}
.wmsp-composer .wmsp-send .wmsp-icon,
.wmsp-composer .wmsp-send .wmsp-icon svg{
  width:22px !important;
  height:22px !important;
  display:block !important;
  color:#ffffff !important;
  stroke:#ffffff !important;
  fill:none !important;
}
.wmsp-composer .wmsp-send .wmsp-icon svg path,
.wmsp-composer .wmsp-send .wmsp-icon svg rect,
.wmsp-composer .wmsp-send .wmsp-icon svg circle{
  stroke:#ffffff !important;
  color:#ffffff !important;
}
.wmsp-composer .wmsp-send .wmsp-icon svg rect[fill],
.wmsp-composer .wmsp-send .wmsp-icon svg circle[fill]{
  fill:#ffffff !important;
  stroke:none !important;
}
.wmsp-composer .wmsp-send span:not(.wmsp-icon){display:none !important;}
.wmsp-composer .wmsp-send.is-listening{
  background:#175cd3 !important;
}
.wmsp-composer .wmsp-send.is-ready{
  background:#101828 !important;
}

/* Recording toolbar: waveform + cancel */
.wmsp-rec-toolbar{
  order:3;
  display:flex;
  align-items:center;
  gap:8px;
  flex:1 1 auto;
  min-width:0;
  padding:0 4px;
}
.wmsp-rec-toolbar[hidden]{display:none !important;}
.wmsp-composer.is-recording .wmsp-attach{order:2;}
.wmsp-wave-live{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1.5px;
  height:32px;
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
}
.wmsp-wave-live i{
  display:block;
  width:2px;
  height:14px;
  border-radius:1px;
  background:#101828;
  animation:wmsp-wave-live 0.9s ease-in-out infinite;
  transform-origin:center center;
  flex:0 0 2px;
}
.wmsp-wave-live i:nth-child(3n+1){animation-delay:0s}
.wmsp-wave-live i:nth-child(3n+2){animation-delay:.15s}
.wmsp-wave-live i:nth-child(3n+3){animation-delay:.3s}
.wmsp-wave-live i:nth-child(4n){animation-delay:.08s}
.wmsp-wave-live i:nth-child(5n){animation-delay:.22s}
@keyframes wmsp-wave-live{
  0%,100%{transform:scaleY(0.25);opacity:.4}
  20%{transform:scaleY(0.9);opacity:.95}
  40%{transform:scaleY(0.4);opacity:.55}
  60%{transform:scaleY(1.15);opacity:1}
  80%{transform:scaleY(0.55);opacity:.7}
}
.wmsp-rec-cancel{
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  border-radius:50% !important;
  border:1px solid #d0d5dd !important;
  background:#fff !important;
  color:#b42318 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
.wmsp-rec-cancel:hover{background:#fef3f2 !important;}
.wmsp-rec-cancel .wmsp-icon svg{stroke:#b42318 !important;color:#b42318 !important;}

.wmsp-composer.is-recording .wmsp-input{
  color:#344054;
}

/* Keep Options/Actions compact in fullscreen too */
.wmsp-admin-fullscreen .wmsp-agentbar-compact{
  padding:0 2px 4px;
}


/* ============================================================
   v3.11.31 — Support Desk: NATURAL PAGE SCROLL (no fixed height trap)
   List view grows with content. Window scrolls. No max-height lock.
   Chat open still uses full-screen panel.
   ============================================================ */

.wm-support-server-debug,
#wm-support-boot-diagnostic,


/* WordPress admin wrap — no extra bottom padding creating white band */
html body.wp-admin .wrap.wm-support-admin,
html body.wp-admin .wrap.wm-admin.wm-support-admin{
  margin:0 auto !important;
  padding:8px 12px 24px !important;
  max-width:100% !important;
  overflow:visible !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
}
html body.wp-admin .wrap.wm-support-admin > h1{display:none!important;}

html body .wmsp-agent,
html body .wmsp-agent.wmsp-desk-min{
  margin:0 !important;
  padding:0 !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  background:transparent !important;
}

html body .wmsp-agent .wmsp-atop,
html body .wmsp-agent .wmsp-agent-topbar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:4px 0 8px !important;
  margin:0 !important;
  border:0 !important;
  background:transparent !important;
  height:auto !important;
}
html body .wmsp-agent .wmsp-agent-title h2{margin:0!important;font-size:18px!important;font-weight:700!important;}
html body .wmsp-agent .wmsp-kicker,
html body .wmsp-agent .wmsp-agent-title p{display:none!important;}

html body .wmsp-agent .wmsp-stats-wrap{margin:0 0 10px!important;padding:0!important;height:auto!important;overflow:visible!important;}
html body .wmsp-agent .wmsp-stats{
  display:grid !important;
  /* neutralized grid-template-columns */
  gap:6px !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
}
html body .wmsp-agent .wmsp-stat{
  background:#fff !important;
  border:1px solid #eaecf0 !important;
  border-radius:10px !important;
  padding:8px 6px !important;
  text-align:center !important;
  box-shadow:none !important;
}

/* LIST VIEW: no fixed height — page grows, window scrolls */
html body .wmsp-agent .wmsp-alayout:not(.show-chat){
  display:block !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  /* neutralized grid-template-columns */
}
html body .wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-acol{
  display:block !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  background:#fff !important;
  border:1px solid #eaecf0 !important;
  border-radius:12px !important;
  padding:10px !important;
  margin:0 0 16px !important;
}
html body .wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-bcol,
html body .wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-ccol{
  display:none !important;
}

/* THE KEY FIX: ticket list is NOT a fixed-height box */
html body .wmsp-agent .wmsp-alist,
html body .wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-alist{
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  overflow:visible !important;
  overflow-y:visible !important;
  -webkit-overflow-scrolling:auto !important;
  touch-action:auto !important;
  padding:0 !important;
  margin:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:6px !important;
}

html body .wmsp-agent .wmsp-arow{
  border-radius:10px !important;
  padding:10px 12px !important;
  border:1px solid #eaecf0 !important;
  background:#fff !important;
  height:auto !important;
  flex:none !important;
}

/* Also unlock any leftover older rules that capped list height */
html body .wmsp-agent .wmsp-alist,
html body.wp-admin .wmsp-agent .wmsp-alist{
  max-height:none !important;
  height:auto !important;
}

/* OPEN CHAT only: full-screen fixed panel (does not affect list page) */
@media (max-width:899px){
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-atop,
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-stats-wrap,
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-acol,
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-team{
    display:none !important;
  }
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-alayout.show-chat{
    display:block !important;
    position:fixed !important;
    inset:0 !important;
    z-index:100000 !important;
    width:100% !important;
    height:100% !important;
    height:100dvh !important;
    max-height:100dvh !important;
    margin:0 !important;
    padding:0 !important;
    background:#fff !important;
    border:0 !important;
    border-radius:0 !important;
    overflow:hidden !important;
  }
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-alayout.show-chat .wmsp-bcol{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
    max-height:100% !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:#fff !important;
    overflow:hidden !important;
  }
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-chatcol,
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-apane,
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-chat,
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-chatwrap{
    display:flex !important;
    flex-direction:column !important;
    flex:1 1 auto !important;
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    overflow:hidden !important;
    margin:0 !important;
    padding:0 !important;
  }
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-chat-head{
    flex:0 0 auto !important;
    background:#fff !important;
    border-bottom:1px solid #eaecf0 !important;
    padding:8px 10px !important;
  }
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-msgs{
    flex:1 1 0% !important;
    min-height:0 !important;
    max-height:none !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
    touch-action:pan-y !important;
    padding:12px !important;
    background:#f8fafc !important;
  }
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-foot{
    flex:0 0 auto !important;
    margin:0 !important;
    margin-top:auto !important;
    padding:4px 10px 0 !important;
    border-top:1px solid #eaecf0 !important;
    background:#fff !important;
  }
}

@media (min-width:900px){
  html body .wmsp-agent .wmsp-alayout:not(.show-chat){
    display:block !important;
    height:auto !important;
    max-height:none !important;
  }
  html body .wmsp-agent .wmsp-alayout.show-chat{
    display:grid !important;
    /* neutralized grid-template-columns */
    gap:12px !important;
    height:calc(100dvh - 140px) !important;
    min-height:420px !important;
  }
  html body .wmsp-agent .wmsp-alayout.show-chat .wmsp-acol{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
    overflow:hidden !important;
  }
  html body .wmsp-agent .wmsp-alayout.show-chat .wmsp-alist{
    flex:1 1 auto !important;
    max-height:none !important;
    height:auto !important;
    overflow-y:auto !important;
  }
  html body .wmsp-agent .wmsp-alayout.show-chat .wmsp-bcol{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
  }
  html body .wmsp-agent .wmsp-alayout.show-chat .wmsp-chatcol,
  html body .wmsp-agent .wmsp-alayout.show-chat .wmsp-chat{
    display:flex !important;
    flex-direction:column !important;
    height:100% !important;
    min-height:0 !important;
    overflow:hidden !important;
  }
  html body .wmsp-agent .wmsp-alayout.show-chat .wmsp-msgs{
    flex:1 1 0% !important;
    min-height:0 !important;
    overflow-y:auto !important;
  }
}

/* Circle mic */
html body .wmsp-agent .wmsp-composer{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  align-items:flex-end !important;
  gap:8px !important;
  width:100% !important;
  border:1px solid #d0d5dd !important;
  border-radius:16px !important;
  padding:10px 12px !important;
  background:#fff !important;
}
html body .wmsp-agent .wmsp-composer .wmsp-attach{order:1!important;flex:0 0 36px!important;border:0!important;background:transparent!important;}
html body .wmsp-agent .wmsp-composer .wmsp-input{order:2!important;flex:1 1 auto!important;min-width:0!important;border:0!important;background:transparent!important;box-shadow:none!important;}
html body .wmsp-agent .wmsp-composer .wmsp-send,
html body .wmsp-agent .wmsp-composer .wmsp-send.wmsp-action-circle{
  order:3 !important;
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  min-height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  padding:0 !important;
  margin:0 0 0 auto !important;
  border:0 !important;
  border-radius:50% !important;
  aspect-ratio:1/1 !important;
  flex:0 0 42px !important;
  background:#101828 !important;
  color:#fff !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  font-size:0 !important;
}
html body .wmsp-agent .wmsp-composer .wmsp-send .wmsp-icon svg{width:18px!important;height:18px!important;stroke:#fff!important;}

html body .wmsp-admin-fullscreen{
  position:fixed !important;
  inset:0 !important;
  z-index:100001 !important;
  width:100% !important;
  height:100dvh !important;
  margin:0 !important;
  padding:0 !important;
  background:#fff !important;
  overflow:hidden !important;
}

/* Neutralize ANY older max-height on alist from earlier in the file */

/* v3.11.31 final: force list page to natural document height */
html body.wp-admin .wmsp-agent .wmsp-alayout:not(.show-chat),
html body .wmsp-agent .wmsp-alayout:not(.show-chat),
html body.wp-admin .wmsp-agent.wmsp-desk-min .wmsp-alayout:not(.show-chat){
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
}
html body.wp-admin .wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-acol,
html body .wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-acol{
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
}
html body.wp-admin .wmsp-agent .wmsp-alist,
html body .wmsp-agent .wmsp-alist,
html body.wp-admin .wmsp-agent .wmsp-alayout:not(.show-chat) .wmsp-alist{
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  overflow-y:visible !important;
}


/* ============================================================
   v3.11.32 — Mobile chat: input ANCHORED to bottom (WhatsApp-style)
   Messages scroll freely above. No grey/black band under the composer.
   ============================================================ */

@media (max-width:899px){

  /* When a ticket is open on mobile, lock the desk into a true full-viewport chat */
  html body .wmsp-agent.wmsp-mobile-chat,
  html body.wp-admin .wmsp-agent.wmsp-mobile-chat{
    /* prevent page scroll behind the chat */
  }
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-alayout.show-chat,
  html body.wp-admin .wmsp-agent.wmsp-mobile-chat .wmsp-alayout.show-chat,
  html body .wmsp-agent.wmsp-mobile-chat.wmsp-admin-fullscreen .wmsp-alayout,
  html body .wmsp-admin-fullscreen.wmsp-mobile-chat .wmsp-alayout,
  html body .wmsp-agent.wmsp-admin-fullscreen .wmsp-alayout.show-chat{
    position:fixed !important;
    top:0 !important;
    right:0 !important;
    bottom:0 !important;
    left:0 !important;
    inset:0 !important;
    width:100% !important;
    width:100vw !important;
    height:100% !important;
    height:100dvh !important;
    height:100svh !important;
    max-height:100dvh !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:#ffffff !important;
    z-index:100000 !important;
    overflow:hidden !important;
    display:flex !important;
    flex-direction:column !important;
    box-sizing:border-box !important;
  }

  /* Single column fill */
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-alayout.show-chat .wmsp-bcol,
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-alayout.show-chat .wmsp-acol,
  html body .wmsp-agent.wmsp-admin-fullscreen .wmsp-bcol{
    display:flex !important;
    flex-direction:column !important;
    flex:1 1 auto !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    max-height:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:#fff !important;
    overflow:hidden !important;
  }
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-alayout.show-chat .wmsp-acol{display:none!important;}

  /* Chat column + chat root: full height flex column */
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-chatcol,
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-apane,
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-chat,
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-chatwrap,
  html body .wmsp-agent.wmsp-admin-fullscreen .wmsp-chatcol,
  html body .wmsp-agent.wmsp-admin-fullscreen .wmsp-chat{
    display:flex !important;
    flex-direction:column !important;
    flex:1 1 0% !important;
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }

  /* Header fixed at top */
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-chat-head,
  html body .wmsp-agent.wmsp-admin-fullscreen .wmsp-chat-head{
    flex:0 0 auto !important;
    position:relative !important;
    z-index:2 !important;
    background:#fff !important;
    border-bottom:1px solid #eaecf0 !important;
    padding:8px 10px !important;
    padding-top:max(8px, env(safe-area-inset-top, 0px)) !important;
  }

  /* Messages: FREE scroll area between header and foot */
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-msgs,
  html body .wmsp-agent.wmsp-admin-fullscreen .wmsp-msgs{
    flex:1 1 0% !important;
    min-height:0 !important;
    max-height:none !important;
    height:auto !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    touch-action:pan-y !important;
    overscroll-behavior:contain !important;
    padding:12px !important;
    background:#f8fafc !important;
  }

  /* FOOT / COMPOSER: ANCHORED to bottom — never floats mid-screen */
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-foot,
  html body .wmsp-agent.wmsp-admin-fullscreen .wmsp-foot{
    flex:0 0 auto !important;
    position:relative !important;
    z-index:3 !important;
    margin:0 !important;
    margin-top:auto !important;
    padding:4px 10px 0 !important;
    border-top:1px solid #eaecf0 !important;
    background:#ffffff !important;
    max-height:none !important;
    overflow:visible !important;
    width:100% !important;
    box-sizing:border-box !important;
  }

  /* Typing indicator sits above foot inside msgs flow */
  html body .wmsp-agent.wmsp-mobile-chat .wmsp-typing{
    flex:0 0 auto !important;
  }
}

/* Fullscreen class on agent root — same treatment */
html body .wmsp-agent.wmsp-admin-fullscreen{
  position:fixed !important;
  inset:0 !important;
  width:100% !important;
  height:100dvh !important;
  max-height:100dvh !important;
  margin:0 !important;
  padding:0 !important;
  background:#fff !important;
  z-index:100001 !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
  border-radius:0 !important;
}
html body .wmsp-agent.wmsp-admin-fullscreen .wmsp-atop,
html body .wmsp-agent.wmsp-admin-fullscreen .wmsp-stats-wrap,
html body .wmsp-agent.wmsp-admin-fullscreen .wmsp-team,
html body .wmsp-agent.wmsp-admin-fullscreen .wmsp-ccol{
  display:none !important;
}
html body .wmsp-agent.wmsp-admin-fullscreen .wmsp-alayout{
  flex:1 1 auto !important;
  height:100% !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  background:#fff !important;
}

/* Kill old fullscreen padding that caused letterboxing / black bands */
html body .wmsp-admin-fullscreen{
  padding:0 !important;
  background:#fff !important;
}


/* Mobile overlay host (ported to body) */
.wmsp-mobile-overlay{
  position:fixed !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  height:100dvh !important;
  background:#fff !important;
  z-index:2147483000 !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  margin:0 !important;
  padding:0 !important;
}
.wmsp-mobile-overlay .wmsp-chatcol,
.wmsp-mobile-overlay .wmsp-chat{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 0% !important;
  height:100% !important;
  min-height:0 !important;
  overflow:hidden !important;
}
.wmsp-mobile-overlay .wmsp-msgs{
  flex:1 1 0% !important;
  min-height:0 !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch !important;
}
.wmsp-mobile-overlay .wmsp-foot{
  flex:0 0 auto !important;
  margin:0 !important;
  margin-top:auto !important;
  background:#fff !important;
  padding:4px 10px 0 !important;
}
.wmsp-mobile-overlay .wmsp-chat-head{
  flex:0 0 auto !important;
  background:#fff !important;
}


/* v3.11.34 — small back = fullscreen toggle size; menus stay in viewport */
html body .wmsp-chat-head .wmsp-back.wmsp-icon-btn,
html body .wmsp-mobile-overlay .wmsp-back.wmsp-icon-btn,
html body .wmsp-agent .wmsp-chat-head .wmsp-back{
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  min-height:36px !important;
  max-width:36px !important;
  padding:0 !important;
  margin:0 !important;
  border:1px solid #eaecf0 !important;
  border-radius:10px !important;
  background:#fff !important;
  color:#101828 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:0 !important;
  line-height:0 !important;
  flex:0 0 36px !important;
  box-shadow:none !important;
}
html body .wmsp-chat-head .wmsp-back.wmsp-icon-btn svg{
  width:18px !important;
  height:18px !important;
  display:block !important;
}
html body .wmsp-chat-head .wmsp-fullscreen-toggle{
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  border:1px solid #eaecf0 !important;
  border-radius:10px !important;
  background:#fff !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-size:16px !important;
  padding:0 !important;
}

/* Pop menus: never stretch the foot / overlay */
html body .wmsp-popmenu,
html body .wmsp-mobile-overlay .wmsp-popmenu{
  position:fixed !important;
  z-index:2147483646 !important;
  max-height:min(50vh, 360px) !important;
  overflow:auto !important;
  box-shadow:0 12px 40px rgba(16,24,40,.18) !important;
  border-radius:14px !important;
  background:#fff !important;
  border:1px solid #eaecf0 !important;
}
/* Keep overlay layout stable when menus open */
html body .wmsp-mobile-overlay .wmsp-foot{
  overflow:visible !important;
  flex:0 0 auto !important;
}
html body .wmsp-mobile-overlay .wmsp-msgs{
  flex:1 1 0% !important;
  min-height:0 !important;
  overflow-y:auto !important;
}

.wmsp-wave-live i:nth-child(8){animation-delay:.12s}
.wmsp-wave-live i:nth-child(9){animation-delay:.2s}


/* v3.11.38 — Grok-style record bar: X | dense wave | ✓   then review: mic + send on right */
html body .wmsp-composer.is-recording{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:8px !important;
}
html body .wmsp-composer.is-recording .wmsp-attach{ display:none !important; }
html body .wmsp-composer.is-recording .wmsp-rec-toolbar{
  display:flex !important;
  flex:1 1 auto !important;
  align-items:center !important;
  gap:8px !important;
  order:1 !important;
  width:auto !important;
  min-width:0 !important;
  padding:0 !important;
}
html body .wmsp-composer.is-recording .wmsp-rec-cancel{
  flex:0 0 36px !important;
  width:36px !important;
  height:36px !important;
  border-radius:50% !important;
  border:1px solid #d0d5dd !important;
  background:#f2f4f7 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  order:1 !important;
}
html body .wmsp-composer.is-recording .wmsp-wave-live{
  order:2 !important;
  flex:1 1 auto !important;
}
html body .wmsp-composer.is-recording .wmsp-send{
  order:3 !important;
  margin-left:0 !important;
  background:#101828 !important;
}
/* Review: continue mic sits next to send on the right */
html body .wmsp-composer.is-review{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:flex-end !important;
}
html body .wmsp-composer.is-review .wmsp-rec-toolbar{
  display:flex !important;
  order:3 !important;
  flex:0 0 auto !important;
  width:auto !important;
  margin-left:auto !important;
}
html body .wmsp-composer.is-review .wmsp-rec-continue{
  width:40px !important;
  height:40px !important;
  border-radius:50% !important;
  border:1px solid #d0d5dd !important;
  background:#fff !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
html body .wmsp-composer.is-review .wmsp-send{
  order:4 !important;
  margin-left:6px !important;
}
html body .wmsp-composer.is-review .wmsp-attach{order:1!important;}
html body .wmsp-composer.is-review .wmsp-input{order:2!important;flex:1 1 auto!important;}


/* v3.11.39 — scrolling Grok-like wave + review mic|send on right */
html body .wmsp-wave-live.wmsp-wave-scroll{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:36px !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  overflow:hidden !important;
  gap:0 !important;
}
html body .wmsp-wave-canvas{
  display:block !important;
  width:100% !important;
  height:36px !important;
  max-width:100% !important;
}

/* Review layout: [paperclip] [textarea] .... [mic] [send] */
html body .wmsp-composer.is-review{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:flex-end !important;
  gap:8px !important;
}
html body .wmsp-composer.is-review .wmsp-attach{
  order:1 !important;
  flex:0 0 36px !important;
}
html body .wmsp-composer.is-review .wmsp-input{
  order:2 !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  display:block !important;
}
html body .wmsp-composer.is-review .wmsp-rec-toolbar{
  order:3 !important;
  display:flex !important;
  flex:0 0 auto !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
}
html body .wmsp-composer.is-review .wmsp-rec-continue{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  border-radius:50% !important;
  border:1px solid #d0d5dd !important;
  background:#fff !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
}
html body .wmsp-composer.is-review .wmsp-send{
  order:4 !important;
  margin-left:0 !important;
  flex:0 0 42px !important;
}


/* v3.11.40 — live transcript visible, no border, mic then send, thicker wave */
html body .wmsp-composer.is-recording{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:8px !important;
  border:0 !important;
  box-shadow:none !important;
  background:#f2f4f7 !important;
  border-radius:28px !important;
  padding:6px 8px !important;
}
/* Show live transcript ABOVE the wave row */
html body .wmsp-composer.is-recording .wmsp-input{
  display:block !important;
  order:1 !important;
  flex:1 0 100% !important;
  width:100% !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:4px 8px 2px !important;
  min-height:24px !important;
  font-size:15px !important;
  color:#101828 !important;
}
html body .wmsp-composer.is-recording .wmsp-attach{
  display:none !important;
}
html body .wmsp-composer.is-recording .wmsp-rec-toolbar{
  display:flex !important;
  order:2 !important;
  flex:1 1 auto !important;
  align-items:center !important;
  gap:8px !important;
  min-width:0 !important;
  border:0 !important;
}
html body .wmsp-composer.is-recording .wmsp-rec-cancel{
  flex:0 0 36px !important;
  width:36px !important;
  height:36px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
html body .wmsp-composer.is-recording .wmsp-wave-live{
  flex:1 1 auto !important;
  border:0 !important;
}
html body .wmsp-composer.is-recording .wmsp-send{
  order:3 !important;
  border:0 !important;
  margin:0 !important;
}

/* Review / idle with text: mic BEFORE send (send at extreme right) */
html body .wmsp-composer.is-review,
html body .wmsp-composer.is-ready-row{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:flex-end !important;
  gap:8px !important;
  border:1px solid #d0d5dd !important;
  border-radius:20px !important;
  background:#fff !important;
}
html body .wmsp-composer.is-review .wmsp-attach{order:1!important;}
html body .wmsp-composer.is-review .wmsp-input{order:2!important;flex:1 1 auto!important;display:block!important;}
html body .wmsp-composer.is-review .wmsp-rec-toolbar{
  order:3 !important;
  display:flex !important;
  flex:0 0 auto !important;
  margin:0 !important;
}
html body .wmsp-composer.is-review .wmsp-rec-continue{
  order:1 !important;
  width:42px !important;
  height:42px !important;
  border:1px solid #d0d5dd !important;
  border-radius:50% !important;
  background:#fff !important;
}
html body .wmsp-composer.is-review .wmsp-send{
  order:4 !important;
  margin-left:0 !important;
}

/* Default composer: when has text, ensure send is rightmost */
html body .wmsp-composer .wmsp-attach{order:1;}
html body .wmsp-composer .wmsp-input{order:2;}
html body .wmsp-composer .wmsp-rec-toolbar{order:3;}
html body .wmsp-composer .wmsp-send{order:4;margin-left:0!important;}


/* v3.11.41 — Grok closer: soft pill, thick slow wave, transcript on top, mic then send */
html body .wmsp-composer.is-recording{
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:#f2f4f7 !important;
  border-radius:24px !important;
  padding:10px 12px 8px !important;
}
html body .wmsp-composer.is-recording .wmsp-input{
  display:block !important;
  order:1 !important;
  width:100% !important;
  flex:0 0 auto !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:2px 4px 6px !important;
  min-height:22px !important;
  color:#101828 !important;
  font-size:15px !important;
}
html body .wmsp-composer.is-recording .wmsp-attach{display:none!important;}
html body .wmsp-composer.is-recording .wmsp-rec-toolbar{
  order:2 !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
  flex:0 0 auto !important;
  border:0 !important;
}
html body .wmsp-composer.is-recording .wmsp-rec-cancel{
  flex:0 0 36px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
html body .wmsp-composer.is-recording .wmsp-wave-live{
  flex:1 1 auto !important;
  height:40px !important;
  border:0 !important;
}
html body .wmsp-composer.is-recording .wmsp-send{
  position:absolute !important;
  right:10px !important;
  bottom:8px !important;
  order:3 !important;
  border:0 !important;
  margin:0 !important;
}
html body .wmsp-composer.is-recording{
  position:relative !important;
  padding-right:52px !important; /* room for check */
}
html body .wmsp-wave-canvas{
  width:100% !important;
  height:40px !important;
  display:block !important;
}

/* Review: [attach][text][mic][send] — send extreme right */
html body .wmsp-composer.is-review{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:flex-end !important;
  gap:8px !important;
  position:relative !important;
  padding:10px 12px !important;
}
html body .wmsp-composer.is-review .wmsp-attach{order:1!important;flex:0 0 36px!important;}
html body .wmsp-composer.is-review .wmsp-input{order:2!important;flex:1 1 auto!important;display:block!important;min-width:0!important;}
html body .wmsp-composer.is-review .wmsp-rec-toolbar{order:3!important;flex:0 0 auto!important;display:flex!important;margin:0!important;}
html body .wmsp-composer.is-review .wmsp-rec-continue{
  width:42px !important;
  height:42px !important;
  border-radius:50% !important;
  border:1px solid #d0d5dd !important;
  background:#fff !important;
}
html body .wmsp-composer.is-review .wmsp-send{order:4!important;margin-left:0!important;flex:0 0 42px!important;}


/* ============================================================
   v3.11.42 — STRICT composer layout (fix only what is broken)
   Row always: [attach] [textarea grows] [mic] [send extreme right]
   Recording: transcript full width on top, then [x][wave][check]
   ============================================================ */

/* Base composer: single horizontal row, never stack attach above text */
html body .wmsp-agent .wmsp-composer,
html body .wmsp-mobile-overlay .wmsp-composer,
html body .wmsp-composer.wmsp-composer-host{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:flex-end !important;
  gap:8px !important;
  width:100% !important;
  box-sizing:border-box !important;
  min-height:52px !important;
  height:auto !important;
  max-height:none !important;
  padding:10px 12px !important;
}
html body .wmsp-composer .wmsp-attach{
  order:1 !important;
  flex:0 0 36px !important;
  align-self:flex-end !important;
  display:inline-flex !important;
  margin:0 !important;
}
html body .wmsp-composer .wmsp-input{
  order:2 !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  width:auto !important;
  max-width:none !important;
  display:block !important;
  align-self:center !important;
  min-height:28px !important;
  max-height:140px !important;
  height:auto !important;
  resize:none !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:6px 4px !important;
}
html body .wmsp-composer .wmsp-rec-toolbar{
  order:3 !important;
  flex:0 0 auto !important;
  display:none !important; /* hidden unless review/recording */
  margin:0 !important;
  padding:0 !important;
  width:auto !important;
  align-self:flex-end !important;
}
html body .wmsp-composer .wmsp-send{
  order:4 !important;
  flex:0 0 42px !important;
  margin:0 !important;
  margin-left:0 !important;
  align-self:flex-end !important;
  position:static !important;
  right:auto !important;
  bottom:auto !important;
}

/* Review after ✓: show continue mic BEFORE send */
html body .wmsp-composer.is-review{
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:flex-end !important;
  min-height:52px !important;
  height:auto !important;
  padding:10px 12px !important;
}
html body .wmsp-composer.is-review .wmsp-attach{order:1!important;display:inline-flex!important;}
html body .wmsp-composer.is-review .wmsp-input{
  order:2 !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  width:auto !important;
  display:block !important;
  max-height:140px !important;
}
html body .wmsp-composer.is-review .wmsp-rec-toolbar{
  order:3 !important;
  display:flex !important;
  flex:0 0 auto !important;
  width:auto !important;
  margin:0 !important;
}
html body .wmsp-composer.is-review .wmsp-rec-continue{
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  border-radius:50% !important;
  border:1px solid #d0d5dd !important;
  background:#fff !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
html body .wmsp-composer.is-review .wmsp-send{
  order:4 !important;
  position:static !important;
  margin:0 !important;
}

/* Recording: column only for this state — transcript full width, controls row under */
html body .wmsp-composer.is-recording{
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  align-items:stretch !important;
  gap:6px !important;
  padding:10px 12px !important;
  padding-right:12px !important;
  min-height:0 !important;
  position:relative !important;
  background:#f2f4f7 !important;
  border:0 !important;
  border-radius:24px !important;
  box-shadow:none !important;
}
html body .wmsp-composer.is-recording .wmsp-attach{display:none!important;}
html body .wmsp-composer.is-recording .wmsp-input{
  order:1 !important;
  flex:0 0 auto !important;
  width:100% !important;
  max-width:100% !important;
  display:block !important;
  min-height:24px !important;
  max-height:100px !important;
  padding:2px 4px !important;
}
html body .wmsp-composer.is-recording .wmsp-rec-toolbar{
  order:2 !important;
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
  flex:0 0 auto !important;
  padding-right:48px !important; /* space for check button */
  box-sizing:border-box !important;
}
html body .wmsp-composer.is-recording .wmsp-send{
  order:3 !important;
  position:absolute !important;
  right:10px !important;
  bottom:10px !important;
  margin:0 !important;
}

/* After exit recording / clear text: force restore full row height */
html body .wmsp-composer:not(.is-recording):not(.is-review){
  flex-direction:row !important;
  min-height:52px !important;
  height:auto !important;
  padding:10px 12px !important;
  background:#fff !important;
}
html body .wmsp-composer:not(.is-recording):not(.is-review) .wmsp-input{
  flex:1 1 auto !important;
  width:auto !important;
  min-height:28px !important;
}
html body .wmsp-composer:not(.is-recording):not(.is-review) .wmsp-rec-toolbar{
  display:none !important;
}
html body .wmsp-composer:not(.is-recording):not(.is-review) .wmsp-send{
  position:static !important;
}


/* ============================================================
   v3.11.43 — Grok-style composer
   [ textarea full width, multi-line ]
   [ attach ........ mic  send ]
   ============================================================ */
html body .wmsp-composer,
html body .wmsp-composer.wmsp-composer-host{
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  align-items:stretch !important;
  gap:8px !important;
  width:100% !important;
  box-sizing:border-box !important;
  padding:12px 14px !important;
  min-height:0 !important;
  height:auto !important;
  background:#fff !important;
  border:1px solid #e4e7ec !important;
  border-radius:20px !important;
}
html body .wmsp-composer .wmsp-input{
  order:1 !important;
  display:block !important;
  width:100% !important;
  flex:0 0 auto !important;
  min-height:44px !important;
  max-height:160px !important;
  height:auto !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:4px 2px !important;
  margin:0 !important;
  font-size:16px !important;
  line-height:1.45 !important;
  resize:none !important;
  color:#101828 !important;
}
html body .wmsp-composer-tools{
  order:2 !important;
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:8px !important;
  width:100% !important;
  min-height:42px !important;
}
html body .wmsp-composer-tools .wmsp-attach{
  flex:0 0 36px !important;
  order:1 !important;
  margin:0 !important;
}
html body .wmsp-tools-spacer{
  flex:1 1 auto !important;
  min-width:8px !important;
  order:2 !important;
}
html body .wmsp-composer-tools .wmsp-rec-toolbar{
  display:flex !important;
  flex:0 0 auto !important;
  order:3 !important;
  gap:6px !important;
  margin:0 !important;
  padding:0 !important;
  width:auto !important;
}
html body .wmsp-composer-tools .wmsp-rec-continue,
html body .wmsp-composer-tools .wmsp-ico.wmsp-rec-continue{
  width:42px !important;
  height:42px !important;
  border-radius:50% !important;
  border:1px solid #d0d5dd !important;
  background:#fff !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}
html body .wmsp-composer-tools .wmsp-send{
  order:4 !important;
  flex:0 0 42px !important;
  margin:0 !important;
  position:static !important;
  right:auto !important;
  bottom:auto !important;
}

/* Recording */
html body .wmsp-composer.is-recording{
  background:#f2f4f7 !important;
  border:0 !important;
  box-shadow:none !important;
}
html body .wmsp-composer.is-recording .wmsp-input{
  min-height:28px !important;
  max-height:120px !important;
}
html body .wmsp-composer.is-recording .wmsp-composer-tools{
  gap:8px !important;
}
html body .wmsp-composer.is-recording .wmsp-rec-toolbar{
  flex:1 1 auto !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  min-width:0 !important;
  order:1 !important;
}
html body .wmsp-composer.is-recording .wmsp-attach,
html body .wmsp-composer.is-recording .wmsp-tools-spacer{display:none!important;}
html body .wmsp-composer.is-recording .wmsp-send{
  order:2 !important;
  position:static !important;
}
html body .wmsp-composer.is-recording .wmsp-rec-cancel{
  border:0 !important;
  background:transparent !important;
  width:36px !important;
  height:36px !important;
}
html body .wmsp-composer.is-recording .wmsp-wave-live{
  flex:1 1 auto !important;
  min-width:0 !important;
  height:40px !important;
}

/* Review after ✓ — same tools row */
html body .wmsp-composer.is-review .wmsp-input{
  min-height:44px !important;
  max-height:160px !important;
}


/* ========== v3.11.44 FINAL GROK COMPOSER (overrides all prior) ========== */
html body .wmsp-foot .wmsp-composer,
html body .wmsp-composer.wmsp-composer-host,
html body .wmsp-agent .wmsp-composer,
html body .wmsp-mobile-chat .wmsp-composer,
html body .wmsp-mobile-overlay .wmsp-composer{
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  padding:12px 14px !important;
  margin:0 !important;
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  background:#fff !important;
  border:1px solid #e4e7ec !important;
  border-radius:20px !important;
  position:relative !important;
}

html body .wmsp-composer > .wmsp-input,
html body .wmsp-composer .wmsp-input{
  display:block !important;
  order:1 !important;
  width:100% !important;
  max-width:100% !important;
  flex:0 0 auto !important;
  min-width:0 !important;
  min-height:48px !important;
  max-height:160px !important;
  height:auto !important;
  margin:0 !important;
  padding:4px 2px !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  font-size:16px !important;
  line-height:1.45 !important;
  resize:none !important;
  color:#101828 !important;
}

html body .wmsp-composer > .wmsp-composer-tools,
html body .wmsp-composer-tools{
  display:flex !important;
  order:2 !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  width:100% !important;
  min-height:44px !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}

html body .wmsp-composer-tools > .wmsp-attach{
  flex:0 0 40px !important;
  width:40px !important;
  height:40px !important;
  margin:0 !important;
  order:1 !important;
  display:inline-flex !important;
}
html body .wmsp-composer-tools > .wmsp-tools-spacer{
  flex:1 1 auto !important;
  min-width:4px !important;
  order:2 !important;
  height:1px !important;
}
html body .wmsp-composer-tools > .wmsp-rec-toolbar{
  display:flex !important;
  flex:0 0 auto !important;
  order:3 !important;
  gap:6px !important;
  margin:0 !important;
  padding:0 !important;
  width:auto !important;
  align-items:center !important;
}
html body .wmsp-composer-tools > .wmsp-rec-continue,
html body .wmsp-composer-tools .wmsp-rec-continue{
  flex:0 0 42px !important;
  width:42px !important;
  height:42px !important;
  border-radius:50% !important;
  border:1px solid #d0d5dd !important;
  background:#fff !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  order:3 !important;
}
html body .wmsp-composer-tools > .wmsp-send{
  flex:0 0 42px !important;
  width:42px !important;
  height:42px !important;
  margin:0 !important;
  order:4 !important;
  position:static !important;
  right:auto !important;
  bottom:auto !important;
  display:inline-flex !important;
}

/* Recording state */
html body .wmsp-composer.is-recording{
  background:#f2f4f7 !important;
  border-color:transparent !important;
  box-shadow:none !important;
}
html body .wmsp-composer.is-recording > .wmsp-input{
  min-height:32px !important;
}
html body .wmsp-composer.is-recording .wmsp-composer-tools{
  gap:8px !important;
}
html body .wmsp-composer.is-recording .wmsp-attach,
html body .wmsp-composer.is-recording .wmsp-tools-spacer{
  display:none !important;
}
html body .wmsp-composer.is-recording .wmsp-rec-toolbar{
  flex:1 1 auto !important;
  order:1 !important;
  min-width:0 !important;
  display:flex !important;
}
html body .wmsp-composer.is-recording .wmsp-rec-cancel{
  flex:0 0 36px !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
html body .wmsp-composer.is-recording .wmsp-wave-live{
  flex:1 1 auto !important;
  min-width:0 !important;
  height:40px !important;
}
html body .wmsp-composer.is-recording .wmsp-send{
  order:2 !important;
  flex:0 0 42px !important;
}

/* Never let old row rules win */
html body .wmsp-composer .wmsp-attach{position:static!important;}
html body .wmsp-composer .wmsp-send{position:static!important;}


/* v3.11.45 — kill legacy grid/row, force Grok column */
html body .wmsp-composer,
html body .wmsp-composer.wmsp-composer-host,
html body .wmsp-chat-view .wmsp-composer,
html body .wmsp-agent .wmsp-composer,
html body .wmsp-agent.wmsp-mobile-chat .wmsp-composer,
html body .wmsp-mobile-chat .wmsp-composer,
html body .wmsp-mobile-overlay .wmsp-composer,
html body .wmsp-foot .wmsp-composer{
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:10px !important;
  grid-template-columns:none !important;
  grid-template-rows:none !important;
  grid:none !important;
  width:100% !important;
  box-sizing:border-box !important;
  padding:12px 14px !important;
}
html body .wmsp-composer > .wmsp-input{
  display:block !important;
  width:100% !important;
  flex:0 0 auto !important;
  min-height:48px !important;
  max-height:160px !important;
  grid-column:auto !important;
  grid-row:auto !important;
}
html body .wmsp-composer > .wmsp-composer-tools{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  width:100% !important;
  gap:8px !important;
  min-height:44px !important;
  grid-column:auto !important;
  grid-row:auto !important;
}
html body .wmsp-composer-tools .wmsp-attach{flex:0 0 40px!important;order:1!important;}
html body .wmsp-composer-tools .wmsp-tools-spacer{flex:1 1 auto!important;order:2!important;}
html body .wmsp-composer-tools .wmsp-rec-toolbar,
html body .wmsp-composer-tools .wmsp-rec-continue{flex:0 0 auto!important;order:3!important;}
html body .wmsp-composer-tools .wmsp-send{flex:0 0 42px!important;order:4!important;position:static!important;}
html body .wmsp-composer.is-recording .wmsp-rec-toolbar{flex:1 1 auto!important;order:1!important;min-width:0!important;}
html body .wmsp-composer.is-recording .wmsp-send{order:2!important;}
html body .wmsp-composer.is-recording .wmsp-attach,
html body .wmsp-composer.is-recording .wmsp-tools-spacer{display:none!important;}


/* ============================================================
   v3.11.46 — recording first-frame + stable composer controls
   Existing visual design is preserved. Only layout/state stability changes.
   ============================================================ */
html body .wmsp-composer-tools > .wmsp-rec-toolbar{
  min-width:0 !important;
  flex:0 0 auto !important;
  align-items:center !important;
  visibility:visible !important;
}
html body .wmsp-composer-tools > .wmsp-rec-toolbar[hidden]{
  display:none !important;
}

/* Recording: [cancel] [wave] [done]. */
html body .wmsp-composer.is-recording .wmsp-composer-tools{
  width:100% !important;
  min-width:0 !important;
  align-items:center !important;
}
html body .wmsp-composer.is-recording .wmsp-rec-toolbar{
  min-width:0 !important;
  flex:1 1 auto !important;
  width:auto !important;
  overflow:visible !important;
  visibility:visible !important;
}
html body .wmsp-composer.is-recording .wmsp-rec-cancel{
  flex:0 0 36px !important;
  width:36px !important;
  min-width:36px !important;
  height:36px !important;
  min-height:36px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  visibility:visible !important;
}
html body .wmsp-composer.is-recording .wmsp-wave-live{
  display:block !important;
  visibility:visible !important;
  min-width:0 !important;
  flex:1 1 auto !important;
  overflow:hidden !important;
}
html body .wmsp-composer.is-recording .wmsp-send{
  flex:0 0 42px !important;
  width:42px !important;
  min-width:42px !important;
  height:42px !important;
  min-height:42px !important;
  display:inline-flex !important;
  visibility:visible !important;
}

/* Review: [attachment] [message] [mic] [send]. */
html body .wmsp-composer.is-review .wmsp-composer-tools{
  width:100% !important;
  min-width:0 !important;
}
html body .wmsp-composer.is-review .wmsp-attach{
  order:1 !important;
  flex:0 0 40px !important;
  width:40px !important;
  min-width:40px !important;
}
html body .wmsp-composer.is-review .wmsp-tools-spacer{
  display:block !important;
  order:2 !important;
  flex:1 1 auto !important;
  min-width:4px !important;
}
html body .wmsp-composer.is-review .wmsp-rec-toolbar{
  order:3 !important;
  flex:0 0 42px !important;
  width:42px !important;
  min-width:42px !important;
  display:flex !important;
  overflow:visible !important;
}
html body .wmsp-composer.is-review .wmsp-rec-continue{
  order:1 !important;
  flex:0 0 42px !important;
  width:42px !important;
  min-width:42px !important;
  height:42px !important;
}
html body .wmsp-composer.is-review .wmsp-send{
  order:4 !important;
  flex:0 0 42px !important;
  width:42px !important;
  min-width:42px !important;
  height:42px !important;
  position:static !important;
}

/* Idle/typing row keeps attachment on the left and mic/send on the right. */
html body .wmsp-composer:not(.is-recording):not(.is-review) .wmsp-composer-tools{
  width:100% !important;
}


/* ============================================================
   v3.11.47 — support voice/transcript stability
   Final overrides intentionally sit at the end so legacy composer rules
   cannot collapse the first recording frame or the transcript viewport.
   ============================================================ */
html body .wmsp-chat-view .wmsp-composer > .wmsp-input,
html body .wmsp-composer > .wmsp-input{
  min-height:104px !important;
  max-height:140px !important;
  height:104px !important;
  overflow-y:auto !important;
  line-height:1.45 !important;
  padding:8px 6px !important;
  box-sizing:border-box !important;
  scroll-padding-block-end:12px !important;
}
html body .wmsp-composer.is-recording > .wmsp-input{
  min-height:104px !important;
  max-height:140px !important;
  height:104px !important;
  overflow-y:auto !important;
}
/* The first recording must always expose [X] [waveform] [✓]. */
html body .wmsp-composer.is-recording .wmsp-composer-tools{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  width:100% !important;
  min-width:0 !important;
  min-height:44px !important;
  overflow:visible !important;
}
html body .wmsp-composer.is-recording .wmsp-rec-toolbar{
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
  position:static !important;
  order:1 !important;
  flex:1 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  overflow:visible !important;
  align-items:center !important;
}
html body .wmsp-composer.is-recording .wmsp-rec-cancel{
  display:inline-flex !important;
  visibility:visible !important;
  opacity:1 !important;
  position:static !important;
  flex:0 0 36px !important;
  width:36px !important;
  min-width:36px !important;
  height:36px !important;
  min-height:36px !important;
  margin:0 !important;
  transform:none !important;
}
html body .wmsp-composer.is-recording .wmsp-wave-live,
html body .wmsp-composer.is-recording .wmsp-wave-canvas{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}
html body .wmsp-composer.is-recording .wmsp-wave-live{
  flex:1 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  height:40px !important;
  overflow:hidden !important;
}
html body .wmsp-composer.is-recording .wmsp-send{
  display:inline-flex !important;
  visibility:visible !important;
  opacity:1 !important;
  position:static !important;
  order:2 !important;
  flex:0 0 42px !important;
  width:42px !important;
  min-width:42px !important;
  height:42px !important;
  min-height:42px !important;
  margin:0 0 0 4px !important;
}
/* Keep the transcript caret/view at the newest words. */
html body .wmsp-composer > .wmsp-input:focus{scroll-behavior:auto;}


/* v3.11.50 — FINAL SUPPORT COMPOSER STABILITY / DEBUG OVERRIDE
   One permanent tools row. DOM order never changes. State changes only toggle visibility. */
html body .wmsp-composer-tools{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;width:100%!important;min-width:0!important;gap:8px!important;overflow:visible!important;}
html body .wmsp-composer-tools > .wmsp-attach{order:1!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;}
html body .wmsp-composer-tools > .wmsp-tools-spacer{order:2!important;flex:1 1 auto!important;min-width:4px!important;}
html body .wmsp-composer-tools > .wmsp-rec-toolbar{order:3!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;margin:0!important;}
html body .wmsp-composer-tools > .wmsp-rec-continue{order:4!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;}
html body .wmsp-composer-tools > .wmsp-send{order:5!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;margin-left:0!important;position:static!important;}
html body .wmsp-composer:not(.is-recording) .wmsp-composer-tools > .wmsp-attach{display:inline-flex!important;}
html body .wmsp-composer:not(.is-recording) .wmsp-composer-tools > .wmsp-tools-spacer{display:block!important;}
html body .wmsp-composer:not(.is-recording) .wmsp-composer-tools > .wmsp-rec-toolbar{display:none!important;}
html body .wmsp-composer:not(.is-recording) .wmsp-composer-tools > .wmsp-rec-continue{display:inline-flex!important;}
html body .wmsp-composer:not(.is-recording) .wmsp-composer-tools > .wmsp-send{display:inline-flex!important;}
html body .wmsp-composer.is-recording .wmsp-composer-tools > .wmsp-attach,html body .wmsp-composer.is-recording .wmsp-composer-tools > .wmsp-tools-spacer,html body .wmsp-composer.is-recording .wmsp-composer-tools > .wmsp-rec-continue{display:none!important;}
html body .wmsp-composer.is-recording .wmsp-composer-tools > .wmsp-rec-toolbar{display:flex!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;}
html body .wmsp-composer.is-recording .wmsp-composer-tools > .wmsp-send{display:inline-flex!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;}
html body .wmsp-composer.is-review .wmsp-composer-tools > .wmsp-attach{display:inline-flex!important;}
html body .wmsp-composer.is-review .wmsp-composer-tools > .wmsp-tools-spacer{display:block!important;flex:1 1 auto!important;}
html body .wmsp-composer.is-review .wmsp-composer-tools > .wmsp-rec-toolbar{display:none!important;}
html body .wmsp-composer.is-review .wmsp-composer-tools > .wmsp-rec-continue{display:inline-flex!important;}
html body .wmsp-composer.is-review .wmsp-composer-tools > .wmsp-send{display:inline-flex!important;}
html body .wmsp-msgs{display:flex!important;flex-direction:column!important;align-items:stretch!important;}
html body .wmsp-msgs > .wmsp-row{display:flex!important;width:100%!important;max-width:100%!important;flex:0 0 auto!important;}
html body .wmsp-msgs > .wmsp-row.mine{justify-content:flex-end!important;align-self:stretch!important;}
html body .wmsp-msgs > .wmsp-row.theirs{justify-content:flex-start!important;align-self:stretch!important;}
html body .wmsp-msgs > .wmsp-row.mine .wmsp-bubble{background:#101828!important;color:#fff!important;}
html body .wmsp-msgs > .wmsp-row.theirs .wmsp-bubble{background:#fff!important;color:#101828!important;}
#wm-support-debug-panel{display:block!important;visibility:visible!important;}

/* v3.11.51 mobile debug controls */
#wm-support-debug-panel .wm-support-debug-actions{display:flex;gap:5px;flex-wrap:wrap;align-items:center;}
#wm-support-debug-panel .wm-support-debug-help{padding:6px 8px;border-bottom:1px solid #344054;color:#d0d5dd;font:600 11px/1.35 system-ui,sans-serif;}
@media(max-width:600px){#wm-support-debug-panel{left:5px;right:5px;bottom:5px;border-radius:9px;max-height:58dvh;}#wm-support-debug-panel .wm-support-debug-title{align-items:flex-start;flex-wrap:wrap;padding:6px;}#wm-support-debug-panel .wm-support-debug-title strong{width:100%;margin:0 0 3px;}#wm-support-debug-panel .wm-support-debug-actions{width:100%;}#wm-support-debug-panel button{min-height:34px;padding:7px 10px;font-size:12px;flex:1 1 auto;}#wm-support-debug-panel pre{max-height:calc(58dvh - 112px);font-size:10px;}}


/* v3.11.52 — deterministic support header and always-visible mobile diagnostics. */
html body .wmsp-chat-head{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:7px 8px !important;
  min-height:62px !important;
  height:auto !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
html body .wmsp-chat-head .wmsp-back,
html body .wmsp-chat-head .wmsp-fullscreen-toggle,
html body .wmsp-chat-head .wmsp-chat-actions{
  flex:0 0 auto !important;
}
html body .wmsp-chat-head .wmsp-who{
  flex:1 1 120px !important;
  min-width:0 !important;
  width:auto !important;
}
html body .wmsp-chat-head .wmsp-chip{
  flex:0 1 auto !important;
  min-width:0 !important;
  max-width:45vw !important;
}
html body .wmsp-chat-head .wmsp-subject{
  flex:1 1 100% !important;
  min-width:0 !important;
  width:100% !important;
}
html body #wm-support-debug-panel{display:block !important;visibility:visible !important;opacity:1 !important;position:fixed !important;left:5px !important;right:5px !important;bottom:5px !important;z-index:2147483647 !important;}
@media(max-width:600px){
  html body .wmsp-chat-head{min-height:64px !important;padding:8px !important;}
  html body #wm-support-debug-panel{max-height:62dvh !important;}
}


/* ============================================================
   v3.11.53 — AUTHORITATIVE SUPPORT COMPOSER CONTRACT
   There is exactly one layout owner for the support composer.
   JavaScript changes state classes only. It must never reposition controls.
   DOM order: attachment | spacer | recording toolbar | continue mic | primary action.
   ============================================================ */
html body .wmsp-composer.wmsp-composer-host{
  display:flex!important; flex-direction:column!important; flex-wrap:nowrap!important;
  align-items:stretch!important; width:100%!important; min-width:0!important;
  box-sizing:border-box!important; gap:8px!important; position:relative!important;
}
html body .wmsp-composer.wmsp-composer-host > .wmsp-input{
  order:1!important; display:block!important; width:100%!important; min-width:0!important;
  min-height:104px!important; height:104px!important; max-height:140px!important;
  overflow-y:auto!important; resize:none!important; box-sizing:border-box!important;
}
html body .wmsp-composer.wmsp-composer-host > .wmsp-composer-tools{
  order:2!important; display:flex!important; flex-direction:row!important; flex-wrap:nowrap!important;
  align-items:center!important; width:100%!important; min-width:0!important; gap:8px!important;
  overflow:visible!important; box-sizing:border-box!important;
}
html body .wmsp-composer.wmsp-composer-host > .wmsp-composer-tools > .wmsp-attach{
  order:1!important; flex:0 0 40px!important; width:40px!important; min-width:40px!important;
  position:static!important; margin:0!important;
}
html body .wmsp-composer.wmsp-composer-host > .wmsp-composer-tools > .wmsp-tools-spacer{
  order:2!important; flex:1 1 auto!important; width:auto!important; min-width:4px!important;
}
html body .wmsp-composer.wmsp-composer-host > .wmsp-composer-tools > .wmsp-rec-toolbar{
  order:3!important; flex:0 0 auto!important; width:auto!important; min-width:0!important;
  position:static!important; margin:0!important;
}
html body .wmsp-composer.wmsp-composer-host > .wmsp-composer-tools > .wmsp-rec-continue{
  order:4!important; flex:0 0 42px!important; width:42px!important; min-width:42px!important;
  height:42px!important; position:static!important; margin:0!important;
}
html body .wmsp-composer.wmsp-composer-host > .wmsp-composer-tools > .wmsp-send{
  order:5!important; flex:0 0 42px!important; width:42px!important; min-width:42px!important;
  height:42px!important; margin:0 0 0 auto!important; position:static!important;
}
/* Idle and typing: attachment left, microphone/send right. */
html body .wmsp-composer.wmsp-composer-host:not(.is-recording) > .wmsp-composer-tools > .wmsp-attach{display:inline-flex!important;}
html body .wmsp-composer.wmsp-composer-host:not(.is-recording) > .wmsp-composer-tools > .wmsp-tools-spacer{display:block!important;}
html body .wmsp-composer.wmsp-composer-host:not(.is-recording) > .wmsp-composer-tools > .wmsp-rec-toolbar{display:none!important;}
html body .wmsp-composer.wmsp-composer-host:not(.is-recording) > .wmsp-composer-tools > .wmsp-rec-continue{display:inline-flex!important;}
html body .wmsp-composer.wmsp-composer-host:not(.is-recording) > .wmsp-composer-tools > .wmsp-send{display:inline-flex!important;}
/* Recording: only X + waveform + check are visible. */
html body .wmsp-composer.wmsp-composer-host.is-recording > .wmsp-input{
  min-height:104px!important; height:104px!important; max-height:140px!important;
}
html body .wmsp-composer.wmsp-composer-host.is-recording > .wmsp-composer-tools > .wmsp-attach,
html body .wmsp-composer.wmsp-composer-host.is-recording > .wmsp-composer-tools > .wmsp-tools-spacer,
html body .wmsp-composer.wmsp-composer-host.is-recording > .wmsp-composer-tools > .wmsp-rec-continue{display:none!important;}
html body .wmsp-composer.wmsp-composer-host.is-recording > .wmsp-composer-tools > .wmsp-rec-toolbar{
  display:flex!important; flex:1 1 auto!important; width:auto!important; min-width:0!important;
  visibility:visible!important; opacity:1!important; position:static!important;
}
html body .wmsp-composer.wmsp-composer-host.is-recording .wmsp-rec-cancel{
  display:inline-flex!important; visibility:visible!important; opacity:1!important;
  flex:0 0 36px!important; width:36px!important; min-width:36px!important;
  height:36px!important; min-height:36px!important; position:static!important; margin:0!important;
}
html body .wmsp-composer.wmsp-composer-host.is-recording .wmsp-wave-live{
  display:block!important; visibility:visible!important; opacity:1!important;
  flex:1 1 auto!important; width:auto!important; min-width:0!important; height:40px!important;
  overflow:hidden!important; position:static!important;
}
html body .wmsp-composer.wmsp-composer-host.is-recording > .wmsp-composer-tools > .wmsp-send{
  display:inline-flex!important; visibility:visible!important; opacity:1!important;
  order:5!important; flex:0 0 42px!important; width:42px!important; min-width:42px!important;
  height:42px!important; margin:0!important; position:static!important;
}
/* Review: attachment | text spacer | mic | send. */
html body .wmsp-composer.wmsp-composer-host.is-review > .wmsp-composer-tools > .wmsp-attach{display:inline-flex!important;}
html body .wmsp-composer.wmsp-composer-host.is-review > .wmsp-composer-tools > .wmsp-tools-spacer{display:block!important;}
html body .wmsp-composer.wmsp-composer-host.is-review > .wmsp-composer-tools > .wmsp-rec-toolbar{display:none!important;}
html body .wmsp-composer.wmsp-composer-host.is-review > .wmsp-composer-tools > .wmsp-rec-continue{display:inline-flex!important;}
html body .wmsp-composer.wmsp-composer-host.is-review > .wmsp-composer-tools > .wmsp-send{display:inline-flex!important;}
/* Never let the old platform-wide voice button participate in support layout. */
/* Debug panel for mobile diagnostics. */
#wm-support-debug-panel{
  position:fixed!important; left:8px!important; right:8px!important; bottom:8px!important;
  z-index:2147483647!important; background:#101828!important; color:#fff!important;
  border:2px solid #fff!important; border-radius:14px!important; padding:10px!important;
  box-shadow:0 12px 40px rgba(0,0,0,.35)!important; font:12px/1.35 monospace!important;
  max-height:42vh!important; overflow:hidden!important; box-sizing:border-box!important;
}
#wm-support-debug-panel .wm-support-debug-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;}
#wm-support-debug-panel .wm-support-debug-actions{display:flex!important;gap:4px!important;flex-wrap:wrap!important;}
#wm-support-debug-panel button{background:#fff!important;color:#101828!important;border:0!important;border-radius:7px!important;padding:6px 8px!important;font-weight:700!important;}
#wm-support-debug-panel pre{margin:8px 0 0!important;max-height:25vh!important;overflow:auto!important;white-space:pre-wrap!important;word-break:break-word!important;}


/* ============================================================
   v3.11.54 — USER CHAT HEADER + LIVE VOICE VISIBILITY
   User mobile header is a single compact row. Subject stays on row two.
   Keep admin header contract untouched.
   ============================================================ */
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head{
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) auto 36px!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  column-gap:6px!important;
  row-gap:2px!important;
  min-height:62px!important;
  padding:7px 8px!important;
  overflow:visible!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-back{
  grid-column:1!important;grid-row:1!important;
  width:36px!important;height:36px!important;min-width:36px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-who{
  grid-column:2!important;grid-row:1!important;
  min-width:0!important;width:auto!important;display:flex!important;align-items:center!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-chip{
  grid-column:3!important;grid-row:1!important;
  min-width:0!important;max-width:116px!important;
  justify-self:end!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-chat-actions{
  grid-column:4!important;grid-row:1!important;
  width:36px!important;height:36px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-chat-close{
  width:34px!important;height:34px!important;min-width:34px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-subject{
  grid-column:2 / 5!important;grid-row:2!important;
  min-width:0!important;width:auto!important;margin:0!important;padding:0!important;
}

/* Voice recording: the canvas and toolbar are never allowed to collapse. */
html body .wmsp-composer.wmsp-composer-host.is-recording .wmsp-rec-toolbar{
  display:flex!important;align-items:center!important;visibility:visible!important;opacity:1!important;
  min-height:42px!important;height:42px!important;
}
html body .wmsp-composer.wmsp-composer-host.is-recording .wmsp-wave-live{
  display:flex!important;align-items:center!important;justify-content:center!important;
  visibility:visible!important;opacity:1!important;
  flex:1 1 auto!important;width:auto!important;min-width:80px!important;height:40px!important;
}
html body .wmsp-composer.wmsp-composer-host.is-recording .wmsp-wave-canvas{
  display:block!important;visibility:visible!important;opacity:1!important;
  width:100%!important;height:40px!important;min-width:80px!important;
}
html body .wmsp-composer.wmsp-composer-host.is-recording > .wmsp-input{
  color:#101828!important;caret-color:#101828!important;
  min-height:104px!important;height:104px!important;max-height:140px!important;
  overflow-y:auto!important;white-space:pre-wrap!important;
}


/* v3.11.63 — permanent composer DOM; state changes never reparent controls. */
html body .wmsp-composer.wmsp-composer-host{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;min-width:0!important;width:100%!important;}
html body .wmsp-composer.wmsp-composer-host>.wmsp-input{width:100%!important;min-width:0!important;min-height:104px!important;height:104px!important;max-height:140px!important;resize:none!important;overflow-y:auto!important;line-height:1.45!important;white-space:pre-wrap!important;}
html body .wmsp-composer.wmsp-composer-host>.wmsp-composer-tools{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;width:100%!important;min-width:0!important;min-height:44px!important;gap:6px!important;overflow:visible!important;}
html body .wmsp-composer.wmsp-composer-host>.wmsp-composer-tools>.wmsp-attach{order:1!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;height:40px!important;}
html body .wmsp-composer.wmsp-composer-host>.wmsp-composer-tools>.wmsp-tools-spacer{order:2!important;flex:1 1 auto!important;min-width:4px!important;display:block!important;}
html body .wmsp-composer.wmsp-composer-host>.wmsp-composer-tools>.wmsp-rec-toolbar{order:3!important;flex:0 0 auto!important;min-width:0!important;width:auto!important;margin:0!important;overflow:visible!important;}
html body .wmsp-composer.wmsp-composer-host>.wmsp-composer-tools>.wmsp-rec-continue{order:4!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;height:40px!important;}
html body .wmsp-composer.wmsp-composer-host>.wmsp-composer-tools>.wmsp-send{order:5!important;flex:0 0 42px!important;width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;position:static!important;}
html body .wmsp-composer.wmsp-composer-host.is-recording>.wmsp-composer-tools>.wmsp-attach,html body .wmsp-composer.wmsp-composer-host.is-recording>.wmsp-composer-tools>.wmsp-tools-spacer,html body .wmsp-composer.wmsp-composer-host.is-recording>.wmsp-composer-tools>.wmsp-rec-continue{display:none!important;}
html body .wmsp-composer.wmsp-composer-host.is-recording>.wmsp-composer-tools>.wmsp-rec-toolbar{display:flex!important;visibility:visible!important;opacity:1!important;order:1!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;height:42px!important;align-items:center!important;}
html body .wmsp-composer.wmsp-composer-host.is-recording>.wmsp-composer-tools>.wmsp-send{order:2!important;display:inline-flex!important;}
html body .wmsp-composer.wmsp-composer-host.is-recording .wmsp-rec-cancel{flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:36px!important;display:inline-flex!important;}
html body .wmsp-composer.wmsp-composer-host.is-recording .wmsp-wave-live{flex:1 1 auto!important;width:auto!important;min-width:0!important;height:40px!important;display:flex!important;overflow:hidden!important;}
html body .wmsp-composer.wmsp-composer-host.is-recording .wmsp-wave-canvas{display:block!important;width:100%!important;height:40px!important;min-width:0!important;}
html body .wmsp-composer.wmsp-composer-host.is-review>.wmsp-composer-tools>.wmsp-attach,html body .wmsp-composer.wmsp-composer-host.is-review>.wmsp-composer-tools>.wmsp-tools-spacer,html body .wmsp-composer.wmsp-composer-host.is-review>.wmsp-composer-tools>.wmsp-rec-continue,html body .wmsp-composer.wmsp-composer-host.is-review>.wmsp-composer-tools>.wmsp-send{display:inline-flex!important;}
html body .wmsp-composer.wmsp-composer-host.is-review>.wmsp-composer-tools>.wmsp-rec-toolbar{display:none!important;}
html body .wmsp-chat.wmsp-agent-chat .wmsp-row.mine,html body .wmsp-chat.wmsp-customer-chat .wmsp-row.mine{justify-content:flex-end!important;}
html body .wmsp-chat.wmsp-agent-chat .wmsp-row.theirs,html body .wmsp-chat.wmsp-customer-chat .wmsp-row.theirs{justify-content:flex-start!important;}
html body .wmsp-chat .wmsp-sender{display:block!important;font-size:11px!important;font-weight:800!important;line-height:1.2!important;margin:0 0 3px!important;opacity:.72!important;}
html body .wmsp-chat .wmsp-row.mine .wmsp-sender{text-align:right!important;}
html body .wmsp-chat .wmsp-txt{white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.45!important;}
@media(max-width:600px){html body .wmsp-composer.wmsp-composer-host>.wmsp-input{min-height:104px!important;height:104px!important;max-height:140px!important;font-size:16px!important;}html body .wmsp-composer.wmsp-composer-host>.wmsp-composer-tools{gap:5px!important;}}


/* v3.11.63 — permanent voice controls: visibility changes only; never reflow by DOM rebuild. */
html body .wmsp-composer.wmsp-composer-host > .wmsp-composer-tools{position:relative!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;}
html body .wmsp-composer.wmsp-composer-host > .wmsp-composer-tools > .wmsp-tools-spacer{flex:1 1 auto!important;min-width:4px!important;}
html body .wmsp-composer.wmsp-composer-host > .wmsp-composer-tools > [hidden]{display:none!important;}
html body .wmsp-composer.wmsp-composer-host:not(.is-recording) > .wmsp-composer-tools > .wmsp-send{margin-left:auto!important;}
html body .wmsp-composer.wmsp-composer-host.is-recording > .wmsp-composer-tools > .wmsp-rec-toolbar{display:flex!important;flex:1 1 auto!important;min-width:0!important;}
html body .wmsp-composer.wmsp-composer-host.is-recording > .wmsp-composer-tools > .wmsp-send{margin-left:0!important;flex:0 0 42px!important;}
html body .wmsp-composer.wmsp-composer-host.is-recording > .wmsp-composer-tools > .wmsp-rec-toolbar .wmsp-wave-live{flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;}

/* v3.11.67 — customer chat canvas and dynamic mobile viewport.
   The message list is the only scrolling region; the composer stays in the
   flex footer while the customer page itself is pinned during an open chat.
   Use dvh rather than svh so the frame grows when mobile browser chrome hides. */
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat{
  background-color:var(--wmsp-chat-canvas-color,#f8fafc)!important;
  background-image:var(--wmsp-chat-canvas-image,none)!important;
  background-position:center center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-msgs,
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-foot,
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-typing{
  background-color:transparent!important;
  background-image:none!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-foot{
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
@media(max-width:899px){
  html body.wmsp-lock{overflow:hidden!important;overscroll-behavior:none!important;}
  html body .wmsp-chat-view.wmsp-inline{
    position:fixed!important;
    z-index:2147483000!important;
    top:0!important;left:0!important;right:0!important;bottom:auto!important;
    width:100vw!important;max-width:none!important;
    height:100vh!important;height:100dvh!important;
    min-height:0!important;max-height:100vh!important;max-height:100dvh!important;
    margin:0!important;padding-top:env(safe-area-inset-top,0px)!important;
    border:0!important;border-radius:0!important;overflow:hidden!important;
  }
  html body .wmsp-chat-view.wmsp-overlay{
    height:100vh!important;height:100dvh!important;
    min-height:0!important;max-height:100vh!important;max-height:100dvh!important;
  }
}


/* =====================================================================
   v3.11.69 — Support desk desktop/tablet + monochrome interaction repair
   ---------------------------------------------------------------------
   admin-responsive.css defines a grid earlier in the page, but support.css
   contains later legacy layers that intentionally omitted grid-template-
   columns. Those later rules win in the cascade and collapse the desktop /
   tablet desk into a poor single-column layout. Restore the grid here.
   Mobile (<900px) is intentionally left to the existing mobile rules.
   ===================================================================== */
html body.wp-admin .wmsp-agent .wmsp-alayout,
html body.wm-admin-page .wmsp-agent .wmsp-alayout {
  display: grid !important;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(260px, 300px) !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: stretch !important;
}
html body.wp-admin .wmsp-agent .wmsp-alayout:not(.show-chat),
html body.wm-admin-page .wmsp-agent .wmsp-alayout:not(.show-chat) {
  grid-template-columns: minmax(0, 1fr) !important;
}
html body.wp-admin .wmsp-agent .wmsp-alayout.show-chat .wmsp-acol,
html body.wm-admin-page .wmsp-agent .wmsp-alayout.show-chat .wmsp-acol,
html body.wp-admin .wmsp-agent .wmsp-alayout.show-chat .wmsp-bcol,
html body.wm-admin-page .wmsp-agent .wmsp-alayout.show-chat .wmsp-bcol,
html body.wp-admin .wmsp-agent .wmsp-alayout.show-chat .wmsp-ccol,
html body.wm-admin-page .wmsp-agent .wmsp-alayout.show-chat .wmsp-ccol {
  min-width: 0 !important;
}
@media (min-width: 900px) and (max-width: 1199px) {
  html body.wp-admin .wmsp-agent .wmsp-alayout.show-chat,
  html body.wm-admin-page .wmsp-agent .wmsp-alayout.show-chat {
    grid-template-columns: minmax(235px, 31%) minmax(0, 1fr) !important;
  }
  html body.wp-admin .wmsp-agent .wmsp-alayout.show-chat .wmsp-ccol,
  html body.wm-admin-page .wmsp-agent .wmsp-alayout.show-chat .wmsp-ccol {
    display: none !important;
  }
}
@media (min-width: 1200px) {
  html body.wp-admin .wmsp-agent .wmsp-alayout.show-chat,
  html body.wm-admin-page .wmsp-agent .wmsp-alayout.show-chat {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(260px, 300px) !important;
  }
}
html body.wp-admin .wmsp-agent .wmsp-acol,
html body.wp-admin .wmsp-agent .wmsp-bcol,
html body.wp-admin .wmsp-agent .wmsp-ccol,
html body.wm-admin-page .wmsp-agent .wmsp-acol,
html body.wm-admin-page .wmsp-agent .wmsp-bcol,
html body.wm-admin-page .wmsp-agent .wmsp-ccol {
  min-width: 0 !important;
  min-height: 0 !important;
}

/* WiserMart is intentionally monochrome inside Support. Override WP/theme
   blue hover defaults on neutral option controls, without changing primary
   black actions or the existing black/white journey cards. */
html body .wmsp .wmsp-tile:hover,
html body .wmsp .wmsp-tile:focus-visible,
html body .wmsp .wmsp-trow:hover,
html body .wmsp .wmsp-trow:focus-visible,
html body .wmsp .wmsp-scope:not(.on):hover,
html body .wmsp .wmsp-scope:not(.on):focus-visible,
html body .wmsp .wmsp-pbtn:not(.on):hover,
html body .wmsp .wmsp-pbtn:not(.on):focus-visible,
html body .wmsp .wmsp-arow:hover,
html body .wmsp .wmsp-arow:focus-visible,
html body .wmsp .wmsp-ico:hover,
html body .wmsp .wmsp-ico:focus-visible,
html body .wmsp .wmsp-chat-action-menu button:hover,
html body .wmsp .wmsp-chat-action-menu button:focus-visible,
html body .wmsp .wmsp-popmenu-item:hover,
html body .wmsp .wmsp-popmenu-item:focus-visible,
html body .wmsp .wmsp-fullscreen-toggle:hover,
html body .wmsp .wmsp-fullscreen-toggle:focus-visible,
html body .wmsp .wmsp-presence-toggle:hover,
html body .wmsp .wmsp-presence-toggle:focus-visible,
html body .wmsp .wmsp-handoff-suggestion:hover,
html body .wmsp .wmsp-handoff-suggestion:focus-visible,
html body .wmsp .wmsp-composer .wmsp-attach:hover,
html body .wmsp .wmsp-composer .wmsp-attach:focus-visible,
html body .wmsp .wmsp-composer .wmsp-dictate:hover,
html body .wmsp .wmsp-composer .wmsp-dictate:focus-visible,
html body .wmsp .wmsp-composer .wmsp-record:hover,
html body .wmsp .wmsp-composer .wmsp-record:focus-visible,
html body .wmsp .wmsp-dashboard-nav-link:not(.is-active):hover,
html body .wmsp .wmsp-dashboard-nav-link:not(.is-active):focus-visible {
  background: #f2f2f2 !important;
  color: #111 !important;
  border-color: #d0d5dd !important;
  text-decoration: none !important;
  outline-color: #111 !important;
}
html body .wmsp .wmsp-tile:hover *,
html body .wmsp .wmsp-tile:focus-visible *,
html body .wmsp .wmsp-trow:hover *,
html body .wmsp .wmsp-trow:focus-visible *,
html body .wmsp .wmsp-scope:not(.on):hover *,
html body .wmsp .wmsp-scope:not(.on):focus-visible *,
html body .wmsp .wmsp-pbtn:not(.on):hover *,
html body .wmsp .wmsp-pbtn:not(.on):focus-visible *,
html body .wmsp .wmsp-arow:hover *,
html body .wmsp .wmsp-arow:focus-visible *,
html body .wmsp .wmsp-chat-action-menu button:hover *,
html body .wmsp .wmsp-chat-action-menu button:focus-visible *,
html body .wmsp .wmsp-popmenu-item:hover *,
html body .wmsp .wmsp-popmenu-item:focus-visible * {
  color: #111 !important;
}
/* WiserMart support is intentionally monochrome. Voice controls use black/white
 * for idle, listening and recording states; no red/blue accent is introduced. */
html body .wmsp .wmsp-composer .wmsp-dictate,
html body .wmsp .wmsp-composer .wmsp-dictate:not(.is-listening),
html body .wmsp .wmsp-composer .wmsp-record {
  background: #fff !important;
  color: #111 !important;
  border-color: #d0d5dd !important;
}
html body .wmsp .wmsp-composer .wmsp-dictate.is-listening,
html body .wmsp .wmsp-composer .wmsp-record.is-recording,
html body .wmsp .wmsp-composer .wmsp-record[aria-pressed="true"] {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
  box-shadow: 0 0 0 4px rgba(17,17,17,.12) !important;
  animation: none !important;
}
html body .wmsp .wmsp-ico:hover svg,
html body .wmsp .wmsp-ico:focus-visible svg,
html body .wmsp .wmsp-composer .wmsp-attach:hover svg,
html body .wmsp .wmsp-composer .wmsp-dictate:hover svg,
html body .wmsp .wmsp-composer .wmsp-record:hover svg {
  color: #111 !important;
  stroke: currentColor !important;
}



/* ============================================================
   v3.11.71 — Header name+chip same line, perfect close circle,
              monochrome active/tap (no blue)
   ============================================================ */

/* User chat header: back | who (avatar + name-row+chip + presence) | close
   Chip lives INSIDE the name row, so it shares the baseline with "Wiser AI". */
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head{
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) 36px!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  column-gap:8px!important;
  row-gap:2px!important;
  min-height:56px!important;
  padding:8px 10px!important;
  overflow:visible!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-back{
  grid-column:1!important;grid-row:1!important;
  width:36px!important;height:36px!important;min-width:36px!important;
  max-width:36px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:50%!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-who{
  grid-column:2!important;grid-row:1!important;
  min-width:0!important;width:auto!important;
  display:flex!important;align-items:center!important;gap:8px!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-who-text{
  min-width:0!important;flex:1 1 auto!important;
  display:flex!important;flex-direction:column!important;gap:1px!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-who-name-row{
  display:flex!important;align-items:center!important;gap:6px!important;
  min-width:0!important;flex-wrap:nowrap!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-who-name-row strong{
  font-size:15px!important;line-height:1.2!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  min-width:0!important;flex:0 1 auto!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-who-name-row .wmsp-chip{
  flex:0 0 auto!important;
  font-size:9px!important;font-weight:700!important;
  padding:2px 7px!important;line-height:1.25!important;
  max-width:none!important;
  white-space:nowrap!important;
  border-radius:999px!important;
  margin:0!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-who small{
  font-size:11px!important;line-height:1.2!important;
  max-width:100%!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
  color:#667085!important;
}
/* Subject on second row spans the content columns */
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-subject{
  grid-column:2 / 4!important;grid-row:2!important;
  min-width:0!important;margin:0!important;padding:0!important;
}

/* Close button: true circle (not egg), black bg, white × */
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-chat-actions{
  grid-column:3!important;grid-row:1!important;
  width:36px!important;height:36px!important;
  min-width:36px!important;max-width:36px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  padding:0!important;margin:0!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-chat-close,
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-actions .wmsp-chat-close{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  aspect-ratio:1 / 1!important;
  background:#101828!important;
  color:#ffffff!important;
  font-size:18px!important;
  font-weight:600!important;
  line-height:1!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:none!important;
  flex-shrink:0!important;
  box-sizing:border-box!important;
}
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-chat-close:hover,
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-actions .wmsp-chat-close:hover,
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-chat-close:focus,
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-actions .wmsp-chat-close:focus,
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-head .wmsp-chat-close:active,
html body .wmsp-chat-view:not(.wmsp-agent) .wmsp-chat-actions .wmsp-chat-close:active{
  background:#000000!important;
  color:#ffffff!important;
  outline:none!important;
}

/* ---- No blue tap / active / focus anywhere in support ---- */
html body .wmsp,
html body .wmsp *,
html body #wm-support-launcher,
html body #wm-support-launcher *{
  -webkit-tap-highlight-color:transparent!important;
}
html body .wmsp button,
html body .wmsp a,
html body .wmsp [role="button"],
html body #wm-support-launcher{
  -webkit-tap-highlight-color:transparent!important;
  -webkit-user-select:none;
  user-select:none;
}
html body .wmsp button:focus,
html body .wmsp a:focus,
html body .wmsp [role="button"]:focus,
html body #wm-support-launcher:focus{
  outline:none!important;
}
html body .wmsp button:focus-visible,
html body .wmsp a:focus-visible,
html body .wmsp [role="button"]:focus-visible,
html body #wm-support-launcher:focus-visible{
  outline:2px solid rgba(16,24,40,.35)!important;
  outline-offset:2px!important;
}

/* Floating Help launcher: stay black on press/active, white text */
html body #wm-support-launcher,
html body .wmsp-launcher{
  background:#000000!important;
  color:#ffffff!important;
  -webkit-tap-highlight-color:transparent!important;
}
html body #wm-support-launcher:hover,
html body #wm-support-launcher:focus,
html body #wm-support-launcher:active,
html body .wmsp-launcher:hover,
html body .wmsp-launcher:focus,
html body .wmsp-launcher:active{
  background:#101828!important;
  color:#ffffff!important;
  outline:none!important;
  filter:none!important;
  opacity:1!important;
}
html body #wm-support-launcher:active .wmsp-launcher-tx,
html body #wm-support-launcher:active .wmsp-launcher-ic,
html body .wmsp-launcher:active .wmsp-launcher-tx,
html body .wmsp-launcher:active .wmsp-launcher-ic{
  color:#ffffff!important;
  opacity:1!important;
}

/* Primary buttons: black active, white text (never blue / gray) */
html body .wmsp .wmsp-btn:active,
html body .wmsp .wmsp-btn:focus,
html body .wmsp button.wmsp-btn:active{
  background:#000000!important;
  color:#ffffff!important;
  border-color:#000000!important;
}
html body .wmsp .wmsp-btn-ghost:active,
html body .wmsp .wmsp-btn-ghost:focus{
  background:#f2f4f7!important;
  color:#101828!important;
  border-color:#d0d5dd!important;
}

/* Scope / tab / action chips that can become "active" */
html body .wmsp .wmsp-scope.on,
html body .wmsp .wmsp-scope:active,
html body .wmsp .wmsp-pbtn.on,
html body .wmsp .wmsp-pbtn:active,
html body .wmsp .wmsp-dashboard-nav-link.is-active,
html body .wmsp .wmsp-dashboard-nav-link:active{
  background:#000000!important;
  color:#ffffff!important;
  border-color:#000000!important;
}

/* Neutralize any leftover blue system / browser active paints */
html body .wmsp a:active,
html body .wmsp button:active,
html body .wmsp [role="button"]:active{
  -webkit-tap-highlight-color:transparent!important;
}

/* Voice note player + download fallback (Firefox/UC decode failures) */
html body .wmsp-att-audio{display:grid!important;gap:4px!important;margin-top:7px!important;max-width:min(340px,100%)!important;}
html body .wmsp-att-audio audio{width:100%!important;max-width:100%!important;height:40px!important;}
html body .wmsp-att-audio small{font-size:11px!important;color:#667085!important;}
html body .wmsp-att-audio-fallback{
  display:inline-flex!important;align-items:center!important;gap:6px!important;
  font-size:12px!important;font-weight:700!important;color:#101828!important;
  text-decoration:underline!important;margin-top:2px!important;
}

/* Animated three-dot typing indicator (chat feel) */
html body .wmsp-typing{
  display:flex!important;align-items:center!important;gap:8px!important;
  padding:8px 16px!important;font-size:13px!important;color:#667085!important;
  background:transparent!important;min-height:28px!important;
}
html body .wmsp-typing[hidden]{display:none!important;}
html body .wmsp-typing-dots{
  display:inline-flex!important;align-items:center!important;gap:4px!important;
  height:14px!important;
}
html body .wmsp-typing-dots i{
  width:7px!important;height:7px!important;border-radius:50%!important;
  background:#667085!important;opacity:.35!important;
  animation:wmsp-typing-bounce 1.2s infinite ease-in-out!important;
  display:inline-block!important;
}
html body .wmsp-typing-dots i:nth-child(2){animation-delay:.15s!important;}
html body .wmsp-typing-dots i:nth-child(3){animation-delay:.3s!important;}
@keyframes wmsp-typing-bounce{
  0%,80%,100%{transform:translateY(0);opacity:.35;}
  40%{transform:translateY(-4px);opacity:1;}
}
html body .wmsp-typing-label{font-weight:600!important;color:#475467!important;}

/* Floating launcher must stay visible when PHP/JS intend it to show */
html body #wm-support-launcher.wmsp-launcher:not([hidden]){
  display:inline-flex !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  z-index:2147483000 !important;
  position:fixed !important;
}
html body #wm-support-launcher[hidden],
html body #wm-support-launcher.wmsp-launcher[hidden]{
  display:none !important;
}
