/* Scoped additions only: reuse Hub tokens, shell, cards, buttons and spacing. */
.customer-journey { overflow-wrap: anywhere; }
.checkout-public .app { grid-template-columns: minmax(0, 1fr); }
.checkout-public .sidebar, .checkout-public .mobile-overlay, .checkout-public .mobile-menu { display: none !important; }
.checkout-public .topbar .brand { margin: 0; padding: 0; border: 0; }
.checkout-public .topbar .brand strong { color: var(--navy); }
.checkout-public .checkout-brandbar { box-shadow: 0 1px 0 var(--border); }
.checkout-public .customer-journey { width: min(100%, 1120px); }
.checkout-public .brand-mark { background: var(--blue-soft); color: var(--blue); }
.customer-journey [hidden] { display: none !important; }
.customer-journey .cj-test-banner {
  border-color: var(--orange);
  background: var(--orange-soft);
  align-items: flex-start;
}
.customer-journey .cj-test-banner strong { color: var(--navy); font-size: 14px; }
.customer-journey .cj-test-banner p { color: var(--text); font-size: 13px; }
.customer-journey h2, .customer-journey h3 { margin: 0; color: var(--navy); }
.customer-journey h2 { font-size: 20px; }
.customer-journey h3 { font-size: 17px; }
.customer-journey .stack > p { margin: 0; }
.customer-journey .cj-feedback { min-height: 24px; color: var(--text-muted); }
.customer-journey .cj-feedback.cj-error { color: var(--red); font-weight: 650; }
.customer-journey .btn { min-height: 44px; padding: 10px 14px; white-space: normal; text-align: center; }
.customer-journey .btn:disabled { cursor: not-allowed; opacity: .6; }
.customer-journey :is(button, a, textarea, input, select):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.customer-journey .status { white-space: normal; width: fit-content; }
.customer-journey .status::before { flex-shrink: 0; }
.customer-journey .product-card > .btn { margin-top: auto; }
.customer-journey .product-grid { align-items: stretch; }
.customer-journey .product-grid > *, .customer-journey .stack > * { min-width: 0; }
.customer-journey .cj-details { margin: 0; }
.customer-journey .cj-details dt { color: var(--text-muted); font-size: 12px; }
.customer-journey .cj-details dd { margin: 4px 0 0; font-weight: 700; font-size: 14px; }
.customer-journey .cj-copy-payload {
  display: block;
  width: 100%;
  min-height: 120px;
  max-height: 400px;
  padding: var(--space-3);
  resize: vertical;
  color: var(--text);
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: 14px/1.6 ui-monospace, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.customer-journey .cj-pix-qr {
  display: block;
  width: min(280px, 100%);
  height: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.customer-journey .cj-pagination { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.customer-journey .search-wrap { width: min(100%, 480px); min-width: 0; }
.customer-journey .search-wrap input { min-width: 0; min-height: 44px; }
.customer-journey .cj-access-table { width: 100%; min-width: 0; border-collapse: collapse; }
.customer-journey .cj-access-table :is(th, td) { padding: 14px; text-align: left; border-bottom: 1px solid var(--border); }
.customer-journey .cj-access-table th { font-size: 12px; color: var(--text-muted); }
.customer-journey .cj-access-table td { font-size: 14px; white-space: normal; }
.customer-journey .cj-access-table tr:last-child td { border-bottom: 0; }
.customer-journey .cj-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .customer-journey .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.customer-journey .checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: start;
}
.customer-journey .checkout-summary { position: sticky; top: 88px; }
.customer-journey .checkout-contact input {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--text);
}
.customer-journey .checkout-contact label { font-weight: 700; }
.customer-journey .checkout-action.is-loading { position: relative; }
.customer-journey .checkout-action.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--surface) 42%, transparent);
  pointer-events: none;
}
.customer-journey .checkout-action.is-loading .btn { position: relative; z-index: 1; opacity: 1; }
.customer-journey .checkout-action.is-loading .btn::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 9px;
  vertical-align: -3px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: cj-spin .7s linear infinite;
}
@keyframes cj-spin { to { transform: rotate(360deg); } }
.customer-journey .cj-total { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0; }
.customer-journey .cj-total dt { color: var(--text-muted); }
.customer-journey .cj-total dd { margin: 0; color: var(--navy); font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.customer-journey .checkout-pix { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); gap: 24px; align-items: start; }
.customer-journey .checkout-success { min-height: 320px; justify-content: center; }
.customer-journey .cj-secondary-link { display: inline-flex; width: fit-content; padding: 10px 0; }
@media (max-width: 900px) {
  .customer-journey .checkout-shell { grid-template-columns: minmax(0, 1fr); }
  .customer-journey .checkout-summary { position: static; order: -1; }
}
@media (max-width: 760px) {
  .checkout-public .topbar { padding-inline: 16px; }
  .checkout-public .customer-journey { padding-inline: 16px; }
  .customer-journey .checkout-action .btn { width: 100%; }
  .customer-journey .product-grid, .customer-journey .detail-list { grid-template-columns: minmax(0, 1fr); }
  .customer-journey .cj-table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .customer-journey .cj-access-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .customer-journey .cj-access-table,
  .customer-journey .cj-access-table tbody { display: block; }
  .customer-journey .cj-access-table tr {
    display: block;
    margin-bottom: var(--space-3);
    padding: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }
  .customer-journey .cj-access-table td { display: block; padding: 8px 0; border: 0; }
  .customer-journey .cj-access-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 650;
  }
  .customer-journey .product-actions > .btn { flex: 1 1 180px; }
  .customer-journey .cj-pagination { justify-content: space-between; }
  .customer-journey .checkout-pix { grid-template-columns: minmax(0, 1fr); }
  .customer-journey .checkout-pix .cj-pix-qr { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-journey *, .customer-journey *::before { animation: none; transition: none; }
}
