.gift-picker {
  width: min(440px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 32px));
  padding: 24px;
  border: 1px solid #e8dafa;
  border-radius: 22px;
  color: #382b58;
  background: #fffdfd;
  box-shadow: 0 18px 55px #382b5840;
}

.gift-picker button {
  margin-top: 0;
}

.gift-picker::backdrop {
  background: #21193699;
  backdrop-filter: blur(3px);
}

.gift-picker h2 {
  margin: 0 0 8px;
}

.gift-picker p {
  line-height: 1.5;
}

.gift-picker input {
  width: 100%;
  border: 2px solid #e8dafa;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
}

.gift-picker-results {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.gift-recipient {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 0;
  border-radius: 12px;
  color: #382b58;
  background: #f3eaff;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.gift-recipient:hover:not(:disabled),
.gift-recipient:focus-visible {
  outline: 3px solid #37bdb6;
  outline-offset: 2px;
  background: #e8dcff;
}

.gift-recipient:disabled {
  color: #77717f;
  background: #eeeef0;
  cursor: not-allowed;
}

.gift-recipient-unavailable {
  font-size: .85rem;
  font-weight: 600;
}

.gift-picker-status {
  min-height: 1.5em;
  margin: 10px 0;
}

.gift-picker-cancel {
  display: block;
  margin-left: auto;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  color: #382b58;
  background: #efe5ff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
