/* Paying on the page itself (11 Nov 2026): the area that holds Stripe's payment form. See assets/uc-pay.js. */
.uc-pay {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.uc-pay-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.uc-pay-who {
  min-width: 0;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.uc-pay-change {
  min-height: 2.75rem;
  padding: 0.4rem 0.2rem;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.uc-pay-elsewhere {
  min-height: 2.75rem;
  padding-block: 0.3rem;
  font-size: inherit;
  font-weight: 700;
}

.uc-pay-frame {
  min-height: 24rem;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.uc-pay-wait {
  margin: 0;
  padding: 2rem 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.uc-pay-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.uc-pay-done {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
  border: 1px solid #b8e0c8;
  border-radius: var(--radius-md);
  background: #effaf3;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.uc-pay-done h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.uc-pay-done p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.uc-pay-done .button {
  margin-top: 0.4rem;
}

/* While paying, the sign-up box gives Stripe's form the full width. */
.uc-inline-card.is-paying {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media print {
  .uc-pay {
    display: none !important;
  }
}
