.sb-social-row {
  display: contents;
}

.sb-social-cell {
  display: flex;
  min-width: 0;
  pointer-events: auto;
  align-items: center;
  min-height: 34px;
}

.sb-social-cell--self {
  grid-column: 1;
  grid-row: 2;
  justify-content: flex-start;
}

.sb-social-cell--other {
  grid-column: 3;
  grid-row: 2;
  justify-content: flex-end;
}

.sb-social-slot {
  display: flex;
  min-width: 0;
  justify-content: center;
}

.sb-social-slot--readonly {
  opacity: 0.96;
}

.sb-social-slot--locked {
  opacity: 0.62;
  filter: saturate(0.5);
}

.sb-social-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sb-social-readonly {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.sb-social-cell--other .sb-social-readonly,
.sb-social-cell--other .sb-social-trigger {
  justify-content: flex-end;
  width: 100%;
}

.sb-react-generic,
.sb-react-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  white-space: nowrap;
}

.sb-react-chip {
  margin-inline: 6px 0;
}

.sb-react-chip--other {
  direction: ltr;
}

.sb-react-chip--active {
  color: var(--gold);
}

.sb-react-generic {
  font-size: 1.55rem;
  line-height: 1;
}

.sb-react-generic--self {
  font-size: 2.32rem;
}

.sb-react-chip-emoji {
  font-size: 1.26rem;
  line-height: 1;
}

.sb-react-chip-count {
  font-size: 0.94rem;
  font-weight: 700;
  color: currentColor;
  font-variant-numeric: tabular-nums;
}

.sb-social-slot--self .sb-react-chip-emoji,
.sb-social-slot--self .sb-react-generic {
  font-size: 2.02rem;
}

.sb-social-slot--self .sb-react-chip-count {
  font-size: 1.12rem;
}

.sb-social-slot.is-open .sb-social-trigger {
  display: none;
}

.sb-react-picker {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
}

.sb-social-cell--other .sb-react-picker {
  justify-content: flex-end;
}

.sb-social-cell--other .sb-social-readonly,
.sb-social-cell--other .sb-social-trigger {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 8px;
}

.sb-social-cell--other .sb-social-slot {
  justify-content: flex-end;
}

.sb-social-cell--other .sb-react-chip {
  margin-inline: 0 6px;
}

.sb-react-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.sb-react-btn:hover {
  border-color: rgba(245,197,24,0.35);
  transform: translateY(-1px);
}

.sb-react-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.sb-react-btn--active {
  border-color: rgba(245,197,24,0.7);
  background: rgba(245,197,24,0.12);
  box-shadow: 0 0 0 1px rgba(245,197,24,0.12) inset;
}

.sb-react-emoji {
  font-size: 1.32rem;
  line-height: 1;
}

@media (max-width: 560px) {
  .sb-react-generic {
    font-size: 1.34rem;
  }

  .sb-react-generic--self {
    font-size: 1.92rem;
  }

  .sb-react-chip-emoji {
    font-size: 1.08rem;
  }

  .sb-react-chip-count {
    font-size: 0.84rem;
  }

  .sb-social-slot--self .sb-react-chip-emoji,
  .sb-social-slot--self .sb-react-generic {
    font-size: 1.76rem;
  }

  .sb-social-slot--self .sb-react-chip-count {
    font-size: 1rem;
  }

  .sb-react-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .sb-react-emoji {
    font-size: 1.16rem;
  }
}
