/* Customer console and account screens. */
:root {
  --customer-canvas: #f7f7f6;
  --customer-border: #e4e4e2;
  --customer-muted: #62625d;
  --customer-accent: #bd4515;
  --customer-accent-soft: #fff2ea;
}

main.customer-console {
  max-width: none;
  min-height: 100vh;
  padding: 0 0 56px;
  background: var(--customer-canvas);
}

.customer-bar {
  display: block;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid var(--customer-border);
}

.customer-bar-inner {
  max-width: 1136px;
  min-height: 70px;
  padding: 0 28px;
  margin: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}

.customer-wordmark, .account-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1c1c1a;
  white-space: nowrap;
}

.customer-wordmark .brand-mark, .account-brand .brand-mark {
  width: 35px;
  height: 35px;
  border-radius: 10px;
}

.customer-bar nav {
  display: flex;
  gap: 24px;
  align-self: stretch;
}

.customer-bar .customer-tab {
  min-height: 48px;
  padding: 0 1px;
  background: none;
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  color: var(--customer-muted);
  font-size: .86rem;
  font-weight: 400;
  white-space: nowrap;
}

.customer-bar .customer-tab:hover {
  color: #20201e;
  box-shadow: none;
  transform: none;
}

.customer-bar .customer-tab[aria-current="page"] {
  color: #222220;
  border-bottom-color: var(--customer-accent);
  font-weight: 700;
}

.customer-profile {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
}

.customer-profile > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  margin: 0;
}

.customer-profile[open] > summary { margin: 0; }
.customer-profile > summary::-webkit-details-marker { display: none; }

.profile-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #efefed;
  color: #434340;
  border-radius: 50%;
  font-family: system-ui, sans-serif;
  font-weight: 700;
}

.profile-menu {
  position: absolute;
  z-index: 5;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  max-width: min(300px, 85vw);
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--customer-border);
  border-radius: 12px;
  box-shadow: 0 12px 26px #00000012;
}

.profile-menu bdi {
  text-align: left;
  font: .8rem/1.7 system-ui, sans-serif;
  overflow-wrap: anywhere;
}

.customer-page {
  width: min(100% - 48px, 756px);
  margin: 39px auto 0;
}

.customer-page > h1 {
  margin-bottom: 17px;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -.025em;
}

.customer-console .installation-wizard {
  padding: 0;
  border: 1px solid var(--customer-border);
  border-radius: 17px;
  box-shadow: 0 10px 32px #29291f06;
}

.customer-console .wizard-steps {
  position: static;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 28px 17px;
  margin: 0;
  border-bottom: 1px solid var(--customer-border);
  background: #fcfcfb;
}

.customer-console .wizard-steps li {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  gap: 7px;
  font-size: .78rem;
  color: var(--customer-muted);
}

.customer-console .wizard-steps li::before { display: none; }
.customer-console .wizard-step-number {
  width: 25px;
  height: 25px;
  border-color: #dededa;
  background: #fff;
  color: var(--customer-muted);
  font-size: .75rem;
}

.customer-console .wizard-steps .current {
  color: var(--customer-accent);
  font-weight: 700;
}

.customer-console .wizard-steps .current .wizard-step-number {
  background: var(--customer-accent-soft);
  border-color: #f0c8b7;
  color: var(--customer-accent);
  box-shadow: none;
}

.customer-console .wizard-steps .complete .wizard-step-number {
  background: #292927;
  border-color: #292927;
  color: #fff;
}

.customer-console .wizard-workspace {
  max-width: 590px;
  padding: 27px 32px 25px;
  margin: 0 auto;
}

.customer-console .wizard-workspace > h2 {
  margin: 0 0 5px;
  font-size: 1.26rem;
}
.customer-console .wizard-workspace > h2:focus { outline: none; }
.customer-console .wizard-workspace > p { margin: 0 0 22px; }
.customer-console .wizard-workspace > p:empty { display: none; }
.customer-console .wizard-workspace > h2 + p:empty + .wizard-body { margin-top: 16px; }
.customer-console .wizard-workspace > button.secondary { margin: 12px 0 0; }

.customer-console .guided-field { margin-bottom: 16px; }
.customer-console .field-hint { color: var(--customer-muted); }
.customer-console .wizard-body > div > label { margin-bottom: 0; }
.customer-console .wizard-summary {
  grid-template-columns: 108px minmax(0, 1fr);
  padding: 13px 16px;
  gap: 9px 14px;
  margin: 0 0 18px;
  background: #fafaf9;
  border-radius: 10px;
}
.customer-console .wizard-summary dt { color: var(--customer-muted); }
.customer-console .wizard-summary dd { text-align: right; }

.customer-console .wizard-footer {
  position: static;
  padding: 17px 0 0;
  margin-top: 19px;
  box-shadow: none;
  border-color: var(--customer-border);
}

.customer-console .wizard-footer > button:last-child {
  min-width: 148px;
}

.customer-console input, .customer-console select, .customer-console textarea,
.account-card input {
  background-color: #fff;
  border-color: #d8d8d5;
  border-radius: 9px;
}

.customer-console button:not(.secondary, .customer-tab, .info-help, .danger),
.account-card button:not(.secondary, .registration-login) {
  background: var(--customer-accent);
  border-radius: 9px;
}
.customer-console button:not(.secondary, .customer-tab, .info-help, .danger):hover,
.account-card button:not(.secondary, .registration-login):hover { background: #a9380d; }

.quiet-disclosure {
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}
.quiet-disclosure > summary {
  min-height: 44px;
  padding: 10px 0;
  color: var(--customer-muted);
}
.quiet-disclosure[open] > summary { margin-bottom: 8px; }

.orders-toolbar, .invoice-heading, .license-entry-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.orders-toolbar { margin-bottom: 12px; }
.orders-toolbar h2 { font-size: 1rem; margin: 0; }
.customer-console .invoice-card {
  margin: 0 0 11px;
  padding: 17px 19px;
  border: 1px solid var(--customer-border);
  border-radius: 12px;
}
.customer-console .invoice-heading { align-items: flex-start; }
.customer-console .invoice-heading > div { min-width: 0; overflow-wrap: anywhere; }
.customer-console .invoice-heading .badge { flex-shrink: 0; }
.customer-console .invoice-amount { margin: 2px 0 0; font-size: .84rem; color: var(--customer-muted); }
.customer-console .invoice-reference { margin: 8px 0 0; }
.customer-console .invoice-reference summary { color: var(--customer-muted); }
.customer-console .invoice-reference[open] > summary { margin: 0; }
.customer-console .invoice-actions { margin-top: 14px; }
.customer-console .invoice-tracking { margin: 12px 0 0; padding: 0; border: 0; border-top: 1px solid var(--customer-border); border-radius: 0; }
.customer-console .invoice-tracking > summary { padding: 10px 0 0; }
.customer-console .invoice-tracking[open] > summary { margin: 0; }
.customer-console .install-status-header { padding: 13px 15px; background: #f5f5f3; border-radius: 10px; color: #292927; }
.customer-console .install-status-header p { color: var(--customer-muted); }
.customer-console .install-percent { font-size: 1.25rem; color: var(--customer-accent); }
.customer-console .install-timeline { margin-bottom: 14px; }
.customer-console .install-timeline li { padding-block: 9px; min-height: 49px; }
.customer-console .install-timeline li:not(:last-child)::before { top: 40px; bottom: -9px; }
.customer-console .install-step-copy small { color: var(--customer-muted); }
.customer-console .installation-destination { margin: 0; overflow-wrap: anywhere; text-align: right; }
.customer-console .installation-progress:empty { display: none; }
.customer-console .installation-progress form { gap: 13px; }
.customer-console .order-feedback:has(> :empty) { display: none; }
.customer-console .order-feedback { margin-block: 10px; }
.customer-console .customer-license-list { background: #fff; }
.customer-console .license-entry { padding: 12px 0; border-top: 1px solid var(--customer-border); }
.customer-console .license-entry-info small { color: var(--customer-muted); }
.customer-console .license-entry .actions { margin-top: 8px; }
.customer-empty {
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: 38px 16px;
  background: #fff;
  border: 1px solid var(--customer-border);
  border-radius: 12px;
  text-align: center;
}
.empty-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--customer-accent-soft);
  color: var(--customer-accent);
}
.customer-empty h2 { margin: 0; font-size: 1rem; }

.account-screen {
  width: min(100%, 410px);
  margin: clamp(42px, 11vh, 112px) auto 0;
}
.account-brand { justify-content: center; margin-bottom: 19px; }
.account-card {
  padding: 28px 29px 20px;
  border: 1px solid var(--customer-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px #29291f08;
}
.account-card h1 { margin-bottom: 21px; font-size: 1.4rem; }
.account-card form { gap: 14px; }
.account-card form > div:empty { display: none; }
.account-card > .registration-login {
  display: flex;
  width: 100%;
  margin-top: 15px;
  border-top: 1px solid var(--customer-border) !important;
  border-radius: 0;
  padding-top: 14px !important;
}

@media (max-width: 650px) {
  .customer-bar-inner {
    min-height: 62px;
    padding-inline: 16px;
    gap: 15px;
  }
  .customer-bar nav { gap: 13px; justify-content: center; }
  .customer-bar .customer-tab { font-size: .79rem; }
  .profile-label { display: none; }
  .customer-page { width: calc(100% - 28px); margin-top: 23px; }
  .customer-console .wizard-workspace { padding: 20px; }
  .customer-console .wizard-steps { gap: 4px; padding: 14px 12px; }
  .customer-console .wizard-steps li { flex-direction: column; gap: 4px; font-size: .74rem; }
  .customer-console .invoice-card { padding: 14px; }
  .customer-console .invoice-actions button { min-height: 44px; }
}
@media (max-width: 360px) {
  .customer-wordmark { gap: 6px; font-size: .9rem; }
  .customer-bar-inner { gap: 9px; padding-inline: 10px; }
  .customer-bar nav { gap: 10px; }
  .customer-console .wizard-workspace { padding: 17px; }
}

.customer-console .wizard-orders .invoice-card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.customer-console .wizard-orders .installation-progress {
  padding-top: 14px;
  border-top: 1px solid var(--customer-border);
}
.customer-console .installation-progress form > p { margin: 0; }
.customer-console .subtle-action {
  justify-self: start;
  padding-inline: 0;
  border-color: transparent;
  color: var(--customer-muted);
}
.account-card > .secondary { margin-top: 15px; }
.registration-flow > .registration-login { margin-top: 12px; }
.registration-flow .registration-captcha:empty { display: none; }
