/* The page around the Payment Gateway demo in the site's newer language (05.10), as the
   OxaBank demo carries it: one window instead of three cards, a title bar, the merchant
   and the buyer as panes split by hairlines, the processing trace as the window's foot;
   mono "// labels" in place of red number circles, square marks in place of dots. The
   demo's logic and the checkout itself are untouched. */
:root { --pane: #0b0d12; --bar: #11141b; }

.topline {
  margin: 0; padding: 10px 14px;
  background: var(--bar); border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0;
}
p.sub { font-size: 13px; }

.grid {
  gap: 1px; background: var(--line);
  border: 1px solid var(--border); border-top: 0; border-bottom: 0;
}
.panel { border: 0; border-radius: 0; background: var(--pane); padding: 22px; }
.panel.proc-panel {
  margin-top: 0; border: 1px solid var(--border); border-radius: 0 0 10px 10px;
}
/* the buyer pane: the checkout on a dotted field, as the product sits on the page */
.grid > .panel:nth-child(2) {
  background: var(--pane) radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.2px) 0 0 / 14px 14px;
}

.step-tag { font: 500 11.5px/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.06em; }
.step-tag::before { content: '//'; color: #5c6473; }
.step-num { display: none; }

input, .ccy { border-radius: 6px; }
button.primary { border-radius: 8px; }
.route { border-radius: 8px; }
.mbanner { border-radius: 8px; }

/* switches: neutral, the chosen one lifted with a hairline, red only as its top edge */
.modetoggle, .viewtoggle, .proc-tabs { border-radius: 8px; padding: 2px; background: #0d0f15; border: 1px solid var(--line); }
.modetoggle button, .viewtoggle button, .pt { border-radius: 6px; }
.modetoggle button.active, .viewtoggle button.active, .pt.active {
  background: var(--surface-2); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border), inset 0 1px 0 var(--accent);
}

/* status as a small square mark, never a dot */
.catalog .p::before,
.chain .node .n::before { border-radius: 1px; }
.chain .node { border-radius: 6px; }
.dot { width: 8px; height: 8px; border-radius: 1px; margin-top: 6px; }
.mb-row .ic { border-radius: 4px; }

pre.code { border-radius: 8px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}
