:root {
  --body-bg: #fff;
  --msger-bg: #fff;
  --left-msg-bg: #f3f3f7;
  --right-msg-bg: #e8ecff;
  --accent: #3B4EF8;
}

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

.msger {
  display: flex;
  flex-flow: column wrap;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  height: calc(100% - 50px);
  border: none;
  border-radius: 0;
  background: var(--msger-bg);
  box-shadow: none;
  font-family: sohne, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media screen and (min-width: 769px) {
  .msger {
    max-width: 650pt;
  }
}

.msger-header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: var(--border);
  background: #fff;
  color: #111;
}

.msger-chat {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 64px 0;
}

.msger-chat::-webkit-scrollbar {
  width: 6px;
}

.msger-chat::-webkit-scrollbar-track {
  background: #f3f3f7;
}

.msger-chat::-webkit-scrollbar-thumb {
  background: #d9d9d9;
}

.msg {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}

.msg:last-of-type {
  margin: 0;
}

.msg-img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}

.msg-bubble {
  max-width: calc(min(100%, 600px) - 70px); 
  border-radius: 15px;
  background: var(--left-msg-bg);
  padding: 5px;
}

.msg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.msg-info-name {
  margin-right: 10px;
  font-weight: bold;
}

.msg-info-time {
  font-size: 0.85em;
}

.left-msg .msg-bubble {
  border-bottom-left-radius: 0;
}

.right-msg {
  flex-direction: row-reverse;
}

.right-msg .msg-bubble {
  background: var(--right-msg-bg);
  color: #111;
  border-bottom-right-radius: 0;
}

.right-msg .msg-img {
  margin: 0 0 0 10px;
}

.msger-inputarea {
  display: flex;
  padding: 0 5px 5px;
  background: #fff;
  align-items: flex-end;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  position: sticky;
  left: 0;
  right: 0;
  bottom: 5px;
}

@media screen and (max-width: 768px) {
  .msger-inputarea {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom) + 5px);
  }

  .msger-chat {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }

  .chat-scroll-bottom {
    bottom: calc(80px + env(safe-area-inset-bottom) + 45px);
  }
}

@media screen and (min-width: 1301px) {
  .msger-inputarea {
    left: 158pt;
    right: auto;
    width: calc(100% - 158pt);
    max-width: 900px;
  }
}

@media screen and (max-width: 1300px) {
  .msger-inputarea {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
  }
}

.msger-inputarea * {
  border: none;
  border-radius: 3px;
  font-size: 1em;
}

.msger-input {
  flex: 1 1 0%;
  min-width: 0;
  width: auto;
  background: #f6f6f6;
  color: #111;
  height: 30px;
  padding: 0 10px 0 10px;
  box-sizing: border-box;
}

.msger-send-btn {
  margin-left: 5px;
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border: 1pt solid var(--accent);
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
  padding: 0 14px;
  height: 30px;
  width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.msger-send-btn:hover {
  background: #fff;
  color: var(--accent);
}

.msg-text {
  margin: 0.3em 0 0.4em 0;
  line-height: 1.5em;
  font-size: 13pt;
}

#msg-welcome {
  text-align: left;
}

.msg-text ul,
.msg-text ol {
  margin: 0.4em 0;
  padding-left: 1.2em;
  white-space: normal;
}

.msg-text li {
  padding-left: 0;
  white-space: normal;
}

.tablink {
  display: block;
  color: #111;
  text-align: left;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 16px;
  border: none;
  background-color: #fff;
  width: 100%;
  cursor: pointer;
  transition: 0.3s;
}

.tablink.active {
  background-color: var(--accent);
  color: #fff;
}


.tabcontent {
  display: none;
  padding: 20px;
  height: 100%;
}

#tab1 {
  display: block;
}

/* .sidebar-header {
     font-weight: bold;
     text-align: center;
     margin-bottom: 26px;
     cursor: auto;
} */
.delete-button {
  background-color: #3B4EF8;
  border: 1pt solid #3B4EF8;
  padding: 4pt 8pt 2pt 8pt;
  margin-right: 5px;
  font-family: sohne, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: rgb(255, 255, 255);
  text-decoration: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 3pt;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.delete-button:hover {
    background-color: white;
    color: #3B4EF8;
}

.delete-button:active {
    background-color: #3B4EF8;
    color: #3B4EF8;
}

.delete-button .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.delete-button .icon svg {
  display: block;
}

.msger-send-btn .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.msger-send-btn .icon svg {
  display: block;
}

.chat-scroll-bottom {
  position: fixed;
  left: 40%;
  bottom: calc(5px + 30px + 20px);
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #8D3BF8;
  color: white;
  border: 1pt solid #8D3BF8;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 125;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

@media screen and (min-width: 769px) {
  .parent#parcourir {
    padding-bottom: 60px;
  }
}

.chat-scroll-bottom.is-visible {
  display: inline-flex;
}

.chat-scroll-bottom:hover {
  background: white;
  color: #8D3BF8;
}

@media screen and (max-width: 768px) {
  .chat-scroll-bottom {
    bottom: calc(80px + env(safe-area-inset-bottom) + 45px);
    left: 50%;
  }
}

.chat-scroll-bottom:focus,
.chat-scroll-bottom:focus-visible {
  outline: none;
  box-shadow: none;
}

.chat-scroll-bottom::before,
.chat-scroll-bottom::after {
  content: none;
}

.id_session
{
  display: none;
}

.chat-scroll-bottom[aria-label]:hover::before,
.chat-scroll-bottom[aria-label]:focus::before,
.chat-scroll-bottom[aria-label]:hover::after,
.chat-scroll-bottom[aria-label]:focus::after {
  content: none !important;
}
