/* HIZETE Customer Accounts, Trade Program & Controlled Pricing UI */
.hz-shared-chrome,
.hz-trade {
  --hz-ok-bg: #e8efe0;
  --hz-ok-line: #a9bc96;
  --hz-ok-ink: #253618;
  --hz-warn-bg: #fbf5e8;
  --hz-warn-line: #d9be8b;
  --hz-warn-ink: #5a4016;
  --hz-err-bg: #fdf2f2;
  --hz-err-line: #d99b9b;
  --hz-err-ink: #6b1d1d;
}

.hz-header-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.hz-header-account-link:hover {
  background: var(--hz-soft, #e9ebe3);
  text-decoration: none;
}
.hz-header-account {
  position: relative;
}
.hz-header-account summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
  background: var(--hz-white, #fff);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.hz-header-account summary::-webkit-details-marker {
  display: none;
}
.hz-header-account:not([open]) > div {
  display: none;
}
.hz-header-account > div {
  position: absolute;
  z-index: 66;
  top: calc(100% + 12px);
  inset-inline-end: 0;
  width: 248px;
  padding: 12px;
  background: var(--hz-white, #fff);
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
  box-shadow: 0 10px 22px rgba(24, 33, 24, 0.12);
  display: grid;
  gap: 2px;
}
.hz-header-account-meta {
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--hz-line, #d5d8ce);
  font-size: 12px;
  color: var(--hz-muted, #646a61);
}
.hz-header-account-sep {
  border: 0;
  border-top: 1px solid var(--hz-line, #d5d8ce);
  margin: 4px 0;
}
.hz-header-account > div a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--hz-radius, 4px);
  font-size: 14px;
}
.hz-header-account > div a:hover {
  background: var(--hz-paper, #f5f4ef);
  text-decoration: none;
}

/* Mobile drawer account summary card */
.hz-mobile-account-card {
  padding: 14px;
  margin-bottom: 10px;
  background: var(--hz-paper, #f5f4ef);
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
  display: grid;
  gap: 10px;
}
.hz-mobile-account-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}
.hz-mobile-account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.hz-mobile-account-actions .hz-button {
  min-height: 44px;
  padding: 8px 12px;
  width: 100%;
}

@media (max-width: 1240px) {
  .hz-header-account-link > span,
  .hz-header-account summary > span {
    display: none;
  }
}
@media (max-width: 700px) {
  .hz-header-account-link,
  .hz-header-account {
    display: none;
  }
}

/* Trade Pricing Badges & Restricted Notice */
.hz-commercial-indicative--partner {
  color: var(--hz-saved, #3f5929);
}
.hz-trade-only-box {
  padding: 14px 16px;
  margin-bottom: 14px;
  background: var(--hz-paper, #f5f4ef);
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
}
.hz-trade-only-box strong {
  display: block;
  font-size: 14px;
  color: var(--hz-ink, #252c27);
}
.hz-trade-only-box p {
  margin: 4px 0 10px;
  font-size: 12px;
  color: var(--hz-muted, #646a61);
}
.hz-trade-only-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

/* Shared text, alert, button, and form surface polish */
.hz-req {
  color: var(--hz-accent, #87652e);
  margin-inline-start: 2px;
}
.hz-acct-muted {
  color: var(--hz-muted, #646a61);
  font-size: 14px;
}
.hz-acct-card {
  background: var(--hz-white, #fff);
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
  padding: 24px;
}
.hz-acct-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.hz-acct-card--highlight {
  background: var(--hz-soft, #e9ebe3);
}
.hz-acct-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.hz-acct-alert {
  padding: 14px 16px;
  border-radius: var(--hz-radius, 4px);
  border: 1px solid var(--hz-line, #d5d8ce);
  margin-bottom: 20px;
  font-size: 14px;
}
.hz-acct-alert--ok {
  background: var(--hz-ok-bg);
  border-color: var(--hz-ok-line);
  color: var(--hz-ok-ink);
}
.hz-acct-alert--warn {
  background: var(--hz-warn-bg);
  border-color: var(--hz-warn-line);
  color: var(--hz-warn-ink);
}
.hz-acct-alert--err {
  background: var(--hz-err-bg);
  border-color: var(--hz-err-line);
  color: var(--hz-err-ink);
}

.hz-auth-footer a,
.hz-acct-auth-row a,
.hz-acct-alert a:not(.hz-button),
.hz-acct-muted a:not(.hz-button) {
  color: var(--hz-ink, #252c27);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--hz-accent, #87652e);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.hz-auth-footer a:hover,
.hz-acct-auth-row a:hover,
.hz-acct-alert a:not(.hz-button):hover,
.hz-acct-muted a:not(.hz-button):hover {
  color: var(--hz-accent, #87652e);
}

.hz-button--danger {
  border-color: var(--hz-err-line) !important;
  color: var(--hz-err-ink) !important;
}
.hz-button--danger:hover {
  background: var(--hz-err-bg) !important;
  color: var(--hz-err-ink) !important;
}

/* Auth Card */
.hz-auth-shell {
  padding-block: 48px 72px;
  display: flex;
  justify-content: center;
}
.hz-auth-card {
  width: min(520px, 100%);
}
.hz-auth-card h1 {
  font-size: clamp(30px, 3vw, 38px);
  margin: 0 0 10px;
}

.hz-acct-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.hz-acct-form > .hz-button {
  align-self: flex-start;
}
.hz-auth-card .hz-acct-form > .hz-button {
  align-self: stretch;
}
.hz-acct-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hz-acct-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hz-acct-field--full {
  grid-column: 1 / -1;
}
.hz-acct-field label,
.hz-tp-interests legend {
  font-size: 12px;
  font-weight: 600;
  color: var(--hz-ink, #252c27);
}
.hz-acct-field input[type="text"],
.hz-acct-field input[type="email"],
.hz-acct-field input[type="password"],
.hz-acct-field input[type="tel"],
.hz-acct-field input[type="url"],
.hz-acct-field select,
.hz-acct-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
  background: var(--hz-white, #fff);
  font-size: 14px;
}
.hz-acct-field :is(input, select, textarea):disabled {
  background: var(--hz-paper, #f5f4ef);
  color: var(--hz-muted, #646a61);
  border-color: var(--hz-line, #d5d8ce);
  cursor: not-allowed;
}
.hz-acct-field input[type="file"] {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px dashed var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
  background: var(--hz-paper, #f5f4ef);
  font-size: 14px;
  cursor: pointer;
}
.hz-acct-field input[type="file"]::file-selector-button {
  margin-inline-end: 12px;
  padding: 6px 12px;
  min-height: 32px;
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
  background: var(--hz-white, #fff);
  color: var(--hz-ink, #252c27);
  font: 600 12px Manrope, sans-serif;
  cursor: pointer;
}
.hz-pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.hz-pass-wrap input {
  padding-inline-end: 72px;
}
.hz-pass-toggle {
  position: absolute;
  inset-inline-end: 2px;
  min-width: 56px;
  min-height: 42px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hz-muted, #646a61);
  border-radius: var(--hz-radius, 4px);
}
.hz-pass-toggle:hover {
  color: var(--hz-ink, #252c27);
  background: var(--hz-soft, #e9ebe3);
}
.hz-check-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
  background: var(--hz-white, #fff);
  font-size: 14px;
  cursor: pointer;
  align-self: flex-start;
}
.hz-check-card input[type="checkbox"],
.hz-tp-checks input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--hz-accent, #87652e);
  flex-shrink: 0;
}
.hz-acct-auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}
.hz-auth-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hz-line, #d5d8ce);
  display: grid;
  gap: 6px;
  font-size: 14px;
}

/* Dashboard Layout */
.hz-account-page {
  padding-block: 28px 64px;
}
.hz-acct-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hz-line, #d5d8ce);
  margin-bottom: 24px;
}
.hz-acct-header h1 {
  font-size: clamp(30px, 3vw, 42px);
  margin: 0 0 8px;
}
.hz-acct-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 14px;
}
.hz-acct-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hz-access-pill,
.hz-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--hz-radius, 4px);
  background: var(--hz-soft, #e9ebe3);
  border: 1px solid var(--hz-line, #d5d8ce);
  font-size: 12px;
  font-weight: 600;
  color: var(--hz-ink, #252c27);
}
.hz-access-pill.is-partner {
  background: var(--hz-ok-bg);
  border-color: var(--hz-ok-line);
  color: var(--hz-saved, #3f5929);
}
.hz-acct-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.hz-acct-nav-wrap {
  position: sticky;
  top: calc(var(--hz-navigation-height, 82px) + 18px);
  min-width: 0;
  max-width: 100%;
}
.hz-acct-content {
  min-width: 0;
  max-width: 100%;
}
.hz-sr-only-input {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.hz-acct-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hz-acct-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--hz-radius, 4px);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}
.hz-acct-nav a:hover {
  background: var(--hz-soft, #e9ebe3);
  text-decoration: none;
}
.hz-acct-nav a[aria-current="page"] {
  background: var(--hz-white, #fff);
  border-color: var(--hz-accent, #87652e);
  color: var(--hz-accent, #87652e);
}
.hz-acct-nav-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--hz-soft, #e9ebe3);
  color: var(--hz-ink, #252c27);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hz-acct-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.hz-acct-kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--hz-white, #fff);
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
}
.hz-acct-kpi span {
  font-size: 12px;
  color: var(--hz-muted, #646a61);
}
.hz-acct-kpi strong {
  font-size: 24px;
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hz-acct-onboarding {
  margin-bottom: 20px;
}
.hz-acct-onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.hz-acct-step {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
  background: var(--hz-paper, #f5f4ef);
  min-height: 44px;
}
.hz-acct-step:hover {
  border-color: var(--hz-accent, #87652e);
  text-decoration: none;
}
.hz-acct-step strong {
  font-size: 14px;
  color: var(--hz-ink, #252c27);
}
.hz-acct-step span {
  font-size: 12px;
  color: var(--hz-muted, #646a61);
}
.hz-acct-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hz-acct-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}
.hz-acct-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hz-line, #d5d8ce);
  font-size: 14px;
}
.hz-acct-list li small {
  display: block;
  color: var(--hz-muted, #646a61);
  font-size: 12px;
}
.hz-acct-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}
.hz-acct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.hz-acct-table th,
.hz-acct-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--hz-line, #d5d8ce);
  text-align: start;
}
.hz-acct-table th {
  font-size: 12px;
  color: var(--hz-muted, #646a61);
  background: var(--hz-paper, #f5f4ef);
}
.hz-acct-proj-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.hz-acct-proj-item {
  padding: 16px;
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
}
.hz-acct-proj-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.hz-acct-proj-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hz-proj-edit {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--hz-line, #d5d8ce);
}
.hz-proj-edit summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hz-muted, #646a61);
  cursor: pointer;
}
.hz-proj-edit summary:hover {
  color: var(--hz-ink, #252c27);
}
.hz-acct-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}
.hz-acct-dl dt {
  font-size: 12px;
  color: var(--hz-muted, #646a61);
}
.hz-acct-dl dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
}

/* Trade Program Page */
.hz-trade-program-page {
  padding-bottom: 64px;
}
.hz-tp-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
}
.hz-tp-overview {
  display: grid;
  gap: 18px;
}
.hz-tp-visual {
  margin: 0;
  padding: 12px;
  background: var(--hz-white, #fff);
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
}
.hz-tp-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--hz-radius, 4px);
}
.hz-tp-visual figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--hz-muted, #646a61);
}
.hz-tp-list {
  margin: 10px 0 0;
  padding-inline-start: 18px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--hz-muted, #646a61);
}
.hz-tp-steps strong {
  color: var(--hz-ink, #252c27);
}
.hz-tp-interests {
  border: 0;
  padding: 0;
  margin: 0;
}
.hz-tp-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.hz-tp-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
  background: var(--hz-white, #fff);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}
.hz-tp-checks label:hover {
  border-color: var(--hz-accent, #87652e);
}

/* Optional post-submission / project-sync banner */
.hz-project-sync-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-top: 18px;
  margin-bottom: 18px;
  background: var(--hz-white, #fff);
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
  font-size: 14px;
}

.hz-otp-input {
  max-width: 240px;
  min-height: 48px;
  font-size: 24px !important;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.hz-verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.hz-verify-actions .hz-button {
  min-height: 44px;
}
.hz-local-preview-box {
  margin-top: 14px;
}

/* Confirmation dialog */
.hz-confirm-dialog {
  width: min(460px, 92vw);
  padding: 24px;
  border: 1px solid var(--hz-line, #d5d8ce);
  border-radius: var(--hz-radius, 4px);
  background: var(--hz-white, #fff);
  color: var(--hz-ink, #252c27);
}
.hz-confirm-dialog::backdrop {
  background: rgba(24, 33, 24, 0.65);
}
.hz-confirm-dialog h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.hz-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 960px) {
  .hz-acct-layout,
  .hz-tp-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hz-acct-nav-wrap {
    position: static;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--hz-line, #d5d8ce);
    padding-bottom: 8px;
    mask-image: linear-gradient(to right, #000 0%, #000 94%, transparent 100%);
  }
  [dir="rtl"] .hz-acct-nav-wrap {
    mask-image: linear-gradient(to left, #000 0%, #000 94%, transparent 100%);
  }
  .hz-acct-nav {
    flex-direction: row;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .hz-acct-nav a {
    white-space: nowrap;
  }
  .hz-acct-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hz-acct-grid-2,
  .hz-acct-onboarding-steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .hz-acct-form-grid,
  .hz-acct-dl,
  .hz-tp-checks {
    grid-template-columns: 1fr;
  }
  .hz-acct-form > .hz-button {
    align-self: stretch;
  }
}
