:root{
    color-scheme:light;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}

*{
    box-sizing:border-box
}

html{
    scroll-behavior:smooth;
    scroll-padding-top:96px
}

body.pg-docs-body{
    margin:0;
    min-height:100vh;
    overflow-x:hidden;
    background:#f4f7fb;
    color:#152238;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-size:15px;
    line-height:1.55
}

.pg-docs-body a{
    color:inherit
}

.pg-docs-header{
    position:sticky;
    top:0;
    z-index:50;
    width:100%;
    background:rgba(255,255,255,.96);
    border-bottom:1px solid #e2e8f0;
    box-shadow:0 1px 4px rgba(15,23,42,.04)
}

.pg-docs-header-inner{
    width:min(1240px,calc(100% - 32px));
    min-height:72px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px
}

.pg-docs-brand{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#111827
}

.pg-docs-brand-mark{
    width:42px;
    height:42px;
    flex:0 0 42px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:linear-gradient(135deg,#4f46e5,#2563eb);
    color:#fff;
    font-weight:800;
    box-shadow:0 8px 22px rgba(37,99,235,.22)
}

.pg-docs-brand strong{
    display:block;
    font-size:16px
}

.pg-docs-brand small{
    display:block;
    margin-top:1px;
    color:#7a8699;
    font-size:11px;
    letter-spacing:.04em
}

.pg-docs-nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:4px;
    flex-wrap:wrap
}

.pg-docs-nav a{
    padding:9px 11px;
    border-radius:9px;
    color:#526175;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    white-space:nowrap
}

.pg-docs-nav a:hover,
.pg-docs-nav a.active{
    color:#3730a3;
    background:#eef2ff
}

.pg-docs-nav .pg-docs-signin{
    margin-left:5px;
    color:#fff;
    background:#2563eb
}

.pg-docs-nav .pg-docs-signin:hover{
    color:#fff;
    background:#1d4ed8
}

.pg-docs-hero{
    width:min(1240px,calc(100% - 32px));
    margin:28px auto 18px;
    padding:36px;
    display:grid;
    grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);
    gap:28px;
    align-items:center;
    overflow:hidden;
    border-radius:24px;
    background:
        radial-gradient(circle at 90% 10%,rgba(59,130,246,.42),transparent 34%),
        linear-gradient(135deg,#0f172a,#172554 55%,#1e40af);
    color:#fff;
    box-shadow:0 24px 60px rgba(15,23,42,.16)
}

.pg-docs-eyebrow,
.pg-doc-tag,
.pg-dev-eyebrow{
    display:inline-block;
    color:#2563eb;
    font-size:11px;
    font-weight:800;
    letter-spacing:.12em
}

.pg-docs-eyebrow{
    color:#93c5fd
}

.pg-docs-hero h1{
    margin:8px 0 12px;
    color:#fff;
    font-size:clamp(32px,4vw,52px);
    line-height:1.06;
    letter-spacing:-.03em
}

.pg-docs-hero p{
    max-width:780px;
    margin:0;
    color:#dbeafe;
    font-size:16px;
    line-height:1.75
}

.pg-docs-actions{
    margin-top:22px;
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap
}

.pg-docs-actions a{
    padding:10px 14px;
    border-radius:10px;
    text-decoration:none;
    font-size:13px;
    font-weight:750
}

.pg-docs-actions a.pg-docs-primary{
    background:#fff;
    color:#1e3a8a
}

.pg-docs-actions a.pg-docs-secondary{
    color:#fff;
    border:1px solid rgba(255,255,255,.32);
    background:rgba(255,255,255,.05)
}
.pg-docs-actions a.pg-docs-primary:visited{
    color:#1e3a8a
}

.pg-docs-actions a.pg-docs-primary:hover,
.pg-docs-actions a.pg-docs-primary:focus-visible{
    color:#1e3a8a;
    background:#eff6ff
}

.pg-docs-actions a.pg-docs-secondary:visited{
    color:#fff
}

.pg-docs-actions a.pg-docs-secondary:hover,
.pg-docs-actions a.pg-docs-secondary:focus-visible{
    color:#fff;
    border-color:#fff;
    background:rgba(255,255,255,.14)
}

.pg-docs-actions a:focus-visible,
.pg-docs-nav a:focus-visible,
.pg-docs-toc a:focus-visible,
.pg-resource-grid a:focus-visible{
    outline:3px solid #93c5fd;
    outline-offset:2px
}


.pg-docs-hero-status{
    min-width:0;
    padding:20px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:18px;
    background:rgba(255,255,255,.08)
}

.pg-docs-hero-status span,
.pg-docs-hero-status strong,
.pg-docs-hero-status small{
    display:block
}

.pg-docs-hero-status span{
    color:#93c5fd;
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase
}

.pg-docs-hero-status strong{
    margin:8px 0;
    color:#fff;
    overflow-wrap:anywhere;
    font-size:15px
}

.pg-docs-hero-status small{
    color:#bfdbfe;
    line-height:1.55
}

.pg-docs-layout{
    width:min(1240px,calc(100% - 32px));
    margin:0 auto 48px;
    display:grid;
    grid-template-columns:220px minmax(0,1fr);
    gap:18px;
    align-items:start
}

.pg-docs-toc{
    position:sticky;
    top:92px;
    display:grid;
    gap:3px;
    padding:15px;
    border:1px solid #e2e8f0;
    border-radius:17px;
    background:#fff;
    box-shadow:0 8px 26px rgba(15,23,42,.04)
}

.pg-docs-toc strong{
    padding:5px 8px 9px;
    color:#111827;
    font-size:12px
}

.pg-docs-toc a{
    padding:8px;
    border-radius:8px;
    color:#64748b;
    text-decoration:none;
    font-size:13px
}

.pg-docs-toc a:hover{
    color:#1d4ed8;
    background:#eff6ff
}

.pg-docs-content{
    min-width:0;
    display:grid;
    gap:16px
}

.pg-doc-section{
    scroll-margin-top:96px;
    min-width:0;
    padding:26px;
    overflow:hidden;
    border:1px solid #e2e8f0;
    border-radius:19px;
    background:#fff;
    box-shadow:0 10px 30px rgba(15,23,42,.035)
}

.pg-doc-section h2{
    margin:7px 0 12px;
    color:#111827;
    font-size:24px;
    letter-spacing:-.02em
}

.pg-doc-section:target{
    border-color:#93c5fd;
    box-shadow:
        0 0 0 3px rgba(59,130,246,.08),
        0 10px 30px rgba(15,23,42,.05)
}

.pg-doc-section p,
.pg-doc-section li{
    color:#475569;
    line-height:1.7
}

.pg-doc-section code{
    padding:2px 6px;
    border-radius:6px;
    background:#f1f5f9;
    color:#0f172a;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:.9em
}

.pg-doc-flow{
    margin-top:17px;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px
}

.pg-doc-flow>div{
    min-width:0;
    padding:16px;
    border:1px solid #e8edf5;
    border-radius:14px;
    background:#f8fafc
}

.pg-doc-flow b{
    width:31px;
    height:31px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:#2563eb;
    color:#fff;
    font-size:12px
}

.pg-doc-flow strong,
.pg-doc-flow span{
    display:block
}

.pg-doc-flow strong{
    margin:10px 0 3px;
    color:#172033
}

.pg-doc-flow span{
    color:#64748b;
    font-size:12px;
    line-height:1.55
}

.pg-doc-endpoint-title{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap
}

.pg-http-post,
.pg-http-get{
    display:inline-flex;
    padding:4px 8px;
    border-radius:7px;
    color:#fff;
    font-size:11px;
    font-weight:800
}

.pg-http-post{
    background:#16a34a
}

.pg-http-get{
    background:#2563eb
}

.pg-doc-code{
    width:100%;
    max-width:100%;
    margin:16px 0;
    padding:18px;
    overflow:auto;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    word-break:break-word;
    border:1px solid #1e293b;
    border-radius:14px;
    background:#0f172a;
    color:#e2e8f0;
    font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
    font-size:13px;
    line-height:1.6
}

.pg-doc-note,
.pg-doc-warning{
    margin-top:16px;
    padding:15px 17px;
    display:grid;
    gap:4px;
    border-radius:12px
}

.pg-doc-note{
    border-left:4px solid #2563eb;
    background:#eff6ff
}

.pg-doc-warning{
    border-left:4px solid #f59e0b;
    background:#fffbeb
}

.pg-doc-note strong,
.pg-doc-warning strong{
    color:#172033
}

.pg-integration-grid,
.pg-resource-grid,
.pg-dev-resource-grid{
    margin-top:15px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px
}

.pg-integration-grid article,
.pg-resource-grid a,
.pg-dev-resource-grid a{
    min-width:0;
    padding:16px;
    display:grid;
    gap:4px;
    border:1px solid #e2e8f0;
    border-radius:13px;
    background:#f8fafc
}

.pg-resource-grid a,
.pg-dev-resource-grid a{
    color:#172033;
    text-decoration:none
}

.pg-resource-grid a:hover,
.pg-dev-resource-grid a:hover{
    border-color:#93c5fd;
    background:#eff6ff
}

.pg-integration-grid strong,
.pg-resource-grid strong,
.pg-dev-resource-grid strong{
    color:#172033
}

.pg-integration-grid span,
.pg-resource-grid span,
.pg-dev-resource-grid span{
    color:#64748b;
    font-size:12px;
    line-height:1.5
}

.pg-doc-checklist{
    padding-left:21px
}

.pg-docs-footer{
    width:min(1240px,calc(100% - 32px));
    margin:0 auto 28px;
    padding:18px 2px;
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
    border-top:1px solid #e2e8f0;
    color:#64748b;
    font-size:12px
}

.pg-docs-footer a{
    color:#2563eb;
    text-decoration:none
}


/* PAYGSM SERVER-RENDERED DOC SECTION MODE */

body.pg-docs-section-mode .pg-docs-hero{
    display:none
}

body.pg-docs-section-mode .pg-docs-layout{
    margin-top:24px;
    min-height:calc(100vh - 170px)
}

body.pg-docs-section-mode .pg-doc-section{
    display:none
}

body.pg-docs-section-mode .pg-docs-toc{
    top:92px
}

body.pg-docs-section-mode .pg-docs-all{
    margin-bottom:6px;
    color:#2563eb;
    background:#f8fafc;
    font-weight:700
}

body.pg-docs-section-mode[data-doc-section="quickstart"] #quickstart{
    display:block
}

body.pg-docs-section-mode[data-doc-section="quickstart"] .pg-docs-toc a[href="/api-docs?section=quickstart"]{
    color:#1d4ed8;
    background:#eff6ff;
    font-weight:750
}

body.pg-docs-section-mode[data-doc-section="authentication"] #authentication{
    display:block
}

body.pg-docs-section-mode[data-doc-section="authentication"] .pg-docs-toc a[href="/api-docs?section=authentication"]{
    color:#1d4ed8;
    background:#eff6ff;
    font-weight:750
}

body.pg-docs-section-mode[data-doc-section="create-invoice"] #create-invoice{
    display:block
}

body.pg-docs-section-mode[data-doc-section="create-invoice"] .pg-docs-toc a[href="/api-docs?section=create-invoice"]{
    color:#1d4ed8;
    background:#eff6ff;
    font-weight:750
}

body.pg-docs-section-mode[data-doc-section="invoice-status"] #invoice-status{
    display:block
}

body.pg-docs-section-mode[data-doc-section="invoice-status"] .pg-docs-toc a[href="/api-docs?section=invoice-status"]{
    color:#1d4ed8;
    background:#eff6ff;
    font-weight:750
}

body.pg-docs-section-mode[data-doc-section="checkout"] #checkout{
    display:block
}

body.pg-docs-section-mode[data-doc-section="checkout"] .pg-docs-toc a[href="/api-docs?section=checkout"]{
    color:#1d4ed8;
    background:#eff6ff;
    font-weight:750
}

body.pg-docs-section-mode[data-doc-section="callbacks"] #callbacks{
    display:block
}

body.pg-docs-section-mode[data-doc-section="callbacks"] .pg-docs-toc a[href="/api-docs?section=callbacks"]{
    color:#1d4ed8;
    background:#eff6ff;
    font-weight:750
}

body.pg-docs-section-mode[data-doc-section="integrations"] #integrations{
    display:block
}

body.pg-docs-section-mode[data-doc-section="integrations"] .pg-docs-toc a[href="/api-docs?section=integrations"]{
    color:#1d4ed8;
    background:#eff6ff;
    font-weight:750
}

body.pg-docs-section-mode[data-doc-section="security"] #security{
    display:block
}

body.pg-docs-section-mode[data-doc-section="security"] .pg-docs-toc a[href="/api-docs?section=security"]{
    color:#1d4ed8;
    background:#eff6ff;
    font-weight:750
}

body.pg-docs-section-mode[data-doc-section="resources"] #resources{
    display:block
}

body.pg-docs-section-mode[data-doc-section="resources"] .pg-docs-toc a[href="/api-docs?section=resources"]{
    color:#1d4ed8;
    background:#eff6ff;
    font-weight:750
}

@media(max-width:920px){
    .pg-docs-header-inner{
        align-items:flex-start;
        flex-direction:column;
        padding-top:12px;
        padding-bottom:12px
    }

    .pg-docs-nav{
        width:100%;
        justify-content:flex-start
    }

    .pg-docs-hero{
        grid-template-columns:1fr
    }

    .pg-docs-layout{
        grid-template-columns:1fr
    }

    .pg-docs-toc{
        position:static;
        display:flex;
        overflow-x:auto;
        white-space:nowrap
    }

    .pg-doc-flow{
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
}

@media(max-width:620px){
    .pg-docs-header-inner,
    .pg-docs-hero,
    .pg-docs-layout,
    .pg-docs-footer{
        width:min(100% - 20px,1240px)
    }

    .pg-docs-nav a{
        padding:7px 8px;
        font-size:12px
    }

    .pg-docs-hero{
        margin-top:10px;
        padding:22px
    }

    .pg-doc-section{
        padding:18px
    }

    .pg-doc-flow,
    .pg-integration-grid,
    .pg-resource-grid,
    .pg-dev-resource-grid{
        grid-template-columns:1fr
    }
}