/* QPB CMP desktop Messenger shell presentation owner.
   RC328 retains the single divider/profile owner and keeps narrow Customer Profile fields contained. */

#unifiedMessengerPane :is(
 .qpb-panel-toggle,.qpb-conversations-toggle,.qpb-profile-toggle,.qpb-conversation-resizer,
 .rc292-panel-action,.rc292-restore-panel,.rc292-messenger-restore-controls,.rc292-conversation-resizer,
 .qpb-v3-panel-toggle,.qpb-v3-conversations-toggle,.qpb-v3-profile-toggle,.qpb-v3-conversation-resizer,
 .qpb-v4-panel-toggle,.qpb-v4-conversations-toggle,.qpb-v4-profile-toggle,.qpb-v4-conversation-resizer,
 .qpb-rc293-inline-eye,.qpb-rc293-restore-eye,.qpb-profile-slide-toggle,
 .qpb-rc294-profile-toggle,.qpb-rc294-conversation-resizer,.qpb-rc296-conversation-resizer,
 .qpb-source-conversation-resizer,.qpb-structural-conversation-gutter
){display:none!important}

/* RC328 live correction: the delivered Customer Profile rail is intentionally
   compact. Keep contact/assignment controls in one intrinsic-safe column instead
   of forcing two fields into half of the 280px rail. */
#unifiedMessengerPane #messengerDetails .profile-field-grid{
  grid-template-columns:minmax(0,1fr)!important;
}
#unifiedMessengerPane #messengerDetails .profile-field-grid .wide{
  grid-column:1!important;
}
#unifiedMessengerPane #messengerDetails :is(.messenger-profile-card,.profile-assignment-card) label,
#unifiedMessengerPane #messengerDetails .profile-field-grid>*{
  min-width:0!important;
}
#unifiedMessengerPane #messengerDetails :is(input,select,textarea){
  width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
}
#unifiedMessengerPane #messengerDetails :is(label span,p,strong,small,.qpb-rc239-stage){
  max-width:100%;overflow-wrap:anywhere;word-break:normal;
}
#unifiedMessengerPane #messengerDetails .qpb-rc239-life>strong{
  flex-wrap:wrap;align-items:flex-start;
}

/* Launcher container has no secondary circle, glow, filter, or shadow. */
#floatingChatLauncher{background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important;backdrop-filter:none!important}
#floatingChatLauncher::before,#floatingChatLauncher::after,
#floatingChatLauncherBtn::before,#floatingChatLauncherBtn::after,
#floatingChatLauncherBtn .floating-chat-launcher-icon::before,
#floatingChatLauncherBtn .floating-chat-launcher-icon::after{
  content:none!important;display:none!important;background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important;
}
#floatingChatLauncherBtn{
  width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;max-width:56px!important;max-height:56px!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;filter:none!important;backdrop-filter:none!important;outline:0;position:relative!important;
  display:grid!important;place-items:center!important;overflow:visible!important;transform:none!important;
}
#floatingChatLauncherBtn:hover,#floatingChatLauncherBtn:focus,#floatingChatLauncherBtn:active{
  border:0!important;background:transparent!important;box-shadow:none!important;filter:none!important;backdrop-filter:none!important;transform:none!important;
}
#floatingChatLauncherBtn .floating-chat-launcher-icon{
  width:56px!important;height:56px!important;display:block!important;line-height:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;filter:none!important;backdrop-filter:none!important;overflow:visible!important;
}
#floatingChatLauncherBtn .floating-chat-launcher-icon>img{display:none!important}
#floatingChatLauncherBtn .qpb-rc296-messenger-art{
  display:block!important;width:56px!important;height:56px!important;border:0!important;background:transparent!important;
  box-shadow:none!important;filter:none!important;overflow:visible!important;
}
#floatingChatLauncherBadge{z-index:5}

@media (min-width:721px){
 #unifiedMessengerPane .messenger-inbox-shell.qpb-rc296-messenger-shell{position:relative;transition:grid-template-columns .16s ease}
 #unifiedMessengerPane .messenger-inbox-shell.qpb-rc296-messenger-shell.qpb-rc296-resizing{transition:none!important}
 #unifiedMessengerPane .qpb-rc296-messenger-shell>:is(.website-chat-list,.website-chat-thread,#messengerDetails){min-width:0!important}
 #unifiedMessengerPane .qpb-rc296-messenger-shell>.website-chat-list{position:relative;min-width:0!important}
 #unifiedMessengerPane .qpb-rc296-messenger-shell>.website-chat-thread{min-width:0!important}
 #unifiedMessengerPane .qpb-rc296-messenger-shell>#messengerDetails{
   min-width:0!important;overflow:hidden;opacity:1;transform:translateX(0);visibility:visible;
   transition:transform .16s ease,opacity .12s ease,visibility 0s linear 0s;
 }

 #unifiedMessengerPane .qpb-messenger-conversation-gutter{
   display:block!important;align-self:stretch;min-width:10px!important;width:10px!important;height:auto!important;
   padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;
   box-shadow:none!important;cursor:col-resize!important;touch-action:none;position:relative;z-index:190;outline:none;
 }
 #unifiedMessengerPane .qpb-messenger-conversation-gutter::after{
   content:"";position:absolute;top:0;bottom:0;left:4px;width:2px;background:#8da6b8;opacity:.95;
   transition:left .1s ease,width .1s ease,background .1s ease;
 }
 #unifiedMessengerPane .qpb-messenger-conversation-gutter:hover::after,
 #unifiedMessengerPane .qpb-messenger-conversation-gutter:focus-visible::after,
 #unifiedMessengerPane .qpb-rc296-resizing>.qpb-messenger-conversation-gutter::after{left:2px;width:6px;background:#1f648f}
 #unifiedMessengerPane .qpb-messenger-conversation-gutter:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
 body.qpb-messenger-panel-resizing{cursor:col-resize!important;user-select:none!important}
 body.qpb-messenger-panel-resizing *{cursor:col-resize!important}

 #unifiedMessengerPane .messenger-inbox-shell.qpb-rc296-messenger-shell.qpb-rc296-profile-hidden>#messengerDetails{
   display:none!important;opacity:0;transform:translateX(100%);visibility:hidden;pointer-events:none;
 }

 /* One profile control only: top-right of the live Messenger shell. */
 #unifiedMessengerPane .qpb-rc296-profile-caret{
   position:absolute;z-index:210;top:8px;right:10px;transform:none;
   width:30px;height:30px;padding:0;border:1px solid #d6e1e8!important;border-radius:8px;
   display:grid;place-items:center;background:rgba(255,255,255,.97)!important;
   color:#35566d;box-shadow:0 2px 7px rgba(15,61,94,.08)!important;cursor:pointer;
   font:800 18px/1 Arial,sans-serif;
   transition:background .12s ease,color .12s ease,transform .12s ease;
 }
 #unifiedMessengerPane .qpb-rc296-profile-caret:hover{background:#eef5f9!important;color:#0f3d5e;transform:translateY(-1px)}
 #unifiedMessengerPane .qpb-rc296-profile-caret:focus-visible{outline:2px solid #2563eb;outline-offset:1px}

}

@media (max-width:720px){
 #unifiedMessengerPane .qpb-rc296-profile-caret,#unifiedMessengerPane .qpb-messenger-conversation-gutter{display:none!important}
}
