/* Waitlist Status screen, Figma 516:6984.
 * Every colour here is a --wa-* token. */

.waitlist-status {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.waitlist-status__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* The wrapper, not the text. min-width: 0 because this sits in a flex row beside the
   position panel, and a flex item defaults to min-width: auto — a long hotel name then
   refuses to shrink and pushes the position panel off the edge instead of wrapping. */
.waitlist-status__heading {
  min-width: 0;
}

.waitlist-status__title {
  margin: 0;
  font-size: 1.5rem;
  color: var(--wa-color-text-normal);
}

.waitlist-status__subtitle {
  margin: 0.25rem 0 0;
  color: var(--wa-color-text-quiet);
}

/* The one number the guest opened this screen for, so it is the only thing on the page carrying the brand tint. */
.waitlist-status__position {
  padding: 0.75rem 1.25rem;
  background: var(--wa-color-brand-fill-quiet);
  border: 1px solid var(--wa-color-brand-border-normal);
  border-radius: var(--wa-border-radius-l);
  text-align: center;
  flex-shrink: 0;
}

.waitlist-status__position-label {
  display: block;
  font-size: 0.75rem;
  color: var(--wa-color-text-quiet);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.waitlist-status__position-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--wa-color-text-normal);
  line-height: 1.1;
}

.waitlist-status__position-total {
  display: block;
  font-size: 0.8125rem;
  color: var(--wa-color-text-quiet);
}

/* minmax(0, 1fr) rather than 1fr: a long hotel name in a 1fr track refuses to shrink below its content and pushes the second column off the page. */
.waitlist-status__grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
}

.waitlist-status__item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--wa-color-surface-border);
}

.waitlist-status__label {
  font-size: 0.8125rem;
  color: var(--wa-color-text-quiet);
  margin-bottom: 0.125rem;
}

.waitlist-status__value {
  margin: 0;
  color: var(--wa-color-text-normal);
  font-weight: 600;
}

.waitlist-status__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
}

/* button_to emits a real form and button, and button_to puts the class on the BUTTON rather than the form, so the selector is the class itself — written as a descendant it matches nothing, which is exactly how the Cancel Booking button shipped unstyled — the same reason cancel-booking does. */
.waitlist-status__leave {
  padding: 0.75rem 1rem;
  border: 1px solid var(--wa-color-danger-border-normal);
  border-radius: var(--wa-border-radius-m);
  background: var(--wa-color-danger-fill-quiet);
  color: var(--wa-color-danger-on-quiet);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* The footer holds the actions the design puts at the bottom of the card. Separate from
   __actions because the markup nests one inside the other. */
.waitlist-status__footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wa-color-surface-border);
}

/* Stands in for the position panel once the entry has settled: a withdrawn or expired
   place has no position, and "#7 of 23" would be a number about a queue the guest is no
   longer in. */
.waitlist-status__status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--wa-border-radius-s);
  background: var(--wa-color-surface-lowered);
  color: var(--wa-color-text-quiet);
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 40rem) {
  .waitlist-status {
    padding: 1.5rem 1rem 2rem;
  }

  .waitlist-status__grid {
    grid-template-columns: 1fr;
  }
}

/* While you wait — alternatives from other hotels at the event. Secondary to the
   queue position above: the guest came here about THEIR place, not to shop. */
.waitlist-status__alternatives {
  margin-top: 2rem;
}

.waitlist-status__alt-heading {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--wa-color-text-normal);
}

.waitlist-status__alt-note {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--wa-color-text-quiet);
}

.waitlist-alt__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.waitlist-alt__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--wa-color-neutral-border-normal);
  border-radius: var(--wa-border-radius-m);
  text-decoration: none;
}

.waitlist-alt__name {
  font-weight: 600;
  color: var(--wa-color-text-normal);
}

.waitlist-alt__price {
  font-size: 0.875rem;
  color: var(--wa-color-text-quiet);
}
