/* HEMPCITY CX 3.0.0-alpha.5 — release-candidate polish */
.hc-cx-authenticated .site-content,
.hc-cx-authenticated .ast-container,
.hc-cx-authenticated .content-area,
.hc-cx-authenticated .site-main {
  overflow: visible;
}

.hc-account {
  --hc-cx-surface: #fff;
  --hc-cx-text: #111;
  --hc-cx-muted: #686862;
  --hc-cx-line: #deded8;
  --hc-cx-accent: #f26a21;
  width: min(1180px, calc(100% - 40px));
  margin: 56px auto 96px;
  color: var(--hc-cx-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.hc-account *,
.hc-account *::before,
.hc-account *::after {
  box-sizing: border-box;
  font-family: inherit;
}

/* Old WooCommerce/CX navigation must never reappear. */
.hc-account .woocommerce-MyAccount-navigation,
.hc-account .hc-account-nav,
.hc-account__sidebar,
.hc-account__nav-toggle {
  display: none !important;
}

.hc-account__header {
  max-width: 760px;
  margin: 0 0 36px;
}

.hc-account__eyebrow,
.hc-section-header__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--hc-cx-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hc-account h1,
.hc-account h2,
.hc-account h3,
.hc-account h4,
.hc-account legend {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: var(--hc-cx-text);
  letter-spacing: -.035em;
}

.hc-account__header h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
  font-weight: 620;
}

.hc-account__header p,
.hc-section-header p {
  margin: 15px 0 0;
  color: var(--hc-cx-muted);
  font-size: 16px;
  line-height: 1.65;
}

.hc-account__content,
.hc-account .woocommerce-MyAccount-content {
  position: static !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: clamp(26px, 4vw, 44px) !important;
  border: 1px solid var(--hc-cx-line);
  background: var(--hc-cx-surface);
}

.hc-section-header {
  margin-bottom: 28px;
}

.hc-section-header h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  font-weight: 600;
}

.hc-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hc-dashboard-card {
  display: grid;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--hc-cx-line);
  color: var(--hc-cx-text);
  text-decoration: none;
  background: #fbfaf8;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hc-dashboard-card:hover {
  transform: translateY(-2px);
  border-color: #bcbcb5;
  box-shadow: 0 10px 28px rgba(17,17,17,.06);
}

.hc-dashboard-card__label {
  color: var(--hc-cx-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hc-dashboard-card strong {
  align-self: end;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

.hc-dashboard-card > span:last-child {
  justify-self: end;
  font-size: 22px;
}

/* Native WooCommerce endpoints: clean typography and spacing. */
.hc-account table,
.hc-account form,
.hc-account address,
.hc-account p,
.hc-account label,
.hc-account input,
.hc-account button,
.hc-account select,
.hc-account textarea {
  font-family: inherit !important;
}

.hc-account .woocommerce-order-details__title,
.hc-account .woocommerce-column__title,
.hc-account .woocommerce-Address-title h2,
.hc-account fieldset legend {
  font-size: clamp(25px, 3vw, 38px) !important;
  line-height: 1.08 !important;
  font-weight: 600 !important;
}

.hc-account .woocommerce-Addresses,
.hc-account .woocommerce-columns--addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin: 28px 0 0 !important;
}

.hc-account .woocommerce-Address,
.hc-account .woocommerce-column--billing-address,
.hc-account .woocommerce-column--shipping-address {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 26px !important;
  border: 1px solid var(--hc-cx-line) !important;
  background: #fbfaf8 !important;
}

.hc-account .woocommerce-Address address,
.hc-account .woocommerce-column address {
  margin: 18px 0 0;
  color: var(--hc-cx-muted);
  font-style: normal;
  line-height: 1.7;
}

.hc-account form .form-row {
  margin-bottom: 20px !important;
}

.hc-account input.input-text,
.hc-account input[type="text"],
.hc-account input[type="email"],
.hc-account input[type="password"] {
  min-height: 56px;
  border: 1px solid #cfcfc8;
  border-radius: 6px;
  background: #fff;
}

.hc-account button.button,
.hc-account a.button {
  background: #111 !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 650 !important;
}

.hc-account button.button:hover,
.hc-account a.button:hover {
  background: #2a2a28 !important;
}

.hc-account form.edit-account,
.hc-account form.woocommerce-EditAccountForm {
  padding-bottom: 44px;
}

@media (max-width: 760px) {
  .hc-account {
    width: min(100% - 20px, 620px);
    margin: 34px auto 64px;
  }
  .hc-account__content,
  .hc-account .woocommerce-MyAccount-content {
    padding: 22px 18px !important;
  }
  .hc-dashboard__grid,
  .hc-account .woocommerce-Addresses,
  .hc-account .woocommerce-columns--addresses {
    grid-template-columns: 1fr !important;
  }
  .hc-dashboard-card {
    min-height: 130px;
  }
}


/* =========================================================
   Alpha 3 — compact top navigation
   ========================================================= */
.hc-account-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  padding: 8px;
  border: 1px solid var(--hc-cx-line);
  background: #fbfaf8;
}
.hc-account-tabs__scroll,
.hc-account-tabs__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hc-account-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  color: #55554f;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease;
}
.hc-account-tab:hover {
  color: #111;
  background: #f0eee9;
}
.hc-account-tab.is-active {
  color: #fff;
  background: #111;
}
.hc-account-tab--shop {
  color: #111;
  border: 1px solid #cfcfc8;
  background: #fff;
}
.hc-account-tab--logout { color: #a83232; }

/* Orders: calmer table and clear action hierarchy. */
.hc-account .woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse !important;
  border: 0 !important;
  background: transparent !important;
}
.hc-account .woocommerce-orders-table th {
  padding: 13px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hc-cx-line) !important;
  background: #f7f6f3 !important;
  color: #55554f !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hc-account .woocommerce-orders-table td {
  padding: 18px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hc-cx-line) !important;
  vertical-align: middle !important;
  color: #222 !important;
}
.hc-account .woocommerce-orders-table__cell-order-number a {
  color: #111 !important;
  font-weight: 700;
  text-decoration: none !important;
}
.hc-account .woocommerce-orders-table__cell-order-actions {
  min-width: 250px;
}
.hc-account .woocommerce-orders-table__cell-order-actions .button {
  min-height: 42px !important;
  margin: 3px 5px 3px 0 !important;
  padding: 9px 15px !important;
  border: 1px solid #111 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
.hc-account .woocommerce-orders-table__cell-order-actions .button:hover {
  background: #f0eee9 !important;
}
.hc-account .woocommerce-orders-table__cell-order-actions .button.pay {
  background: #111 !important;
  color: #fff !important;
}
.hc-account .woocommerce-orders-table__cell-order-actions .button.pay:hover {
  background: #2a2a28 !important;
}
.hc-account .woocommerce-orders-table__cell-order-actions .button.cancel {
  border-color: transparent !important;
  background: transparent !important;
  color: #a83232 !important;
}

/* Address overview: force a stable, equal two-card grid. */
.hc-account .woocommerce-Addresses,
.hc-account .woocommerce-Addresses.col2-set,
.hc-account .u-columns.woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 22px !important;
  width: 100% !important;
  margin: 26px 0 0 !important;
}
.hc-account .woocommerce-Addresses::before,
.hc-account .woocommerce-Addresses::after { display: none !important; }
.hc-account .woocommerce-Addresses > .woocommerce-Address,
.hc-account .woocommerce-Addresses > .u-column1,
.hc-account .woocommerce-Addresses > .u-column2 {
  position: static !important;
  float: none !important;
  clear: none !important;
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  max-width: none !important;
  min-height: 260px !important;
  margin: 0 !important;
  padding: 28px !important;
  transform: none !important;
  border: 1px solid var(--hc-cx-line) !important;
  background: #fbfaf8 !important;
}
.hc-account .woocommerce-Address-title {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 20px !important;
  margin: 0 0 24px !important;
  padding: 0 0 20px !important;
  border-bottom: 1px solid var(--hc-cx-line) !important;
}
.hc-account .woocommerce-Address-title h2 {
  margin: 0 !important;
  font-size: clamp(24px, 2.6vw, 34px) !important;
}
.hc-account .woocommerce-Address-title .edit {
  float: none !important;
  margin-top: 7px !important;
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.hc-account .woocommerce-Address address {
  margin-top: auto !important;
  font-size: 16px !important;
}

@media (max-width: 920px) {
  .hc-account-tabs { align-items: stretch; flex-direction: column; }
  .hc-account-tabs__scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; }
  .hc-account-tabs__actions { justify-content: flex-end; width: 100%; }
  .hc-account .woocommerce-Addresses,
  .hc-account .woocommerce-Addresses.col2-set,
  .hc-account .u-columns.woocommerce-Addresses { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .hc-account-tabs__actions { justify-content: stretch; }
  .hc-account-tabs__actions .hc-account-tab { flex: 1; }
  .hc-account .woocommerce-orders-table thead { display: none; }
  .hc-account .woocommerce-orders-table,
  .hc-account .woocommerce-orders-table tbody,
  .hc-account .woocommerce-orders-table tr,
  .hc-account .woocommerce-orders-table td { display: block; width: 100%; }
  .hc-account .woocommerce-orders-table tr {
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid var(--hc-cx-line);
    background: #fff;
  }
  .hc-account .woocommerce-orders-table td {
    display: grid;
    grid-template-columns: minmax(100px, 42%) 1fr;
    gap: 12px;
    padding: 9px 0 !important;
    border-bottom: 1px solid #ecece7 !important;
  }
  .hc-account .woocommerce-orders-table td::before {
    color: #777770;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .hc-account .woocommerce-orders-table__cell-order-actions { display: block !important; min-width: 0; border-bottom: 0 !important; }
}

/* =========================================================
   Alpha 4 — refinement pass
   ========================================================= */
.hc-account-tab {
  min-height: 46px;
  padding: 11px 15px;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}
.hc-account-tab:hover { transform: translateY(-1px); }
.hc-account-tab.is-active { padding-inline: 17px; }

.hc-dashboard-card {
  min-height: 196px;
  padding: 26px;
  border-color: #d5d5ce;
  box-shadow: 0 1px 0 rgba(17,17,17,.02);
}
.hc-dashboard-card strong { font-size: 19px; }
.hc-dashboard-card > span:last-child { transition: transform .18s ease; }
.hc-dashboard-card:hover > span:last-child { transform: translateX(4px); }

/* Address cards: calmer hierarchy and compact edit control. */
.hc-account .woocommerce-Address-title {
  align-items: center !important;
}
.hc-account .woocommerce-Address-title .edit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid #cfcfc8 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.hc-account .woocommerce-Address-title .edit::before {
  content: "✎";
  margin-right: 6px;
  font-size: 13px;
}
.hc-account .woocommerce-Address-title .edit:hover {
  background: #f0eee9 !important;
  border-color: #bcbcb5 !important;
}
.hc-account .woocommerce-Address,
.hc-account .woocommerce-column--billing-address,
.hc-account .woocommerce-column--shipping-address {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hc-account .woocommerce-Address:hover,
.hc-account .woocommerce-column--billing-address:hover,
.hc-account .woocommerce-column--shipping-address:hover {
  transform: translateY(-2px);
  border-color: #c7c7c0 !important;
  box-shadow: 0 12px 32px rgba(17,17,17,.05);
}

/* Slightly quieter table headers. */
.hc-account .woocommerce-orders-table th {
  color: #74746d !important;
  background: #faf9f7 !important;
  letter-spacing: .1em;
}

/* Give forms and account endpoints a safe footer gap. */
.hc-account__content { margin-bottom: 24px !important; }
.hc-account form.edit-account,
.hc-account form.woocommerce-EditAccountForm { padding-bottom: 64px; }

@media (max-width: 760px) {
  .hc-account-tabs { padding: 6px; }
  .hc-account-tab { min-height: 42px; padding: 9px 12px; }
  .hc-dashboard-card { min-height: 145px; padding: 22px; }
  .hc-account .woocommerce-Address-title { align-items: flex-start !important; flex-direction: column !important; }
}


/* =========================================================
   Alpha 5 — final polish / feature freeze
   ========================================================= */
.hc-account {
  --hc-cx-transition: 200ms ease;
}

.hc-account a,
.hc-account button,
.hc-account input,
.hc-account select,
.hc-account textarea,
.hc-account .hc-account-tab,
.hc-account .hc-dashboard-card {
  transition-duration: 200ms !important;
  transition-timing-function: ease !important;
}

.hc-account :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #111 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(17,17,17,.06) !important;
}

.hc-account .woocommerce-orders-table th {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.hc-account .woocommerce-orders-table td {
  padding-top: 21px !important;
  padding-bottom: 21px !important;
}

.hc-account .woocommerce-orders-table__cell-order-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
}

.hc-account .woocommerce-orders-table__cell-order-actions .button {
  flex: 0 0 auto;
  margin: 0 !important;
}

.hc-account .woocommerce-orders-table__cell-order-actions .button.cancel {
  margin-left: auto !important;
  padding-right: 0 !important;
  color: #a83232 !important;
}

.hc-account .woocommerce-orders-table__cell-order-actions .button.cancel:hover {
  color: #7f2424 !important;
  background: transparent !important;
}

.hc-account .woocommerce-Address-title .edit {
  min-width: 108px !important;
}

.hc-account form em,
.hc-account form .description,
.hc-account .woocommerce-form-row + em,
.hc-account .woocommerce-password-hint {
  color: #777 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

@media (max-width: 640px) {
  .hc-account .woocommerce-orders-table__cell-order-actions {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .hc-account .woocommerce-orders-table__cell-order-actions .button.cancel {
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }
}

/* =========================================================
   CX 3.0.0 alpha 6 — order detail address grid hard fix
   WooCommerce clearfix pseudo-elements were occupying grid cells.
========================================================= */
.hc-account .woocommerce-customer-details .woocommerce-columns--addresses,
.hc-account .woocommerce-customer-details .woocommerce-columns--2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  align-items: stretch !important;
  gap: 22px !important;
  width: 100% !important;
  margin: 30px 0 0 !important;
}
.hc-account .woocommerce-customer-details .woocommerce-columns--addresses::before,
.hc-account .woocommerce-customer-details .woocommerce-columns--addresses::after,
.hc-account .woocommerce-customer-details .woocommerce-columns--2::before,
.hc-account .woocommerce-customer-details .woocommerce-columns--2::after {
  content: none !important;
  display: none !important;
}
.hc-account .woocommerce-customer-details .woocommerce-columns--addresses > .woocommerce-column,
.hc-account .woocommerce-customer-details .woocommerce-columns--2 > .woocommerce-column {
  position: static !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  transform: none !important;
}
@media (max-width: 760px) {
  .hc-account .woocommerce-customer-details .woocommerce-columns--addresses,
  .hc-account .woocommerce-customer-details .woocommerce-columns--2 {
    grid-template-columns: 1fr !important;
  }
}


/* =========================================================
   CX 3.0.0 alpha 7 — definitive order-address layout repair
========================================================= */
.hc-account section.woocommerce-customer-details > .woocommerce-columns,
.hc-account section.woocommerce-customer-details > .woocommerce-columns--2,
.hc-account section.woocommerce-customer-details > .woocommerce-columns--addresses,
.hc-account .woocommerce-customer-details .col2-set {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: auto !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 32px 0 0 !important;
  padding: 0 !important;
}

.hc-account section.woocommerce-customer-details > .woocommerce-columns::before,
.hc-account section.woocommerce-customer-details > .woocommerce-columns::after,
.hc-account .woocommerce-customer-details .col2-set::before,
.hc-account .woocommerce-customer-details .col2-set::after {
  content: none !important;
  display: none !important;
}

.hc-account .woocommerce-customer-details .woocommerce-column,
.hc-account .woocommerce-customer-details .woocommerce-column.col-1,
.hc-account .woocommerce-customer-details .woocommerce-column.col-2,
.hc-account .woocommerce-customer-details .u-column1,
.hc-account .woocommerce-customer-details .u-column2 {
  float: none !important;
  clear: none !important;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  transform: none !important;
  align-self: stretch !important;
}

.hc-account .woocommerce-customer-details .woocommerce-column > address {
  min-height: 150px !important;
}

@media (max-width: 760px) {
  .hc-account section.woocommerce-customer-details > .woocommerce-columns,
  .hc-account section.woocommerce-customer-details > .woocommerce-columns--2,
  .hc-account section.woocommerce-customer-details > .woocommerce-columns--addresses,
  .hc-account .woocommerce-customer-details .col2-set {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .hc-account .woocommerce-customer-details .woocommerce-column > address {
    min-height: 0 !important;
  }
}
