/* Slim form wrapper */
.message-form-slim {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.message-bar {
  padding: 11px 22px;
  flex: 0 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  width: 98%;
  gap: var(--crotchet);
  border-top: 1px solid var(--mb-70);
}

.message-input {
  flex: 1;
  display: flex;
  align-items: baseline;

}

.message-input__textarea {
  display: flex;
  width: 100%;
  border-radius: var(--quaver);
  border: 1px solid var(--mb-70);
  resize: none;
  outline: none;
  min-height: 30px;
  max-height: 100px;
  min-width: 0;
  background: transparent;
  color: var(--mb);
  border-color: transparent;
  outline: none;
  white-space: pre-wrap;
  overflow-y: auto;

  &::placeholder {
    color: var(--mb-70);
    font-size: 14px;
  }

  &:focus {
    border-color: transparent;
    outline: none;
  }
}

.message-input__submit {
  flex: auto 0 0;
  text-transform: none !important;
  border: none;
  padding: var(--crotchet);
  border-radius: var(--quaver);
  cursor: pointer;
}

/* Send icon toggle styles */
.send-icon {
  transition: opacity 150ms ease-in-out;
}

.send-icon--hidden {
  display: none;
}

/* File upload button styles */
.file-upload-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-upload-button {
  cursor: pointer;
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--mb-70);
  border-radius: var(--quaver);
  background: transparent;
  color: var(--mb);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 150ms ease-in-out;
}

.file-upload-button:hover {
  border-color: var(--mb);
  background-color: var(--grey-100);
}

/* Image preview styles */
.file-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--quaver);
  padding: 0 22px;
}

.file-preview-container:not(:empty) {
  padding-top: var(--crotchet);
  padding-bottom: var(--quaver);
}

.file-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--quaver);
  overflow: hidden;
  border: 1px solid var(--grey-200);
}

.file-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--mb);
  color: var(--shw);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

.file-preview-item:hover .file-preview-remove {
  opacity: 1;
}

/* Upload button container - slides up and pushes content */
.upload-button-container {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-left: 36px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-button-container--visible {
  max-height: 60px;
  opacity: 1;
  padding-top: 9px;
  padding-bottom: 12px;
}

.upload-file-button {
  cursor: pointer;
  display: inline-flex;
  padding: 10px 21.5px 11px 21.5px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 3px;
  border: 1px solid var(--DC-Greys-900, #3B3933);
  background: var(--shw);

  /* Text styles */
  color: var(--DC-Greys-900, #3B3933);
  text-align: center;
  leading-trim: both;
  text-edge: cap;
  font-family: Montserrat;
  font-size: 12px;
  font-style: normal;
  font-weight: 540;
  line-height: normal;
  letter-spacing: 0.96px;
  text-transform: uppercase;

  transition: all 150ms ease-in-out;
  white-space: nowrap;
}

.upload-file-button:hover {
  border-color: var(--mb);
  background-color: var(--grey-100);
}

/* Plus button rotation when active */
.plus-button--active {
  transform: rotate(45deg);
  transition: transform 250ms ease-in-out;
}

.icon-button {
  transition: transform 250ms ease-in-out;
}