.emoji-enhance-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.emoji-enhance-btn {
  width: 44px;
  height: 44px;
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.emoji-enhance-btn:hover {
  background: #e2e8f0;
}

.emoji-enhance-btn:active {
  transform: scale(0.95);
}

.emoji-enhance-btn.active {
  background: #dbeafe;
  border-color: #93c5fd;
}

.emoji-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 10050;
  width: min(320px, calc(100vw - 24px));
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid #dbe3ee;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

.emoji-picker-item {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.emoji-picker-item:hover {
  background: #f1f5f9;
}

.chat-compose .emoji-enhance-btn,
.chat-compose .emoji-enhance-wrap .emoji-enhance-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 400;
  border: 1px solid #dbe3ee;
  background: #f8fafc;
}

.chat-compose .emoji-picker {
  left: auto;
  right: 0;
}
