dialog.modals--main-modal:has(.attachments--modal) {
  width: 518px;
  min-width: 518px;
}

.attachments--modal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.attachments--modal-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.attachments--list {
  width: 100%;
  max-width: 544px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: flex-start;
}

.attachments--list-item {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  max-width: 512px;
}

.attachments--list-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

/* If attachments--list has no attachments--list-item children, show the empty one, otherwise hide it */
.attachments--list:has(> .attachments--list-item) > li.attachments--list-item-empty {
  display: none;
}

li.attachments--list-item-empty {
  width: 100%;
  font-size: var(--rem-14);
  color: var(--text-information);
  text-align: left;
}

.attachments--list-item-name {
  display: flex;
  gap: 0.25rem;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;

  span {
    font-size: var(--rem-14);
    color: var(--text-heading);
    line-height: var(--rem-20);
    font-variation-settings: 'wght' var(--text-medium);
  }
}

.attachments--list-item-info {
  display: flex;
  flex-direction: row;
  gap: 0.25rem;

  span {
    color: var(--text-information);
    font-size: var(--rem-14);
  }
  
  .attachments--list-item-date {
    color: var(--text-additional);
  }
}


.attachments--list > .attachments--list-divider:last-child {
  display: none;
}

.attachments--list-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-subtle);  
  margin-left: 30px;
}


.attachments--divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-primary);
}
