.bubble.document-result {
  width: min(100%, 680px);
  max-width: 680px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.generated-document-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px;
  border: 1px solid #d9cedd;
  border: 1px solid color-mix(in srgb, var(--accent, #8f20ad) 25%, #d9cedd);
  border-radius: 16px;
  background: #fff;
  background: color-mix(in srgb, var(--surface, #fff) 96%, #f5eafb);
  box-shadow: 0 8px 26px rgba(70, 20, 82, .08);
}

.generated-document-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #66147d, #aa25c8);
  font-size: 23px;
}

.generated-document-details {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.generated-document-details strong {
  overflow: hidden;
  color: var(--text, #201424);
  font-size: .98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-document-details small,
.generated-document-details span {
  color: var(--muted, #755f7b);
  font-size: .76rem;
}

.generated-document-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  color: #fff;
  background: #8e1bac;
  font-size: .86rem;
  font-weight: 750;
  text-decoration: none;
}

.generated-document-download:hover,
.generated-document-download:focus-visible {
  background: #701189;
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .generated-document-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .generated-document-icon {
    width: 42px;
    height: 42px;
  }

  .generated-document-download {
    grid-column: 1 / -1;
    width: 100%;
  }
}
