@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/dmmono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --green: #157a2e;
  --green-dark: #0f5f22;
  --blue: #143a2e;
  --ink: #17251f;
  --muted: #5e6d63;
  --line: #dcd8cc;
  --line-dark: #b7c1b5;
  --paper: #f4f0e7;
  --white: #fffdf8;
  --amber: #8a5a00;
  --amber-bg: #fff4e0;
  --red: #8a2b20;
  --red-bg: #fff4f2;
  --display: "Manrope", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --radius: 5px;
  --shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.6 var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #002b5a; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }

.bps-shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.bps-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; background: var(--blue); color: #fff; font-weight: 700;
}
.bps-skip:focus { left: 12px; top: 12px; }

/* Header */
.bps-header { border-bottom: 1px solid var(--line); background: #fff; }
.bps-header::before { content: ""; display: block; height: 3px; background: var(--green); }
.bps-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 86px;
}
.bps-brand { display: inline-flex; align-items: center; }
.bps-brand img { width: 122px; height: auto; display: block; }
.bps-header-actions { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 700; }
.bps-header-actions a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; }
.bps-header-actions a:hover { border-color: var(--blue); color: var(--blue); }
.bps-secure { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.bps-secure-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #157a2e1a; }

/* Type */
.bps-kicker {
  margin: 0 0 14px; color: var(--green);
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.bps-checkout { padding: 54px 0 96px; }
.bps-checkout-head { max-width: 760px; margin-bottom: 40px; }
.bps-checkout-head h1 {
  margin: 0 0 14px; color: var(--blue);
  font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 700;
}
.bps-lede { margin: 0; max-width: 64ch; color: var(--muted); font-size: 17px; line-height: 1.55; }
.bps-small { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* Layout */
.bps-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .9fr); gap: 64px; align-items: start; }
.bps-cart-loading { color: var(--muted); font-size: 14px; }

/* Sections and fields */
.bps-section { margin: 0; padding: 26px 0 34px; border-top: 1px solid var(--line); min-width: 0; }
.bps-section:first-of-type { border-top: 3px solid var(--blue); padding-top: 24px; }
.bps-section-title {
  display: flex; align-items: baseline; gap: 12px;
  padding: 0; margin: 0 0 6px; color: var(--blue);
  font-size: 20px; font-weight: 700; letter-spacing: -.01em;
}
.bps-step { color: var(--green); font: 400 12px/1 var(--mono); letter-spacing: .04em; }
.bps-section-hint { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.bps-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.bps-row:last-child { margin-bottom: 0; }
.bps-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bps-field-full { grid-column: 1 / -1; }
.bps-field > span { color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.35; }
.bps-field em { color: var(--muted); font-style: normal; font-weight: 400; }
.bps-field input, .bps-field select {
  width: 100%; min-height: 49px; padding: 11px 14px;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: #fff; color: var(--ink); font-size: 15px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.bps-field input:hover, .bps-field select:hover { border-color: #8fa9bf; }
.bps-field input:focus, .bps-field select:focus {
  outline: 3px solid var(--blue); outline-offset: 2px; border-color: var(--blue);
}
.bps-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2317324d' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px;
}
.bps-field input::placeholder { color: #8a9aab; }

.bps-method {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 16px 18px; border: 1px solid var(--line-dark); border-left: 3px solid var(--green);
  border-radius: var(--radius); background: var(--paper);
}
.bps-method-name { color: var(--blue); font-size: 15px; font-weight: 800; }
.bps-method-name span { margin-left: 6px; color: var(--muted); font: 400 12px/1 var(--mono); }
.bps-method-note { color: var(--muted); font-size: 12.5px; text-align: right; }
.bps-methods { display: grid; gap: 8px; margin-top: 16px; }
.bps-method-option {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 13px 15px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: #fff; cursor: pointer; transition: border-color .16s ease, background-color .16s ease;
}
.bps-method-option:hover { border-color: #8fa9bf; }
.bps-method-option:has(input:checked) { border-color: var(--green); background: #f4faf6; box-shadow: inset 3px 0 0 var(--green); }
.bps-method-option input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--green); }
.bps-method-copy strong { display: block; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.35; }
.bps-method-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.bps-method-kind { padding-top: 3px; color: var(--muted); font: 400 10px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.bps-declaration { margin: 20px 0 0; display: grid; gap: 12px; }
.bps-check { display: grid; grid-template-columns: 18px 1fr; gap: 11px; align-items: start; color: var(--ink); font-size: 13.5px; line-height: 1.55; }
.bps-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.bps-check-muted { color: var(--muted); }
.bps-check a { color: var(--blue); }
.bps-quote-line { margin: 26px 0 0; color: var(--muted); font-size: 13.5px; }

/* Buttons */
.bps-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 22px; border: 1px solid var(--green);
  border-radius: var(--radius); background: var(--green); color: #fff;
  font-size: 14.5px; font-weight: 800; line-height: 1.3; text-align: center; text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.bps-button:hover, .bps-button:focus-visible { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.bps-button:disabled { opacity: .55; cursor: progress; }
.bps-button-wide { width: 100%; margin-top: 22px; min-height: 54px; }
.bps-text-link { color: var(--blue); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.bps-text-link:hover { border-color: var(--blue); }
.bps-link-button { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Alerts */
.bps-alert {
  margin: 18px 0 0; padding: 15px 17px; border: 1px solid #e3b6ae; border-left: 3px solid #b44833;
  border-radius: var(--radius); background: var(--red-bg); color: var(--red); font-size: 13.5px; line-height: 1.55;
}
.bps-alert h2 { margin: 0 0 6px; font-size: 17px; color: var(--red); }
.bps-alert-info { border-color: #bdd3e8; border-left-color: var(--blue); background: #eef5fb; color: #234e73; }
.bps-alert p { margin: 0 0 12px; }
.bps-alert p:last-child { margin-bottom: 0; }
.bps-alert-closed { max-width: 720px; padding: 26px; background: #f7fafc; border-color: var(--line-dark); border-left-color: var(--blue); color: var(--ink); }
.bps-alert-closed h2 { color: var(--blue); }

/* Summary */
.bps-summary {
  position: sticky; top: 24px;
  padding: 25px 25px 22px; border: 1px solid var(--line);
  border-top: 3px solid var(--blue); border-radius: 2px; background: var(--paper);
}
.bps-summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.bps-summary-head h2 { margin: 0; color: var(--blue); font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.bps-summary-count { color: var(--muted); font: 400 12px/1.4 var(--mono); }
.bps-summary-items { list-style: none; margin: 0; padding: 0; }
.bps-summary-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 13px; padding: 16px 0; border-bottom: 1px dashed var(--line-dark); }
.bps-summary-item:last-child { border-bottom: 0; }
.bps-summary-thumb { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 2px; }
.bps-summary-name { margin: 0; color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.35; }
.bps-summary-meta { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.bps-summary-qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 7px; }
.bps-qty-button { width: 26px; height: 26px; padding: 0; border: 1px solid var(--line-dark); border-radius: 3px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1; }
.bps-qty-button:hover { border-color: var(--blue); color: var(--blue); }
.bps-qty-value { min-width: 26px; text-align: center; color: var(--ink); font: 400 12px/1 var(--mono); }
.bps-summary-price { color: var(--ink); font-size: 13.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bps-summary-remove { display: block; margin-top: 5px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 11.5px; text-decoration: underline; }
.bps-summary-remove:hover { color: var(--red); }
.bps-totals { margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line-dark); }
.bps-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 5px 0; }
.bps-totals dt { color: var(--muted); font-size: 13px; }
.bps-totals dd { margin: 0; color: var(--ink); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bps-totals .bps-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line-dark); }
.bps-totals .bps-total dt { color: var(--blue); font-size: 15px; font-weight: 800; }
.bps-totals .bps-total dd { color: var(--blue); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.bps-summary-note { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.bps-assurances { list-style: none; margin: 18px 0 0; padding: 15px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.bps-assurances li { position: relative; padding-left: 19px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.bps-assurances li::before { content: ""; position: absolute; left: 0; top: .42em; width: 9px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* Empty */
.bps-empty { max-width: 660px; padding: 38px 0 20px; }
.bps-empty h2 { margin: 0 0 10px; color: var(--blue); font-size: 28px; letter-spacing: -.02em; }
.bps-empty p { color: var(--muted); }
.bps-empty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 24px; }

/* Order page */
.bps-order-head { max-width: 900px; }
.bps-order-title { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.bps-order-title h1 { margin: 0 0 14px; }
.bps-pill {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
  padding: 6px 11px; border: 1px solid transparent; border-radius: 999px;
  font: 700 11.5px/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.bps-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bps-pill[data-state="awaiting_payment"] { color: var(--amber); background: var(--amber-bg); border-color: #ead2a4; }
.bps-pill[data-state="payment_review"] { color: var(--blue); background: #eaf2fa; border-color: #bdd3e8; }
.bps-pill[data-state="paid"], .bps-pill[data-state="overpaid"] { color: #16662f; background: #edf7f0; border-color: #b9dbc6; }
.bps-pill[data-state="underpaid"] { color: var(--red); background: var(--red-bg); border-color: #e3b6ae; }
.bps-pill[data-state="expired"], .bps-pill[data-state="cancelled"], .bps-pill[data-state="refunded"] { color: var(--muted); background: #f1f4f7; border-color: var(--line-dark); }

.bps-slip { border: 1px solid var(--line-dark); border-top: 3px solid var(--green); border-radius: 2px; background: #fff; padding: 26px 28px 24px; }
.bps-slip-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bps-slip-head h2 { margin: 0; color: var(--blue); font-size: 18px; font-weight: 800; }
.bps-network-badge { padding: 4px 9px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--muted); font: 400 10.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.bps-slip-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 20px 0 18px; border-bottom: 1px dashed var(--line-dark); }
.bps-slip-amount span { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.bps-slip-amount strong { color: var(--blue); font: 400 clamp(1.9rem, 5vw, 2.5rem)/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bps-slip-body { display: grid; grid-template-columns: 178px minmax(0, 1fr); gap: 26px; padding: 22px 0 20px; }
.bps-qr { width: 178px; height: 178px; padding: 9px; border: 1px solid var(--line); background: #fff; }
.bps-qr svg { width: 100%; height: 100%; display: block; }
.bps-slip-details { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.bps-copy-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.bps-copy-label { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.bps-copy-row code { font: 400 12px/1.55 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.bps-copy { padding: 5px 10px; border: 1px solid var(--line-dark); border-radius: 3px; background: #fff; color: var(--blue); font-size: 11.5px; font-weight: 700; }
.bps-copy:hover { border-color: var(--blue); }
.bps-expiry { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.bps-countdown { color: var(--blue); font: 400 12px/1.4 var(--mono); }
.bps-steps { margin: 0 0 20px; padding: 16px 0 0; border-top: 1px dashed var(--line-dark); list-style: none; counter-reset: bps-step; display: grid; gap: 10px; }
.bps-steps li { position: relative; padding-left: 34px; color: var(--ink); font-size: 13.5px; line-height: 1.5; counter-increment: bps-step; }
.bps-steps li::before { content: counter(bps-step); position: absolute; left: 0; top: 0; width: 23px; height: 23px; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--blue); font: 400 10.5px/21px var(--mono); text-align: center; }
.bps-tx-form { padding-top: 18px; border-top: 1px solid var(--line); }
.bps-slip-foot { margin-top: 18px; }
.bps-slip-foot .bps-link-button { margin-left: 4px; }

.bps-success { padding: 30px 30px 26px; border: 1px solid #b9dbc6; border-top: 3px solid var(--green); border-radius: 2px; background: #f4faf6; }
.bps-success-mark { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 0 16px; border-radius: 50%; background: var(--green); color: #fff; }
.bps-success h2 { margin: 0 0 10px; color: #145b2c; font-size: 27px; letter-spacing: -.02em; }
.bps-success p { color: #2f5c40; }
.bps-facts { margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid #c9e2d2; display: grid; gap: 8px; }
.bps-facts > div { display: flex; justify-content: space-between; gap: 18px; }
.bps-facts dt { color: #4a6f59; font-size: 12.5px; }
.bps-facts dd { margin: 0; color: #145b2c; font-size: 13px; font-weight: 800; text-align: right; }
.bps-success-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 24px 0 0; }
.bps-terminal { padding: 30px; border: 1px solid var(--line-dark); border-top: 3px solid var(--line-dark); background: var(--paper); }
.bps-terminal h2 { margin: 0 0 8px; color: var(--blue); font-size: 25px; }
.bps-terminal p { color: var(--muted); }
.bps-terminal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 22px; }

/* Footer */
.bps-footer { margin-top: 40px; border-top: 1px solid var(--line); background: #fbfcfd; }
.bps-footer-inner { padding: 30px 0 34px; }
.bps-footer-main { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 30px; }
.bps-ruo { margin: 0; color: var(--ink); font-size: 12.5px; font-weight: 700; }
.bps-footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12.5px; }
.bps-footer-nav a { color: var(--muted); text-decoration: none; }
.bps-footer-nav a:hover { color: var(--blue); text-decoration: underline; }
.bps-footer-meta { margin: 14px 0 0; color: var(--muted); font-size: 11.5px; }

@media (max-width: 980px) {
  .bps-grid { grid-template-columns: 1fr; gap: 30px; }
  .bps-summary { position: static; order: -1; }
  .bps-order-grid .bps-order-summary { order: 2; }
  .bps-slip-body { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .bps-qr { width: 150px; height: 150px; }
}
@media (max-width: 720px) {
  .bps-shell { width: min(calc(100% - 32px), var(--shell)); }
  .bps-checkout { padding: 36px 0 64px; }
  .bps-checkout-head { margin-bottom: 28px; }
  .bps-header-inner { min-height: 72px; gap: 14px; }
  .bps-brand img { width: 98px; }
  .bps-header-actions { gap: 14px; font-size: 12px; }
  .bps-secure { display: none; }
  .bps-row { grid-template-columns: 1fr; gap: 14px; }
  .bps-section { padding: 25px 0 28px; }
  .bps-section-title { font-size: 18px; }
  .bps-summary { padding: 21px 19px 19px; }
  .bps-slip { padding: 20px 18px 19px; }
  .bps-slip-body { grid-template-columns: 1fr; gap: 18px; }
  .bps-qr { width: 150px; height: 150px; margin-inline: auto; }
  .bps-slip-amount strong { font-size: 2rem; }
  .bps-method { flex-direction: column; gap: 5px; }
  .bps-method-note { text-align: left; }
  .bps-success, .bps-terminal { padding: 24px 20px; }
  .bps-footer-main { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .bps-header-actions a { display: none; }
  .bps-summary-item { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; }
  .bps-summary-thumb { width: 46px; height: 46px; }
  .bps-slip-amount { gap: 7px; }
  .bps-slip-amount span { font-size: 11px; }
  .bps-copy-row { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* Admin */
.bps-admin { padding: 38px 0 90px; }
.bps-admin h1 { margin: 0 0 8px; color: var(--blue); font-size: 2.1rem; letter-spacing: -.03em; }
.bps-admin h2 { margin: 0; color: var(--blue); font-size: 1.55rem; letter-spacing: -.02em; }
.bps-admin h3 { margin: 0 0 12px; color: var(--blue); font-size: 15px; font-weight: 800; letter-spacing: .01em; }
.bps-admin-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.bps-admin-logout { margin: 0; }
.bps-admin-login { max-width: 460px; }
.bps-admin-login .bps-lede { margin-bottom: 24px; }
.bps-admin-form { display: grid; gap: 16px; margin-top: 22px; }
.bps-admin-form .bps-button { width: 100%; }
.bps-admin-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 18px; border: 1px solid var(--line); background: var(--paper); margin-bottom: 20px; }
.bps-admin-filters .bps-field { min-width: 210px; }
.bps-admin-filters .bps-field input, .bps-admin-filters .bps-field select { min-height: 42px; }
.bps-admin-filters .bps-text-link { margin-left: auto; align-self: center; }
.bps-admin-count { color: var(--muted); font-size: 12.5px; }
.bps-admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.bps-admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bps-admin-table th { padding: 11px 12px; border-bottom: 1px solid var(--line-dark); background: var(--paper); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.bps-admin-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bps-admin-table tr:last-child td { border-bottom: 0; }
.bps-admin-table code { font: 400 12px/1.4 var(--mono); color: var(--blue); }
.bps-admin-muted { color: var(--muted); font-size: 12px; }
.bps-admin-empty { color: var(--muted); text-align: center; padding: 28px !important; }
.bps-admin-status { display: inline-block; padding: 4px 8px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.bps-admin-status[data-status="awaiting_payment"] { color: var(--amber); background: var(--amber-bg); border-color: #ead2a4; }
.bps-admin-status[data-status="payment_review"] { color: var(--blue); background: #eaf2fa; border-color: #bdd3e8; }
.bps-admin-status[data-status="paid"], .bps-admin-status[data-status="overpaid"] { color: #16662f; background: #edf7f0; border-color: #b9dbc6; }
.bps-admin-status[data-status="underpaid"] { color: var(--red); background: var(--red-bg); border-color: #e3b6ae; }
.bps-admin-pagination { display: flex; justify-content: center; gap: 22px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.bps-admin-pagination a { color: var(--blue); font-weight: 700; text-decoration: none; }
.bps-admin-back { margin: 0 0 16px; font-size: 13px; }
.bps-admin-back a { color: var(--blue); text-decoration: none; font-weight: 700; }
.bps-admin-detail { border: 1px solid var(--line); padding: 24px; }
.bps-admin-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.bps-admin-meta { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.bps-admin-total { margin: 0; color: var(--blue); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bps-admin-total span { color: var(--muted); font-size: 12px; font-weight: 400; }
.bps-admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.bps-admin-facts { margin: 0; display: grid; gap: 9px; }
.bps-admin-facts > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
.bps-admin-facts dt { color: var(--muted); font-size: 12px; }
.bps-admin-facts dd { margin: 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.bps-admin-code { font: 400 11.5px/1.5 var(--mono); }
.bps-admin-items { padding: 22px 0; border-bottom: 1px solid var(--line); }
.bps-admin-items .bps-admin-table-wrap, .bps-admin-items .bps-admin-table { border: 0; }
.bps-admin-items .bps-admin-table th { background: transparent; padding-left: 0; }
.bps-admin-items .bps-admin-table td { padding-left: 0; }
.bps-admin-totals { margin: 14px 0 0; display: flex; justify-content: flex-end; gap: 32px; }
.bps-admin-totals > div { display: flex; gap: 12px; align-items: baseline; }
.bps-admin-totals dt { color: var(--muted); font-size: 12px; }
.bps-admin-totals dd { margin: 0; color: var(--ink); font-weight: 800; font-size: 13px; }
.bps-admin-actions { padding: 22px 0; border-bottom: 1px solid var(--line); }
.bps-admin-action-form { display: grid; gap: 14px; }
.bps-admin-action-row { display: flex; flex-wrap: wrap; gap: 9px; }
.bps-admin-ship-form { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line-dark); }
.bps-button-small { min-height: 40px; padding: 9px 14px; font-size: 12.5px; }
.bps-button-secondary { background: #fff; border-color: var(--line-dark); color: var(--blue); }
.bps-button-secondary:hover, .bps-button-secondary:focus-visible { background: var(--paper); border-color: var(--blue); color: var(--blue); }
.bps-admin-events { padding-top: 22px; }
.bps-admin-timeline { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bps-admin-timeline li { display: grid; grid-template-columns: 130px 150px minmax(0, 1fr) 60px; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12px; }
.bps-admin-timeline time, .bps-admin-timeline em { color: var(--muted); font-style: normal; font: 400 11px/1.4 var(--mono); }
.bps-admin-timeline strong { color: var(--ink); font-size: 12px; }
.bps-admin-timeline span { color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .bps-admin-cols { grid-template-columns: 1fr; gap: 22px; }
  .bps-admin-detail { padding: 18px; }
  .bps-admin-detail-head { flex-direction: column; }
  .bps-admin-timeline li { grid-template-columns: 1fr; gap: 2px; }
  .bps-admin-filters .bps-text-link { margin-left: 0; }
}

/* Alternate payment methods */
.bps-alt-body { padding: 22px 0 6px; border-bottom: 1px dashed var(--line-dark); }
.bps-alt-lede { margin: 0 0 16px; color: var(--ink); font-size: 14px; line-height: 1.55; }
.bps-bank { margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.bps-bank > div { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bps-bank dt { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.bps-bank dd { margin: 0; color: var(--ink); font-size: 13.5px; overflow-wrap: anywhere; }
@media (max-width: 480px) { .bps-bank > div { grid-template-columns: 1fr; gap: 3px; } }

/* Legal */
.bps-legal { max-width: 860px; padding: 54px 0 92px; }
.bps-legal h1 { margin: 0 0 10px; color: var(--blue); font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -.035em; line-height: 1.08; }
.bps-legal-meta { margin: 0 0 22px; color: var(--muted); font: 400 11.5px/1.4 var(--mono); letter-spacing: .03em; }
.bps-prose { max-width: 74ch; color: var(--ink); font-size: 15px; line-height: 1.72; }
.bps-prose h2 { margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--blue); font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.bps-prose p { margin: 0 0 13px; }
.bps-prose ul { margin: 0 0 15px; padding-left: 22px; }
.bps-prose li { margin-bottom: 7px; }
.bps-prose strong { color: var(--blue); font-weight: 800; }
.bps-prose a { color: var(--blue); }
.bps-legal-contact { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .bps-legal { padding: 36px 0 64px; } .bps-prose { font-size: 14.5px; } }

/* Admin catalog availability */
.bps-admin-bar-actions { display: flex; align-items: center; gap: 20px; }
.bps-admin-catalog-table td { vertical-align: middle; }
.bps-admin-check { display: inline-flex; align-items: center; }
.bps-admin-check input { width: 18px; height: 18px; accent-color: var(--green); }
.bps-admin-note { width: 100%; min-width: 180px; padding: 7px 9px; border: 1px solid var(--line-dark); border-radius: 3px; font-size: 12.5px; color: var(--ink); }
.bps-admin-note:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.bps-admin-save { position: sticky; bottom: 0; margin: 18px 0 0; padding: 14px 0; background: #fff; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .bps-admin-bar-actions { flex-wrap: wrap; gap: 10px; } }

/* No-JavaScript order summary */
.bps-nojs { margin-bottom: 24px; padding: 22px 24px; }
.bps-nojs-items { margin: 0 0 18px; padding: 0 0 0 18px; color: var(--ink); font-size: 13.5px; line-height: 1.65; }
.bps-nojs-items li { margin-bottom: 5px; }
.bps-nojs .bps-admin-code { font: 400 12.5px/1.55 var(--mono); overflow-wrap: anywhere; }

/* Order lookup */
.bps-lookup { max-width: 620px; }
.bps-lookup .bps-form { margin-top: 8px; }
.bps-lookup .bps-button { margin-top: 22px; }
.bps-admin-testmail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0; }

/* Admin order metrics */
.bps-admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.bps-admin-metrics > div { padding: 15px 16px; border: 1px solid var(--line); border-top: 3px solid var(--blue); background: var(--paper); }
.bps-admin-metrics span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.bps-admin-metrics strong { display: block; margin-top: 5px; color: var(--blue); font-size: 25px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bps-admin-metric-wide { grid-column: span 4; border-top-color: var(--green); }
.bps-admin-metric-wide strong { font-size: 21px; }
.bps-admin-metrics small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
@media (max-width: 900px) { .bps-admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bps-admin-metric-wide { grid-column: span 2; } }
@media (max-width: 480px) { .bps-admin-metrics { grid-template-columns: 1fr; } .bps-admin-metric-wide { grid-column: span 1; } }

/* Checkout discount breakdown */
.bps-summary-detail { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
.bps-summary-save { display: block; margin-top: 2px; color: var(--green-dark); font-size: 11.5px; font-weight: 700; }
#summary-discount, #summary-order { color: var(--green-dark); }
.bps-line-save { display: block; margin-top: 2px; color: var(--green-dark); font-size: 10.5px; font-weight: 700; }
.bps-method-option.is-unavailable { opacity: .7; }
.bps-method-option.is-unavailable .bps-method-kind { color: var(--amber); background: var(--amber-bg); }
.bps-payment-note { margin: 10px 0 0; padding: 10px 12px; border: 1px solid #ead3a9; border-radius: 5px; background: var(--amber-bg); color: var(--amber); font-size: 12px; line-height: 1.5; }
