.guests {
  padding-bottom: 300px;
}

.buildMode .guests {
  display: none;
}
.guestStep .guests {
  display: block !important;
}

.guestRow {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 8px;
  padding: 4px 8px;
  width: 100%;
  min-height: 46px;
  background: var(--surface);
  font-size: 0.8rem;
  line-height: 1.12rem;
  font-weight: 600;
  color: var(--textMuted);
  cursor: default;
}
.guestRow:hover {
  background: var(--rowHighlight);
}
.guestRow p {
  font-size: 0.8rem;
  line-height: 1.12rem;
}

.guestSpace {
  width: 100%;
  pointer-events: none;
  transition: 0.2s;
}
.guestName {
  text-align: left;
  flex: 1;
}
.guestBall {
  width: 36px;
  height: 36px;
  background: var(--bgInset);
  border-radius: 50%;
  transition: 0.2s;
  /* Hold-to-grab on touch (touch.ts): no callout, selection or tap flash. */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.guestBall:hover {
  width: 40px;
  height: 40px;
  margin: -2px;
  box-shadow: 0 0 3px #0006;
  cursor: grab;
}
.guestBall .nameContainer {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
}
.guestBall p {
  position: absolute;
  top: 50%;
  left: 50%;
}
.guestRow .guestBall {
  margin-right: 8px;
}
.guestRow .guestBall:hover {
  margin-right: 6px;
}

.highlightedGuest {
  background: var(--rowHighlight);
  border-color: var(--highlightBorder);
}
/* .highlightedGuest .guestBall {
  background: var(--highlight);
} */

.grabGuestBall {
  width: 40px;
  height: 40px;
  background: var(--bgInset);
  border-radius: 50%;
  position: absolute;
  pointer-events: none;
  opacity: 0.8;
  will-change: transform;
}
.grabGuestBall p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.grabRow {
  position: absolute;
}

.guestGroup {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
}
.guestGroupEnd {
  height: 8px;
  width: 100%;
}
.groupBorder {
  position: absolute;
  top: 11px;
  left: -6px;
  right: -6px;
  bottom: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: 0.2s;
}
.newGroup {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.2s;
}
.newGroupBorder {
  position: absolute;
  left: -6px;
  right: -6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  opacity: 0;
  transition: 0.2s;
}
.groupName {
  height: 1.4rem;
  padding: 0 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: clip;
  background: var(--bg);
  max-width: 300px;
  transition: 0.2s;
  cursor: pointer;
}
.groupName:hover {
  color: var(--gold);
}
.preferenceMode .groupName:hover {
  color: inherit;
  cursor: default;
}
.buildMode .groupName:hover {
  color: inherit;
  cursor: default;
}

/* .guestGroup:has(.groupName:hover) .groupBorder {
  border-color: var(--gold);
} */

.selectedGroupBorder {
  border-color: var(--gold);
}

.preferenceMode .highlightedGuest .guestBall {
  display: none;
}
.buildMode .guestRow .guestBall {
  display: none;
}
.buildMode .guestRow {
  cursor: default;
}
.preferenceMode .guestRow {
  cursor: default;
}
/* .placementStep .guestRow .deleteIcon {
  display: none;
} */
.groupSettingIcon {
  background: var(--bg);
  padding: 0 8px;
  cursor: pointer;
  transition: 0.2s;
}
.groupSettingIcon:hover {
  color: var(--gold);
}

.rowIconButton {
  display: flex;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
}
.rowIconButton:hover {
  background: #0001;
}

.reorderIcon {
  opacity: 0.5;
  transition: 0.2s;
  cursor: grab;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.reorderIcon:hover {
  opacity: 1;
}

#guestSearchRow {
  position: relative;
  margin-top: 8px;
}
#guestSearchRow svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--textMuted);
  pointer-events: none;
  z-index: 1;
}
#guestSearchRow input {
  margin: 0;
  padding-left: 40px;
}
#allGuests.isFiltered .reorderIcon {
  display: none;
}
.guestSearchEmpty {
  padding: 8px;
  font-size: 0.8rem;
  color: var(--textMuted);
}
