.emoji-reactions {
  position: relative;
}

.emoji-picker {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000; /* Higher z-index to ensure it's above other elements */
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-top: 0.5rem;
  min-width: 200px; /* Ensure it has a minimum width */
  max-width: 300px; /* Limit maximum width */
}

.emoji-picker.hidden {
  display: none;
}

.common-emojis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
}

.emoji-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  font-size: 1.25rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.emoji-button:hover {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
}

.emoji-button:active {
  background-color: #e5e7eb;
}
