/* Scoped customer area. Public catalogue, checkout, header and footer retain their design. */
.bbz-customer [hidden] {
  display: none !important;
}
.bbz-customer .account-page-hero {
  padding-block: 36px 32px;
}
.bbz-customer .account-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}
.bbz-customer .account-page-hero p {
  max-width: 660px;
}
.bbz-customer .account-section {
  padding-block: 30px 70px;
}
.bbz-customer .account-dashboard {
  max-width: 1240px;
}
.customer-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 26px;
}
.customer-sidebar,
.customer-panel,
.customer-stat,
.customer-guest {
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 16px;
  box-shadow: 0 5px 22px #18344a05;
}
.customer-sidebar {
  padding: 25px 16px 18px;
  position: sticky;
  top: 86px;
}
.customer-identity {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 7px;
  padding: 0 8px 23px;
  border-bottom: 1px solid #e8eef4;
}
.customer-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
  background: #eaf3fc;
  color: #2d689e;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 50%;
}
.customer-identity strong {
  color: #193953;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.customer-identity > span:last-child {
  color: #61758a;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.customer-nav {
  display: grid;
  gap: 4px;
  padding-top: 19px;
}
.customer-nav a,
.customer-signout {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  border-radius: 9px;
  padding: 10px 12px;
  color: #476177;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition:
    background 0.18s,
    color 0.18s;
}
.customer-nav a > span {
  width: 20px;
  font-size: 1.1rem;
  text-align: center;
  color: #6b8498;
}
.customer-nav a:hover,
.customer-nav a.is-current {
  background: #eaf3fc;
  color: #245e94;
}
.customer-nav a.is-current > span {
  color: #245e94;
}
.customer-signout {
  background: transparent;
  border: 0;
  border-top: 1px solid #e8eef4;
  border-radius: 0;
  margin-top: 17px;
  padding-top: 18px;
  cursor: pointer;
  width: 100%;
  justify-content: space-between;
  font-family: inherit;
}
.customer-signout:hover {
  color: #245e94;
}
.customer-sidebar-note {
  color: #708395;
  font-size: 0.72rem;
  line-height: 1.6;
  padding-inline: 12px;
  margin: 8px 0 0;
}
.customer-main {
  min-width: 0;
  display: grid;
  gap: 23px;
}
.customer-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 0 2px;
}
.customer-welcome h2 {
  margin: 5px 0 9px;
  color: #193953;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.customer-welcome p {
  color: #65798b;
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 0 0 13px;
}
.customer-welcome .btn {
  flex-shrink: 0;
  font-size: 0.76rem;
  padding: 13px 18px;
}
.customer-badge {
  display: inline-flex;
  align-items: center;
  background: #edf3f9;
  border-radius: 20px;
  padding: 4px 10px;
  color: #476783;
  font-size: 0.69rem;
  font-weight: 700;
  margin: 0 5px 5px 0;
}
.customer-badge--good {
  background: #eaf6f0;
  color: #247459;
}
.customer-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.customer-stat {
  display: grid;
  align-content: space-between;
  gap: 9px;
  padding: 21px;
  text-decoration: none;
  transition:
    border-color 0.18s,
    transform 0.18s;
}
.customer-stat:hover {
  border-color: #a7c4df;
  transform: translateY(-2px);
}
.customer-stat > span {
  font-size: 0.78rem;
  color: #61788e;
  font-weight: 600;
}
.customer-stat > strong {
  font-size: 2rem;
  line-height: 1.2;
  color: #193953;
  letter-spacing: -0.035em;
}
.customer-stat > strong.customer-stat-label {
  font-size: 1.35rem;
  padding-block: 6px;
}
.customer-stat > small {
  font-size: 0.68rem;
  color: #708395;
  display: flex;
  gap: 5px;
  justify-content: space-between;
}
.customer-panel {
  padding: 24px;
  min-width: 0;
}
.customer-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}
.customer-panel-heading h3,
.customer-help-panel h3 {
  color: #193953;
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -0.02em;
}
.customer-panel-heading .eyebrow,
.customer-help-panel .eyebrow,
.customer-welcome .eyebrow {
  color: #698198;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 5px;
}
.customer-panel .text-link {
  font-size: 0.76rem;
  white-space: nowrap;
  color: #2d689e;
}
.customer-table-wrap {
  overflow-x: auto;
}
.customer-enquiry-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}
.customer-enquiry-table th {
  color: #738698;
  font-size: 0.67rem;
  font-weight: 600;
  padding: 11px 10px;
  background: #f7f9fc;
}
.customer-enquiry-table td {
  padding: 16px 10px;
  color: #5c7388;
  border-bottom: 1px solid #edf1f5;
}
.customer-enquiry-table tr:last-child td {
  border-bottom: 0;
}
.customer-reference {
  color: #245e94;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.customer-status {
  display: inline-block;
  background: #edf3f9;
  color: #476783;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.68rem;
  line-height: 1.5;
}
.customer-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
}
.customer-details {
  display: grid;
  gap: 15px;
  margin: 0;
}
.customer-details > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
}
.customer-details dt {
  color: #748698;
  font-size: 0.76rem;
}
.customer-details dd {
  margin: 0;
  color: #344f67;
  font-size: 0.78rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.customer-help-panel {
  background: #f4f8fc;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.customer-help-icon {
  display: grid;
  place-items: center;
  background: #e4eef8;
  color: #2d689e;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-bottom: 19px;
  font-size: 1.3rem;
}
.customer-help-panel p,
.customer-business-panel p {
  color: #647b8e;
  font-size: 0.8rem;
  line-height: 1.8;
  margin: 12px 0 19px;
}
.customer-help-email {
  color: #657b8f;
  font-size: 0.74rem;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.customer-empty {
  padding: 30px 16px 20px;
  display: grid;
  justify-items: center;
  text-align: center;
}
.customer-empty-icon {
  color: #6b90ae;
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.customer-empty h4 {
  margin: 4px 0;
  color: #294b66;
  font-size: 1rem;
}
.customer-empty p {
  max-width: 420px;
  color: #748698;
  font-size: 0.8rem;
  line-height: 1.8;
}
.customer-empty .btn {
  margin-top: 10px;
  font-size: 0.74rem;
}
.customer-load-error .text-link {
  margin-top: 15px;
}
.customer-live-status {
  color: #647b8e;
  font-size: 0.83rem;
  margin: 0 0 20px;
}
.customer-live-status:empty {
  display: none;
}
.customer-loading {
  color: #748698;
  font-size: 0.82rem;
  padding: 18px 0;
}
.customer-guest {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 45px 32px;
}
.customer-guest-mark {
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  width: 62px;
  height: 62px;
  color: #2d689e;
  background: #eaf3fc;
  border-radius: 18px;
  font-size: 2rem;
}
.customer-guest h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #193953;
  margin-block: 12px;
}
.customer-guest p {
  color: #65798b;
  font-size: 0.9rem;
  line-height: 1.8;
}
.customer-guest .actions {
  justify-content: center;
  margin-block: 24px;
}
.customer-guest p.customer-guest-help {
  font-size: 0.78rem;
  margin-bottom: 0;
}
.customer-guest-help a {
  color: #2d689e;
}
.customer-security-notice {
  border: 1px solid #e7d5aa;
  background: #fffbf1;
  border-radius: 12px;
  padding: 18px 22px;
  color: #6b562a;
  font-size: 0.82rem;
}
.customer-security-notice p {
  margin: 5px 0 9px;
}
.customer-security-notice a {
  color: #6b562a;
  font-weight: 700;
}
.customer-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.bbz-customer
  :is(
    .customer-nav a,
    .customer-signout,
    .customer-stat,
    .customer-reference
  ):focus-visible {
  outline: 3px solid #4296d3;
  outline-offset: 3px;
}
.customer-back-link {
  display: inline-block;
  font-size: 0.78rem;
  color: #2d689e;
  text-decoration: none;
  margin-bottom: 22px;
}
.bbz-customer .customer-settings-wrap {
  max-width: 1050px;
}
.bbz-customer .customer-settings-wrap .auth-panel {
  max-width: none;
  padding: 30px;
}
.bbz-customer [data-security-content] {
  display: grid;
  gap: 20px;
}
.bbz-customer [data-security-content] > form,
.bbz-customer [data-security-content] > .customer-settings-group {
  padding: 24px;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  background: #fff;
}
.customer-identity-verify summary {
  color: #476783;
  font-size: 0.83rem;
  cursor: pointer;
  font-weight: 600;
}
.customer-identity-verify form + form {
  border-top: 1px solid #e8eef4;
  padding-top: 20px;
  margin-top: 20px;
}
.customer-identity-verify form h3 {
  font-size: 0.93rem;
}
.bbz-customer [data-security-content] h3 {
  font-size: 1.1rem;
  color: #193953;
  margin-top: 0;
}
.bbz-customer [data-security-content] p {
  font-size: 0.86rem;
  line-height: 1.8;
}
.customer-settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.customer-settings-nav a {
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  padding: 9px 14px;
  text-decoration: none;
  color: #577189;
  font-size: 0.78rem;
}
.customer-settings-nav a[aria-current="page"] {
  border-color: #b5cde3;
  background: #edf5fc;
  color: #245e94;
}
.bbz-customer [data-security-status]:not(:empty) {
  background: #f1f6fb;
  color: #476783;
  border-radius: 9px;
  padding: 13px 16px;
  font-size: 0.83rem;
}
.bbz-customer .order-card {
  border-radius: 15px;
  border-color: #dfe7ef;
  box-shadow: 0 5px 22px #18344a05;
}
@media (max-width: 1050px) {
  .customer-layout {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 20px;
  }
  .customer-welcome {
    align-items: flex-start;
    flex-direction: column;
  }
  .customer-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .customer-layout {
    grid-template-columns: 1fr;
  }
  .customer-sidebar {
    position: static;
    padding: 17px;
  }
  .customer-identity {
    grid-template-columns: 42px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    gap: 3px 13px;
    padding-bottom: 15px;
  }
  .customer-avatar {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    margin: 0;
    font-size: 0.9rem;
  }
  .customer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding-top: 14px;
  }
  .customer-nav a {
    font-size: 0.76rem;
    gap: 8px;
    padding: 9px;
  }
  .customer-signout {
    margin-top: 10px;
    padding-top: 12px;
  }
  .customer-sidebar-note {
    display: none;
  }
  .customer-stat {
    padding: 16px;
  }
  .customer-stat > span {
    font-size: 0.72rem;
  }
  .customer-stat > small {
    font-size: 0.63rem;
  }
  .customer-panel {
    padding: 21px;
  }
  .customer-enquiry-table {
    display: block;
    min-width: 0;
  }
  .customer-enquiry-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .customer-enquiry-table tbody {
    display: block;
  }
  .customer-enquiry-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px 12px;
    align-items: center;
    padding-block: 16px;
    border-bottom: 1px solid #edf1f5;
  }
  .customer-enquiry-table tbody tr:last-child {
    border-bottom: 0;
  }
  .customer-enquiry-table td {
    display: block;
    padding: 0;
    border: 0;
  }
  .customer-enquiry-table td:nth-child(1) {
    order: 1;
  }
  .customer-enquiry-table td:nth-child(2) {
    order: 3;
    font-size: 0.69rem;
  }
  .customer-enquiry-table td:nth-child(3) {
    order: 4;
    justify-self: end;
    font-size: 0.69rem;
  }
  .customer-enquiry-table td:nth-child(3)::before {
    content: "Qty: ";
  }
  .customer-enquiry-table td:nth-child(4) {
    order: 2;
    justify-self: end;
    max-width: 130px;
  }
  .customer-enquiry-table .customer-status {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 420px) {
  .customer-stat-grid {
    gap: 8px;
  }
  .customer-stat {
    padding: 12px;
  }
  .customer-stat > span {
    font-size: 0.65rem;
  }
  .customer-stat > strong {
    font-size: 1.7rem;
  }
  .customer-stat > strong.customer-stat-label {
    font-size: 1rem;
    padding-block: 7px;
  }
  .customer-stat > small {
    font-size: 0.6rem;
    line-height: 1.5;
  }
  .customer-panel {
    padding: 18px;
  }
  .customer-details > div {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
  }
  .customer-details :is(dt, dd) {
    font-size: 0.72rem;
  }
  .bbz-customer .customer-settings-wrap .auth-panel {
    padding: 21px 16px;
  }
  .bbz-customer [data-security-content] > form,
  .bbz-customer [data-security-content] > .customer-settings-group {
    padding: 18px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .customer-stat,
  .customer-nav a {
    transition: none;
    transform: none;
  }
}
