/* Figma 516:7063 — Waitlist Offer.
   Every colour and radius is a --wa-* token; a raw value here is a bug. */

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

.waitlist-offer__badge {
  display: inline-block;
  background: var(--wa-color-warning-fill-quiet);
  color: var(--wa-color-warning-on-quiet);
  padding: 0.25rem 0.75rem;
  border-radius: var(--wa-border-radius-s);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.waitlist-offer__heading {
  margin: 0 0 0.5rem;
  font-size: 1.375rem;
  color: var(--wa-color-text-normal);
}

.waitlist-offer__expiry-note {
  margin: 0 0 1.5rem;
  color: var(--wa-color-text-quiet);
  line-height: 1.5;
}

/* The design renders a dark countdown panel here; this keeps the weight and
   the contrast and states the deadline rather than ticking. */
.waitlist-offer__deadline {
  padding: 1rem;
  background: var(--wa-color-neutral-fill-loud);
  color: var(--wa-color-neutral-on-loud);
  border-radius: var(--wa-border-radius-m);
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.waitlist-offer__details {
  margin: 0 0 1.5rem;
}

.waitlist-offer__detail {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--wa-color-surface-border);
}

.waitlist-offer__detail:last-child {
  border-bottom: none;
}

.waitlist-offer__detail-label {
  color: var(--wa-color-text-quiet);
}

.waitlist-offer__detail-value {
  margin: 0;
  color: var(--wa-color-text-normal);
  font-weight: 600;
  text-align: right;
}

.waitlist-offer__acceptance-note {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  color: var(--wa-color-text-quiet);
  line-height: 1.5;
}

.waitlist-offer__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* The class lands on the BUTTON button_to emits, not the form:
   the class itself, not a descendant selector. */
.waitlist-offer__decline {
  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 LOUD ONE. Accept was rendering paler than Decline, which inverted the hierarchy —
   the destructive action read as primary and the one the guest came to take read as an
   afterthought. Figma 516:7063 has Accept solid and Decline a quiet red wash. */
.waitlist-offer__accept {
  padding: 0.75rem 1rem;
  border: 1px solid var(--wa-color-brand-fill-loud);
  border-radius: var(--wa-border-radius-m);
  background: var(--wa-color-brand-fill-loud);
  color: var(--wa-color-brand-on-loud);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* "Room Details" — a real heading rather than bold text, so the offer has structure a
   screen reader can navigate. Quiet, because the deadline above it is what the guest
   opened this page for. */
.waitlist-offer__details-heading {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--wa-color-text-quiet);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 40rem) {
  .waitlist-offer__detail {
    flex-direction: column;
    gap: 0.125rem;
  }

  .waitlist-offer__detail-value {
    text-align: left;
  }
}
