:root {
  --navy: #101A43;
  --brick: #9A3022;
  --gold: #F0A21F;
  --grey-light: #E8E8E8;
  --grey-mid: #747C84;
  --grey-text: #5F666D;
  --white: #ffffff;
  --well: #F3F3F3;
  --green-bg: #E9F3EA;
  --green-text: #1F6B2C;
  --brick-bg: #F7ECEA;
}

@font-face {
  font-family: "Noto Serif";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url(/assets/fonts/noto-serif-700.woff2) format("woff2");
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .container {
    width: min(1200px, 100% - 48px);
  }
}

/* Landing page at the pay domain root */

.home {
  grid-column: 1 / -1;
  max-width: 560px;
}

.home h1 {
  margin: 0 0 12px;
}

.home p {
  margin: 0 0 16px;
}

.home__cta {
  text-decoration: none;
}

/* Brand bar */

.brand-bar {
  background: var(--white);
  border-bottom: 4px solid var(--navy);
}

.brand-bar__inner {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}

@media (min-width: 768px) {
  .brand-bar__inner {
    width: min(1200px, 100% - 48px);
  }
}

.brand-bar__logo {
  height: 32px;
  display: block;
}

@media (min-width: 768px) {
  .brand-bar__logo {
    height: 40px;
  }
}

.brand-bar__contact {
  text-align: right;
  line-height: 1.4;
}

.brand-bar__help {
  display: none;
  color: var(--grey-mid);
  font-size: 13px;
}

@media (min-width: 768px) {
  .brand-bar__help {
    display: block;
  }
}

.brand-bar__phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: bold;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.brand-bar__phone:hover {
  text-decoration: underline;
}

/* Page layout */

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: 24px 0 40px;
}

.till-column {
  order: -1;
  min-width: 0;
}

@media (min-width: 768px) {
  .page-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    align-items: start;
    padding: 32px 0 48px;
  }

  .till-column {
    order: 0;
    position: sticky;
    top: 24px;
  }
}

@media (min-width: 1024px) {
  .page-grid {
    grid-template-columns: minmax(0, 7fr) minmax(400px, 5fr);
    column-gap: 56px;
    padding: 40px 0 56px;
  }

  .till-column {
    border-left: 1px solid var(--grey-light);
    padding-left: 24px;
  }
}

/* Document column */

.doc-column {
  min-width: 0;
}

.doc-heading-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .doc-heading-row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
  }
}

.doc-heading-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.doc-meta-line {
  color: var(--grey-mid);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Document header (invoice/order): heading + print link on the left, a
   right-aligned details block (dates, terms, PO, order no.) on the right. */

.doc-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .doc-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 24px;
  }
}

.doc-header-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.doc-header-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.doc-header-line h1 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(26px, 1.6vw + 16px, 34px);
  line-height: 1.2;
  color: var(--navy);
  margin: 0;
}

.details {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 16px;
  row-gap: 4px;
  align-content: start;
  margin: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .details {
    justify-content: end;
  }
}

.details dt {
  color: var(--grey-mid);
}

.details dd {
  margin: 0;
  color: var(--navy);
}

.print-link {
  all: unset;
  cursor: pointer;
  color: var(--navy);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.print-link:hover {
  text-decoration-color: var(--brick);
}

@media (prefers-reduced-motion: no-preference) {
  .print-link {
    transition: text-decoration-color 0.15s ease;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}

.pill-paid {
  background: var(--navy);
  color: var(--white);
}

.pill-processing {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--gold);
}

.pill-replaced,
.pill-inactive,
.pill-unconfirmed {
  background: var(--white);
  color: var(--grey-mid);
  border: 1.5px solid var(--grey-mid);
}

.detail-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .detail-block {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
  }
}

.detail-label {
  font-weight: bold;
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 4px;
}

.bill-to,
.ship-to,
.ship-info {
  min-width: 0;
}

.bill-to div,
.ship-to div {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Address grid (invoice/order): Bill to, Ship to, and Shipping side by side from 640px */

.address-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .address-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.detail-dates {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  margin: 0;
  align-content: start;
  font-size: 14px;
}

.detail-dates dt {
  color: var(--grey-mid);
}

.detail-dates dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.intro {
  max-width: 72ch;
  margin: 0 0 24px;
  color: var(--navy);
}

.table-wrap {
  overflow-x: auto;
}

table.lines {
  table-layout: auto;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
}

table.lines td:first-child,
table.lines td.desc {
  overflow-wrap: anywhere;
}

table.lines thead th {
  text-align: left;
  font-size: 14px;
  font-weight: normal;
  color: var(--grey-mid);
  border-bottom: 2px solid var(--navy);
  padding: 12px 8px;
}

table.lines td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--grey-light);
}

table.lines th.amt,
table.lines td.amt,
table.lines th.qty,
table.lines td.qty {
  text-align: right;
  white-space: nowrap;
}

table.lines th.qty,
table.lines td.qty {
  width: 1%;
}

table.lines th.item,
table.lines td.item {
  white-space: nowrap;
}

table.lines a {
  color: var(--navy);
  font-weight: bold;
}

table.lines--not-due td,
table.lines--not-due a {
  color: var(--grey-mid);
}

@media (max-width: 767px) {
  table.lines th,
  table.lines td {
    padding: 8px;
    font-size: 14px;
  }
}

.totals {
  margin-left: auto;
  width: min(320px, 100%);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  color: var(--grey-mid);
  font-variant-numeric: tabular-nums;
}

.totals-row.total {
  border-top: 1px solid var(--grey-light);
  margin-top: 4px;
  padding-top: 12px;
  color: var(--navy);
}

.totals-row.total span:last-child {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 22px;
}

/* Payment information (invoice/order) */

.payment-info {
  max-width: 60ch;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-light);
}

.payment-info h2 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  margin: 0 0 8px;
}

.payment-info p {
  margin: 0 0 6px;
  color: var(--grey-mid);
  font-size: 14px;
}

.payment-info p:last-child {
  margin-bottom: 0;
}

/* Till */

.till {
  background: var(--well);
  min-height: 420px;
  padding: 12px;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .till {
    min-height: 480px;
    padding: 16px;
  }
}

/* After paying: the panel becomes a receipt card that fits its content. */
.till.till--confirm {
  min-height: 0;
  padding: 0;
  background: none;
}

.confirm {
  padding: 24px 20px 20px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  color: var(--navy);
}

@media (min-width: 768px) {
  .confirm {
    padding: 28px 28px 24px;
  }
}

.confirm--paid {
  border-top-color: var(--green-text);
}

.confirm--unconfirmed {
  border-top-color: var(--brick);
}

.confirm__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.confirm__icon {
  flex: none;
  width: 48px;
  height: 48px;
}

.confirm__icon-disc {
  fill: var(--navy);
}

.confirm__icon-mark {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirm__icon-dot {
  fill: var(--brick);
}

.confirm--paid .confirm__icon-disc {
  fill: var(--green-text);
}

.confirm--paid .confirm__icon-mark {
  stroke: var(--white);
}

.confirm--unconfirmed .confirm__icon-disc {
  fill: var(--brick-bg);
}

.confirm--unconfirmed .confirm__icon-mark {
  stroke: var(--brick);
}

@media (prefers-reduced-motion: no-preference) {
  .confirm--processing .confirm__icon-mark,
  .confirm--paid .confirm__icon-mark {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: confirm-draw 0.5s ease-out 0.15s forwards;
  }

  @keyframes confirm-draw {
    to {
      stroke-dashoffset: 0;
    }
  }
}

.confirm__heading {
  min-width: 0;
}

.confirm__title {
  margin: 0;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  color: var(--navy);
}

.confirm--unconfirmed .confirm__title {
  font-size: 20px;
}

.confirm__sub {
  margin: 4px 0 0;
  color: var(--grey-text);
  font-size: 15px;
}

.confirm__summary {
  margin-top: 20px;
  padding: 16px;
  background: var(--well);
  border-radius: 4px;
}

.confirm__label {
  display: block;
  color: var(--grey-text);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirm__doc {
  margin: 0;
}

.confirm__doc-name {
  display: block;
  margin-top: 2px;
  font-weight: bold;
  overflow-wrap: anywhere;
}

.confirm__amount {
  margin: 14px 0 0;
}

.confirm__amount-value {
  display: block;
  margin-top: 2px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.confirm__breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}

.confirm__breakdown .review-row {
  font-size: 14px;
}

.confirm__breakdown .review-total {
  padding-top: 6px;
  border-top-color: var(--grey-light);
}

.confirm__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 16px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--grey-light);
}

.confirm__fact dt {
  color: var(--grey-text);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirm__fact dd {
  margin: 2px 0 0;
  font-size: 15px;
}

.confirm__next {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.45;
}

.confirm__next p {
  margin: 0;
}

.confirm__next p + p {
  margin-top: 6px;
  color: var(--grey-text);
  font-size: 14px;
}

.confirm__help {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--grey-light);
  color: var(--grey-text);
  font-size: 14px;
}

.confirm__help a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--brick);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.confirm--verify .confirm__title {
  font-size: 20px;
}

.confirm__cta {
  margin-top: 16px;
  text-decoration: none;
}

.confirm__note {
  margin: 12px 0 0;
  color: var(--grey-text);
  font-size: 14px;
}

.confirm__note a {
  color: var(--navy);
  white-space: nowrap;
}

.verify-failed {
  margin: 0 0 16px;
  color: var(--brick);
  font-size: 14px;
}

/* The customer chose this, so it reads as information, not an error. */
.verify-failed--cancelled {
  color: var(--navy);
}

/* "Pay by card or a different account instead" on the verify panel. */
.switch-method {
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--grey-light);
  font-size: 14px;
}

.switch-method__toggle {
  color: var(--navy);
  font-weight: bold;
  cursor: pointer;
}

.switch-method__toggle:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.switch-method__body p {
  margin: 10px 0 0;
  color: var(--grey-text);
}

.switch-method__body p.switch-method__error {
  color: var(--brick);
}

.switch-method__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 14px 0 0;
}

.switch-method__actions .btn {
  width: auto;
  padding: 10px 18px;
  font-size: 15px;
}

.switch-method__actions .link-button {
  align-self: center;
  color: var(--navy);
}

/* Scoped so it outranks .btn's border reset, which comes later in this file. */
.switch-method__actions .btn-secondary {
  background: var(--white);
  color: var(--brick);
  border: 1px solid var(--brick);
}

.switch-method__actions .btn-secondary:hover:not(:disabled) {
  background: var(--brick-bg);
}

.partial-callout {
  margin: 0 0 16px;
  color: var(--brick);
  font-size: 14px;
}


.till-message {
  margin: 0 0 8px;
  color: var(--navy);
}


.checkout {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .checkout {
    min-height: 480px;
  }
}

.divider:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--grey-mid);
  font-size: 13px;
  text-align: center;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--grey-light);
}

.checkout label {
  display: block;
  font-size: 14px;
  font-weight: normal;
  color: var(--grey-mid);
  margin-bottom: 4px;
}

.checkout input[type="email"] {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 4px;
}

.checkout input[type="email"]::placeholder {
  color: var(--grey-mid);
}

.checkout input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(16, 26, 67, 0.15);
}

#payment-element {
  min-height: 0;
}

/* Stripe empties the mount node, so the skeleton sits beside it. While loading,
   the mount is collapsed but still laid out (Stripe must measure it; never
   display: none) and the skeleton holds the form's final height. */
#payment-element.payment-element--loading {
  height: 0;
  overflow: hidden;
}

#payment-skeleton {
  min-height: 480px;
}

@media (min-width: 768px) {
  #payment-skeleton {
    min-height: 520px;
  }
}

.surcharge-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--grey-light);
  border-radius: 4px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.4;
}

.surcharge-notice p {
  margin: 0;
}

.surcharge-notice p + p {
  margin-top: 6px;
}

/* Card surcharge note at the top of the payment panel (shown only while a card
   or card-funded wallet is selected). A tidy card with a brick-red edge.
   Muted text is --grey-text: 5.8:1 on white, 5.3:1 on the --well panel. */
.surcharge-fineprint {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-left: 3px solid var(--brick);
  border-radius: 6px;
  color: var(--grey-text);
  font-size: 14px;
  font-weight: normal;
  line-height: 1.45;
}

.surcharge-fineprint p {
  margin: 0;
}

.surcharge-fineprint__label {
  color: var(--navy);
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surcharge-fineprint .surcharge-fineprint__text {
  margin-top: 4px;
}

.surcharge-fineprint__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
}

.surcharge-fineprint .surcharge-fineprint__text + .surcharge-fineprint__row {
  margin-top: 6px;
  border-top: 1px solid var(--grey-light);
  padding-top: 6px;
}

.surcharge-fineprint__amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Card row: "$205.80 (includes a 2.9% surcharge)" side by side, the note
   wrapping under the amount in smaller type when the row is narrow. */
.surcharge-fineprint__row .surcharge-fineprint__amount {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  column-gap: 6px;
}

.surcharge-fineprint__includes {
  font-size: 12px;
  font-weight: normal;
  color: var(--grey-text);
}

/* The keep-on-file box under the payment form (card and bank tabs only). */
.save-on-file {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--navy);
}

.save-on-file__box {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}

.save-on-file__label {
  cursor: pointer;
}

.save-on-file__surcharge {
  color: var(--brick);
}

.review-save-line {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--grey-text);
}

.surcharge-notice__card {
  color: var(--navy);
  font-weight: bold;
}

.surcharge-fineprint .colorado-notice {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--grey-light);
  font-size: 12px;
  line-height: 1.4;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--grey-light);
  border-radius: 4px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: var(--navy);
}

.review-total {
  font-weight: bold;
  border-top: 1px solid var(--grey-mid);
  padding-top: 8px;
}

.review-headline {
  margin: 0;
  font-size: 17px;
  font-weight: bold;
  color: var(--navy);
}

.review-bank-line {
  margin: 0;
  font-size: 15px;
  color: var(--navy);
}

.review-wallet-line {
  margin: 0;
  font-size: 13px;
  color: var(--navy);
}

/* With the dollar headline showing, the itemized rows beneath step down in size. */
.review-headline:not([hidden]) ~ .review-row {
  font-size: 13px;
}

.link-button {
  align-self: flex-start;
  padding: 0;
  background: none;
  border: none;
  color: var(--brick);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

/* Skeleton loaders: reserve the checkout layout's final shape while Stripe's
   elements are still loading, so nothing shifts once they mount. */

.skeleton {
  background-color: var(--grey-light);
  border-radius: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    background-image: linear-gradient(90deg, var(--grey-light) 0%, rgba(255, 255, 255, 0.7) 50%, var(--grey-light) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.6s ease-in-out infinite;
  }

  @keyframes skeleton-shimmer {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }
}

.skeleton--button {
  height: 48px;
}

.skeleton-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-form .skeleton {
  height: 44px;
}

.skeleton-row {
  display: flex;
  gap: 12px;
}

.skeleton-row .skeleton {
  flex: 1;
  min-width: 0;
}

.btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-primary {
  background: var(--brick);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: #7f2719;
}

.btn-primary--loading:disabled {
  background: var(--brick);
  opacity: 0.6;
  cursor: wait;
}

.form-error {
  margin: 0;
  color: var(--brick);
  font-size: 14px;
  min-height: 1em;
}

.form-alert {
  margin: 0;
}

.form-alert:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-left: 2px solid var(--brick);
  border-radius: 4px;
  background: var(--brick-bg);
  color: var(--navy);
  font-size: 14px;
}

.form-alert:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.form-alert__title {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.form-alert__title::before {
  content: '!';
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--brick);
  color: var(--white);
  font-size: 12px;
  line-height: 1;
}

.form-alert__body,
.form-alert__next {
  margin: 0;
}

.form-alert__next:empty {
  display: none;
}

.muted {
  margin: 0;
  color: var(--grey-mid);
  font-size: 13px;
}

/* Footer */

.site-footer {
  font-size: 14px;
  color: var(--grey-mid);
  padding: 8px 0 40px;
}

.site-footer p {
  margin: 0 0 4px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--grey-mid);
}

.site-footer p.site-footer__security {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
}

@media print {
  @page {
    margin: 16mm;
  }

  body {
    background: var(--white);
    color: #000;
  }

  .no-print,
  .till-column {
    display: none;
  }

  .container {
    width: auto;
  }

  .page-grid {
    display: block;
    padding: 0;
  }

  .doc-column {
    max-width: none;
  }

  .pill-paid {
    background: var(--white);
    border: 1px solid #000;
    color: #000;
  }

  .pill-processing,
  .pill-replaced,
  .pill-inactive,
  .pill-unconfirmed {
    border-color: #000;
    color: #000;
  }
}

.save-intro__for {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--grey-text);
}

.save-consent {
  margin: 12px 0 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--navy);
}

/* Save page: the explanation beside the form. */
.save-intro__lede {
  max-width: 34em;
  line-height: 1.55;
}

.save-guide__title {
  margin: 28px 0 14px;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: var(--navy);
}

/* The steps hang off a thin navy line, like a pole. */
.save-steps {
  list-style: none;
  counter-reset: save-step;
  margin: 0 0 28px;
  padding: 0 0 0 40px;
  position: relative;
  max-width: 32em;
}

.save-steps::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--navy);
}

.save-steps li {
  counter-increment: save-step;
  position: relative;
  margin: 0 0 14px;
  line-height: 1.5;
  color: var(--navy);
}

.save-steps li:last-child {
  margin-bottom: 0;
}

.save-steps li::before {
  content: counter(save-step);
  position: absolute;
  left: -40px;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: var(--white);
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 24px;
  text-align: center;
}

.save-bank {
  margin: 0 0 24px;
  padding: 2px 0 2px 16px;
  border-left: 4px solid var(--gold);
  max-width: 32em;
}

.save-bank p {
  margin: 0 0 4px;
  line-height: 1.5;
}

.save-bank__title {
  font-weight: 700;
  color: var(--navy);
}

.save-notes {
  margin-top: 40px;
  border-top: 1px solid var(--grey-light);
  padding-top: 12px;
  max-width: 30em;
  font-size: 12px;
  color: var(--grey-mid);
}

.save-notes p {
  margin: 0 0 6px;
  line-height: 1.45;
}

.save-notes a {
  color: var(--navy);
}

/* One-time "Connect a bank account" page (/bank/connect/<nonce>): staff only, opened from Business Central. */
.bank-connect {
  max-width: 480px;
  margin: 48px auto;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 6px;
}

.bank-connect h1 {
  margin: 0 0 12px;
  color: var(--navy);
}

.bank-connect p {
  margin: 0 0 20px;
  color: var(--grey-text);
}

.bank-connect p.bank-connect__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--grey-mid);
}

.bank-connect__note a {
  color: var(--grey-mid);
}

@media (max-width: 560px) {
  .bank-connect {
    margin: 24px 0;
    padding: 20px;
  }
}
