:root {
  --pp-bg-page: #FFFFFF;
  --pp-bg-app: #EFEFEA;
  --pp-bg-card: #F7F6F1;
  --pp-border: #DDE3D3;
  --pp-border-subtle: #E3E8DC;
  --pp-text-primary: #22400F;
  --pp-text-body: #41483A;
  --pp-text-muted: #6B7363;
  --pp-placeholder: #9AA18D;
  --pp-accent: #1EA900;
  --pp-accent-2: #336633;
  --pp-link: #336633;
  --pp-on-accent: #FFFFFF;
  --pp-mission: #22400F;
  --pp-solar: #EAF6E1;
  --pp-pill-bg: #E7F0DD;
  --pp-pill-text: #2F6B1F;
  --pp-warn-bg: #FBF0D9;
  --pp-warn-text: #8A5A12;
  --pp-locked-bg: #E8ECE2;
  --pp-locked-text: #9AA18D;
  --pp-amber: #D98A0B;
  --pp-amber-bg: #FBF1DA;
  --pp-info: #2F73C4;
  --pp-info-bg: #E6EEF8;
  --pp-err: #C0362C;
  --pp-err-bg: #FBE9E7;
  --pp-shadow-card: 0 12px 28px rgba(34, 64, 15, .07);
  --pp-shadow-soft: 0 7px 20px rgba(34, 64, 15, .06);
}

html[data-theme="dark"] {
  --pp-bg-page: #22400F;
  --pp-bg-app: #0E1B07;
  --pp-bg-card: #2C5214;
  --pp-border: #3A5A20;
  --pp-border-subtle: #3F6B22;
  --pp-text-primary: #FFFFFF;
  --pp-text-body: #DBE7CD;
  --pp-text-muted: #9FB389;
  --pp-placeholder: #A9BF94;
  --pp-accent: #1EA900;
  --pp-accent-2: #6AA84F;
  --pp-link: #7BD152;
  --pp-on-accent: #FFFFFF;
  --pp-mission: #1A3A0C;
  --pp-solar: #1A3A0C;
  --pp-pill-bg: #2C5214;
  --pp-pill-text: #9FDE6F;
  --pp-warn-bg: #3A2F12;
  --pp-warn-text: #E7C178;
  --pp-locked-bg: #21381A;
  --pp-locked-text: #7A8E66;
  --pp-amber: #F0B44A;
  --pp-amber-bg: #3A3014;
  --pp-info: #6FA8E6;
  --pp-info-bg: #15273B;
  --pp-err: #F08079;
  --pp-err-bg: #3A1714;
  --pp-shadow-card: 0 14px 34px rgba(0, 0, 0, .24);
  --pp-shadow-soft: 0 8px 24px rgba(0, 0, 0, .2);
}

body.customer-journey-ui,
body.auth-page,
.public-provider-lookup {
  color: var(--pp-text-body);
  letter-spacing: 0;
}

body.customer-journey-ui .main {
  background: var(--pp-bg-app);
}

body.customer-journey-ui .content {
  width: min(100%, 1148px);
  margin-inline: auto;
}

body.customer-journey-ui .card,
body.customer-journey-ui .lightbox-panel {
  border-color: var(--pp-border);
  border-radius: 14px;
  box-shadow: var(--pp-shadow-soft);
}

body.customer-journey-ui .swap-wallet-modal-panel {
  border-radius: 14px;
}

body.customer-journey-ui .btn {
  min-height: 38px;
  border-radius: 9px;
  letter-spacing: 0;
}

body.customer-journey-ui input,
body.customer-journey-ui select,
body.customer-journey-ui textarea,
body.auth-page input {
  border-color: var(--pp-border-subtle);
  border-radius: 9px;
  color: var(--pp-text-primary);
  letter-spacing: 0;
}

body.customer-journey-ui :where(button, a, input, select, textarea, summary):focus-visible,
body.auth-page :where(button, a, input):focus-visible,
.public-provider-lookup :where(button, a, input):focus-visible {
  outline: 2px solid var(--pp-accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Auth and public provider states */
body.auth-page {
  background: var(--pp-bg-app);
}

body.auth-page .auth-wrap {
  padding: 34px 18px;
}

body.auth-page .auth-card {
  width: min(100%, 430px);
  padding: 28px;
  border: .5px solid var(--pp-border);
  border-radius: 14px;
  background: var(--pp-bg-page);
  box-shadow: var(--pp-shadow-card);
}

body.auth-page .auth-logo-img {
  width: 190px;
  max-width: 70%;
}

body.auth-page .auth-subtitle {
  color: var(--pp-text-body);
}

body.auth-page .auth-note {
  border: .5px solid var(--pp-border-subtle);
  border-radius: 10px;
  background: var(--pp-bg-card);
  color: var(--pp-text-body);
}

body.auth-page .auth-btn {
  border-radius: 9px;
  background: var(--pp-accent);
  color: var(--pp-on-accent);
}

body.auth-page .auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.auth-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--pp-text-body);
  font-size: 12px;
  line-height: 1.45;
}

.auth-terms-check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--pp-accent);
}

.auth-terms-check a {
  color: var(--pp-link);
  font-weight: 600;
}

.auth-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.public-provider-request-success .btn {
  margin-top: 14px;
  text-decoration: none;
}

.public-provider-lookup {
  background: var(--pp-bg-app);
}

.public-provider-panel {
  width: min(100%, 680px);
  border: .5px solid var(--pp-border);
  border-radius: 14px;
  background: var(--pp-bg-page);
  box-shadow: var(--pp-shadow-card);
}

.public-provider-copy h1 {
  color: var(--pp-text-primary);
  font-size: clamp(26px, 5vw, 38px);
  letter-spacing: 0;
}

.public-provider-activation-actions {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.public-provider-lookup.has-provider-result .public-provider-activation-actions {
  display: flex;
}

.public-provider-activation-actions .btn {
  text-decoration: none;
}

.public-provider-existing-link {
  color: var(--pp-link);
  font-size: 13px;
  font-weight: 600;
}

.public-provider-lookup #publicProviderSearchInput:focus {
  outline: none;
  outline-offset: 0;
}

@media (min-width: 701px) {
  .public-provider-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .public-provider-search-btn {
    min-width: 180px;
  }
}

.public-provider-result {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.public-provider-result.is-selected {
  border-color: var(--pp-accent);
  box-shadow: 0 0 0 2px rgba(30, 169, 0, .12);
}

.customer-auth-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 4px auto 12px;
  border-radius: 50%;
  background: var(--pp-pill-bg);
  color: var(--pp-accent);
  font-size: 19px;
  font-weight: 700;
}

.customer-auth-title {
  margin: 0 0 8px;
  color: var(--pp-text-primary);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.customer-auth-retry {
  display: block;
  margin-top: 14px;
  text-align: center;
  text-decoration: none;
}

/* Gallery-aligned BlockBot brand treatment. */
.blockbot-logo-glyph {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.customer-journey-ui span.dashboard-upload-icon.dashboard-upload-icon--blockbot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--pp-accent);
  color: var(--pp-on-accent);
}

body.customer-journey-ui .submission-processing-bot-link {
  gap: 10px;
}

body.customer-journey-ui .submission-processing-bot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--pp-accent);
  color: var(--pp-on-accent);
}

body.customer-journey-ui .submission-processing-bot-name {
  color: #1C3B13;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

/* Messages becomes one responsive app-owned panel. */
body.customer-journey-ui .messages-mega-menu {
  position: fixed;
  top: 72px !important;
  right: 22px;
  bottom: auto;
  left: auto !important;
  z-index: 240;
  width: min(430px, calc(100vw - 44px));
  max-height: min(690px, calc(100dvh - 94px));
  overflow: hidden;
  border: .5px solid var(--pp-border);
  border-radius: 14px;
  background: var(--pp-bg-page);
  box-shadow: var(--pp-shadow-card);
}

.topbar-messages-btn {
  position: relative;
  margin-left: auto;
}

.topbar-messages-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar-messages-btn .nav-message-count {
  position: absolute;
  top: 2px;
  right: 2px;
}

body.customer-journey-ui .messages-mega-list {
  max-height: min(480px, calc(100dvh - 270px));
  overflow-y: auto;
}

.messages-mega-detail {
  min-height: 260px;
  max-height: min(560px, calc(100dvh - 190px));
  padding: 16px;
  overflow-y: auto;
}

.messages-mega-back {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pp-accent);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.messages-mega-detail-title {
  margin: 5px 0 3px;
  color: var(--pp-text-primary);
  font-size: 18px;
  font-weight: 600;
}

.messages-mega-detail .general-message-image {
  margin-top: 16px;
}

.messages-mega-detail .general-message-body {
  margin-top: 16px;
}

.messages-support-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 12px 12px;
  min-height: 38px;
  border-radius: 9px;
  background: var(--pp-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.messages-close-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: .5px solid var(--pp-border-subtle);
  border-radius: 50%;
  background: var(--pp-bg-card);
  color: var(--pp-text-primary);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* Once-per-version customer announcement */
body.customer-journey-ui .lightbox-panel.v3-announcement-panel {
  width: min(460px, calc(100vw - 32px));
  border: .5px solid var(--pp-border);
  border-radius: 14px;
  background: var(--pp-bg-page);
  box-shadow: var(--pp-shadow-card);
}

body.customer-journey-ui .v3-announcement-shell {
  background: transparent;
}

body.customer-journey-ui .v3-announcement-head {
  align-items: center;
  padding: 16px 18px;
  border-color: var(--pp-border-subtle);
}

.v3-announcement-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.customer-journey-ui .v3-announcement-body {
  min-height: 170px;
  padding: 30px 24px 22px;
}

body.customer-journey-ui .v3-announcement-step h2 {
  margin-bottom: 9px;
  color: var(--pp-text-primary);
  font-size: 24px;
  letter-spacing: 0;
}

body.customer-journey-ui .v3-announcement-step p {
  color: var(--pp-text-body);
  font-size: 13px;
}

body.customer-journey-ui .v3-announcement-tier-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.customer-journey-ui .v3-announcement-actions {
  border-color: var(--pp-border-subtle);
}

/* Power bills */
.customer-power-bills-card {
  overflow: visible;
}

.customer-power-bills-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.7fr) repeat(4, minmax(125px, 1fr)) auto;
  gap: 9px;
  align-items: end;
  margin: 14px 0 16px;
  padding: 12px;
  border: .5px solid var(--pp-border-subtle);
  border-radius: 11px;
  background: var(--pp-bg-card);
}

.customer-power-bills-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--pp-text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.customer-power-bills-filters input,
.customer-power-bills-filters select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: .5px solid var(--pp-border-subtle);
  background-color: var(--pp-bg-page);
  color: var(--pp-text-primary);
  font: inherit;
  font-size: 12px;
  text-transform: none;
}

.customer-power-bills-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.customer-total-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--pp-pill-bg);
  color: var(--pp-pill-text);
  font-size: 11px;
  font-weight: 600;
}

.customer-total-pill--green,
.customer-green-total {
  color: var(--pp-accent);
}

.customer-bill-year {
  margin-top: 18px;
}

.customer-bill-year:first-child {
  margin-top: 0;
}

.customer-bill-year-head,
.customer-bill-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-bill-year-head {
  padding: 8px 2px;
  color: var(--pp-text-primary);
  font-size: 15px;
  font-weight: 600;
}

.customer-bill-month-head {
  margin: 8px 0;
  padding-bottom: 7px;
  border-bottom: .5px solid var(--pp-border-subtle);
  color: var(--pp-text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.customer-bill-month-head::-webkit-details-marker {
  display: none;
}

.customer-bill-month-head::before {
  content: "›";
  flex: 0 0 auto;
  color: var(--pp-text-muted);
  font-size: 16px;
  transform: rotate(0deg);
  transition: transform 140ms ease;
}

.customer-bill-month[open] > .customer-bill-month-head::before {
  transform: rotate(90deg);
}

.customer-bill-group-total {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: var(--pp-text-primary);
  white-space: nowrap;
}

.customer-bill-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(120px, .8fr) minmax(110px, .65fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  margin-bottom: 7px;
  padding: 12px;
  border: .5px solid var(--pp-border-subtle);
  border-radius: 11px;
  background: var(--pp-bg-page);
  color: var(--pp-text-body);
  text-align: left;
  cursor: pointer;
}

.customer-bill-row:hover {
  border-color: var(--pp-accent);
}

.customer-bill-provider {
  overflow-wrap: anywhere;
  color: var(--pp-text-primary);
  font-size: 13px;
  font-weight: 600;
}

.customer-bill-meta,
.customer-bill-date {
  color: var(--pp-text-muted);
  font-size: 11px;
}

.customer-bill-amount {
  display: grid;
  gap: 3px;
  color: var(--pp-text-primary);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

.customer-bill-amount small {
  color: var(--pp-accent);
  font-size: 9px;
  font-weight: 600;
}

.customer-status-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pp-pill-bg);
  color: var(--pp-pill-text);
  font-size: 10px;
  font-weight: 600;
}

.customer-status-pill.is-warning {
  background: var(--pp-warn-bg);
  color: var(--pp-warn-text);
}

/* Compact bill review */
.customer-bill-review {
  margin-bottom: 14px;
  border: .5px solid var(--pp-border);
  border-radius: 14px;
  background: var(--pp-bg-page);
  overflow: hidden;
}

.customer-bill-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px;
}

.customer-bill-review-title {
  margin: 2px 0 4px;
  color: var(--pp-text-primary);
  font-size: 18px;
  font-weight: 600;
}

.customer-review-count {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--pp-warn-bg);
  color: var(--pp-warn-text);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.customer-review-warning {
  margin: 0 15px 12px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--pp-warn-bg);
  color: var(--pp-warn-text);
  font-size: 12px;
}

.customer-review-group {
  border-top: .5px solid var(--pp-border-subtle);
}

.customer-review-group-title {
  padding: 11px 15px 7px;
  color: var(--pp-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.customer-review-row {
  display: grid;
  grid-template-columns: minmax(115px, .7fr) minmax(0, 1.3fr) 22px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
  border: 0;
  border-top: .5px solid var(--pp-border-subtle);
  background: transparent;
  color: var(--pp-text-body);
  text-align: left;
  cursor: pointer;
}

.customer-review-row.is-warning {
  background: var(--pp-warn-bg);
}

.customer-review-key {
  color: var(--pp-text-muted);
  font-size: 11px;
}

.customer-review-value {
  overflow-wrap: anywhere;
  color: var(--pp-text-primary);
  font-size: 12px;
  font-weight: 600;
}

.customer-review-value.is-empty {
  color: var(--pp-warn-text);
}

.customer-review-edit {
  color: var(--pp-link);
  font-size: 15px;
}

body.customer-journey-ui #submissionFlowForm.is-compact-review > :not(#customerBillReview):not(.actions--submission-flow-submit) {
  display: none;
}

body.customer-journey-ui #submissionFlowForm.is-editing-review #customerBillReview {
  display: block;
}

.customer-review-editor-back {
  margin-bottom: 12px;
}

.customer-review-inline-editor {
  margin: 12px 15px 15px;
  padding: 12px;
  border: .5px solid var(--pp-accent);
  border-radius: 9px;
  background: var(--pp-bg-card);
}

.customer-review-inline-editor > label {
  display: block;
  margin-bottom: 6px;
  color: var(--pp-text-primary);
  font-size: 11px;
  font-weight: 600;
}

.customer-review-inline-editor input,
.customer-review-inline-editor select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: .5px solid var(--pp-border);
  border-radius: 9px;
  background-color: var(--pp-bg-page);
  color: var(--pp-text-primary);
  font: inherit;
}

.customer-review-inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.customer-review-retry {
  margin: 0 15px 15px;
}

/* Inline customer payment */
.customer-inline-payment {
  margin: 14px 0;
  border: .5px solid var(--pp-border);
  border-radius: 14px;
  background: var(--pp-bg-card);
  overflow: hidden;
}

.customer-inline-payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: .5px solid var(--pp-border-subtle);
}

.customer-inline-payment-title {
  color: var(--pp-text-primary);
  font-size: 16px;
  font-weight: 600;
}

.customer-inline-payment-status {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--pp-pill-bg);
  color: var(--pp-pill-text);
  font-size: 10px;
  font-weight: 600;
}

.customer-inline-payment .swap-payment-panel {
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--pp-bg-page);
  overflow: visible;
}

.customer-inline-payment #swapPaymentLightbox {
  position: static;
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.customer-inline-payment .swap-payment-panel > .lightbox-head {
  display: none;
}

.customer-inline-payment .swap-payment-body {
  grid-template-columns: minmax(0, 1fr);
  max-height: none;
  overflow: visible;
  padding: 16px;
}

.customer-inline-payment .swap-payment-body > * {
  width: 100%;
  min-width: 0;
}

.customer-inline-payment [data-payment-mode-toggle] {
  display: none !important;
}

.customer-inline-payment .swap-payment-powered-by {
  margin-bottom: 0;
}

/* Customer power bill detail */
.customer-power-bill-detail-head {
  margin-top: 14px;
}

.customer-detail-kicker {
  margin-bottom: 9px;
  color: var(--pp-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.customer-status-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 10px;
}

.customer-status-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--pp-text-muted);
  font-size: 10px;
  text-align: center;
}

.customer-status-label {
  display: block;
  width: min(100%, 78px);
  line-height: 1.25;
  text-wrap: balance;
}

.customer-status-step::before {
  content: "";
  position: absolute;
  top: 6px;
  right: 50%;
  left: -50%;
  height: 2px;
  background: var(--pp-border-subtle);
}

.customer-status-step:first-child::before {
  display: none;
}

.customer-status-marker {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 2px solid var(--pp-border);
  border-radius: 50%;
  background: var(--pp-bg-page);
}

.customer-status-step.is-done::before,
.customer-status-step.is-current::before {
  background: var(--pp-accent);
}

.customer-status-step.is-done .customer-status-marker {
  border-color: var(--pp-accent);
  background: var(--pp-accent);
}

.customer-status-step.is-current {
  color: var(--pp-text-primary);
  font-weight: 600;
}

.customer-status-step.is-current .customer-status-marker {
  border-color: var(--pp-accent);
  box-shadow: 0 0 0 3px var(--pp-pill-bg);
}

.customer-status-note {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 12px;
  border: .5px solid var(--pp-border-subtle);
  border-radius: 9px;
  background: var(--pp-bg-card);
  color: var(--pp-text-body);
  font-size: 12px;
}

.customer-status-note.is-action {
  border-color: var(--pp-accent);
  background: var(--pp-pill-bg);
}

.customer-status-note.is-success {
  background: var(--pp-ok-bg);
  color: var(--pp-ok);
}

.customer-status-note.is-warning {
  background: var(--pp-warn-bg);
  color: var(--pp-warn-text);
}

.customer-power-bill-detail-body {
  display: grid;
  gap: 11px;
  margin-top: 13px;
}

.customer-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.customer-detail-panel,
.customer-payment-history {
  min-width: 0;
  padding: 14px;
  border: .5px solid var(--pp-border);
  border-radius: 11px;
  background: var(--pp-bg-page);
}

.customer-detail-row {
  display: grid;
  grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-top: .5px solid var(--pp-border-subtle);
  color: var(--pp-text-muted);
  font-size: 11px;
}

.customer-detail-row:first-of-type {
  border-top: 0;
}

.customer-detail-row strong,
.customer-detail-row a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--pp-text-primary);
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.customer-detail-row a {
  color: var(--pp-link);
  text-decoration: none;
}

.customer-detail-row--hash {
  align-items: start;
}

.customer-detail-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px !important;
}

.customer-detail-green {
  color: var(--pp-accent) !important;
}

.customer-detail-disclaimer {
  margin: 8px 0 0;
  color: var(--pp-text-muted);
  font-size: 10px;
  line-height: 1.45;
}

.customer-payment-history {
  display: grid;
  gap: 8px;
}

.customer-payment-record {
  padding: 11px 12px;
  border: .5px solid var(--pp-border-subtle);
  border-radius: 9px;
  background: var(--pp-bg-card);
}

.customer-payment-record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  color: var(--pp-text-primary);
  font-size: 12px;
}

.customer-detail-empty {
  padding: 12px 0;
  color: var(--pp-text-muted);
  font-size: 12px;
}

body.customer-journey-ui #tab-submission-detail > .card {
  max-width: 980px;
  margin: 0 auto;
}

body.customer-journey-ui #tab-submission-detail .submission-detail-status-shell {
  display: none;
}

body.customer-journey-ui #submissionCommentsSection {
  margin-top: 12px;
}

/* Settings */
.customer-settings-head {
  margin-bottom: 14px;
}

body.customer-journey-ui #tab-account {
  max-width: 880px;
}

body.customer-journey-ui #accountForm {
  display: grid;
  gap: 0;
  padding: 0;
  border: .5px solid var(--pp-border);
  border-radius: 14px;
  background: var(--pp-bg-page);
  overflow: hidden;
}

body.customer-journey-ui #accountForm > .row,
body.customer-journey-ui #accountForm > .account-provider-login-section,
body.customer-journey-ui #accountForm > .actions {
  margin: 0;
  padding: 13px 15px;
  border-top: .5px solid var(--pp-border-subtle);
}

body.customer-journey-ui #accountForm.customer-settings-form {
  border: 0;
  background: transparent;
  overflow: visible;
}

.customer-settings-group {
  min-width: 0;
  margin: 0 0 12px;
  padding: 0;
  border: .5px solid var(--pp-border);
  border-radius: 11px;
  background: var(--pp-bg-page);
  overflow: hidden;
}

.customer-settings-group > legend {
  float: left;
  width: 100%;
  padding: 14px 15px 2px;
  color: var(--pp-text-primary);
  font-size: 14px;
  font-weight: 600;
}

.customer-settings-group > p {
  clear: both;
  margin: 0;
  padding: 0 15px 12px;
  color: var(--pp-text-muted);
  font-size: 10px;
}

.customer-settings-group > .row,
.customer-settings-group > .account-provider-login-section {
  margin: 0;
  padding: 13px 15px;
  border: 0;
  border-top: .5px solid var(--pp-border-subtle);
  border-radius: 0;
  box-shadow: none;
}

.customer-settings-group .account-provider-login-section {
  background: transparent;
}

body.customer-journey-ui .add-provider-credentials-title {
  color: var(--pp-text-primary);
}

.customer-settings-group--credentials .submission-provider-edit-panel-head {
  display: none;
}

body.customer-journey-ui #accountForm.customer-settings-form > .actions {
  position: sticky;
  bottom: 10px;
  z-index: 2;
  justify-content: flex-end;
  margin: 0;
  padding: 10px;
  border: .5px solid var(--pp-border);
  border-radius: 11px;
  background: var(--pp-bg-page);
  box-shadow: var(--pp-shadow-card);
}

body.customer-journey-ui #addProviderPowerProviderList {
  min-height: 0;
  max-height: 180px;
  align-items: start;
  grid-auto-rows: max-content;
}

body.customer-journey-ui #accountForm > .row:first-child {
  border-top: 0;
}

body.customer-journey-ui #accountForm .field {
  margin: 0;
}

.customer-settings-section,
.account-profiles-section {
  margin-top: 14px;
  padding: 15px;
  border: .5px solid var(--pp-border);
  border-radius: 14px;
  background: var(--pp-bg-page);
}

.customer-settings-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.customer-settings-section-title {
  margin-bottom: 3px;
  color: var(--pp-text-primary);
  font-size: 14px;
  font-weight: 600;
}

.customer-wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 11px;
  border: .5px solid var(--pp-border-subtle);
  border-radius: 10px;
  background: var(--pp-bg-card);
}

.customer-address-row {
  margin-top: 12px;
  padding: 11px;
  border: .5px solid var(--pp-border-subtle);
  border-radius: 10px;
  background: var(--pp-bg-card);
}

.customer-address-value {
  color: var(--pp-text-primary);
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.customer-address-meta,
.customer-settings-empty {
  margin-top: 3px;
  color: var(--pp-text-muted);
  font-size: 10px;
}

.customer-wallet-address {
  overflow-wrap: anywhere;
  color: var(--pp-text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
}

.customer-wallet-meta {
  margin-top: 3px;
  color: var(--pp-text-muted);
  font-size: 10px;
}

.customer-wallet-actions {
  display: flex;
  gap: 7px;
  flex: none;
}

.customer-disclosure {
  margin-top: 10px;
  border-top: .5px solid var(--pp-border-subtle);
}

.customer-disclosure summary {
  padding: 11px 0 2px;
  color: var(--pp-link);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.customer-settings-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 18px 2px 4px;
}

.customer-settings-policies a {
  color: var(--pp-link);
  font-size: 11px;
  font-weight: 600;
}

.customer-wallet-unlink-address {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 9px;
  background: var(--pp-bg-card);
  color: var(--pp-text-primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.customer-confirm-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: var(--pp-text-body);
  font-size: 12px;
  line-height: 1.45;
}

/* Activation and agreement journey */
.customer-journey-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
}

body.customer-journey-open {
  overflow: hidden;
}

.customer-journey-overlay[hidden] {
  display: none;
}

.customer-journey-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 27, 7, .68);
  backdrop-filter: blur(7px);
}

.customer-journey-panel {
  position: relative;
  width: min(100%, 540px);
  max-height: min(820px, calc(100dvh - 44px));
  overflow-y: auto;
  border: .5px solid var(--pp-border);
  border-radius: 14px;
  background: var(--pp-bg-page);
  box-shadow: 0 26px 80px rgba(14, 27, 7, .28);
}

.customer-journey-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: .5px solid var(--pp-border-subtle);
}

.customer-journey-brand img {
  display: block;
  width: 142px;
  max-height: 32px;
}

html[data-theme="dark"] .customer-journey-brand img {
  content: url("/assets/powerpay-logo-dark-styleguide-transparent.png");
}

.customer-journey-beta {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--pp-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.customer-journey-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 14px 18px 0;
}

.customer-journey-progress-step {
  height: 5px;
  border-radius: 999px;
  background: var(--pp-border-subtle);
}

.customer-journey-progress-step.is-active {
  background: var(--pp-accent);
}

.customer-journey-content {
  padding: 22px 22px 16px;
}

.customer-journey-content h1 {
  margin: 0 0 8px;
  color: var(--pp-text-primary);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0;
}

.customer-journey-content p {
  margin: 0 0 14px;
  color: var(--pp-text-body);
  font-size: 13px;
  line-height: 1.5;
}

.customer-journey-content .field {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.customer-journey-content .field label {
  color: var(--pp-text-muted);
  font-size: 11px;
  font-weight: 600;
}

.customer-journey-content .field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: .5px solid var(--pp-border-subtle);
  background: var(--pp-bg-card);
  font: inherit;
}

.customer-agreement-box {
  max-height: 250px;
  overflow-y: auto;
  margin: 12px 0;
  padding: 13px;
  border: .5px solid var(--pp-border-subtle);
  border-radius: 10px;
  background: var(--pp-bg-card);
  color: var(--pp-text-body);
  font-size: 12px;
  line-height: 1.5;
}

.customer-agreement-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 12px;
  color: var(--pp-text-body);
  font-size: 12px;
  line-height: 1.45;
}

.customer-agreement-check input,
.customer-confirm-check input {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  accent-color: var(--pp-accent);
}

.customer-journey-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px 18px;
}

.customer-journey-actions .btn {
  min-width: 118px;
}

.customer-journey-actions .btn:disabled {
  border-color: transparent;
  background: var(--pp-locked-bg);
  color: var(--pp-locked-text);
  cursor: not-allowed;
}

.customer-journey-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 11px;
  border: .5px solid var(--pp-border-subtle);
  border-radius: 10px;
  background: var(--pp-bg-card);
}

.customer-journey-status-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--pp-pill-bg);
  color: var(--pp-accent);
  font-size: 18px;
  font-weight: 700;
}

.customer-journey-status strong {
  display: block;
  color: var(--pp-text-primary);
  font-size: 13px;
}

.customer-journey-status span {
  display: block;
  margin-top: 2px;
  color: var(--pp-text-muted);
  font-size: 11px;
}

#btnJourneyLinkWallet {
  margin-bottom: 12px;
}

.customer-how-steps {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.customer-how-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: .5px solid var(--pp-border-subtle);
  border-radius: 10px;
  background: var(--pp-bg-card);
}

.customer-how-step > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pp-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.customer-how-step strong {
  display: block;
  color: var(--pp-text-primary);
  font-size: 12px;
}

.customer-how-step small {
  display: block;
  margin-top: 2px;
  color: var(--pp-text-muted);
  font-size: 10px;
  line-height: 1.35;
}

.customer-error {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--pp-err-bg);
  color: var(--pp-err);
  font-size: 12px;
}

html[data-theme="dark"] body.customer-journey-ui .brand .logo img {
  max-width: 96px;
}

html[data-theme="dark"] body.customer-journey-ui #submissionDetailMeta {
  color: var(--pp-text-muted);
}

html[data-theme="dark"] body.customer-journey-ui .submission-important-banner {
  border-color: color-mix(in srgb, var(--pp-warn-text) 26%, transparent);
  background: var(--pp-warn-bg);
}

html[data-theme="dark"] body.customer-journey-ui .submission-important-text {
  color: var(--pp-warn-text);
}

html[data-theme="dark"] .customer-inline-payment .swap-payment-hero,
html[data-theme="dark"] .customer-inline-payment .swap-payment-wallet-card {
  border-color: var(--pp-border-subtle);
  background: var(--pp-bg-card);
  box-shadow: none;
}

html[data-theme="dark"] .customer-inline-payment .swap-payment-capture-status.is-confirmed {
  background: color-mix(in srgb, var(--pp-accent) 18%, var(--pp-bg-card));
  color: var(--pp-pill-text);
}

html[data-theme="dark"] .customer-inline-payment .swap-payment-capture-hash-copy .submission-id-copy-text {
  color: var(--pp-text-body);
}

@media (max-width: 980px) {
  .customer-power-bills-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-filter-search {
    grid-column: span 2;
  }

  .customer-power-bills-filters .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  body.customer-journey-ui #accountForm.customer-settings-form > .actions {
    position: static;
  }

  body.customer-journey-ui #accountForm.customer-settings-form > .actions .btn {
    width: 100%;
  }
}

@media (max-width: 680px) {
  body.auth-page .auth-card {
    padding: 22px 18px;
  }

  .public-provider-activation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.customer-journey-ui .submission-processing-bot-link {
    gap: 8px;
  }

  body.customer-journey-ui .submission-processing-bot-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  body.customer-journey-ui .submission-processing-bot-icon .blockbot-logo-glyph {
    width: 21px;
    height: 21px;
  }

  body.customer-journey-ui .submission-processing-bot-name {
    font-size: 22px;
  }

  body.customer-journey-ui .messages-mega-menu {
    inset: 0 !important;
    width: 100vw;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  body.customer-journey-ui .messages-mega-list {
    max-height: calc(100dvh - 220px);
  }

  .customer-power-bills-filters {
    grid-template-columns: 1fr 1fr;
  }

  .customer-filter-search {
    grid-column: 1 / -1;
  }

  .customer-bill-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .customer-bill-group-total {
    align-items: flex-end;
    flex-direction: column;
    gap: 2px;
  }

  .customer-detail-grid {
    grid-template-columns: 1fr;
  }

  .customer-status-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-detail-row {
    grid-template-columns: minmax(96px, .8fr) minmax(0, 1.2fr);
  }

  .customer-bill-date {
    grid-column: 1;
  }

  .customer-bill-amount {
    grid-column: 2;
    grid-row: 1;
  }

  .customer-review-row {
    grid-template-columns: 95px minmax(0, 1fr) 18px;
    padding-inline: 12px;
  }

  .customer-inline-payment-head,
  .customer-settings-section-head,
  .customer-wallet-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-wallet-actions {
    width: 100%;
  }

  .customer-wallet-actions .btn {
    flex: 1;
  }

  .customer-journey-overlay {
    padding: 0;
    align-items: end;
  }

  .customer-journey-panel {
    width: 100%;
    max-height: 94dvh;
    border-radius: 14px 14px 0 0;
  }

  .customer-journey-content {
    padding: 19px 18px 14px;
  }

  .customer-journey-actions {
    position: sticky;
    bottom: 0;
    background: var(--pp-bg-page);
  }
}

@media (max-width: 430px) {
  .customer-status-label {
    width: min(100%, 64px);
    font-size: 9px;
  }

  .customer-power-bills-filters {
    grid-template-columns: 1fr;
  }

  .customer-filter-search {
    grid-column: auto;
  }

  .customer-bill-year-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .customer-review-row {
    grid-template-columns: 1fr 18px;
  }

  .customer-review-key {
    grid-column: 1;
  }

  .customer-review-value {
    grid-column: 1;
  }

  .customer-review-edit {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] body.customer-journey-ui .brand .logo img {
    max-width: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-journey-overlay *,
  body.customer-journey-ui * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
