.hi-hostel-picker {
  position: relative;
  width: 100%;
}

.hi-hostel-picker_input-wrap {
  position: relative;
}

.hi-hostel-picker_input {
  width: 100%;
}

.hi-hostel-picker_clear {
  position: absolute;
  top: 50%;
  right: 0.875rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}

.hi-hostel-picker[data-has-value="true"] .hi-hostel-picker_clear {
  opacity: 1;
  pointer-events: auto;
}

.hi-hostel-picker_list {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  z-index: 100;
  display: none;
  max-height: 20rem;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.hi-hostel-picker[data-open="true"] .hi-hostel-picker_list {
  display: block;
}

.hi-hostel-picker_item {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.hi-hostel-picker_item:last-child {
  border-bottom: 0;
}

.hi-hostel-picker_item:hover,
.hi-hostel-picker_item:focus-visible,
.hi-hostel-picker_item.is-active {
  background: rgba(0, 0, 0, 0.045);
}

.hi-hostel-picker_item-name {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 600;
  line-height: 1.25;
}

.hi-hostel-picker_item-meta {
  display: block;
  font-size: 0.92em;
  line-height: 1.25;
  opacity: 0.72;
}

.hi-hostel-picker_loading,
.hi-hostel-picker_empty,
.hi-hostel-picker_error {
  padding: 0.875rem 1rem;
  font-size: 0.95em;
  opacity: 0.72;
}

.hi-hostel-picker_status {
  margin-top: 0.4rem;
  font-size: 0.9em;
  opacity: 0.68;
}

.hi-hostel-picker mark {
  padding: 0;
  background: rgba(255, 215, 0, 0.35);
  color: inherit;
}

.hi-hostel-picker.is-invalid .hi-hostel-picker_input {
  outline: 2px solid #d92d20;
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  .u-dark-mode .hi-hostel-picker_list {
    border-color: rgba(255, 255, 255, 0.12);
    background: #171717;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  }

  .u-dark-mode .hi-hostel-picker_item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .u-dark-mode .hi-hostel-picker_item:hover,
  .u-dark-mode .hi-hostel-picker_item:focus-visible,
  .u-dark-mode .hi-hostel-picker_item.is-active {
    background: rgba(255, 255, 255, 0.08);
  }

  .u-dark-mode .hi-hostel-picker_loading,
  .u-dark-mode .hi-hostel-picker_empty,
  .u-dark-mode .hi-hostel-picker_error,
  .u-dark-mode .hi-hostel-picker_status {
    color: #fff;
  }
}
