/*
 * ecomPay developer docs.
 * Copyright (C) 2026 E Commerce Professionals Limited. ecomPay is a trade mark. Proprietary.
 */
@font-face { font-family: "ecomPay Archivo"; src: url("/assets/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root { --ink: #141414; --red: #cd2525; --bg: #fff; --soft: #f4f5f7; --line: #d6d9de; --muted: #5b6068; }
* { box-sizing: border-box; }
html { scroll-padding-top: 70px; }
body { margin: 0; font-family: "ecomPay Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.top { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1.5px solid var(--ink); display: flex; align-items: center; gap: 14px; padding: 10px 20px; }
.top img { display: block; }
.top .tag { font-weight: 700; color: var(--muted); font-size: 14px; flex: 1; }
.top .links { display: flex; gap: 14px; font-size: 14px; font-weight: 600; }
.wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); max-width: 1180px; margin: 0 auto; }
.toc { position: sticky; top: 58px; align-self: start; max-height: calc(100vh - 58px); overflow-y: auto; padding: 24px 12px 24px 20px; border-right: 1.5px solid var(--line); font-size: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 10px; border-radius: 6px; text-decoration: none; color: var(--muted); font-weight: 600; }
.toc a:hover, .toc a.on { background: var(--soft); color: var(--ink); }
.doc { padding: 28px 32px 80px; min-width: 0; }
.doc h1 { font-size: 30px; line-height: 1.15; margin: 0 0 14px; }
.doc h2 { font-size: 23px; margin: 44px 0 10px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.doc h3 { font-size: 17.5px; margin: 28px 0 8px; }
.doc h2 .anchor, .doc h3 .anchor, .doc h1 .anchor { text-decoration: none; }
.doc h2 .anchor:hover::after, .doc h3 .anchor:hover::after { content: " #"; color: var(--muted); font-weight: 400; }
.doc p, .doc li { max-width: 72ch; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.doc pre { margin: 0; background: var(--ink); color: #f4f4f4; padding: 14px 72px 14px 16px; overflow-x: auto; border-radius: 10px; font-size: 12.8px; line-height: 1.5; }
.doc pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.code { position: relative; margin: 12px 0 18px; }
.code .copy { position: absolute; top: 8px; right: 8px; font: 600 12px "ecomPay Archivo", system-ui, sans-serif; background: #fff; color: var(--ink); border: 0; border-radius: 6px; padding: 5px 9px; cursor: pointer; opacity: .85; }
.code .copy:hover { opacity: 1; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 10px 0 18px; display: block; overflow-x: auto; }
.doc th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.doc td { padding: 8px 10px; border-bottom: 1px solid var(--soft); vertical-align: top; }
.doc td code { white-space: nowrap; }
.doc strong { font-weight: 700; }
.doc blockquote { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--red); background: var(--soft); border-radius: 0 8px 8px 0; }
@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; border-right: 0; border-bottom: 1.5px solid var(--line); padding: 12px 16px; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px; }
  .doc { padding: 20px 16px 60px; }
  .doc h1 { font-size: 25px; }
  .top { padding: 10px 16px; }
  .top .links a:not(:last-child) { display: none; }
}
