.yal-emoji-popover {
  position: fixed;
  z-index: 12000;
  width: 352px;
  max-width: calc(100vw - 16px);
  background: #000;
  border: 1px solid #2f3336;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.yal-emoji-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 8px 4px;
  border-bottom: 1px solid #2f3336;
  overflow-x: auto;
}

.yal-emoji-tab {
  border: none;
  background: transparent;
  color: #71767b;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.yal-emoji-tab.is-active {
  color: #1d9bf0;
  background: rgba(29, 155, 240, 0.12);
}

.yal-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  padding: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.yal-emoji-item {
  border: none;
  background: transparent;
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 1;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.yal-emoji-item:hover,
.yal-emoji-item:focus-visible {
  background: rgba(231, 233, 234, 0.08);
  outline: none;
}

.yal-emoji-item img {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.x-emoji-trigger.is-open {
  color: #1d9bf0;
  background: rgba(29, 155, 240, 0.12);
}
