/* =========================================================
   The Hemp Doctor — My Account (THDRetail-Child)
   Loaded only on the WooCommerce My Account page (see inc/hd-account.php).

   Sizes were measured from the Figma export (shell ≈ 1200px wide):
   sidebar 15% of the shell, 48px top bar, 12px nav rows, 76px welcome
   banner, 80px stat cards, 18px content padding, 12px base type.
   Breakpoints: 1024px (sidebar → mobile bar + pill tabs), 760px / 420px.

   Selectors are scoped to body.hd-account-page / .hd-account / .hd-login so
   they beat Kadence's element styles without !important.
   ========================================================= */

body.hd-account-page,
.hd-account,
.hd-login {
  --hd-green-900: #113D3C;   /* sidebar, top tier card, coupon tiles, login panel */
  --hd-green-800: #244C4C;   /* active sidebar item (sampled) */
  --hd-green-700: #025960;   /* teal: banner, buttons, headings, links */
  --hd-green-100: #DCE8E4;   /* mobile pills, DEFAULT / SHIPPING badges */
  --hd-sage-100:  #F6F9EB;   /* stat tiles, table header rows, info tiles */
  --hd-sage-200:  #BFD6D0;
  --hd-gold:      #FC9E01;   /* tier pill, active nav marker, redeem button */
  --hd-gold-dark: #D98700;
  --hd-sun:       #FEC55A;
  --hd-cream:     #FDF4E5;   /* content background (sampled) */
  --hd-white:     #FFFFFF;
  --hd-ink:       #113D3C;
  --hd-text:      #4F6362;
  --hd-muted:     #7C8C8B;
  --hd-line:      #EFE5D2;   /* card border on cream */
  --hd-line-2:    #EEF0EA;   /* dividers inside white cards */
  --hd-field:     #D9E1DF;   /* input borders */
  --hd-danger:    #B42B2B;
  --hd-success:   #3E7A1F;
  --hd-radius:    8px;
  --hd-max-width: 1290px;

  /* Same font stacks as the rest of the site. DM Serif Display ships one
     weight, so buttons use font-weight 400 on purpose. */
  --hd-font-display: "DM Serif Display", "Playfair Display", Georgia, "Times New Roman", serif;
  --hd-font-script:  "Corinthia", "Snell Roundhand", "Apple Chancery", cursive;
  --hd-font-body:    "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Page chrome (Kadence) ---------- */
body.hd-account-page .entry-header,
body.hd-account-page .entry-hero { display: none; }
body.hd-account-page .entry-content > .woocommerce,
body.hd-account-page .woocommerce:has(> .hd-account),
body.hd-account-page .woocommerce:has(> .hd-login) {
  display: block;
  max-width: var(--hd-max-width);
  margin: 0 auto 48px; /* breathing room above the footer */
  font-family: var(--hd-font-body);
}
body.hd-account-page .woocommerce-notices-wrapper:empty { display: none; }
body.hd-account-page .woocommerce-message,
body.hd-account-page .woocommerce-info,
body.hd-account-page .woocommerce-error {
  border-radius: var(--hd-radius);
  margin: 0 0 14px;
  font-family: var(--hd-font-body);
  font-size: 12.5px;
}
body.hd-account-page .woocommerce-error li,
body.hd-account-page .woocommerce-message li,
body.hd-account-page .woocommerce-info li { margin: 0; }

/* =========================================================
   Shell
   ========================================================= */
.hd-account {
  display: grid;
  grid-template-columns: minmax(172px, 15.4%) minmax(0, 1fr);
  width: 100%;
  min-height: 720px;
  background: var(--hd-cream);
  font-family: var(--hd-font-body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--hd-text);
  -webkit-font-smoothing: antialiased;
}
.hd-account *,
.hd-account *::before,
.hd-account *::after { box-sizing: border-box; }
.hd-account a { text-decoration: none; transition: color .15s, background-color .15s, border-color .15s; }
.hd-account h1, .hd-account h2, .hd-account h3, .hd-account h4 {
  font-family: var(--hd-font-body);
  letter-spacing: normal;
  text-transform: none;
  color: var(--hd-ink);
  line-height: 1.25;
}
.hd-account :focus-visible { outline: 2px solid var(--hd-gold); outline-offset: 2px; }
.hd-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; flex: 0 0 auto; }

/* Neutralise WooCommerce / Kadence account layout rules. */
body.hd-account-page .hd-account .woocommerce-MyAccount-navigation,
body.hd-account-page .hd-account .woocommerce-MyAccount-content,
.hd-account .woocommerce-MyAccount-navigation,
.hd-account .woocommerce-MyAccount-content {
  float: none;
  width: auto;
  flex: none;
  margin: 0;
  padding: 0;
}
.hd-account .hd-account__main { min-width: 0; display: flex; flex-direction: column; }
body.hd-account-page .hd-account .hd-account__content,
.hd-account .hd-account__content { padding: 14px 18px 40px; flex: 1 1 auto; }

/* ---------- Sidebar (desktop) ---------- */
.hd-account__sidebar {
  background: var(--hd-green-900);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.hd-account__desktop { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 0 24px; }
.hd-account__mobile { display: none; }

.hd-account__brand { padding: 0 18px 8px; }
.hd-account__brand-name {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.hd-account__brand-sub {
  display: block;
  margin-top: 4px;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
}

.hd-account .hd-account__nav { display: flex; flex-direction: column; flex: 1 1 auto; }
.hd-account .hd-account__group { margin-top: 14px; }
.hd-account .hd-account__group-label {
  display: block;
  padding: 0 18px;
  margin: 0 0 4px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.hd-account .hd-account__nav .hd-account__list { list-style: none; margin: 0; padding: 0; }
.hd-account .hd-account__nav .hd-account__list li { margin: 0; padding: 0; }
.hd-account .hd-account__nav .hd-account__list li a {
  display: block;
  padding: 5px 16px 5px 25px;
  border-left: 3px solid transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255,255,255,.8);
  background: transparent;
}
.hd-account .hd-account__nav .hd-account__list li a:hover,
.hd-account .hd-account__nav .hd-account__list li a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.05);
}
.hd-account .hd-account__nav .hd-account__list li.is-active a {
  color: #fff;
  font-weight: 600;
  background: var(--hd-green-800);
  border-left-color: var(--hd-gold);
}
.hd-account .hd-account__nav .hd-account__list--logout {
  margin: 22px 18px 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.hd-account .hd-account__nav .hd-account__list--logout li a,
.hd-account .hd-account__nav .hd-account__list--logout li a:hover {
  padding: 4px 7px;
  border-left: 0;
  color: var(--hd-gold);
  background: transparent;
}
.hd-account .hd-account__nav .hd-account__list--logout li a:hover { color: var(--hd-sun); }

/* ---------- Top bar ---------- */
.hd-account__topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 18px;
  background: var(--hd-white);
  border-bottom: 1px solid #F1EBE0;
}
.hd-account .hd-account__title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--hd-ink);
}
.hd-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hd-green-700);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ---------- Pills (tier pill, mobile tabs) ---------- */
.hd-account .hd-pill,
.hd-login .hd-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--hd-green-100);
  color: var(--hd-ink);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.hd-account .hd-pill:hover { background: var(--hd-sage-200); color: var(--hd-ink); }
.hd-account .hd-pill.is-active { background: var(--hd-green-700); color: #fff; }
.hd-account .hd-pill--logout { background: transparent; color: var(--hd-gold-dark); }
.hd-account .hd-pill--tier { background: var(--hd-gold); color: #fff; }
.hd-account .hd-pill--tier:hover { background: var(--hd-gold-dark); color: #fff; }
.hd-account .hd-pill--tier .hd-icon { fill: currentColor; font-size: 10px; }
.hd-account .hd-pill--lg { height: 24px; padding: 0 16px; font-size: 10.5px; }

/* ---------- Mobile bar + pill navigation (shown under 1024px) ---------- */
.hd-account__mobilebar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 14px;
  background: var(--hd-green-900);
  color: #fff;
}
.hd-account__mobilebar-back,
.hd-account__mobilebar-brand { flex: 0 0 auto; }
.hd-account .hd-account__mobilebar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: -6px;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
}
.hd-account .hd-account__mobilebar-back:hover { background: rgba(255,255,255,.1); color: #fff; }
.hd-account__mobilebar-brand {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hd-account__mobilebar-title {
  flex: 1 1 auto;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-account__mobilebar .hd-avatar { width: 24px; height: 24px; font-size: 8px; }

.hd-account__mobilenav { background: var(--hd-cream); padding: 10px 12px 0; }
.hd-account__pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hd-account__pills::-webkit-scrollbar { display: none; }
.hd-account__subnav {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  border-bottom: 1px solid #F0E6D6;
  scrollbar-width: none;
}
.hd-account__subnav::-webkit-scrollbar { display: none; }
.hd-account .hd-account__subnav a {
  flex: 0 0 auto;
  padding: 6px 0 7px;
  border-bottom: 2px solid transparent;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--hd-muted);
  white-space: nowrap;
}
.hd-account .hd-account__subnav a:hover { color: var(--hd-green-700); }
.hd-account .hd-account__subnav a.is-active { color: var(--hd-green-700); border-bottom-color: var(--hd-gold); }

/* =========================================================
   Building blocks
   ========================================================= */
.hd-account .hd-section-title,
.hd-account .hd-account__content > h2:first-child,
.hd-account .hd-card--plugin > h2:first-child {
  margin: 2px 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hd-ink);
}
/* Generic content type (plugin output). :where() keeps these at low specificity
   so the component rules below always win. */
.hd-account :where(.hd-account__content h2) { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.hd-account :where(.hd-account__content h3) { font-size: 12.5px; font-weight: 700; margin: 16px 0 8px; }
.hd-account :where(.hd-account__content h4) { font-size: 11.5px; font-weight: 700; margin: 12px 0 6px; }
.hd-account :where(.hd-account__content p) { margin: 0 0 10px; }
.hd-account :where(.hd-account__content a:not(.button, .hd-btn, .hd-pill, .hd-coupon__code)) {
  color: var(--hd-green-700);
  font-weight: 600;
}
.hd-account :where(.hd-account__content a:not(.button, .hd-btn, .hd-pill, .hd-coupon__code)):hover { color: var(--hd-gold-dark); }

.hd-label,
.hd-account .hd-label {
  display: block;
  margin: 0 0 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hd-muted);
}

.hd-card,
.hd-account .hd-card {
  background: var(--hd-white);
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  padding: 15px 18px;
}
.hd-account .hd-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hd-ink);
}
.hd-account .hd-card__title a { font-size: 10.5px; font-weight: 600; }
.hd-account .hd-card--plugin { padding: 18px 20px; }
.hd-account .hd-card--plugin > .woocommerce-notices-wrapper:empty { display: none; }
.hd-account .hd-empty { margin: 0; padding: 10px 0; color: var(--hd-muted); font-size: 11.5px; }
.hd-account .hd-empty a { margin-left: 6px; }
.hd-account .hd-section + .hd-section,
.hd-account .hd-card + .hd-section,
.hd-account .hd-section + .hd-card { margin-top: 16px; }

/* Badges */
.hd-badge,
.hd-account .hd-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  background: #ECEEEA;
  color: #5F6C6B;
}
.hd-account .hd-badge--success { background: #E6F2D9; color: var(--hd-success); }
.hd-account .hd-badge--info    { background: #E3EEF7; color: #2E5F8A; }
.hd-account .hd-badge--warning { background: #FCEBC9; color: #9A5B00; }
.hd-account .hd-badge--danger  { background: #F9E1E1; color: var(--hd-danger); }
.hd-account .hd-badge--muted   { background: #ECEEEA; color: #5F6C6B; }
.hd-account .hd-badge--type    { background: var(--hd-green-100); color: var(--hd-ink); }
.hd-account .hd-badge--gold    { background: var(--hd-gold); color: #fff; }

/* Buttons — teal solid, outline, danger and gold. WooCommerce / plugin
   buttons inside the account area get the solid style; table buttons the
   small outline style. */
.hd-account .hd-btn,
.hd-account .button,
.hd-account button,
.hd-account input[type="submit"],
.hd-account .woocommerce-Button,
.hd-account .woocommerce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--hd-green-700);
  border-radius: 6px;
  background: var(--hd-green-700);
  color: #fff;
  font-family: var(--hd-font-display);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.hd-account .hd-btn:hover,
.hd-account .button:hover,
.hd-account button:hover,
.hd-account input[type="submit"]:hover,
.hd-account .woocommerce-Button:hover,
.hd-account .woocommerce-button:hover {
  background: #02474D;
  border-color: #02474D;
  color: #fff;
}
.hd-account .hd-btn.hd-btn--outline,
.hd-account table .button,
.hd-account .woocommerce-pagination .button,
.hd-account .hd-address .button,
.hd-account .hd-payrow .button,
.hd-account .hd-sub .button.view {
  background: transparent;
  color: var(--hd-green-700);
}
.hd-account .hd-btn.hd-btn--outline:hover,
.hd-account table .button:hover,
.hd-account .woocommerce-pagination .button:hover,
.hd-account .hd-address .button:hover,
.hd-account .hd-payrow .button:hover,
.hd-account .hd-sub .button.view:hover {
  background: var(--hd-sage-100);
  color: var(--hd-green-700);
  border-color: var(--hd-green-700);
}
.hd-account .hd-btn.hd-btn--danger,
.hd-account table .button.cancel,
.hd-account table .button.delete,
.hd-account .hd-payrow .button.delete,
.hd-account .hd-sub .button.cancel,
.hd-account .hd-sub .button.suspend {
  background: transparent;
  border-color: var(--hd-danger);
  color: var(--hd-danger);
}
.hd-account .hd-btn.hd-btn--danger:hover,
.hd-account table .button.cancel:hover,
.hd-account table .button.delete:hover,
.hd-account .hd-payrow .button.delete:hover,
.hd-account .hd-sub .button.cancel:hover,
.hd-account .hd-sub .button.suspend:hover {
  background: #FBEDED;
  border-color: var(--hd-danger);
  color: var(--hd-danger);
}
.hd-account .hd-btn.hd-btn--gold { background: var(--hd-gold); border-color: var(--hd-gold); color: #fff; }
.hd-account .hd-btn.hd-btn--gold:hover { background: var(--hd-gold-dark); border-color: var(--hd-gold-dark); }
.hd-account .hd-btn.hd-btn--sm,
.hd-account table .button,
.hd-account .hd-address .button,
.hd-account .hd-payrow .button,
.hd-account .hd-sub .button { padding: 4px 12px; border-radius: 4px; font-size: 10.5px; }
.hd-account .hd-btn.hd-btn--block { width: 100%; }
.hd-account .hd-btn .hd-icon { font-size: 13px; }

/* Forms */
.hd-account .form-row,
.hd-account .woocommerce-form-row {
  float: none;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  overflow: visible;
}
.hd-account .form-row label,
.hd-account .woocommerce-form-row label,
.hd-account .hd-field label {
  display: block;
  margin: 0 0 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hd-muted);
}
.hd-account .form-row label .required,
.hd-account .hd-field label .required { color: var(--hd-gold-dark); text-decoration: none; }
.hd-account .form-row label .optional { font-weight: 500; letter-spacing: 0; text-transform: none; }
.hd-account .woocommerce-form__label-for-checkbox,
.hd-account .form-row label.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--hd-text);
}
.hd-account .form-row .description,
.hd-account .form-row em,
.hd-account .hd-field__hint { display: block; margin-top: 5px; font-size: 10px; color: var(--hd-muted); }
.hd-account .woocommerce-input-wrapper { display: block; }
.hd-account input[type="text"],
.hd-account input[type="email"],
.hd-account input[type="password"],
.hd-account input[type="tel"],
.hd-account input[type="number"],
.hd-account input[type="search"],
.hd-account input[type="url"],
.hd-account select,
.hd-account textarea {
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--hd-field);
  border-radius: 6px;
  background: var(--hd-white);
  color: var(--hd-ink);
  font-family: var(--hd-font-body);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.hd-account textarea { height: auto; min-height: 96px; padding: 10px 12px; }
.hd-account input:focus,
.hd-account select:focus,
.hd-account textarea:focus {
  outline: none;
  border-color: var(--hd-green-700);
  box-shadow: 0 0 0 3px rgba(2,89,96,.12);
}
.hd-account input::placeholder,
.hd-account textarea::placeholder { color: #A5B1B0; opacity: 1; }
.hd-account input[type="checkbox"],
.hd-account input[type="radio"] { width: 14px; height: 14px; margin: 0; accent-color: var(--hd-green-700); }
.hd-account .password-input { display: block; position: relative; }
.hd-account .password-input input { padding-right: 38px; }
.hd-account .show-password-input {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hd-muted);
  cursor: pointer;
}
.hd-account .show-password-input:hover { background: transparent; color: var(--hd-green-700); }
.hd-account .select2-container .select2-selection--single {
  height: 36px;
  border: 1px solid var(--hd-field);
  border-radius: 6px;
}
.hd-account .select2-container .select2-selection--single .select2-selection__rendered { line-height: 34px; padding-left: 12px; color: var(--hd-ink); font-size: 11.5px; }
.hd-account .select2-container .select2-selection--single .select2-selection__arrow { height: 34px; right: 4px; }
.hd-account .woocommerce-password-strength { margin-top: 5px; padding: 3px 0; font-size: 10px; text-align: left; }
.hd-account .woocommerce-password-hint { display: block; margin-top: 4px; font-size: 10px; color: var(--hd-muted); }
.hd-account .hd-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hd-account .hd-form__grid > .form-row { width: 100%; }
.hd-account .hd-form__section { margin: 0; padding: 0; border: 0; min-width: 0; }
.hd-account .hd-form__section + .hd-form__section { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--hd-line-2); }
.hd-account .hd-form__section-title { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; color: var(--hd-ink); }
.hd-account .hd-form__actions { margin: 4px 0 0; }
.hd-account .clear { clear: both; }

/* Tables — orders, order details, points / store credit history and any
   other plugin table. */
.hd-account table.shop_table,
.hd-account .hd-account__content table {
  width: 100%;
  margin: 0 0 14px;
  border: 1px solid var(--hd-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--hd-radius);
  background: var(--hd-white);
  font-size: 11px;
  overflow: hidden;
}
.hd-account .hd-table-wrap { border: 1px solid var(--hd-line); border-radius: var(--hd-radius); background: var(--hd-white); overflow: hidden; }
.hd-account .hd-table-wrap table { margin: 0; border: 0; border-radius: 0; }
.hd-account table thead th {
  padding: 9px 14px;
  border: 0;
  background: var(--hd-sage-100);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--hd-muted);
}
.hd-account table thead th .nobr { white-space: nowrap; }
.hd-account table tbody th,
.hd-account table tbody td,
.hd-account table tfoot th,
.hd-account table tfoot td {
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--hd-line-2);
  background: transparent;
  vertical-align: middle;
  text-align: left;
  color: var(--hd-text);
  font-size: 11px;
}
.hd-account table thead + tbody tr:first-child th,
.hd-account table thead + tbody tr:first-child td { border-top: 0; }
.hd-account table tbody th { font-weight: 700; color: var(--hd-ink); }
.hd-account table tfoot th,
.hd-account table tfoot td { background: var(--hd-sage-100); font-weight: 600; }
.hd-account table td.woocommerce-orders-table__cell-order-actions,
.hd-account table td.order-actions,
.hd-account table td.subscription-actions,
.hd-account table td.payment-method-actions,
.hd-account table td.woocommerce-PaymentMethod--actions { text-align: right; white-space: nowrap; }
.hd-account table td.woocommerce-orders-table__cell-order-actions .button + .button,
.hd-account table td.subscription-actions .button + .button { margin-left: 6px; }
.hd-account table .woocommerce-orders-table__cell-order-number a,
.hd-account table .subscription-id a,
.hd-account table td.order-number a { color: var(--hd-green-700); font-weight: 700; }
.hd-account table .woocommerce-orders-table__cell-order-total,
.hd-account table td.order-total,
.hd-account table td.subscription-total { font-weight: 700; color: var(--hd-ink); }
.hd-account table .woocommerce-orders-table__cell-order-total .amount { font-weight: 700; }
.hd-account .woocommerce-pagination { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

/* =========================================================
   Dashboard
   ========================================================= */
.hd-account .hd-dash__welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-radius: var(--hd-radius);
  background: var(--hd-green-700);
  color: #fff;
}
.hd-account .hd-dash__welcome h2 { margin: 0; font-size: 19px; font-weight: 700; color: #fff; }
.hd-account .hd-dash__welcome p { margin: 3px 0 0; font-size: 11px; color: rgba(255,255,255,.75); }
.hd-account .hd-dash__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 14px 0;
}
.hd-account .hd-stat {
  display: block;
  padding: 13px 16px;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  background: var(--hd-white);
  color: var(--hd-text);
}
.hd-account a.hd-stat:hover { border-color: var(--hd-sage-200); }
.hd-account .hd-stat__label { display: block; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hd-muted); }
.hd-account .hd-stat__value { display: block; margin: 6px 0 2px; font-size: 23px; font-weight: 700; line-height: 1.1; color: var(--hd-green-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-account .hd-stat__meta { display: block; font-size: 10.5px; color: var(--hd-muted); }
.hd-account .hd-stat__meta--gold { color: var(--hd-gold-dark); font-weight: 600; }
.hd-account .hd-dash__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.hd-account .hd-dash__cols > .hd-card { margin: 0; min-width: 0; }
.hd-account .hd-dash__extra:empty { display: none; }
.hd-account .hd-dash__extra { margin-top: 16px; }

.hd-account .hd-list { list-style: none; margin: 0; padding: 0; }
.hd-account .hd-list li { margin: 0; padding: 0; }
.hd-account .hd-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hd-line-2);
}
.hd-account .hd-list li:last-child .hd-list__item { border-bottom: 0; padding-bottom: 2px; }
.hd-account .hd-list__body { min-width: 0; }
.hd-account .hd-list__title { display: block; font-size: 11.5px; font-weight: 600; color: var(--hd-ink); }
.hd-account .hd-list__title a { color: var(--hd-ink); }
.hd-account .hd-list__title a:hover { color: var(--hd-green-700); }
.hd-account .hd-list__meta { display: block; margin-top: 2px; font-size: 10px; color: var(--hd-muted); }
.hd-account .hd-list__aside { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.hd-account .hd-list__amount { font-size: 11.5px; font-weight: 700; color: var(--hd-ink); }
.hd-account .hd-list__amount .amount { font-weight: 700; }
.hd-account .hd-list__amount--plus { color: var(--hd-success); }
.hd-account .hd-list__amount--minus { color: var(--hd-danger); }
.hd-account .hd-list__item--dot { padding-left: 14px; position: relative; }
.hd-account .hd-list__item--dot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C9D2D0;
}
.hd-account .hd-list__item--dot.is-live::before { background: var(--hd-gold); }
.hd-account .hd-quicklinks { list-style: none; margin: 0; padding: 0; }
.hd-account .hd-quicklinks a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hd-line-2);
  color: var(--hd-ink);
  font-size: 11.5px;
  font-weight: 600;
}
.hd-account .hd-quicklinks li:last-child a { border-bottom: 0; }
.hd-account .hd-quicklinks .hd-icon { font-size: 16px; color: var(--hd-green-700); }
.hd-account .hd-quicklinks .hd-icon--arrow { margin-left: auto; font-size: 12px; color: var(--hd-muted); }

/* =========================================================
   Orders
   ========================================================= */
.hd-account .hd-orders__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hd-account .hd-orders__head .hd-section-title { margin: 0; }

/* =========================================================
   Subscriptions (WooCommerce Subscriptions) — one card per subscription
   ========================================================= */
.hd-account .hd-sub { margin-bottom: 12px; padding: 14px 18px 14px; }
.hd-account .hd-sub__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hd-account .hd-sub__name { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--hd-ink); }
.hd-account .hd-sub__name a { color: var(--hd-ink); }
.hd-account .hd-sub__name a:hover { color: var(--hd-green-700); }
.hd-account .hd-sub__variant { display: block; margin-top: 2px; font-size: 10px; color: var(--hd-muted); }
.hd-account .hd-sub__facts { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 12px 0 0; padding: 0; list-style: none; }
.hd-account .hd-sub__facts li { margin: 0; }
.hd-account .hd-sub__facts .hd-label { margin-bottom: 2px; }
.hd-account .hd-sub__fact-value { font-size: 11.5px; font-weight: 700; color: var(--hd-ink); }
.hd-account .hd-sub__note { margin: 10px 0 0; font-size: 10.5px; color: var(--hd-muted); }
.hd-account .hd-sub__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hd-account .hd-sub__actions .button { padding: 5px 14px; font-size: 11px; }
.hd-account .hd-sub__actions .button + .button { margin: 0; }
.hd-account .hd-sub__actions .button.reactivate,
.hd-account .hd-sub .hd-sub__actions .button.view { background: var(--hd-green-700); color: #fff; }
.hd-account .hd-sub .hd-sub__actions .button.view:hover { background: #02474D; border-color: #02474D; color: #fff; }
.hd-account .hd-sub__extra:empty { display: none; }

/* =========================================================
   Addresses
   ========================================================= */
.hd-account .hd-address {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.hd-account .hd-address__main { flex: 1 1 auto; min-width: 0; }
.hd-account .hd-address__name { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 700; color: var(--hd-ink); }
.hd-account .hd-address__body { margin-top: 6px; font-size: 11px; line-height: 1.6; color: var(--hd-text); }
.hd-account .hd-address__body address { margin: 0; font-style: normal; }
.hd-account .hd-address__meta { margin-top: 4px; font-size: 10.5px; color: var(--hd-muted); }
.hd-account .hd-address__meta span + span::before { content: " · "; }
.hd-account .hd-address__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.hd-account .hd-address--empty .hd-address__body { color: var(--hd-muted); }

/* =========================================================
   Payment methods
   ========================================================= */
.hd-account .hd-paycard {
  width: 100%;
  max-width: 400px;
  margin: 0 0 12px;
  padding: 16px 18px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--hd-green-700) 0%, #03474D 100%);
  color: #fff;
}
.hd-account .hd-paycard__brand { font-size: 8.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hd-account .hd-paycard__number { margin: 18px 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; }
.hd-account .hd-paycard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hd-account .hd-paycard__label { display: block; font-size: 7.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hd-account .hd-paycard__value { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 700; }
.hd-account .hd-payrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 11px 14px;
}
.hd-account .hd-payrow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: var(--hd-sage-100);
  color: var(--hd-green-700);
  font-size: 15px;
}
.hd-account .hd-payrow__body { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hd-account .hd-payrow__title { font-size: 11.5px; font-weight: 700; color: var(--hd-ink); }
.hd-account .hd-payrow__meta { display: block; width: 100%; font-size: 10px; color: var(--hd-muted); }
.hd-account .hd-payrow__extra { font-size: 10.5px; color: var(--hd-text); }
.hd-account .hd-payrow__actions { display: flex; gap: 6px; flex: 0 0 auto; }
.hd-account .hd-payrow__actions .button + .button { margin: 0; }
.hd-account .hd-payments__add { margin-top: 6px; }

/* =========================================================
   My Points (Loyalty Program)
   ========================================================= */
.hd-account .hd-points__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 46%);
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  border-radius: var(--hd-radius);
  background: var(--hd-green-700);
  color: #fff;
}
.hd-account .hd-points__value { display: block; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.01em; color: #fff; }
.hd-account .hd-points__label { display: block; margin-top: 6px; font-size: 10px; color: rgba(255,255,255,.75); }
.hd-account .hd-points__worth { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--hd-sun); }
.hd-account .hd-points__expiry { display: block; margin-top: 8px; font-size: 9.5px; color: rgba(255,255,255,.6); }
.hd-account .hd-points__redeem { margin: 0; padding: 14px 16px 12px; border-radius: 8px; background: rgba(0,0,0,.18); }
.hd-account .hd-points__redeem-title { display: block; margin: 0 0 10px; font-size: 11px; font-weight: 700; text-align: center; color: #fff; }
.hd-account .hd-points__redeem-row { display: flex; align-items: flex-end; gap: 10px; }
.hd-account .hd-points__field { flex: 1 1 auto; min-width: 0; }
.hd-account .hd-points__field span { display: block; margin-bottom: 4px; font-size: 7.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.hd-account .hd-points__field input { height: 34px; border-color: transparent; font-weight: 700; text-align: center; letter-spacing: .06em; }
.hd-account .hd-points__redeem .hd-btn { flex: 0 0 auto; height: 34px; padding: 0 16px; white-space: nowrap; }
.hd-account .hd-points__redeem-note { display: block; margin-top: 8px; text-align: center; font-size: 9px; color: rgba(255,255,255,.6); }
.hd-account .hd-points__msg { display: none; margin: 8px 0 0; padding: 8px 10px; border-radius: 6px; background: rgba(255,255,255,.12); font-size: 10.5px; line-height: 1.45; color: #fff; }
.hd-account .hd-points__msg.is-error { background: rgba(180,43,43,.5); }
.hd-account .hd-points__msg:not(:empty) { display: block; }
.hd-account .hd-points__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.hd-account .hd-tile { padding: 12px 14px; border-radius: var(--hd-radius); background: var(--hd-sage-100); border: 1px solid #EDF1E0; }
.hd-account .hd-tile__title { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 10.5px; font-weight: 700; color: var(--hd-ink); }
.hd-account .hd-tile__title .hd-icon { font-size: 12px; color: var(--hd-gold-dark); }
.hd-account .hd-tile__text { margin: 0; font-size: 10px; line-height: 1.5; color: var(--hd-text); }
.hd-account .hd-points__coupons { margin-top: 16px; }
.hd-account .hd-points__coupon-code { font-family: monospace; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--hd-green-700); }
.hd-account .hd-points__more { margin: 8px 0 0; font-size: 10.5px; }
.hd-account .hd-points__plugin { margin-top: 16px; }
.hd-account .hd-points__plugin:empty { display: none; }

/* =========================================================
   Lucky Joint Club
   ========================================================= */
.hd-account .hd-club__tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hd-account .hd-tier {
  position: relative;
  padding: 20px 16px 16px;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  background: var(--hd-sage-100);
  text-align: center;
}
.hd-account .hd-tier--3 { background: var(--hd-green-900); border-color: var(--hd-green-900); color: rgba(255,255,255,.8); }
.hd-account .hd-tier.is-current { border-color: var(--hd-gold); box-shadow: 0 0 0 1px var(--hd-gold); }
.hd-account .hd-tier.is-current:not(.hd-tier--3) { background: var(--hd-white); }
.hd-account .hd-tier__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--hd-gold);
  color: #fff;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hd-account .hd-tier__icon { display: inline-flex; font-size: 26px; color: var(--hd-success); }
.hd-account .hd-tier--3 .hd-tier__icon { color: var(--hd-sun); }
.hd-account .hd-tier__name { margin: 6px 0 0; font-size: 13.5px; font-weight: 700; color: var(--hd-green-700); }
.hd-account .hd-tier--3 .hd-tier__name { color: var(--hd-gold); }
.hd-account .hd-tier__range { margin: 2px 0 0; font-size: 10px; color: var(--hd-muted); }
.hd-account .hd-tier--3 .hd-tier__range { color: rgba(255,255,255,.6); }
.hd-account .hd-tier__perks { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--hd-line-2); font-size: 10.5px; line-height: 1.85; color: var(--hd-text); }
.hd-account .hd-tier__perks li { margin: 0; }
.hd-account .hd-tier--3 .hd-tier__perks { border-top-color: rgba(255,255,255,.14); color: rgba(255,255,255,.8); }

.hd-account .hd-club__progress { margin-top: 14px; }
.hd-account .hd-club__progress-head,
.hd-account .hd-club__progress-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10.5px; color: var(--hd-muted); }
.hd-account .hd-club__progress-head { margin-bottom: 8px; }
.hd-account .hd-club__progress-head strong { font-size: 11.5px; color: var(--hd-ink); }
.hd-account .hd-club__progress-foot { margin-top: 7px; font-size: 10px; }
.hd-account .hd-progress { height: 7px; border-radius: 999px; background: #E8ECE6; overflow: hidden; }
.hd-account .hd-progress__bar { display: block; height: 100%; border-radius: 999px; background: var(--hd-green-700); transition: width .4s ease; }
.hd-account .hd-club__rewards { margin-top: 16px; padding: 0; border: 0; background: transparent; }
.hd-account .hd-club__rewards .hd-card__title { margin-bottom: 10px; font-size: 13px; }

.hd-account .hd-club__coupons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hd-account .hd-coupon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px 14px;
  border-radius: var(--hd-radius);
  background: var(--hd-green-900);
  color: rgba(255,255,255,.8);
  text-align: center;
}
.hd-account .hd-coupon:nth-child(4n+3) { background: #8C9B98; }
.hd-account .hd-coupon:nth-child(4n) { background: var(--hd-sun); color: rgba(17,61,60,.8); }
.hd-account .hd-coupon__amount { font-size: 20px; font-weight: 800; letter-spacing: .01em; color: var(--hd-gold); text-transform: uppercase; }
.hd-account .hd-coupon:nth-child(4n+3) .hd-coupon__amount { color: var(--hd-sun); }
.hd-account .hd-coupon:nth-child(4n) .hd-coupon__amount { color: var(--hd-ink); }
.hd-account .hd-coupon__desc { margin-top: 5px; font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hd-account .hd-coupon__expiry { margin-top: 2px; font-size: 9px; opacity: .8; }
.hd-account .hd-coupon__code,
.hd-account button.hd-coupon__code {
  margin-top: 14px;
  padding: 5px 10px;
  border: 1px dashed rgba(255,255,255,.4);
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font-family: var(--hd-font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
}
.hd-account .hd-coupon:nth-child(4n) .hd-coupon__code { border-color: rgba(17,61,60,.4); }
.hd-account button.hd-coupon__code:hover { background: rgba(255,255,255,.12); color: inherit; border-color: currentColor; }
.hd-account button.hd-coupon__code.is-copied { border-style: solid; }

.hd-account .hd-club__banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  margin-top: 16px;
  padding: 28px 20px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--hd-green-900) center / cover no-repeat;
  text-align: center;
}
.hd-account .hd-club__banner::before { content: ""; position: absolute; inset: 0; background: rgba(17,61,60,.35); }
.hd-account .hd-club__banner--photo::before { background: linear-gradient(180deg, rgba(17,61,60,.15) 0%, rgba(17,61,60,.65) 100%); }
.hd-account .hd-club__banner > * { position: relative; }
.hd-account .hd-club__banner-title { margin: 0; font-family: var(--hd-font-display); font-size: 58px; font-weight: 400; line-height: .95; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hd-account .hd-club__banner-script { display: block; margin-top: -8px; font-family: var(--hd-font-script); font-size: 52px; font-weight: 700; line-height: 1; color: var(--hd-sage-200); }
.hd-account .hd-club__banner .hd-btn { margin-top: 14px; }

/* =========================================================
   Login / register
   ========================================================= */
.hd-login {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 36%) minmax(0, 1fr);
  min-height: 750px;
  font-family: var(--hd-font-body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--hd-text);
  -webkit-font-smoothing: antialiased;
}
.hd-login *, .hd-login *::before, .hd-login *::after { box-sizing: border-box; }
.hd-login :focus-visible { outline: 2px solid var(--hd-gold); outline-offset: 2px; }
.hd-login__aside { padding: 62px 48px 40px; background: var(--hd-green-900); color: #fff; }
.hd-login .hd-login__brand { display: none; margin: 0 0 6px; font-size: 8.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hd-login .hd-login__title { margin: 0; font-family: var(--hd-font-body); font-size: 50px; font-weight: 800; line-height: 1.02; letter-spacing: -.01em; color: #fff; text-transform: none; }
.hd-login .hd-login__title em { display: block; font-style: normal; color: var(--hd-gold); }
.hd-login .hd-login__lede { max-width: 230px; margin: 18px 0 26px; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.72); }
.hd-login__card { margin-top: 12px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.08); border-radius: var(--hd-radius); background: rgba(255,255,255,.06); }
.hd-login .hd-login__card-title { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 11px; font-weight: 700; color: var(--hd-gold); }
.hd-login .hd-login__card-title .hd-icon { font-size: 14px; color: #8EBF40; }
.hd-login .hd-login__card p { margin: 5px 0 0; font-size: 10.5px; line-height: 1.5; color: rgba(255,255,255,.7); }
.hd-login .hd-login__card p + p { margin-top: 1px; }
.hd-login .hd-login__tiers { display: none; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.hd-login .hd-login__tiers .hd-pill { height: 20px; padding: 0 10px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); font-size: 8.5px; }
.hd-login .hd-login__tiers .hd-pill.is-current { background: var(--hd-gold); color: #fff; }

.hd-login__main { padding: 62px 60px 60px; background: var(--hd-cream); }
.hd-login .hd-login__section-title { margin: 0; font-family: var(--hd-font-body); font-size: 20px; font-weight: 700; color: var(--hd-ink); text-transform: none; letter-spacing: normal; }
.hd-login .hd-login__section-sub { margin: 2px 0 12px; font-size: 10.5px; color: var(--hd-muted); }
.hd-login .hd-login__form {
  margin: 0;
  padding: 20px 22px 22px;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  background: var(--hd-white);
}
.hd-login .form-row,
.hd-login .woocommerce-form-row { float: none; width: 100%; margin: 0 0 12px; padding: 0; }
.hd-login .form-row label,
.hd-login .woocommerce-form-row label {
  display: block;
  margin: 0 0 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hd-muted);
}
.hd-login .form-row label .required { color: var(--hd-gold-dark); text-decoration: none; }
.hd-login input[type="text"],
.hd-login input[type="email"],
.hd-login input[type="password"],
.hd-login input[type="tel"] {
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--hd-field);
  border-radius: 6px;
  background: var(--hd-white);
  color: var(--hd-ink);
  font-family: var(--hd-font-body);
  font-size: 11.5px;
  font-weight: 500;
  box-shadow: none;
}
.hd-login input:focus { outline: none; border-color: var(--hd-green-700); box-shadow: 0 0 0 3px rgba(2,89,96,.12); }
.hd-login input::placeholder { color: #A5B1B0; opacity: 1; }
.hd-login input[type="checkbox"] { width: 13px; height: 13px; margin: 0; accent-color: var(--hd-green-700); }
.hd-login .password-input { display: block; position: relative; }
.hd-login .password-input input { padding-right: 38px; }
.hd-login .show-password-input { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 20px; height: 20px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--hd-muted); cursor: pointer; }
.hd-login .woocommerce-password-strength { margin-top: 5px; padding: 3px 0; font-size: 10px; text-align: left; }
.hd-login .woocommerce-password-hint { display: block; margin-top: 4px; font-size: 10px; color: var(--hd-muted); }
.hd-login .hd-login__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hd-login .hd-login__grid > .form-row { width: 100%; }
.hd-login .hd-login__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 12px; }
.hd-login .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--hd-text);
}
.hd-login .hd-login__forgot,
.hd-login .woocommerce-LostPassword { margin: 0; font-size: 10px; }
.hd-login .hd-login__forgot a,
.hd-login .woocommerce-LostPassword a { color: var(--hd-green-700); font-weight: 700; text-decoration: none; }
.hd-login .hd-login__forgot a:hover,
.hd-login .woocommerce-LostPassword a:hover { color: var(--hd-gold-dark); }
.hd-login .hd-btn,
.hd-login .button,
.hd-login button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--hd-green-700);
  border-radius: 6px;
  background: var(--hd-green-700);
  color: #fff;
  font-family: var(--hd-font-display);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.hd-login .hd-btn:hover,
.hd-login .button:hover,
.hd-login button[type="submit"]:hover { background: #02474D; border-color: #02474D; color: #fff; }
.hd-login .hd-btn.hd-btn--outline { background: transparent; color: var(--hd-green-700); }
.hd-login .hd-btn.hd-btn--outline:hover { background: var(--hd-sage-100); color: var(--hd-green-700); border-color: var(--hd-green-700); }
.hd-login .hd-login__submit { margin: 0; }
.hd-login .hd-login__or { display: flex; align-items: center; gap: 12px; margin: 12px 0; font-size: 8.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hd-muted); }
.hd-login .hd-login__or::before,
.hd-login .hd-login__or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--hd-line-2); }
.hd-login .hd-login__switch { margin: 14px 0 18px; text-align: center; font-size: 10.5px; color: var(--hd-muted); }
.hd-login .hd-login__switch a { color: var(--hd-green-700); font-weight: 700; text-decoration: none; }
.hd-login .hd-login__switch a:hover { color: var(--hd-gold-dark); }
.hd-login .hd-login__note { margin: 0 0 12px; font-size: 10.5px; color: var(--hd-muted); }
.hd-login .hd-login__register { margin-top: 4px; }
.hd-login .hd-login__register .hd-login__section-title { font-size: 16px; }
.hd-login .hd-login__form .form-row:last-child { margin-bottom: 0; }

/* Lost / reset password forms use the same card treatment. */
body.hd-account-page .woocommerce-ResetPassword,
body.hd-account-page .woocommerce-form.lost_reset_password {
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid var(--hd-line);
  border-radius: var(--hd-radius);
  background: var(--hd-white);
  font-family: var(--hd-font-body);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .hd-account .hd-dash__stats { gap: 12px; }
  .hd-account .hd-dash__cols { gap: 14px; }
  .hd-account .hd-club__coupons { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .hd-login__aside { padding: 48px 32px 36px; }
  .hd-login__main { padding: 48px 36px 44px; }
  .hd-login .hd-login__title { font-size: 42px; }
}

@media (max-width: 1024px) {
  body.hd-account-page .entry-content > .woocommerce,
  body.hd-account-page .woocommerce:has(> .hd-account),
  body.hd-account-page .woocommerce:has(> .hd-login) { margin-bottom: 32px; }
  .hd-account { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hd-account__sidebar { background: transparent; }
  .hd-account__desktop { display: none; }
  .hd-account__mobile { display: block; }
  .hd-account__topbar { display: none; }
  body.hd-account-page .hd-account .hd-account__content,
  .hd-account .hd-account__content { padding: 12px 12px 30px; }
  .hd-account .hd-section-title,
  .hd-account .hd-account__content > h2:first-child,
  .hd-account .hd-card--plugin > h2:first-child,
  .hd-account :where(.hd-account__content h2) { font-size: 14px; margin-bottom: 10px; }
  .hd-account .hd-card { padding: 13px 14px; }
  .hd-account .hd-card--plugin { padding: 14px; }

  .hd-account .hd-dash__welcome { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; }
  .hd-account .hd-dash__welcome h2 { font-size: 15px; }
  .hd-account .hd-dash__welcome p { font-size: 10px; }
  .hd-account .hd-dash__welcome .hd-pill--lg { height: 22px; padding: 0 14px; font-size: 9.5px; }
  .hd-account .hd-dash__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
  .hd-account .hd-stat { padding: 11px 13px; }
  .hd-account .hd-stat__value { font-size: 20px; }
  .hd-account .hd-dash__cols { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .hd-account .hd-points__hero { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .hd-account .hd-points__value { font-size: 34px; }
  .hd-account .hd-points__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .hd-account .hd-club__tiers { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hd-account .hd-tier { padding: 16px 14px 14px; }
  .hd-account .hd-club__coupons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hd-account .hd-club__banner { min-height: 160px; }
  .hd-account .hd-club__banner-title { font-size: 36px; }
  .hd-account .hd-club__banner-script { font-size: 32px; }

  .hd-account .hd-form__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hd-account .hd-form__actions .hd-btn { width: 100%; }
  .hd-account .hd-paycard { max-width: none; }
  .hd-account .hd-payments__add .hd-btn { width: 100%; }
  .hd-account .hd-address { flex-direction: column; gap: 10px; }
  .hd-account .hd-address__actions { width: 100%; justify-content: flex-end; }
  .hd-account .hd-sub__facts { gap: 8px 24px; }
  .hd-account .hd-sub__actions .button { flex: 1 1 auto; justify-content: center; }

  /* Login: dark header block, then the forms stacked. */
  .hd-login { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hd-login__aside { padding: 16px 16px 18px; }
  .hd-login .hd-login__brand { display: block; }
  .hd-login .hd-login__title { font-size: 26px; line-height: 1.1; }
  .hd-login .hd-login__title em { display: inline; }
  .hd-login .hd-login__lede { display: none; }
  .hd-login__card { display: none; }
  .hd-login .hd-login__tiers { display: flex; }
  .hd-login__main { padding: 18px 12px 26px; }
  .hd-login .hd-login__section-title { font-size: 16px; }
  .hd-login .hd-login__form { padding: 16px 14px; }
  .hd-login .hd-login__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (max-width: 760px) {
  /* Generic responsive tables (plugins, order details) stack with column labels. */
  .hd-account table.shop_table_responsive thead { display: none; }
  .hd-account table.shop_table_responsive tbody tr {
    display: block;
    padding: 10px 14px;
    border-top: 1px solid var(--hd-line-2);
  }
  .hd-account table.shop_table_responsive tbody tr:first-child { border-top: 0; }
  .hd-account table.shop_table_responsive tbody th,
  .hd-account table.shop_table_responsive tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border: 0;
    text-align: right;
  }
  .hd-account table.shop_table_responsive tbody th::before,
  .hd-account table.shop_table_responsive tbody td::before {
    content: attr(data-title);
    flex: 0 0 auto;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-align: left;
    color: var(--hd-muted);
  }
  .hd-account table.shop_table_responsive tbody td:not([data-title])::before,
  .hd-account table.shop_table_responsive tbody td[data-title=""]::before { display: none; }
  .hd-account table.shop_table_responsive tbody td.order-actions,
  .hd-account table.shop_table_responsive tbody td.subscription-actions { justify-content: flex-start; padding-top: 8px; white-space: normal; }
  .hd-account table.shop_table_responsive tbody td.order-actions::before,
  .hd-account table.shop_table_responsive tbody td.subscription-actions::before { display: none; }

  /* Order History becomes the app-style cards from the mobile mockup:
     number + status, items · total, date + action. */
  .hd-account .hd-table-wrap { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .hd-account table.hd-orders { border: 0; background: transparent; overflow: visible; border-radius: 0; }
  .hd-account table.hd-orders thead { display: none; }
  .hd-account table.hd-orders tbody { display: block; }
  .hd-account table.hd-orders tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "number status"
      "items  total"
      "date   actions";
    align-items: center;
    column-gap: 6px;
    row-gap: 3px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid var(--hd-line);
    border-radius: var(--hd-radius);
    background: var(--hd-white);
  }
  .hd-account table.hd-orders tbody th,
  .hd-account table.hd-orders tbody td { display: block; padding: 0; border: 0; text-align: left; }
  .hd-account table.hd-orders tbody th::before,
  .hd-account table.hd-orders tbody td::before { display: none; }
  .hd-account table.hd-orders .woocommerce-orders-table__cell-order-number { grid-area: number; font-size: 12px; }
  .hd-account table.hd-orders .woocommerce-orders-table__cell-order-status { grid-area: status; justify-self: end; }
  .hd-account table.hd-orders .woocommerce-orders-table__cell-order-items { grid-area: items; color: var(--hd-text); }
  .hd-account table.hd-orders .woocommerce-orders-table__cell-order-total { grid-area: total; justify-self: start; }
  .hd-account table.hd-orders .woocommerce-orders-table__cell-order-total::before { display: inline; content: "· "; color: var(--hd-muted); font-weight: 400; }
  .hd-account table.hd-orders .woocommerce-orders-table__cell-order-date { grid-area: date; margin-top: 4px; font-size: 10px; color: var(--hd-muted); }
  .hd-account table.hd-orders .woocommerce-orders-table__cell-order-actions { grid-area: actions; justify-self: end; white-space: nowrap; margin-top: 4px; }

  .hd-account .hd-payrow { flex-wrap: wrap; }
  .hd-account .hd-payrow__actions { width: 100%; padding-left: 46px; }
  .hd-account .hd-club__progress-head,
  .hd-account .hd-club__progress-foot { flex-wrap: wrap; }
  .hd-account .hd-points__redeem-row { flex-wrap: wrap; }
  .hd-account .hd-points__redeem .hd-btn { width: 100%; }
}

@media (max-width: 420px) {
  .hd-account .hd-stat { padding: 10px 11px; }
  .hd-account .hd-stat__value { font-size: 18px; }
  .hd-account .hd-club__coupons { grid-template-columns: minmax(0, 1fr); }
  .hd-account .hd-points__tiles { grid-template-columns: minmax(0, 1fr); }
  body.hd-account-page .hd-account .hd-account__content,
  .hd-account .hd-account__content { padding: 10px 10px 26px; }
  .hd-account .hd-card { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hd-account *, .hd-login * { transition: none !important; }
}
