#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
@import "../../../../editor/proprietary/billing/MeterBar.css";
/* Portal billing page — paired with views/Usage.tsx (.portal-billing root). */
.portal-billing__stack {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
/* Cap editor (in-place, replaces the spend-limit display). */
.portal-billing__suggested {
display: inline-flex;
align-items: center;
margin-top: 0.75rem;
padding: 0.3rem 0.7rem;
font-size: 0.8125rem;
font-weight: 500;
color: var(--c-accent-text);
background: var(--color-bg-subtle);
border: 1px solid var(--c-border);
border-radius: 999px;
cursor: pointer;
}
.portal-billing__suggested:hover {
border-color: var(--c-primary);
}
.portal-billing__guardrail {
margin-top: 0.85rem;
padding: 0.7rem 0.85rem;
font-size: 0.8125rem;
color: var(--c-text-subtle);
background: var(--color-bg-subtle);
border-radius: 0.6rem;
}
.portal-billing__guardrail strong {
color: var(--c-text);
}
.portal-billing__edit-actions {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
margin-top: 1rem;
}
/* Tighten the billing cards to the marketing rhythm — less empty top/bottom and
slightly snugger sides than the default loose profile. */
.portal-billing__stack .sui-card--pad-loose {
padding: 0.95rem 1.5rem;
}
.portal-billing__row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.25rem;
}
@media (max-width: 900px) {
.portal-billing__row {
grid-template-columns: 1fr;
}
}
.portal-billing__row-actions {
display: flex;
align-items: center;
gap: 0.75rem;
margin-top: 1rem;
}
.portal-billing__eyebrow {
display: inline-block;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--c-text-subtle);
margin-bottom: 0.25rem;
}
.portal-billing__section-title {
font-size: 1.05rem;
font-weight: 600;
color: var(--c-text);
margin: 0 0 0.25rem;
}
.portal-billing__section-sub {
font-size: 0.875rem;
color: var(--c-text-subtle);
margin: 0 0 1rem;
}
/* Free grant still offsetting spend — reads as a positive credit note, pulled up
under the "PDFs processed" line. */
.portal-billing__free-remaining {
color: var(--color-green-dark);
margin-top: -0.5rem;
}
.portal-billing__skeleton {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
/* Post-checkout activation state, shown inside the checkout modal while the
subscription webhook lands (and the "almost there" fallback if it lags). */
.portal-billing__checkout-finalizing {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 0.75rem;
padding: 2.5rem 1.5rem;
}
.portal-billing__checkout-status-title {
font-size: 1.125rem;
font-weight: 600;
color: var(--c-text);
margin: 0.25rem 0 0;
}
.portal-billing__checkout-status-body {
font-size: 0.9375rem;
color: var(--c-text-muted);
margin: 0;
max-width: 32rem;
}
.portal-billing__checkout-status-hint {
font-size: 0.8125rem;
color: var(--c-text-subtle);
margin: 0;
}
.portal-billing__error {
color: var(--color-red, var(--color-red-dark));
font-size: 0.875rem;
margin: 0.5rem 0;
}
/* ── Meter card ─────────────────────────────────────────────────────────── */
.portal-billing__meter-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 1rem;
}
.portal-billing__meter-title {
font-size: 1.25rem;
font-weight: 600;
margin: 0;
color: var(--c-text);
}
.portal-billing__meter-figures {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
margin-bottom: 1rem;
}
.portal-billing__meter-figure {
display: flex;
flex-direction: column;
}
.portal-billing__meter-num {
font-size: 1.75rem;
font-weight: 600;
color: var(--c-text);
}
.portal-billing__meter-num--muted {
color: var(--c-text-subtle);
}
.portal-billing__meter-label {
font-size: 0.8125rem;
color: var(--c-text-subtle);
}
.portal-billing__meter-track {
height: 0.5rem;
background: var(--color-bg-subtle, var(--c-surface-sunken));
border-radius: 999px;
overflow: hidden;
margin-bottom: 0.75rem;
}
.portal-billing__meter-fill {
height: 100%;
background: linear-gradient(90deg, var(--c-primary), var(--color-purple));
border-radius: 999px;
transition: width 200ms ease;
}
.portal-billing__meter-foot {
font-size: 0.8125rem;
color: var(--c-text-subtle);
margin: 0.75rem 0 0;
}
/* ── SaaS-shared meter primitives ───────────────────────────────────────────
Same class names + structure as
src/editor/cloud/components/shared/config/configSections/{Payg,PaygFree}.css
so the visual treatment matches the SaaS plan page. When the shared move
lands these can be deduped via a shared stylesheet. */
/* Flat by default — the meter sits directly on its card, no inner panel box
(shared by the free trial meter and the subscribed spend meter). */
/* Status chip (Healthy / Approaching / Cap reached). Solid hex colours
intentionally — the chip palette is semantic, not theme-bound. */
.payg-status {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 6px 13px;
border-radius: 999px;
font-size: 0.8125rem;
font-weight: 600;
white-space: nowrap;
}
.payg-status__dot {
width: 8px;
height: 8px;
border-radius: 999px;
}
.payg-status[data-state="FULL"] {
background: var(--color-green-light);
color: var(--color-green-dark);
}
.payg-status[data-state="FULL"] .payg-status__dot {
background: var(--color-green);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-green) 18%, transparent);
}
.payg-status[data-state="WARNED"] {
background: var(--color-amber-light);
color: var(--color-amber-dark);
}
.payg-status[data-state="WARNED"] .payg-status__dot {
background: var(--color-amber);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-amber) 20%, transparent);
}
.payg-status[data-state="DEGRADED"] {
background: var(--color-red-light);
color: var(--color-red-dark);
}
.payg-status[data-state="DEGRADED"] .payg-status__dot {
background: var(--color-red);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-red) 20%, transparent);
}
/* Segmented usage bar */
/* ── Plan card (free state) ─────────────────────────────────────────────── */
.portal-billing__plan-card {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.portal-billing__plan-title {
font-size: 1.25rem;
font-weight: 600;
margin: 0;
color: var(--c-text);
}
.portal-billing__plan-sub {
font-size: 0.9375rem;
color: var(--c-text-muted);
margin: 0 0 0.5rem;
}
.portal-billing__plan-features {
list-style: none;
padding: 0;
margin: 0 0 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.portal-billing__plan-features li {
font-size: 0.875rem;
color: var(--c-text-muted);
padding-left: 1.25rem;
position: relative;
}
.portal-billing__plan-features li::before {
content: "✓";
color: var(--color-green-dark);
position: absolute;
left: 0;
font-weight: 600;
}
.portal-billing__plan-actions {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
.portal-billing__plan-reassure {
font-size: 0.75rem;
color: var(--c-text-subtle);
}
.portal-billing__plan-readonly {
font-size: 0.875rem;
color: var(--c-text-subtle);
font-style: italic;
margin: 0;
}
/* ── Category breakdown ─────────────────────────────────────────────────── */
.portal-billing__breakdown {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.portal-billing__breakdown-row {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.portal-billing__breakdown-head {
display: flex;
justify-content: space-between;
font-size: 0.8125rem;
color: var(--c-text-muted);
}
.portal-billing__breakdown-value {
color: var(--c-text-subtle);
}
.portal-billing__breakdown-track {
height: 0.5rem;
background: var(--color-bg-subtle, var(--c-surface-sunken));
border-radius: 999px;
overflow: hidden;
}
.portal-billing__breakdown-fill {
height: 100%;
border-radius: 999px;
transition: width 200ms ease;
}
.portal-billing__breakdown-fill--blue {
background: var(--c-primary);
}
.portal-billing__breakdown-fill--purple {
background: var(--color-purple);
}
.portal-billing__breakdown-fill--teal {
background: var(--color-cat-extraction);
}
/* ── Cap control ────────────────────────────────────────────────────────── */
.portal-billing__cap-row {
display: flex;
align-items: flex-end;
gap: 1rem;
flex-wrap: wrap;
margin-bottom: 0.75rem;
}
.portal-billing__cap-field {
display: flex;
flex-direction: column;
gap: 0.25rem;
font-size: 0.8125rem;
color: var(--c-text-subtle);
}
.portal-billing__cap-input {
width: 8rem;
padding: 0.5rem 0.75rem;
border: 1px solid var(--c-border);
border-radius: 0.375rem;
font-size: 0.9375rem;
font-family: inherit;
}
.portal-billing__cap-nocap {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.875rem;
color: var(--c-text-muted);
cursor: pointer;
}
.portal-billing__cap-actions {
display: flex;
justify-content: flex-end;
}
/* ── Members + invoices ─────────────────────────────────────────────────── */
.portal-billing__member-stack {
display: flex;
flex-direction: column;
}
.portal-billing__member-name {
font-weight: 600;
color: var(--c-text);
}
.portal-billing__member-email {
font-size: 0.8125rem;
color: var(--c-text-subtle);
}
.portal-billing__invoice-num {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.875rem;
}
.portal-billing__invoice-desc {
color: var(--c-text);
font-size: 0.9375rem;
}
/* Tables that sit flush inside an already-surfaced Card: drop the table's
own border + background + radius so only the row dividers (kept by sui-table
defaults) show. Column headers are hidden too — small self-evident tables
read better without them. Used by the Invoice history + Per-member usage
tables. */
.portal-billing__flush-table {
border: none;
background: transparent;
border-radius: 0;
}
.portal-billing__flush-table thead {
display: none;
}
.portal-billing__subscription-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.portal-billing__subscription-head > div:first-child {
flex: 1 1 auto;
min-width: 0;
}
.portal-billing__subscription-head
> div:first-child
.portal-billing__section-sub {
margin-bottom: 0;
}
/* ── Spend-cap control — ported from the SaaS cloud SpendCapControl.css.
Same class names + structure so the visual is identical to the SaaS Plan
page; when the shared-component move lands, these dedupe to one stylesheet. */
.scc {
--scc-accent: var(--c-primary);
--scc-accent-text: var(--c-accent-text);
--scc-accent-soft: color-mix(in srgb, var(--c-primary) 12%, transparent);
--scc-accent-border: color-mix(in srgb, var(--c-primary) 25%, transparent);
--scc-chip-bg: var(--c-surface-sunken);
--scc-chip-border: var(--c-border);
--scc-text-primary: var(--c-text);
--scc-text-secondary: var(--c-text-muted);
--scc-text-muted: var(--c-text-subtle);
--scc-border-strong: var(--c-text-subtle);
display: flex;
flex-direction: column;
gap: 14px;
margin-top: 0.75rem;
}
[data-theme="dark"] .scc {
--scc-accent-text: var(--c-accent-text);
--scc-accent-soft: color-mix(in srgb, var(--c-primary) 16%, transparent);
--scc-chip-bg: var(--c-surface-sunken);
--scc-chip-border: var(--c-border);
}
.scc-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
}
.scc-chip {
display: inline-flex;
align-items: center;
height: 34px;
padding: 0 16px;
border-radius: 999px;
border: 1px solid var(--scc-chip-border);
background: var(--scc-chip-bg);
color: var(--scc-text-secondary);
font: inherit;
font-size: 0.85rem;
font-weight: 600;
cursor: pointer;
font-variant-numeric: tabular-nums;
transition:
color 0.12s ease,
border-color 0.12s ease,
background 0.12s ease;
}
.scc-chip:hover:not(:disabled) {
color: var(--scc-text-primary);
border-color: var(--scc-border-strong);
}
.scc-chip[data-selected="true"] {
background: var(--scc-accent-soft);
border-color: var(--scc-accent);
color: var(--scc-accent-text);
}
.scc-chip:disabled {
opacity: 0.45;
cursor: default;
}
.scc-custom {
display: inline-flex;
align-items: center;
gap: 1px;
height: 34px;
padding: 0 14px;
border-radius: 999px;
border: 1px dashed var(--scc-chip-border);
background: transparent;
cursor: text;
transition:
border-color 0.12s ease,
background 0.12s ease;
}
.scc-custom:hover {
border-color: var(--scc-border-strong);
}
.scc-custom[data-active="true"] {
border-style: solid;
border-color: var(--scc-accent);
background: var(--scc-accent-soft);
}
.scc-custom__symbol {
color: var(--scc-text-muted);
font-size: 0.85rem;
font-weight: 600;
}
.scc-custom[data-active="true"] .scc-custom__symbol,
.scc-custom[data-active="true"] .scc-custom__input {
color: var(--scc-accent-text);
}
.scc-custom__input {
width: 70px;
border: none;
outline: none;
background: transparent;
color: var(--scc-text-primary);
font: inherit;
font-size: 0.85rem;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.scc-custom__input::placeholder {
color: var(--scc-text-muted);
font-weight: 600;
}
.scc-row__spacer {
margin-left: auto;
}
.scc-estimate {
display: flex;
align-items: center;
gap: 11px;
padding: 12px 14px;
border-radius: 10px;
background: var(--scc-accent-soft);
border: 1px solid var(--scc-accent-border);
}
.scc-estimate__icon {
color: var(--scc-accent-text);
display: flex;
}
.scc-estimate__main {
font-size: 0.875rem;
font-weight: 550;
color: var(--scc-text-primary);
}
.scc-estimate__sub {
font-size: 0.75rem;
color: var(--scc-text-muted);
margin-top: 1px;
}
.scc-note {
font-size: 0.8125rem;
color: var(--scc-text-muted);
line-height: 1.45;
}
/* ── Plan header (free-vs-metered split) — ported from SaaS payg-planhead ── */
.portal-billing__planhead-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 14px;
}
.portal-billing__planhead-eyebrow {
font-size: 0.78rem;
color: var(--c-text-subtle);
}
.portal-billing__role-pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 12px;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 600;
white-space: nowrap;
}
.portal-billing__role-pill[data-leader="true"] {
background: color-mix(in srgb, var(--c-primary) 12%, transparent);
color: var(--c-accent-text);
border: 1px solid color-mix(in srgb, var(--c-primary) 25%, transparent);
}
.portal-billing__role-pill[data-leader="false"] {
background: var(--c-surface-sunken);
color: var(--c-text-subtle);
border: 1px solid var(--c-border);
}
.portal-billing__planhead-split {
display: grid;
grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.portal-billing__planhead-col {
padding-right: 22px;
}
.portal-billing__planhead-col--meter {
padding-right: 0;
padding-left: 22px;
border-left: 1px solid var(--c-border);
}
.portal-billing__planhead-lbl {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
margin-bottom: 8px;
}
.portal-billing__planhead-lbl--free {
color: var(--color-green-dark);
}
.portal-billing__planhead-lbl--meter {
color: var(--c-accent-text);
}
.portal-billing__planhead-title {
margin: 0;
font-size: 1.05rem;
font-weight: 700;
color: var(--c-text);
letter-spacing: -0.01em;
line-height: 1.25;
}
.portal-billing__planhead-body {
margin: 5px 0 0;
font-size: 0.85rem;
color: var(--c-text-subtle);
line-height: 1.5;
}
/* The period meter merged into the plan-head card, divided from the split. */
.portal-billing__planhead-meter {
margin-top: 18px;
padding-top: 18px;
border-top: 1px solid var(--c-border);
}
@media (max-width: 640px) {
.portal-billing__planhead-split {
grid-template-columns: 1fr;
gap: 16px;
}
.portal-billing__planhead-col {
padding-right: 0;
}
.portal-billing__planhead-col--meter {
padding-left: 0;
padding-top: 16px;
border-left: none;
border-top: 1px solid var(--c-border);
}
}
.portal-billing__invoice-actions {
display: inline-flex;
align-items: center;
gap: 0.5rem;
justify-content: flex-end;
}
.portal-billing__invoice-link {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.5rem;
border-radius: 0.375rem;
font-size: 0.8125rem;
font-weight: 500;
color: var(--c-text);
text-decoration: none;
border: 1px solid transparent;
transition:
background 120ms ease,
border-color 120ms ease;
}
.portal-billing__invoice-link:hover {
background: var(--c-surface-sunken);
border-color: var(--c-border);
}
.portal-billing__invoice-link:focus-visible {
outline: none;
border-color: var(--c-primary);
background: var(--c-surface-sunken);
}
.portal-billing__invoice-footer {
display: flex;
justify-content: center;
margin-top: 0.75rem;
}
/* ── Current plan header ──────────────────────────────────────────────── */
.portal-billing__current-plan {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.portal-billing__current-plan-row {
display: flex;
align-items: center;
gap: 0.55rem;
flex-wrap: wrap;
}
.portal-billing__current-plan-name {
margin: 0;
font-size: 1.5rem;
font-weight: 700;
color: var(--c-text);
}
/* ── Free PDF Editors (fleet) card ───────────────────────────────────── */
.portal-billing__editors-id {
display: flex;
align-items: flex-start;
gap: 0.75rem;
}
.portal-billing__editors-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
flex-shrink: 0;
line-height: 0;
border-radius: 0.65rem;
background: var(--color-bg-subtle);
border: 1px solid var(--c-border);
color: var(--c-accent-text);
}
/* Identity, stats, and the "Invite teammates" action all sit on one line; the
metric cells render flat (no per-stat box) and are divided by hairlines, so
the card reads as a single strip rather than a box-in-a-box. */
.portal-billing__fleet-row {
display: flex;
align-items: center;
gap: 2rem;
}
.portal-billing__fleet-row .portal-billing__editors-id {
align-items: center;
flex: 0 0 auto;
}
.portal-billing__fleet-metrics {
flex: 1;
}
.portal-billing__fleet-metrics .sui-metric {
background: transparent;
border: 0;
box-shadow: none;
border-left: 1px solid var(--c-border);
padding: 0 0 0 1.5rem;
min-width: 0;
gap: 0.3rem;
}
/* Uppercase stat labels to match the marketing treatment. */
.portal-billing__fleet-metrics .sui-metric__label {
text-transform: uppercase;
letter-spacing: 0.05em;
}
@media (max-width: 60rem) {
.portal-billing__fleet-row {
flex-wrap: wrap;
gap: 1.25rem;
}
.portal-billing__fleet-metrics {
flex: 1 1 100%;
order: 3;
}
}
/* "N left" reads as quiet gray text, like the "x of y" suffix — not a status pill. */
.portal-billing__trial-meter .payg-status,
.portal-billing__spend-meter .payg-status {
background: none;
padding: 0;
border-radius: 0;
font-size: 0.85rem;
font-weight: 400;
color: var(--c-text-subtle);
}
.portal-billing__trial-meter .payg-status__dot,
.portal-billing__spend-meter .payg-status__dot {
display: none;
}
/* Spend meter: anchor the "remaining" half of the meta line to the right edge. */
.portal-billing__spend-meter .paygf-meter__meta {
justify-content: space-between;
}
/* ── Enterprise / volume-discount card ───────────────────────────────── */
.portal-billing__enterprise-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
}
/* Keep the CTA on one line at its natural width — in the narrow subscribed
column it was shrinking and clipping its label. */
.portal-billing__enterprise-head > .sui-btn {
flex-shrink: 0;
white-space: nowrap;
}
/* Bare variant — embeds in another card's column without its own surface. */
.portal-billing__enterprise-bare {
display: block;
}
/* ── PDFs processed + category split (subscribed) ────────────────────── */
.portal-billing__bignum-row {
display: flex;
align-items: baseline;
gap: 0.5rem;
margin: 0.35rem 0 0.85rem;
}
.portal-billing__bignum {
font-size: 2rem;
font-weight: 750;
line-height: 1;
letter-spacing: -0.02em;
color: var(--c-text);
font-variant-numeric: tabular-nums;
}
.portal-billing__bignum-unit {
font-size: 0.85rem;
color: var(--c-text-subtle);
}
.portal-billing__segbar {
display: flex;
height: 0.55rem;
border-radius: 999px;
overflow: hidden;
background: var(--c-surface-sunken);
}
.portal-billing__segbar-seg {
height: 100%;
}
.portal-billing__segbar-seg--blue {
background: var(--c-primary);
}
.portal-billing__segbar-seg--purple {
background: var(--color-purple);
}
.portal-billing__segbar-seg--teal {
background: var(--color-cat-extraction);
}
.portal-billing__seglegend {
display: flex;
flex-wrap: wrap;
gap: 0.6rem 1.75rem;
margin-top: 0.85rem;
}
.portal-billing__seglegend-row {
display: flex;
align-items: baseline;
gap: 0.5rem;
font-size: 0.85rem;
}
.portal-billing__dot {
width: 0.55rem;
height: 0.55rem;
border-radius: 999px;
align-self: center;
flex-shrink: 0;
}
.portal-billing__dot--blue {
background: var(--c-primary);
}
.portal-billing__dot--purple {
background: var(--color-purple);
}
.portal-billing__dot--teal {
background: var(--color-cat-extraction);
}
.portal-billing__seglegend-label {
font-weight: 600;
color: var(--c-text);
}
.portal-billing__seglegend-val {
color: var(--c-text-muted);
font-variant-numeric: tabular-nums;
}
.portal-billing__seglegend-desc {
color: var(--c-text-subtle);
}
/* ── Spend-limit projection line ─────────────────────────────────────── */
.portal-billing__projection {
margin: 0.85rem 0 0;
font-size: 0.85rem;
color: var(--c-text-subtle);
}
.portal-billing__projection strong {
color: var(--color-amber, var(--c-warning));
}
/* ── Checkout modal: spend-limit + payment steps ─────────────────────────
Framed layout: the PrepayModalHeader stays fixed and only the content below
it scrolls (not the whole modal). The phase fills the modal body as a flex
column — header (fixed) + a scroll region. */
.portal-billing__checkout-modal--framed .sui-modal__body {
padding: 0;
overflow: hidden;
/* Flex column + min-height:0 so the body is bounded by the modal's max-height and its children's
flex sizing takes effect — otherwise the phase grows to full content height and nothing scrolls. */
display: flex;
flex-direction: column;
min-height: 0;
}
/* Checkout step only: wider than the xl preset so the embedded Stripe iframe clears its ~1000px
two-column threshold (otherwise it renders the narrow single-column "portrait" layout). Two-class
selector to beat .sui-modal--xl's max-width regardless of stylesheet order. */
.sui-modal.portal-billing__checkout-modal--wide {
max-width: 1120px;
}
/* Let the Stripe embedded checkout fill the scroll region's full width (it's the widest thing here). */
.portal-billing__checkout-embed {
width: 100%;
}
.portal-billing__checkout-cap,
.portal-billing__checkout-pay {
display: flex;
flex-direction: column;
flex: 1 1 auto;
min-height: 0;
}
/* Header owns its padding now that the modal body's is removed; stays fixed at the top. */
.portal-billing__checkout-modal--framed .portal-billing__bundle-head {
flex: 0 0 auto;
margin-bottom: 0;
padding: 1rem 1.125rem 0.875rem;
}
.portal-billing__checkout-scroll {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 1rem;
padding: 0.25rem 1.125rem 1.125rem;
}
.portal-billing__checkout-finePrint {
margin: 0;
font-size: 0.75rem;
line-height: 1.55;
color: var(--c-text-subtle);
}
/* Payment-step recap of the spend limit chosen on step 1 (the card form itself is Stripe's iframe). */
.portal-billing__checkout-limit {
margin: 0;
padding: 0.625rem 0.875rem;
border: 1px solid var(--c-border-subtle);
border-radius: 8px;
font-size: 0.8125rem;
color: var(--c-text-subtle);
}
.portal-billing__checkout-cap-actions {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 0.25rem;
}
/* Amount-first spend-limit picker (step 1): the $ /mo field is the primary control; the quick chips
below just write into it. Flat estimate (no accent box) to match the demo. */
.portal-billing__caplimit {
display: flex;
flex-direction: column;
gap: 0.875rem;
}
.portal-billing__caplimit-field {
display: flex;
align-items: baseline;
gap: 0.5rem;
padding: 0.75rem 1rem;
border: 1px solid var(--c-border);
border-radius: 10px;
background: var(--c-surface);
}
.portal-billing__caplimit-field:focus-within {
border-color: var(--c-primary);
}
.portal-billing__caplimit-sym {
font-size: 1.5rem;
font-weight: 700;
color: var(--c-text-subtle);
}
.portal-billing__caplimit-input {
flex: 1;
min-width: 0;
border: none;
outline: none;
background: transparent;
color: var(--c-text);
font-size: 1.5rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.portal-billing__caplimit-input::placeholder {
color: var(--c-text-subtle);
font-weight: 600;
}
.portal-billing__caplimit-suffix {
font-size: 0.9375rem;
color: var(--c-text-subtle);
}
.portal-billing__caplimit-chips {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.portal-billing__caplimit-chip {
height: 34px;
padding: 0 16px;
border-radius: 999px;
border: 1px solid var(--c-border);
background: var(--c-surface-sunken);
color: var(--c-text-muted);
font-size: 0.85rem;
font-weight: 600;
font-variant-numeric: tabular-nums;
}
.portal-billing__caplimit-chip:hover:not(:disabled) {
border-color: var(--c-text-subtle);
color: var(--c-text);
}
.portal-billing__caplimit-chip[data-selected="true"] {
background: color-mix(in srgb, var(--c-primary) 12%, transparent);
border-color: var(--c-primary);
color: var(--c-accent-text);
}
.portal-billing__caplimit-chip:disabled {
opacity: 0.45;
}
.portal-billing__caplimit-estimate {
display: flex;
flex-direction: column;
gap: 1px;
}
.portal-billing__caplimit-estimate-main {
font-size: 0.875rem;
color: var(--c-text-muted);
}
.portal-billing__caplimit-estimate-sub {
font-size: 0.75rem;
color: var(--c-text-subtle);
}
/* Card-form placeholder shown when Stripe isn't configured (Storybook / preview). */
.portal-billing__card-placeholder {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 1rem;
}
.portal-billing__card-placeholder-head {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 0.75rem;
font-weight: 600;
color: var(--c-text-muted);
}
.portal-billing__card-placeholder-badge {
font-size: 0.625rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--c-text-subtle);
background: var(--color-bg-code);
padding: 0.125rem 0.375rem;
border-radius: var(--radius-sm);
}
.portal-billing__card-placeholder-field {
display: flex;
align-items: center;
gap: 0.625rem;
padding: 0.75rem 0.875rem;
background: var(--color-bg-subtle);
border: 1px solid var(--c-border-subtle);
border-radius: var(--radius-sm);
font-family: var(--font-mono);
font-size: 0.8125rem;
color: var(--c-text-subtle);
}
.portal-billing__card-placeholder-note {
margin: 0;
font-size: 0.6875rem;
line-height: 1.5;
color: var(--c-text-subtle);
}
/* ── Prepaid bundle: purchase modal ────────────────────────────────────────── */
/* Purchase modal — calculator step. */
.portal-billing__bundle-calc {
display: flex;
flex-direction: column;
gap: 1.25rem;
}
/* Shared by the calculator and payment steps, kept compact so the payment step
fits without scrolling. */
.portal-billing__bundle-fields {
display: flex;
flex-direction: column;
gap: 0.625rem;
}
.portal-billing__bundle-field-label {
font-size: 0.8125rem;
font-weight: 600;
color: var(--c-text-muted);
margin-bottom: 0.375rem;
}
.portal-billing__bundle-field-hint {
margin: 0.375rem 0 0;
font-size: 0.75rem;
color: var(--c-text-subtle);
line-height: 1.4;
}
.portal-billing__bundle-summary {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 1rem 1.125rem;
border: 1px solid var(--c-border-subtle);
border-radius: var(--radius-md);
background: var(--color-bg-subtle);
}
.portal-billing__bundle-summary-row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 1rem;
font-size: 0.9375rem;
}
.portal-billing__bundle-summary-row strong {
font-size: 1rem;
}
.portal-billing__bundle-savings {
margin: 0;
font-size: 0.75rem;
color: var(--c-text-subtle);
}
.portal-billing__bundle-pool {
margin: 0;
font-size: 0.75rem;
color: var(--c-text-subtle);
line-height: 1.45;
}
/* Users field — compact stepper box (demo D147: hugs its content). */
.portal-billing__bundle-users {
max-width: 12rem;
}
/* Progressive-disclosure finer settings: summary rows that bloom a card picker. */
.portal-billing__bundle-rows {
overflow: hidden;
}
.portal-billing__bundle-row + .portal-billing__bundle-row {
border-top: 1px solid var(--c-border-subtle);
}
.portal-billing__bundle-row-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
width: 100%;
padding: 0.75rem 0.875rem;
border: none;
background: transparent;
cursor: pointer;
text-align: left;
font: inherit;
}
.portal-billing__bundle-row-label {
font-size: 0.75rem;
font-weight: 600;
color: var(--c-text-subtle);
}
.portal-billing__bundle-row-value {
display: inline-flex;
align-items: baseline;
gap: 0.625rem;
font-size: 0.8125rem;
font-weight: 600;
color: var(--c-text);
text-align: right;
}
.portal-billing__bundle-row-change {
font-size: 0.75rem;
font-weight: 600;
color: var(--c-accent-text);
flex-shrink: 0;
}
.portal-billing__bundle-row-body {
padding: 0 0.875rem 0.875rem;
}
/* Card pickers (deployment / sizing / governance / pipelines). */
.portal-billing__bundle-cards {
display: flex;
gap: 0.625rem;
flex-wrap: wrap;
}
.portal-billing__bundle-card {
flex: 1;
min-width: 9.5rem;
padding: 0.75rem 0.875rem;
border: 1px solid var(--c-border);
border-radius: var(--radius-sm);
background: var(--c-surface);
cursor: pointer;
text-align: left;
font: inherit;
}
.portal-billing__bundle-card--active {
border-color: var(--c-primary);
box-shadow: inset 0 0 0 1px var(--c-primary);
}
.portal-billing__bundle-card-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 0.5rem;
}
.portal-billing__bundle-card-title {
font-size: 0.8125rem;
font-weight: 700;
color: var(--c-text);
}
.portal-billing__bundle-card--active .portal-billing__bundle-card-title {
color: var(--c-accent-text);
}
.portal-billing__bundle-card-meta {
font-size: 0.6875rem;
font-weight: 600;
color: var(--c-text-subtle);
flex-shrink: 0;
}
.portal-billing__bundle-card--active .portal-billing__bundle-card-meta {
color: var(--c-accent-text);
}
.portal-billing__bundle-card-desc {
margin-top: 0.1875rem;
font-size: 0.7188rem;
line-height: 1.4;
color: var(--c-text-subtle);
}
/* Receipt card — "your Processor / your year / pool / download". */
.portal-billing__bundle-receipt {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 1rem 1.125rem;
border: 1px solid var(--c-border-subtle);
border-radius: var(--radius-md);
background: var(--color-bg-subtle);
}
.portal-billing__bundle-receipt-row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 1rem;
font-size: 0.875rem;
color: var(--c-text-muted);
}
.portal-billing__bundle-receipt-row strong {
font-size: 0.9375rem;
color: var(--c-text);
}
/* First row reads as the header — bold both sides ("Your Processor / handles N credits / mo"). */
.portal-billing__bundle-receipt-row--head span {
font-weight: 700;
color: var(--c-text);
}
.portal-billing__bundle-receipt-price {
color: var(--c-accent-text) !important;
}
.portal-billing__bundle-consent {
padding-top: 0.75rem;
border-top: 1px solid var(--c-border-subtle);
}
/* Company name + PO number share a row. */
.portal-billing__bundle-field-row {
display: flex;
gap: 0.625rem;
}
.portal-billing__bundle-field-row > * {
flex: 1 1 0;
min-width: 0;
}
/* Bundle modal header — brand · step badge · progress · step title. */
.portal-billing__bundle-head {
display: flex;
flex-direction: column;
gap: 0.875rem;
margin-bottom: 1.25rem;
}
/* Payment step: quote receipt + recipient fields + consent. */
.portal-billing__bundle-pay {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
/* "Download quote (PDF) · share for approval" — a quiet link under the receipt. */
.portal-billing__bundle-download {
display: inline-flex;
align-items: center;
gap: 0.4375rem;
margin-top: 0.25rem;
padding: 0.5rem 0 0;
border: none;
border-top: 1px solid var(--c-border-subtle);
background: none;
cursor: pointer;
font: inherit;
font-size: 0.75rem;
font-weight: 600;
color: var(--c-accent-text);
text-align: left;
}
.portal-billing__bundle-download-share {
color: var(--c-text-subtle);
font-weight: 400;
}
.portal-billing__bundle-foot-end {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
}
/* Activation fork (demo D97): two "how do you want to pay?" door-cards. */
.portal-billing__door-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
/* "Maybe later" — a quiet dismiss under the door-cards, left-aligned. */
.portal-billing__door-later {
display: flex;
justify-content: flex-start;
margin-top: 1rem;
}
@media (max-width: 560px) {
.portal-billing__door-grid {
grid-template-columns: 1fr;
}
}
.portal-billing__door {
display: flex;
flex-direction: column;
gap: 6px;
height: 100%;
text-align: left;
cursor: pointer;
}
.portal-billing__door--accent {
border-color: var(--c-primary);
background: var(--c-primary-subtle);
}
.portal-billing__door-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
}
.portal-billing__door-title {
font-size: 14px;
font-weight: 600;
color: var(--c-text);
}
.portal-billing__door-badge {
flex-shrink: 0;
font-size: 11px;
font-weight: 600;
color: var(--c-accent-text);
background: var(--c-surface);
padding: 2px 8px;
border-radius: 8px;
}
.portal-billing__door-sub {
font-size: 12.5px;
line-height: 1.5;
color: var(--c-text-subtle);
}
.processor-spend-fields__row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
padding: 1rem 0;
border-bottom: 1px solid var(--c-border-subtle);
font-size: 0.875rem;
}
.processor-spend-fields__row > span {
color: var(--c-text-muted);
}
.processor-spend-fields__value {
display: flex;
align-items: center;
gap: 0.5rem;
}
.processor-spend-fields__edit {
display: flex;
gap: 0.5rem;
padding: 0.75rem 0;
}
.processor-checkout--simple .portal-billing__checkout-scroll {
padding: 0 1.25rem 1.25rem;
}
.processor-checkout--simple .portal-billing__checkout-finePrint {
margin: 0.875rem 0;
}
.processor-spend-modal .sui-modal__body {
display: flex;
flex-direction: column;
gap: 1rem;
padding: 0 1.25rem 1.25rem;
}
.processor-spend-modal .portal-billing__checkout-finePrint {
margin: 0;
}
.processor-spend-modal .portal-billing__checkout-cap-actions {
gap: 1rem;
margin-top: 0.25rem;
}
.processor-prepay__picker {
border: 1px solid var(--c-border);
border-radius: 0.75rem;
padding: 0.875rem;
}
.processor-prepay__choices {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.processor-prepay__choices > span,
.processor-prepay__credits {
font-size: 0.8125rem;
color: var(--c-text-muted);
}
.processor-prepay__choices button {
border-radius: 999px;
font-weight: 500;
}
.processor-prepay__choices button[aria-pressed="true"] {
border-color: var(--c-primary);
background: var(--c-primary-subtle);
color: var(--c-accent-text);
}
.processor-prepay__custom {
display: flex;
gap: 0.5rem;
align-items: center;
margin-top: 0.625rem;
}
.processor-prepay__credits {
margin: -0.375rem 0 0;
}
.processor-prepay__receipt {
background: transparent;
padding: 0 0.875rem;
gap: 0;
}
.processor-prepay__receipt .portal-billing__bundle-receipt-row {
padding: 0.875rem 0;
}
.processor-prepay__receipt
.portal-billing__bundle-receipt-row
+ .portal-billing__bundle-receipt-row {
border-top: 1px solid var(--c-border-subtle);
}
.processor-prepay__receipt .processor-prepay__saving {
color: color-mix(in srgb, var(--c-success) 65%, var(--c-text));
}
.processor-prepay__after {
border: 1px solid var(--c-border);
border-radius: 0.75rem;
padding: 0.875rem;
font-size: 0.8125rem;
color: var(--c-text-muted);
}
.processor-prepay__after p {
margin: 0.25rem 0 0;
}
.processor-prepay .portal-billing__bundle-calc {
gap: 0.75rem;
}
.processor-prepay .portal-billing__bundle-calc > button {
align-self: flex-start;
}
.processor-prepay .sui-modal__title,
.processor-checkout--simple .sui-modal__title {
font-size: 1.125rem;
font-weight: 600;
}
.processor-prepay .sui-modal__header,
.processor-checkout--simple .sui-modal__header {
border-bottom: 0;
padding: 1.25rem 1.25rem 0.75rem;
}
.processor-prepay .sui-modal__footer {
border-top: 0;
padding-top: 0.25rem;
}
@media (max-width: 30rem) {
.processor-spend-fields__row {
align-items: flex-start;
flex-wrap: wrap;
gap: 0.5rem;
}
}