/*
 * Member-only presentation styles.
 *
 * Keep this file loaded only from the member layout. Admin assets must not
 * import prototype Tailwind or member background styles.
 */

.member-background-shell {
  background-color: #fff8f2;
  background-image: var(--member-background-image);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

@media (max-width: 48rem) {
  .member-background-shell {
    background-position: center top;
    background-size: auto 100vh;
    background-attachment: scroll;
  }
}

.member-timeslot-card {
  cursor: pointer;
  display: block;
  position: relative;
}

.member-timeslot-card__input {
  height: 1px;
  left: 1rem;
  opacity: 0;
  position: absolute;
  top: 1rem;
  width: 1px;
}

.member-timeslot-card__selected {
  display: none;
}

.member-timeslot-card:has(.member-timeslot-card__input:checked) {
  background-color: #fffbeb;
  border: 2px solid #fbbf24;
  padding: 1.25rem;
}

.member-timeslot-card:has(.member-timeslot-card__input:checked) .member-timeslot-card__available {
  display: none;
}

.member-timeslot-card:has(.member-timeslot-card__input:checked) .member-timeslot-card__selected {
  display: inline;
}

.member-timeslot-card:focus-within {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.member-remote-select {
  position: relative;
}

.member-remote-select__control {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
}

.member-remote-select__control:focus-within {
  background: #ffffff;
  border-color: #f59e0b;
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.member-remote-select__selection {
  display: contents;
}

.member-remote-select__token {
  align-items: center;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  color: #78350f;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 0.375rem;
  min-height: 2rem;
  padding: 0.25rem 0.375rem 0.25rem 0.75rem;
}

.member-remote-select__token button {
  align-items: center;
  background: #fef3c7;
  border: 0;
  border-radius: 999px;
  color: #92400e;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  height: 1.35rem;
  justify-content: center;
  line-height: 1;
  width: 1.35rem;
}

.member-remote-select__query {
  background: transparent;
  border: 0;
  color: #1c1917;
  flex: 1 1 12rem;
  font: inherit;
  min-height: 2rem;
  min-width: 8rem;
  outline: 0;
}

.member-remote-select__results {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(120, 83, 40, 0.14);
  left: 0;
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.35rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 40;
}

.member-remote-select__option,
.member-remote-select__empty {
  border-radius: 0.75rem;
  color: #292524;
  display: block;
  font-size: 0.875rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
  width: 100%;
}

.member-remote-select__option {
  background: transparent;
  border: 0;
  cursor: pointer;
}

.member-remote-select__option:hover {
  background: #fff7ed;
}

.member-remote-select__empty {
  color: #78716c;
}
