.attachmentList {
  list-style: none;
  padding-left: 0;
}

.attachment {
  display: flex;
  gap: 0;
  border-radius: 5px;
  padding: 6px;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  align-items: center;
}

.attachmentLink {
  text-decoration: none;
  border-bottom: none;
}

.attachmentLink:hover {
  border-bottom: none;
  background-color: var(--ds-color-accent-surface-default);
}

.attachmentIcon {
  font-size: 2.2rem;
  flex-shrink: 0;
  margin-right: 5px;
  align-self: center;
}

.truncate,
.extension {
  white-space: nowrap;
}

.truncate {
  text-overflow: ellipsis;
  overflow: hidden;
}

.attachmentContent {
  display: flex;
  align-items: center;
  width: 100%;
}

.attachmentText {
  display: flex;
  flex-wrap: wrap;
  min-width: 0; /* Allows truncation to work in flex containers */
  width: 100%;
  gap: 4px;
}

.description {
  word-break: break-word;
  color: var(--fds-semantic-text-neutral-default);
}

.filename {
  display: flex;
  min-width: 0; /* Allows truncation to work in flex containers */
}
