/* Payment set-up (/billing/setup) - the owner's checklist.
 *
 * Its own file, not application.css: five people were building the paid
 * sign-up on the same day (13 Oct 2026) and one shared stylesheet is one
 * merge conflict. The layout links every file in this folder.
 *
 * Three states, and each is carried by a WORD first ("Fine", "Wrong",
 * "Could not check"). The colour repeats it for the eye; it is never the only
 * signal, which is the same rule our own contrast checks hold other sites to.
 * Colours are the validated status tokens from application.css - none are
 * chosen here.
 */

/* The one sentence at the top. Large, because it is the only thing on the
   page that has to be read. */
.paysetup__verdict {
  margin: 0 0 1.2rem; padding: 1rem 1.2rem; font-size: 1.15rem; font-weight: 600; line-height: 1.45;
  border: 1px solid var(--border); border-left-width: 6px; border-radius: var(--radius);
  background: var(--surface);
}
.paysetup__verdict--ready { border-color: var(--ok); }
.paysetup__verdict--stop  { border-color: var(--critical); }
.paysetup__verdict--wait  { border-color: var(--warning); }

/* The count of customers who may have paid and got nothing, above the list.
   Its own class, not a second verdict: the page has one verdict. */
.paysetup__lost {
  margin: 0 0 1rem; padding: .9rem 1.1rem; font-weight: 600; line-height: 1.5;
  border: 1px solid var(--critical); border-left-width: 6px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--critical) 12%, transparent);
}

/* What is on the owner's own account, when it has a paid plan. A note, in
   the colour of "look at this", not of "wrong": it stops her buying, and no
   customer. (13 Oct 2026) */
.paysetup__own {
  max-width: 46rem; margin: 0 0 1.2rem; padding: .8rem 1rem; font-size: .95rem; line-height: 1.5;
  border: 1px solid var(--border); border-left: 4px solid var(--warning); border-radius: var(--radius);
}

.paysetup__about { max-width: 46rem; margin: 0 0 1.2rem; font-size: .9rem; }
.paysetup__check { text-decoration: none; display: inline-block; }

.paysetup__list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .6rem; }
.paysetup__line {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; align-items: start;
  padding: .85rem 1rem; border: 1px solid var(--border); border-left-width: 4px;
  border-radius: var(--radius); background: rgba(0, 0, 0, .18);
}
.paysetup__line--fine      { border-left-color: var(--ok); }
.paysetup__line--wrong     { border-left-color: var(--critical); }
.paysetup__line--unchecked { border-left-color: var(--warning); }

.paysetup__state {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding-top: .15rem;
}
.paysetup__line--fine .paysetup__state      { color: var(--ok); }
.paysetup__line--wrong .paysetup__state     { color: var(--critical); }
.paysetup__line--unchecked .paysetup__state { color: var(--warning); }

.paysetup__title  { margin: 0; font-weight: 600; }
.paysetup__detail { margin: .2rem 0 0; font-size: .92rem; overflow-wrap: anywhere; }
.paysetup__fix    { margin: .4rem 0 0; font-size: .92rem; overflow-wrap: anywhere; }

/* Recent payment problems. One line each: when, then what. */
.paysetup__none { margin: 0 0 2rem; }
/* The record could not be read. The colour of "could not check", because
   that is what it is - and never the plain look of "None". */
.paysetup__unread {
  max-width: 46rem; margin: 0 0 2rem; padding: .7rem 1rem;
  border: 1px solid var(--border); border-left: 4px solid var(--warning); border-radius: var(--radius);
}
.paysetup__problems { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .4rem; }
.paysetup__problem {
  display: grid; grid-template-columns: 11.5rem 1fr; gap: 1rem; align-items: baseline;
  padding: .55rem .9rem; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .9rem; background: rgba(0, 0, 0, .18);
}
.paysetup__when { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.paysetup__what { overflow-wrap: anywhere; }

/* A customer who may have paid and got nothing. It has to be impossible to
   read past: a filled band, a heavier edge, and its own sentence in the row. */
.paysetup__problem--lost {
  border-color: var(--critical); border-left-width: 6px;
  background: color-mix(in srgb, var(--critical) 14%, transparent);
}
.paysetup__problem--lost strong { color: var(--critical); }

/* On a phone the label sits above its line instead of beside it. */
@media (max-width: 40rem) {
  .paysetup__line, .paysetup__problem { grid-template-columns: 1fr; gap: .25rem; }
  .paysetup__when { white-space: normal; }
}

/* The button now says whether the last press reached Creem, and the verdict
   says which half it is about (both added 13 Oct 2026 - see the view). */
.paysetup__asked { display: block; margin-top: .35rem; font-size: .82rem; }
.paysetup__which { margin: -.4rem 0 1rem; font-size: .88rem; }
