.gallery-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  margin-bottom: 0rem;
  padding-bottom: 0rem;
  border-top: 1px solid #e0e0e0;
  flex-wrap: nowrap;
  position: relative;
  min-width: 0;
}

.gallery-separator {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-accent);
  align-self: center;
  flex-shrink: 0;
}

.gallery-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  flex: 1;
  min-width: 0;
}

.gallery-item-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 160px;
  word-break: break-word;
}

.gallery-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
  margin-right: 0.5rem;
  flex-shrink: 0;
  align-self: center;
}

#deleteBtn {
  padding: 0.75rem 1.5rem;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

#selectionCount {
  color: var(--color-text-secondary);
}

/* Same breakpoint duplicated in base.css and order-ui.css — keep in sync. */
@media (max-width: 768px) {
  .gallery-row {
    flex-direction: column;
    align-items: center;
  }

  .gallery-separator {
    transform: rotate(90deg);
  }

  .gallery-checkbox {
    width: 24px;
    height: 24px;
  }
}
