:root {
    --paynex-ink: #071321;
    --paynex-ink-soft: #0d1d31;
    --paynex-blue: #2864ff;
    --paynex-blue-dark: #174bd5;
    --paynex-line: #dce3ee;
    --paynex-muted: #637083;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--paynex-ink);
    background: #f7f9fc;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.api-shell {
    color: #fff;
    background: var(--paynex-ink);
    border-bottom: 1px solid rgba(151, 180, 219, .18);
}

.api-shell__header {
    width: min(calc(100% - 40px), 1324px);
    min-height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
}

.api-shell__brand {
    flex: 0 0 auto;
    margin-right: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 850;
    letter-spacing: .1em;
    font-size: 21px;
}

.api-shell__brand span { color: var(--paynex-blue); }
.api-shell__title {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 17px;
    white-space: nowrap;
}
.api-shell__title span { color: #8daeff; margin-left: 7px; font-size: 12px; }

.api-shell__links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.api-shell__links a {
    padding: 8px 11px;
    color: #9fb1c8;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}

.api-shell__links a:hover,
.api-shell__links a.is-active {
    color: #fff;
    background: rgba(105, 146, 255, .15);
}

.api-shell__live {
    flex: 0 0 auto;
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid rgba(151, 180, 219, .18);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd7e8;
    font-size: 13px;
}

.api-shell__live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #31c56b;
    box-shadow: 0 0 0 4px rgba(49, 197, 107, .12);
}

.api-shell__notice {
    width: min(calc(100% - 40px), 1260px);
    margin: 22px auto 0;
    padding: 14px 18px;
    color: #39506c;
    background: #edf4ff;
    border: 1px solid #c9dcff;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.55;
}

.api-shell__notice strong {
    display: block;
    color: #102b52;
    margin-bottom: 2px;
}

.api-shell__notice code {
    color: #174bad;
    font-weight: 650;
}

.swagger-ui { color: var(--paynex-ink); }
.swagger-ui .topbar { display: none; }
.swagger-ui .wrapper {
    width: min(calc(100% - 40px), 1260px);
    max-width: none;
    padding: 20px 0 64px;
}
.swagger-ui .info { margin: 14px 0 28px; }
.swagger-ui .info .title { color: var(--paynex-ink); font-size: 32px; letter-spacing: -.025em; }
.swagger-ui .info p, .swagger-ui .info li, .swagger-ui .info table { color: var(--paynex-muted); }
.swagger-ui .scheme-container {
    margin: 0 0 28px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--paynex-line);
    border-radius: 14px;
    box-shadow: none;
}
.swagger-ui .btn.authorize {
    color: var(--paynex-blue);
    border-color: var(--paynex-blue);
    border-radius: 9px;
}
.swagger-ui .btn.authorize svg { fill: var(--paynex-blue); }
.swagger-ui .opblock-tag {
    margin: 0;
    padding: 18px 8px;
    color: var(--paynex-ink);
    border-bottom-color: var(--paynex-line);
    font-size: 20px;
}
.swagger-ui .opblock {
    overflow: hidden;
    margin: 12px 0;
    background: #fff;
    border-radius: 13px;
    box-shadow: none;
}
.swagger-ui .opblock.opblock-post {
    background: #fff;
    border-color: #8fb0ff;
}
.swagger-ui .opblock.opblock-post .opblock-summary-method { background: var(--paynex-blue); }
.swagger-ui .opblock .opblock-summary-method { border-radius: 7px; text-shadow: none; }
.swagger-ui .opblock .opblock-section-header { background: #f4f7fb; box-shadow: none; }
.swagger-ui .btn.execute {
    background: var(--paynex-blue);
    border-color: var(--paynex-blue);
    border-radius: 9px;
}
.swagger-ui input, .swagger-ui select, .swagger-ui textarea { border-color: #cfd8e6; border-radius: 8px; }
.swagger-ui .model-box { background: #f2f6fb; border-radius: 9px; }

.paynex-code-samples {
    margin: 18px 20px;
    overflow: hidden;
    color: #dce8f8;
    background: var(--paynex-ink);
    border: 1px solid #243a55;
    border-radius: 12px;
}

.paynex-code-samples__heading {
    padding: 15px 17px 12px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(151, 180, 219, .16);
}

.paynex-code-samples__heading strong {
    color: #fff;
    font: 700 14px/1.3 Inter, ui-sans-serif, sans-serif;
}

.paynex-code-samples__heading span {
    color: #8fa3bc;
    font: 500 12px/1.3 Inter, ui-sans-serif, sans-serif;
}

.paynex-code-samples__toolbar {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--paynex-ink-soft);
}

.paynex-code-samples__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.paynex-code-samples__tab,
.paynex-code-samples__copy {
    min-height: 32px;
    padding: 6px 10px;
    color: #9fb1c8;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    font: 650 12px/1 Inter, ui-sans-serif, sans-serif;
}

.paynex-code-samples__tab:hover,
.paynex-code-samples__tab.is-active {
    color: #fff;
    background: rgba(40, 100, 255, .22);
    border-color: rgba(105, 146, 255, .34);
}

.paynex-code-samples__copy {
    flex: 0 0 auto;
    color: #fff;
    background: var(--paynex-blue);
    border-color: var(--paynex-blue);
}

.paynex-code-samples__copy:hover { background: var(--paynex-blue-dark); }
.paynex-code-samples__copy:disabled { cursor: default; opacity: .85; }

.paynex-code-samples__code {
    max-height: 380px;
    margin: 0;
    padding: 18px;
    overflow: auto;
    color: #dce8f8;
    background: #07111e;
    border: 0;
    border-radius: 0;
    white-space: pre;
    font: 500 12px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.paynex-code-samples__code code {
    color: inherit;
    background: transparent;
    font: inherit;
}

@media (max-width: 980px) {
    .api-shell__brand { margin-right: 22px; }
    .api-shell__title { display: none; }
}

@media (max-width: 760px) {
    .api-shell__header {
        width: calc(100% - 24px);
    }
    .api-shell__brand { margin-right: auto; }
    .api-shell__links { display: none; }
    .api-shell__live {
        margin-left: 12px;
        padding-left: 12px;
    }
    .api-shell__notice {
        width: calc(100% - 24px);
        margin-top: 14px;
    }
    .swagger-ui .wrapper {
        width: calc(100% - 24px);
        padding: 12px 0 44px;
    }
    .swagger-ui .info .title { font-size: 25px; }
    .swagger-ui .opblock .opblock-summary { align-items: flex-start; }
    .swagger-ui .opblock .opblock-summary-description { padding-top: 3px; }
    .paynex-code-samples { margin: 14px 12px; }
    .paynex-code-samples__heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .paynex-code-samples__toolbar { align-items: flex-start; flex-direction: column; }
    .paynex-code-samples__copy { width: 100%; }
}
