/* Keep the conversation available without placing gameplay in a modal's inert area. */
.pd-live-chat.g-chat-window{
 position:fixed;z-index:84;display:grid;grid-template-rows:auto minmax(0,1fr);
 inset:auto 12px 14px auto!important;width:min(390px,calc(100vw - 24px))!important;
 height:min(490px,72dvh)!important;max-height:none!important;margin:0!important;
}
.pd-live-chat .g-chat-feed{min-height:0}
@media(min-width:1101px){
 body:has(.pd-live-chat) .main-shell{padding-right:405px}
}
@media(max-width:1100px){
 body:has(.pd-live-chat){
  --pd-chat-height:min(295px,36dvh);
  --pd-chat-dock:calc(74px + env(safe-area-inset-bottom,0px));
 }
 body:has(.pd-live-chat) .atlas-shell .main-shell{
  box-sizing:border-box;
  max-height:calc(var(--game-viewport-height,100dvh) - var(--pd-chat-height) - var(--pd-chat-dock) - 8px);
  overflow-y:auto;padding-bottom:94px;overscroll-behavior-y:contain;
 }
 .pd-live-chat.g-chat-window{
  inset:auto 8px var(--pd-chat-dock) 8px!important;
  width:auto!important;max-width:none!important;height:var(--pd-chat-height)!important;
 }
 .pd-live-chat .g-chat-tabs{padding-block:3px}
 .pd-live-chat .g-chat-status{display:none}
}

@media(max-width:760px){
 body:has(.pd-live-chat) .g-draw .g-draw-actions,
 body:has(.pd-live-chat) .g-activity .g-activity-actions{
  bottom:calc(var(--pd-chat-dock) + var(--pd-chat-height) + 12px)!important;
 }
}
