/* The pages of the server (src/pages/router.ts, payment.ts): the colours of the system, readable on a phone. */
:root
{
  color-scheme: light dark;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

.n5-page
{
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.n5-page h1
{
  font-size: 1.5rem;
  line-height: 1.25;
}

.n5-page label
{
  display: block;
  margin: 1rem 0;
  font-weight: 600;
}

.n5-page input:not([type="hidden"])
{
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.6rem;
  font: inherit;
  font-weight: 400;
}

.n5-page button
{
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
}

.n5-page-danger
{
  color: #fff;
  background: #b42318;
  border: 0;
  border-radius: 0.4rem;
}

.n5-page-refusal
{
  padding: 0.6rem 0.8rem;
  border-left: 0.25rem solid #b42318;
  font-weight: 600;
}

.n5-page-hint
{
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* The pages of the payment (src/pages/payment.ts): the one main button, the key to copy, what was done */
.n5-page-primary
{
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  color: AccentColorText;
  background: #2563eb;
  background: AccentColor;
}

.n5-page-key
{
  display: block;
  padding: 0.6rem 0.8rem;
  border: 1px solid;
  border-radius: 0.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  user-select: all;
}

.n5-page-notice
{
  padding: 0.6rem 0.8rem;
  border-left: 0.25rem solid #15803d;
  font-weight: 600;
}
