/* ==========================================================================
   Payment Center design system
   Breakpoint: 900px  (below = "narrow"/mobile, at/above = "wide"/desktop)
   ========================================================================== */

:root {
    --pc-primary: #1B6FA8;
    --pc-primary-dark: #0F4C75;
    --pc-primary-soft: #EEF3F8;

    --pc-ink: #1C2530;
    --pc-body: #485664;
    --pc-muted: #6B7885;
    --pc-label: #8A96A3;
    --pc-trust: #5C6B7A;

    --pc-border: #DFE5EC;
    --pc-border-soft: #E7EBF0;
    --pc-border-input: #C6D0DA;
    --pc-border-chip: #DCE5EE;
    --pc-divider: #EDF1F5;
    --pc-surface-soft: #FAFCFE;

    --pc-green: #2E7D46;
    --pc-green-bg: #EDF6EF;
    --pc-green-border: #CBE3D2;

    --pc-red: #B3261E;
    --pc-red-border: #EBC7C2;

    --pc-disabled: #C7D2DC;

    /* page gutter */
    --x: 18px;
}

@media (min-width: 900px) {
    :root {
        --x: 40px;
    }
}

body {
    margin: 0;
    background: #fff;
    font-family: 'Source Sans 3', Helvetica, Arial, sans-serif;
    color: var(--pc-ink);
}

a {
    color: var(--pc-primary);
}

    a:hover {
        color: var(--pc-primary-dark);
    }

.pc-mono {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}


/* ---------- page frame (header / main / footer) ---------- */

.pc-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pc-main {
    flex: 1;
    padding: 26px var(--x) 34px;
    background: linear-gradient(160deg, #E9E9FA 0%, #EFEFFB 55%, #F6F7FC 100%);
}

@media (min-width: 900px) {
    .pc-main {
        padding: 64px var(--x) 72px;
    }
}

.pc-shell {
    max-width: 1108px;
    margin: 0 auto;
}

/* Single narrow, centred column — used by the result pages (success / failed / signed out). */
.pc-shell--narrow {
    max-width: 600px;
    text-align: center;
}


/* ---------- header ---------- */

.pc-header {
    background: #fff;
    border-bottom: 1px solid var(--pc-border-soft);
    padding: 0 var(--x);
}

.pc-header-row {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (min-width: 900px) {
    .pc-header-row {
        height: 78px;
    }
}

.pc-brand {
    display: flex;
    align-items: center;
    gap: 26px;
    text-decoration: none;
}

    /* the logo stays the clickable part; the divider and name sit beside it */
    .pc-brand > a {
        display: flex;
        align-items: center;
    }

.pc-logo {
    height: 24px;
    width: auto;
    display: block;
}

@media (min-width: 900px) {
    .pc-logo {
        height: 38px;
    }
}

.pc-brand-divider {
    width: 1px;
    height: 34px;
    background: var(--pc-border-soft);
    display: none;
}

.pc-brand-name {
    font-size: 17px;
    color: var(--pc-body);
    display: none;
}

@media (min-width: 900px) {
    .pc-brand-divider,
    .pc-brand-name {
        display: block;
    }
}

.pc-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-secure {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--pc-green-bg);
    border: 1px solid var(--pc-green-border);
    border-radius: 18px;
    padding: 5px 12px;
}

    .pc-secure span {
        font-size: 13px;
        font-weight: 600;
        color: var(--pc-green);
    }

.pc-lock {
    width: 10px;
    height: 13px;
    border: 1.5px solid var(--pc-green);
    border-radius: 2px 2px 2px 2px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    flex: 0 0 auto;
}

/* "Secure payment" on wide, "Secure" on narrow */
.pc-secure-long {
    display: none;
}

@media (min-width: 900px) {
    .pc-secure-long {
        display: inline;
    }

    .pc-secure-short {
        display: none;
    }
}

.pc-account {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #DDE4EB;
    border-radius: 20px;
    padding: 4px 5px 4px 11px;
    text-decoration: none;
}

.pc-account-name {
    font-size: 15px;
    color: var(--pc-body);
    display: none;
}

@media (min-width: 900px) {
    .pc-account-name {
        display: inline;
    }
}

.pc-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pc-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.pc-avatar--guest {
    background: var(--pc-label);
}

.pc-avatar--anon {
    background: #DDE4EB;
    color: var(--pc-label);
}

.pc-signout {
    font-size: 14px;
    color: var(--pc-muted);
    text-decoration: none;
    white-space: nowrap;
}

    .pc-signout:hover {
        color: var(--pc-primary-dark);
    }


/* ---------- footer ---------- */

.pc-footer {
    padding: 18px var(--x);
    border-top: 1px solid var(--pc-border-soft);
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pc-muted);
    text-align: center;
}


/* ---------- hero ---------- */

.pc-hero {
    display: block;
}

@media (min-width: 900px) {
    .pc-hero {
        display: grid;
        grid-template-columns: minmax(0, 700px) minmax(0, 360px);
        gap: 48px;
        align-items: start;
        padding-bottom: 36px;
    }
}

.pc-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pc-label);
    margin-bottom: 11px;
}

.pc-h1 {
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--pc-ink);
}

@media (min-width: 900px) {
    .pc-h1 {
        font-size: 42px;
    }
}

.pc-lead {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--pc-body);
    max-width: 600px;
}

@media (min-width: 900px) {
    .pc-lead {
        font-size: 17px;
    }
}

    .pc-lead strong {
        font-weight: 600;
        color: var(--pc-ink);
    }

.pc-lead--last {
    margin-bottom: 18px;
}

@media (min-width: 900px) {
    .pc-lead--last {
        margin-bottom: 36px;
    }
}

/* hero illustration: inline on wide, above the card on narrow */
.pc-hero-art {
    display: none;
}

@media (min-width: 900px) {
    .pc-hero-art {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .pc-hero-art img {
            width: 86%;
            height: auto;
            display: block;
            margin: 0 auto;
        }
}

.pc-hero-art-sm {
    width: 210px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

@media (min-width: 900px) {
    .pc-hero-art-sm {
        display: none;
    }
}


/* ---------- cards / panels ---------- */

.pc-card {
    background: #fff;
    border: 1px solid var(--pc-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(28, 37, 48, .05);
}

@media (min-width: 900px) {
    .pc-card {
        padding: 32px;
    }
}

.pc-panel {
    background: #fff;
    border: 1px solid var(--pc-border);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 2px 6px rgba(28, 37, 48, .05);
}

.pc-panel-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--pc-ink);
    margin-bottom: 20px;
}

.pc-rule {
    height: 1px;
    background: var(--pc-divider);
    margin: 20px 0;
}

.pc-collabel {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pc-label);
    margin-bottom: 9px;
}

.pc-sub {
    font-size: 15px;
    color: var(--pc-muted);
    line-height: 1.5;
}


/* ---------- buttons ---------- */

.pc-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 52px;
    padding: 0 24px;
    border: none;
    border-radius: 9px;
    background: var(--pc-primary);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease;
}

@media (min-width: 900px) {
    .pc-btn--auto {
        width: auto;
        height: 54px;
        padding: 0 30px;
    }
}

.pc-btn:hover:not(:disabled) {
    background: var(--pc-primary-dark);
    color: #fff;
}

.pc-btn:disabled {
    background: var(--pc-disabled);
    cursor: not-allowed;
}

.pc-btn--ghost {
    background: #fff;
    border: 1px solid var(--pc-border-input);
    color: var(--pc-ink);
    font-weight: 400;
    font-size: 16px;
    height: 48px;
}

    .pc-btn--ghost:hover:not(:disabled) {
        background: var(--pc-primary-soft);
        color: var(--pc-ink);
    }

/* inline spinner */
.pc-btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pc-spin .8s linear infinite;
}

.pc-btn.loading .pc-btn-text {
    display: none;
}

.pc-btn.loading .pc-btn-loader {
    display: block;
}

@keyframes pc-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ---------- search ---------- */

.pc-search-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--pc-ink);
    margin-bottom: 14px;
}

.pc-search-row {
    display: grid;
    gap: 12px;
}

@media (min-width: 900px) {
    .pc-search-row {
        display: flex;
        gap: 12px;
    }
}

.pc-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--pc-border-input);
    border-radius: 9px;
    padding: 0 14px;
    height: 54px;
    background: #fff;
    transition: border-color .15s ease;
}

    .pc-input-wrap:focus-within {
        border-color: var(--pc-primary);
    }

.pc-input-wrap--valid {
    border-color: var(--pc-green);
}

.pc-input-wrap--invalid {
    border-color: var(--pc-red);
}

.pc-input-dot {
    width: 15px;
    height: 15px;
    border: 2px solid #9AA7B4;
    border-radius: 50%;
    flex: 0 0 auto;
}

.pc-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 16px;
    color: var(--pc-ink);
    letter-spacing: .02em;
    height: 100%;
    width: 100%;
    min-width: 0;
}

    .pc-input:focus {
        outline: none;
    }

.pc-examples {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--pc-muted);
}

.pc-chip {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 13px;
    color: var(--pc-ink);
    background: var(--pc-primary-soft);
    border: 1px solid var(--pc-border-chip);
    border-radius: 5px;
    padding: 5px 9px;
    /*cursor: pointer;*/
}

/*    .pc-chip:hover {
        border-color: var(--pc-primary);
    }*/


/* ---------- alerts ---------- */

.pc-alert {
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--pc-red-border);
    border-left: 4px solid var(--pc-red);
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    gap: 16px;
}

.pc-alert-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pc-red);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-alert-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--pc-red);
    margin-bottom: 7px;
}

.pc-alert-body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--pc-body);
}


/* ---------- trust strip ---------- */

.pc-trust {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 6px;
    margin-top: 18px;
    padding-left: 2px;
}

@media (min-width: 900px) {
    .pc-trust {
        align-items: center;
        gap: 28px;
        margin-top: 26px;
        padding-left: 4px;
    }
}

.pc-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pc-trust);
}

@media (min-width: 900px) {
    .pc-trust-item {
        font-size: 14px;
    }
}

.pc-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--pc-green);
    flex: 0 0 auto;
}


/* ---------- found bar + invoice card ---------- */

.pc-below {
    margin-top: 20px;
}

@media (min-width: 900px) {
    .pc-below {
        margin-top: 28px;
    }
}

.pc-found {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--pc-primary-soft);
    border: 1px solid var(--pc-border-chip);
    border-radius: 10px;
    padding: 13px 18px;
    margin-bottom: 18px;
}

.pc-found-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    font-size: 15px;
    color: var(--pc-body);
}

.pc-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pc-green);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.pc-found-num {
    color: var(--pc-ink);
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-invoice {
    background: #fff;
    border: 1px solid var(--pc-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(28, 37, 48, .05);
}

.pc-invoice-row {
    padding: 18px;
    display: grid;
    gap: 16px;
}

@media (min-width: 900px) {
    .pc-invoice-row {
        padding: 26px 26px 22px;
        display: flex;
        gap: 28px;
    }

    .pc-col--customer {
        flex: 1.2;
    }

    .pc-col--doc {
        flex: 1;
    }

    .pc-col--price {
        flex: 0 0 auto;
        text-align: right;
    }
}

.pc-cust {
    font-size: 17px;
    color: var(--pc-ink);
    line-height: 1.5;
}

.pc-docnum {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 15px;
    color: var(--pc-ink);
    line-height: 1.6;
}

.pc-amount {
    font-size: 30px;
    font-weight: 600;
    color: var(--pc-ink);
    letter-spacing: -.01em;
}

.pc-note {
    padding: 15px 18px;
    border-top: 1px solid var(--pc-divider);
    background: var(--pc-surface-soft);
    font-size: 15px;
    line-height: 1.5;
    color: var(--pc-body);
}

@media (min-width: 900px) {
    .pc-note {
        padding: 15px 26px;
    }
}

.pc-note strong {
    font-weight: 600;
    color: var(--pc-ink);
}

.pc-action-row {
    padding: 18px;
    border-top: 1px solid var(--pc-divider);
    display: grid;
    gap: 16px;
}

@media (min-width: 900px) {
    .pc-action-row {
        padding: 22px 26px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        flex-wrap: wrap;
    }
}

.pc-terms {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--pc-body);
    cursor: pointer;
}

    .pc-terms input {
        width: 19px;
        height: 19px;
        margin: 0;
        flex: 0 0 auto;
        accent-color: var(--pc-primary);
        cursor: pointer;
    }


/* ---------- checkout ---------- */

.pc-checkout-grid {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 900px) {
    .pc-checkout-grid {
        grid-template-columns: 1fr 1.25fr;
        gap: 20px;
        align-items: start;
        margin-top: 26px;
    }
}

.pc-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.pc-total-label {
    font-size: 16px;
    color: var(--pc-body);
}

.pc-total-amount {
    font-size: 28px;
    font-weight: 600;
    color: var(--pc-ink);
}

.pc-fineprint {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pc-muted);
}

.pc-cancel {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 15px;
    color: var(--pc-muted);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .pc-cancel:hover {
        border-color: var(--pc-border);
        box-shadow: 0 2px 10px rgba(28, 37, 48, .08);
        color: var(--pc-body);
    }


/* ---------- result (done / failed) ---------- */

.pc-result {
    max-width: 560px;
    margin: 0 auto; /* centre the card in its column */
    background: #fff;
    border: 1px solid var(--pc-border);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(28, 37, 48, .05);
}

@media (min-width: 900px) {
    .pc-result {
        padding: 36px;
    }
}

.pc-result-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pc-green);
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pc-result-icon--error {
    background: var(--pc-red);
}

.pc-result-icon--neutral {
    background: var(--pc-primary);
}

.pc-result-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--pc-ink);
    margin-bottom: 10px;
}

.pc-result-text {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--pc-body);
}

    .pc-result-text strong {
        font-weight: 600;
        color: var(--pc-ink);
    }

.pc-result-rows {
    text-align: left;
    margin: 0 0 24px;
    border-top: 1px solid var(--pc-divider);
}

.pc-result-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--pc-divider);
    font-size: 14px;
}

    .pc-result-row .label {
        color: var(--pc-muted);
    }

    .pc-result-row .value {
        color: var(--pc-ink);
        font-weight: 600;
        word-break: break-all;
        text-align: right;
    }

.pc-result-btns {
    display: grid;
    gap: 10px;
}

@media (min-width: 900px) {
    .pc-result-btns {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

        .pc-result-btns .pc-btn {
            width: auto;
            height: 48px;
        }
}


/* ---------- "continue as" gate modal ---------- */

.pc-gate {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(28, 37, 48, .42);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

    .pc-gate.active {
        display: flex;
    }

@media (min-width: 900px) {
    .pc-gate {
        padding: 32px;
    }
}

.pc-gate-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    padding: 26px 20px 20px;
    box-shadow: 0 24px 60px rgba(28, 37, 48, .28);
}

@media (min-width: 900px) {
    .pc-gate-card {
        max-width: 920px;
        padding: 34px 34px 26px;
    }
}

.pc-gate-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--pc-muted);
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .pc-gate-close:hover {
        background: var(--pc-primary-soft);
    }

.pc-gate-head {
    margin-bottom: 18px;
    padding-right: 36px;
}

@media (min-width: 900px) {
    .pc-gate-head {
        margin-bottom: 24px;
    }
}

.pc-gate-title {
    margin: 0 0 6px;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--pc-ink);
}

@media (min-width: 900px) {
    .pc-gate-title {
        font-size: 28px;
    }
}

.pc-gate-sub {
    margin: 0;
    font-size: 15px;
    color: var(--pc-muted);
}

.pc-gate-grid {
    display: grid;
    gap: 12px;
}

@media (min-width: 900px) {
    .pc-gate-grid {
        grid-template-columns: 1fr 1.15fr 1fr;
        gap: 16px;
        align-items: stretch;
    }
}

.pc-opt {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 14px;
    width: 100%;
    padding: 18px 16px;
    border: 1px solid var(--pc-border);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

@media (min-width: 900px) {
    .pc-opt {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 26px 20px;
    }
}

.pc-opt:hover {
    border-color: var(--pc-primary);
    color: inherit;
}

.pc-opt--accent {
    border: 1.5px solid var(--pc-primary);
    box-shadow: 0 6px 18px rgba(27, 111, 168, .12);
}

.pc-opt-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pc-primary);
}

.pc-opt-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.pc-opt-icon--login {
    background: #E4EFF7;
}

.pc-opt-icon--create {
    background: #D9EAF6;
}

.pc-opt-icon--guest {
    background: var(--pc-primary-soft);
}

.pc-opt-text {
    flex: 1;
}

@media (min-width: 900px) {
    .pc-opt-text {
        flex: none;
    }
}

.pc-opt-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--pc-ink);
    margin-bottom: 4px;
}

.pc-opt-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--pc-muted);
}

.pc-features {
    display: grid;
    gap: 6px;
    justify-items: start;
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

@media (min-width: 900px) {
    .pc-opt--accent .pc-features {
        justify-self: center;
    }
}

.pc-features li {
    display: flex;
    gap: 8px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--pc-body);
}

    .pc-features li::before {
        content: "\2713";
        color: var(--pc-green);
        font-weight: 700;
        flex: 0 0 auto;
    }

.pc-gate-foot {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--pc-label);
    text-align: center;
}

@media (min-width: 900px) {
    .pc-gate-foot {
        margin-top: 22px;
    }
}
