.merge-pdf-hero .converter-hero-copy {
  max-width: 800px;
}

.merge-order-section {
  border-top: 1px solid #e2e7ed;
  margin-top: 28px;
  padding-top: 28px;
}

.merge-preview-list {
  display: grid;
  gap: 10px;
}

.merge-preview-item {
  align-items: center;
  background: #fff;
  border: 1px solid #dce2e9;
  display: grid;
  gap: 14px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  min-height: 76px;
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.merge-preview-item:hover {
  border-color: rgba(223, 30, 47, 0.45);
  box-shadow: 0 8px 24px rgba(18, 39, 66, 0.08);
}

.merge-preview-item.is-dragging {
  opacity: 0.5;
}

.merge-file-icon {
  align-items: center;
  background: #fff1f2;
  color: #df1e2f;
  display: inline-flex;
  font-size: 1.45rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.merge-file-copy {
  min-width: 0;
}

.merge-file-copy strong,
.merge-file-copy small {
  display: block;
}

.merge-file-copy strong {
  color: #122742;
  font: 600 0.94rem var(--heading-font);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merge-file-copy small {
  color: #718096;
  font-size: 0.78rem;
  margin-top: 3px;
}

.merge-preview-actions {
  display: flex;
  gap: 6px;
}

.merge-preview-actions button {
  align-items: center;
  background: #f6f8fa;
  border: 1px solid #dce2e9;
  color: #53647a;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.merge-preview-actions button:last-child {
  color: #df1e2f;
}

.merge-preview-actions button:hover,
.merge-preview-actions button:focus-visible {
  background: #fff1f2;
  border-color: rgba(223, 30, 47, 0.45);
  color: #df1e2f;
}

.merge-related-link {
  align-items: center;
  color: #df1e2f;
  display: inline-flex;
  font: 600 0.95rem var(--heading-font);
  gap: 8px;
  margin-top: 10px;
}

@media (max-width: 575.98px) {
  .merge-order-section {
    margin-top: 22px;
    padding-top: 22px;
  }

  .merge-preview-item {
    gap: 10px;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px;
  }

  .merge-file-icon {
    font-size: 1.2rem;
    height: 40px;
    width: 40px;
  }

  .merge-preview-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .merge-preview-actions button {
    height: 42px;
    width: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .merge-preview-item {
    transition: none;
  }
}
