/* Styling for structured interactions */

.conversation {
  border: 1px solid var(--bs-border-color);
  padding: 1em;
}

.message {
  padding: 0.5em;
}

.message > * blockquote {
  background-color: #fff8;
  border-radius: var(--bs-border-radius);
}

.message-topic {
  padding: 0.5em;
  border: 1px solid black;
}

.chat-area {
  position: relative;
  width: 100%;
  background-color: #fff;
  border: 1px solid var(--bs-border-color);
  border-bottom: none;  
  border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
}

.chatlist {
  outline: 0;
  overflow: hidden;
  width: 300px;
  float: left;
}

.chat-area .modal-content {
  border: none;
  border-radius: 0;
  outline: 0;
  transition: all 1s ease;
}

.chatbox {
  width: auto;
  overflow: hidden;
  border-left: 1px solid var(--bs-border-color);;
}

.chat-area .nav-tabs {
  border-bottom: 1px solid var(--bs-border-color);;
  align-items: center;
  justify-content: space-between;
  flex-wrap: inherit;
}

.chat-area .nav-tabs .nav-item {
  width: 100%;
}

.chat-area .nav-tabs .nav-link {
  width: 100%;
  color: var(--bs-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 5px;
  margin-bottom: -1px;
  background: 0 0;
  border: 1px solid transparent;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

.chat-area .nav-tabs .nav-item.show .nav-link,
.chat-area .nav-tabs .nav-link.active {
  color: #222;
  background-color: #fff;
  border-color: transparent transparent #000;
}

.chat-area .nav-tabs .nav-link:focus,
.chat-area .nav-tabs .nav-link:hover {
  border-color: transparent transparent #000;
  isolation: isolate;
}

.chat-header > ul {
  min-height: 45px;
}

.chat-list h3 {
  color: #222;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 0;
}

.chat-list p {
  color: #343434;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.chat-list-item {
  position: relative;
  text-decoration: none;
}

.msg-head h3 {
  color: #222;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.msg-head {
  border-bottom: 1px solid var(--bs-border-color);
  min-height: 45px;
}

@media (max-width: 767px) {
  .chatlist {
    width: 100%;
  }

  .chatbox {
    width: 100%;
    position: absolute;
    left: 1000px;
    right: 0;
    background: #fff;
    transition: all 0.5s ease;
    border-left: none;
  }

  .showbox {
    left: 0 !important;
    transition: all 0.5s ease;
  }

  .msg-head h3 {
    font-size: 14px;
  }

  .msg-head p {
    font-size: 12px;
  }

  .msg-head .flex-shrink-0 img {
    height: 30px;
  }

  .chat-list h3 {
    font-size: 14px;
  }

  .chat-list p {
    font-size: 12px;
  }
}