.guestSelectionSheet[hidden] {
  display: none !important;
}

html.guestSelectionSheetOpen,
html.guestSelectionSheetOpen body {
  overflow: hidden;
  overscroll-behavior: none;
}

.guestSelectionSheet {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  align-items: end;
}

.guestSelectionSheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
}

.guestSelectionSheet__panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  width: min(100%, var(--beginner-content-max, 560px));
  max-height: min(72dvh, 620px);
  margin: 0 auto;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 -18px 42px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  overscroll-behavior: contain;
}

.guestSelectionSheet__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.guestSelectionSheet__header h2,
.guestSelectionSheet__header p {
  margin: 0;
}

.guestSelectionSheet__header h2 {
  font-size: 1.4rem;
  line-height: 1.1;
  font-weight: 900;
}

.guestSelectionSheet__header p {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.guestSelectionSheet__close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-borderMuted);
  border-radius: 999px;
  background: var(--color-surface2);
  color: var(--color-text);
  cursor: pointer;
}

.guestSelectionSheet__close:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--guest-list-accent) 26%, transparent);
  outline-offset: 2px;
}

.guestSelectionSheet__lines {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.guestSelectionSheet__bottom {
  display: grid;
  gap: 14px;
}

.guestSelectionLine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-borderMuted);
}

.guestSelectionLine__name {
  min-width: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.guestSelectionLine__meta {
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.25;
}

.guestSelectionLine__price {
  color: var(--guest-list-accent);
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.guestSelectionSheet__footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.guestSelectionSheet__footer strong {
  color: var(--guest-list-accent);
  font-size: 1.25rem;
  font-weight: 900;
  white-space: nowrap;
}
