/* The customer pages' base and the few pieces the design system's components
   leave to the page. Tokens and components are in design/. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-sans, Geist, ui-sans-serif, system-ui, sans-serif); font-size: 14px; line-height: 22px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); font-weight: 500; text-underline-offset: 3px; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
svg.sk-icon { flex: none; }
[hidden] { display: none !important; }

.bl-logo { max-height: 32px; max-width: 180px; }
.bl-top-right { gap: var(--space-4); }
.bl-exit { margin: 0; white-space: nowrap; }
.bl-exit-short { display: none; }
/* The seller's lockup when it has no logo: a tile with its initial and its
   name. The app's own lockup is a logo image, so these live here rather than
   in design/components.css. */
.sk-brand-tile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--on-brand); }
.sk-brand-name { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.sk-brand-name span { color: var(--ink-muted); font-weight: 500; }
.sk-brand { min-width: 0; }
.sk-brand-name { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .sk-hosted-inner { padding: 0 var(--space-4); gap: var(--space-3); }
  .sk-hosted-main { padding: var(--space-6) var(--space-4) var(--space-8); }
  .bl-top-right { gap: var(--space-2); flex-wrap: nowrap; }
  .bl-exit-label { display: none; }
  .bl-exit-short { display: inline; }
  .sk-card-head, .sk-card-body, .sk-card-foot { padding-left: var(--space-4); padding-right: var(--space-4); }
  .sk-card-foot { flex-wrap: wrap; }
  .sk-card-head { flex-wrap: wrap; }
  .sk-card-headtext { flex: 1 1 200px; }
  .bl-card-actions { margin-left: 60px; }
  .sk-kv > div { grid-template-columns: 1fr; gap: 2px; }
}
.bl-stack-lg { display: flex; flex-direction: column; gap: var(--space-6); }
.bl-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.bl-grid-2 .bl-span { grid-column: 1 / -1; }
@media (max-width: 640px) { .bl-grid-2 { grid-template-columns: 1fr; } }
.bl-muted { color: var(--ink-muted); }
.bl-col { flex-direction: column; gap: 0; }
.bl-push { margin-left: auto; }
.bl-pad { padding: var(--space-5) var(--space-6); }
.sk-card-title .sk-badge { margin-left: var(--space-2); vertical-align: 2px; }
.bl-opt { color: var(--ink-faint); font-weight: 400; }
.bl-inline { display: inline; margin: 0; }
.bl-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.bl-card-actions { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; }
.bl-link-button { font: inherit; font-weight: 500; background: none; border: 0; padding: 0; color: var(--brand-ink); cursor: pointer; }
.bl-link-button:hover { text-decoration: underline; }
.bl-danger-link { color: var(--danger); }
.bl-notice-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-3); }

/* Checkout: the form beside the order summary. */
.bl-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-6); align-items: start; }
@media (max-width: 860px) { .bl-checkout { grid-template-columns: 1fr; } }
.bl-steps { display: flex; gap: var(--space-4); margin: 0 0 var(--space-5); padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-muted); }
.bl-steps li { display: inline-flex; align-items: center; gap: 8px; }
.bl-steps .n { width: 24px; height: 24px; border-radius: var(--radius-sm); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; background: var(--surface-muted); }
.bl-steps .is-current { color: var(--ink); font-weight: 500; }
.bl-steps .is-current .n { background: var(--brand); color: var(--on-brand); }
.bl-steps .is-done .n { background: var(--tile-green); color: var(--tile-green-ink); }
.bl-summary-plan { font-size: 17px; font-weight: 500; }
.bl-payment { min-height: 120px; }

/* Plan rows switch to a stack on narrow screens. */
@media (max-width: 720px) {
  .sk-planrow { grid-template-columns: auto minmax(0, 1fr); }
  .sk-planrow-price { align-items: flex-start; grid-column: 2; }
  .sk-planrow-act { grid-column: 2; justify-content: flex-start; }
}
.sk-planrow-act form { margin: 0; }
.bl-term { display: inline-flex; }
.bl-term .sk-seg-item { text-decoration: none; }

/* The invoice list. */
.bl-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bl-table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-muted); padding: 10px var(--space-6); border-bottom: 1px solid var(--line); }
.bl-table td { padding: 12px var(--space-6); border-bottom: 1.5px dashed var(--line-dashed); }
.bl-table tr:last-child td { border-bottom: 0; }
.bl-table .num { text-align: right; white-space: nowrap; }
.bl-void { text-decoration: line-through; color: var(--ink-muted); }
/* The balance card: the amount in the header, and money in shown in green. */
.bl-balance { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.bl-sub { display: block; margin-top: 2px; color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.bl-in { color: var(--success); }
@media (max-width: 640px) { .bl-table th, .bl-table td { padding-left: var(--space-4); padding-right: var(--space-4); } .bl-hide-sm { display: none; } }

/* The invoice: always light, and print-ready. */
.bl-inv-tools { max-width: 820px; margin: 0 auto var(--space-4); display: flex; justify-content: flex-end; gap: var(--space-2); }
.sk-inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 640px) { .sk-invoice { padding: var(--space-6); } .sk-inv-parties, .sk-inv-meta { grid-template-columns: 1fr; } .sk-inv-totals { width: 100%; } .sk-inv-head { flex-direction: column; } .sk-inv-title { align-items: flex-start; } }
.bl-inv-notes { display: flex; flex-direction: column; gap: 4px; color: var(--ink-muted); font-size: 13.5px; }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .sk-hosted-top, .sk-hosted-foot, .sk-back, .bl-inv-tools, .bl-noprint { display: none !important; }
  .sk-hosted-main { padding: 0; max-width: none; }
  .sk-invoice { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .sk-inv-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* The "Popular" tag beside a plan's name in the Change plan card. */
.sk-planrow-text .bl-popular { margin-left: 8px; font-size: 12px; color: var(--ink); vertical-align: 1px; }
