.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.order-attachments-block {
  margin: 18px 0 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.44);
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.attachment-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  min-width: 0;
}

.attachment-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-alt);
}

.attachment-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.attachment-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.attachment-info strong,
.attachment-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-info strong {
  font-size: 13px;
}

.attachment-info span {
  color: var(--muted);
  font-size: 12px;
}

.attachment-actions {
  gap: 6px;
}

.attachment-actions .mini-btn {
  padding: 8px 9px;
}
