/* Keep the desktop agent console inside the viewport. Only data panes scroll. */
.seat-client-copy {
  min-width: 0;
}

.seat-chat-header #conversation-title { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.seat-chat-header #conversation-title strong, .seat-chat-header #conversation-title small { display: block; }
.seat-chat-header button { flex: none; border: 1px solid #e3c8cb; border-radius: 8px; background: #fff; color: #a71625; padding: 8px 10px; font-size: 12px; font-weight: 700; }
.seat-chat-header button[hidden] { display: none; }
.seat-chat-header .seat-close:disabled { opacity: .55; }

.seat-client-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-client-copy small {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.seat-client-copy small span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.seat-client-copy small span + span::before {
  width: 1px;
  height: 12px;
  margin-right: 3px;
  background: #d9dde3;
  content: "";
}

.seat-client-copy small b {
  color: #4c5867;
  font-weight: 700;
}

.seat-conversation-copy strong em {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 5px;
  border-radius: 8px;
  background: #fff0f1;
  color: #c61422;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  vertical-align: 1px;
}

.seat-conversation.needs-reply {
  background: #fffafa;
}

.seat-conversation.needs-reply .seat-avatar {
  box-shadow: 0 0 0 2px #cf17251f;
}

@media (min-width: 761px) {
  html,
  .seat-body {
    height: 100%;
    overflow: hidden;
  }

  .seat-workbench {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .seat-layout {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .seat-queue,
  .seat-chat {
    height: 100%;
    min-height: 0;
  }

  .seat-conversations,
  .seat-messages {
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .seat-chat > header {
    position: relative;
    z-index: 2;
    background: #fff;
    box-shadow: 0 3px 10px #2434490a;
  }

  .seat-composer {
    position: relative;
    z-index: 2;
    box-shadow: 0 -3px 12px #24344912;
  }

  .seat-chat .status {
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 760px) {
  html, .seat-body { height: 100%; overflow: hidden; }
  .seat-workbench { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .seat-layout { height: 100%; min-height: 0; display: block; padding: 6px; }
  .seat-queue, .seat-chat { height: 100%; min-height: 0; }
  .seat-queue { display: grid; grid-template-rows: auto minmax(0, 1fr); }
  .seat-conversations, .seat-messages { overflow: auto; overscroll-behavior: contain; }
  .seat-chat { display: none; }
  .seat-workbench.chat-open .seat-queue { display: none; }
  .seat-workbench.chat-open .seat-chat { display: grid; }
  .seat-chat > header { flex-wrap: wrap; gap: 7px; padding: 9px; }
  .seat-chat-header .seat-back { order: -2; }
  .seat-chat-header .seat-close { margin-left: auto; order: -1; }
  .seat-chat-header #conversation-title { flex-basis: 100%; }
  .seat-conversation { grid-template-columns: 38px minmax(0,1fr) auto; padding: 13px; }
  .seat-conversation-copy small, .seat-conversation time { display: block; }
  .seat-composer { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .seat-conversation-copy strong em {
    display: none;
  }

  .seat-client-copy small {
    display: block !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .seat-client-copy small span {
    display: inline;
  }

  .seat-client-copy small span + span::before {
    display: none;
  }
}

.seat-composer {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

@media (max-width: 760px) {
  .seat-composer {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .seat-composer > button {
    grid-column: 2;
  }
}
