.ff-retrieval-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

.ff-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

#image-code {
  flex: 1 1 240px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.ff-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.ff-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ff-card img {
  width: 100%;
  height: auto;
  display: block;
}

.ff-card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
}

.ff-btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  flex: 1;
}

.ff-btn-primary:hover {
  background: #b91c1c;
  color: #fff;
}

.ff-btn-secondary {
  background: #276040;
  color: #fff;
}

.ff-btn-outline {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.ff-message.ff-error {
  padding: 0.75rem 1rem;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 6px;
  margin-bottom: 1rem;
}
