.container {
  flex: 1;
  min-height: 32px;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

.attachmentList {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;

  &::-webkit-scrollbar {
    display: none;
  }
}

.attachmentChip {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 4px 0 8px;
  border-radius: var(--border-radius-small);
  background-color: rgba(var(--color-neutral-40-rgb), var(--opacity-level-light));
  color: var(--color-neutral-80);
  font-size: 12px;
  flex-shrink: 0;
  cursor: default;

  &:hover {
    background-color: rgba(var(--color-neutral-40-rgb), var(--opacity-level-medium));
  }
}

.imageChip {
  padding-left: 4px;
}

.chipThumbnail {
  width: 24px;
  height: 24px;
  border-radius: var(--border-radius-tiny);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.chipName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.chipRemove {
  flex-shrink: 0;
}

.imagePreview {
  img {
    width: 1080px;
    height: 1080px;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius-small);
    display: block;
  }
}

.placeholder {
  color: var(--color-neutral-50);
  left: 4px;
  pointer-events: none;
  position: absolute;
  top: 4px;
  user-select: none;
}

.textfieldRow {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
}

.textfield {
  border: none;
  height: 100%;
  flex: 1;
  max-width: 100%;
  min-width: 0;
  outline: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 4px;
  white-space: pre-wrap;
  word-break: break-word;

  &[aria-disabled='true'] {
    cursor: not-allowed;
    opacity: 0.5;
  }
}

.fileInput {
  height: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

.tag {
  display: inline-block;
  line-height: 1;
  padding: 2px 4px;
  cursor: default !important;
  border-radius: var(--border-radius-tiny);
  color: var(--color-neutral-80);
  background-color: rgba(var(--color-neutral-40-rgb), var(--opacity-level-medium));

  &:active {
    opacity: 0.8;
  }
  &:not(.partial) {
    &.mention {
      color: var(--color-accent-60);
      background-color: rgba(var(--color-accent-30-rgb), var(--opacity-level-medium));
    }

    &.action {
      color: var(--color-support-quaternary-60);
      background-color: rgba(var(--color-support-quaternary-30-rgb), var(--opacity-level-light));
    }
  }
}
