.guest-picker {
  position: relative;
}

.guest-picker[data-open="true"] {
  z-index: 60;
}

.guest-picker[data-open="true"] .guest-picker-chevron {
  transform: rotate(180deg);
}

.guest-picker-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  z-index: 70;
  width: min(22rem, calc(100vw - 3rem));
  max-height: min(28rem, calc(100vh - 10rem));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: rgba(29, 29, 29, 0.96);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  padding: 0.9rem 1rem;
}

.guest-picker-panel::-webkit-scrollbar {
  width: 4px;
}

.guest-picker-panel::-webkit-scrollbar-track {
  background: transparent;
}

.guest-picker-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.guest-picker-list {
  display: flex;
  flex-direction: column;
}

.guest-picker-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.25rem;
}

.guest-picker-group + .guest-picker-group {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.guest-picker-group__copy {
  min-width: 0;
  flex: 1;
}

.guest-picker-group__title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.guest-picker-group__hint {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.8rem;
  line-height: 1.35;
}

.guest-picker-controls {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.7rem;
}

.guest-picker-step {
  display: inline-flex;
  height: 2.4rem;
  width: 2.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.guest-picker-step:hover:not(:disabled),
.guest-picker-step:focus-visible {
  border-color: rgba(196, 156, 116, 0.45);
  background: rgba(196, 156, 116, 0.14);
  color: #ffffff;
  outline: none;
}

.guest-picker-step:disabled {
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.28);
}

.guest-picker-count {
  display: inline-flex;
  min-width: 3rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196, 156, 116, 0.2);
  border-radius: 999px;
  background: rgba(196, 156, 116, 0.1);
  padding: 0 0.85rem;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 600;
}

.guest-picker-room__header {
  padding: 0.85rem 0.25rem 0.1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guest-picker-room + .guest-picker-room .guest-picker-room__header {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .guest-picker-panel {
    left: 0;
    transform: none;
  }
}
