body.imc-fast-chat .imc {
  padding-bottom: 34px;
}

body.imc-fast-chat .imc-head {
  padding-top: 42px;
  padding-bottom: 30px;
}

body.imc-fast-chat .imc-shell {
  height: min(720px, calc(100vh - 210px));
  min-height: 540px;
  margin-top: 20px;
}

body.imc-fast-chat .imc-thread {
  min-height: 0;
}

body.imc-fast-chat .imc-messages {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

body.imc-fast-chat .imc-messages > div {
  padding: 10px 13px;
  border-radius: 5px 17px 17px 17px;
  box-shadow: 0 2px 7px rgba(16, 56, 47, .05);
}

body.imc-fast-chat .imc-messages > .mine {
  border-radius: 17px 5px 17px 17px;
}

body.imc-fast-chat .imc-message-pending {
  opacity: .68;
}

body.imc-fast-chat .ieta-read-receipt {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
  margin-top: 7px;
  color: rgba(255, 255, 255, .78);
  font-size: 9px;
  line-height: 1.35;
}

body.imc-fast-chat .ieta-read-receipt > small {
  margin: 0;
  font-size: 8px;
}

body.imc-fast-chat .ieta-read-receipt--read > span {
  color: #9ee6c0;
  font-weight: 800;
}

body.imc-fast-chat .ieta-receipt-unlock {
  flex-basis: 100%;
  justify-self: end;
  color: #f1cf74;
  font-size: 9px;
  font-weight: 800;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.imc-fast-chat .ieta-receipt-unlock:hover {
  color: #fff0bd;
}

body.imc-fast-chat .imc-compose {
  position: sticky;
  z-index: 3;
  bottom: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 9px;
  padding: 11px 14px;
  box-shadow: 0 -8px 24px rgba(16, 56, 47, .05);
}

body.imc-fast-chat .imc-new .imc-compose > label:first-of-type {
  display: none;
}

body.imc-fast-chat .imc-rich-editor {
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid #cfd2cb;
  border-radius: 16px;
  background: #fff;
}

body.imc-fast-chat .imc-editor-tools {
  display: flex;
  gap: 2px;
  padding: 5px 8px 0;
}

body.imc-fast-chat .imc-editor-tools button {
  width: auto;
  min-width: 28px;
  padding: 6px 8px;
  border-radius: 7px;
  background: transparent;
  color: #506861;
  box-shadow: none;
  font-size: 10px;
}

body.imc-fast-chat .imc-editor-surface {
  min-height: 42px;
  max-height: 132px;
  overflow-y: auto;
  padding: 8px 12px 11px;
  outline: 0;
  color: #10382f;
  font-size: 14px;
  line-height: 1.45;
}

body.imc-fast-chat .imc-editor-surface:empty::before {
  color: #89958f;
  content: attr(data-placeholder);
  pointer-events: none;
}

body.imc-fast-chat .imc-compose > button:last-of-type {
  min-width: 88px;
  padding: 14px 17px;
  border-radius: 999px;
}

body.imc-fast-chat .imc-compose > button:last-of-type span {
  margin-left: 5px;
}

body.imc-fast-chat .imc-fast-status {
  position: absolute;
  right: 20px;
  bottom: 2px;
  color: #6b7b75;
  font-size: 9px;
}

body.imc-fast-chat .imc-horse-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid #ded4bd;
  border-radius: 12px;
  background: #fff;
  color: #10382f;
  text-decoration: none;
}

body.imc-fast-chat .imc-horse-context span {
  grid-column: 1;
  color: #a27c32;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.imc-fast-chat .imc-horse-context strong {
  grid-column: 1;
  overflow: hidden;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.imc-fast-chat .imc-horse-context em {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #8b6828;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 760px) {
  body.imc-fast-chat .imc-head {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  body.imc-fast-chat .imc-shell {
    height: auto;
    min-height: calc(100vh - 180px);
  }

  body.imc-fast-chat .imc-thread {
    min-height: 68vh;
  }

  body.imc-fast-chat .imc-inbox {
    max-height: 155px;
  }

  body.imc-fast-chat .imc-compose {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.imc-fast-chat .imc-compose > button:last-of-type {
    width: auto;
    min-width: 70px;
    padding-right: 13px;
    padding-left: 13px;
  }

  body.imc-fast-chat .imc-horse-context strong {
    white-space: normal;
  }
}
