/* HIER Achterhoek — native WooCommerce account presentation, local draft.
 * Opt-in body class only. Native form fields, endpoints and messages stay intact.
 */
body.hier-account-page #content {
  background: #f7f8f4;
}
body.hier-account-page #content > .ast-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1168px;
  padding-right: 24px;
  padding-left: 24px;
}
body.hier-account-page #primary {
  width: 100%;
  min-width: 0;
  margin-top: 32px;
  margin-bottom: 56px;
}
body.hier-account-page #main .entry-header {
  margin-bottom: 20px;
}
body.hier-account-page #main .entry-title {
  margin: 0;
  color: #23482d;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.2;
}

/* Change layout only when the expected native navigation/content pair exists. */
body.hier-account-page #main .woocommerce:has(> nav.woocommerce-MyAccount-navigation + .woocommerce-MyAccount-content) {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
body.hier-account-page #main .woocommerce:has(> nav.woocommerce-MyAccount-navigation + .woocommerce-MyAccount-content)::before,
body.hier-account-page #main .woocommerce:has(> nav.woocommerce-MyAccount-navigation + .woocommerce-MyAccount-content)::after {
  content: none;
}
body.hier-account-page #main .woocommerce:has(> nav.woocommerce-MyAccount-navigation + .woocommerce-MyAccount-content) > :not(nav.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) {
  grid-column: 1 / -1;
  min-width: 0;
}
body.hier-account-page #main .woocommerce:has(> nav.woocommerce-MyAccount-navigation + .woocommerce-MyAccount-content) > nav.woocommerce-MyAccount-navigation,
body.hier-account-page #main .woocommerce:has(> nav.woocommerce-MyAccount-navigation + .woocommerce-MyAccount-content) > .woocommerce-MyAccount-content {
  box-sizing: border-box;
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}

body.hier-account-page #main nav.woocommerce-MyAccount-navigation {
  padding: 8px;
  border: 1px solid #dfe6d9;
  border-radius: 16px;
  background: #fff;
}
body.hier-account-page #main nav.woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}
body.hier-account-page #main nav.woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}
body.hier-account-page #main nav.woocommerce-MyAccount-navigation li + li {
  margin-top: 3px;
}
body.hier-account-page #main nav.woocommerce-MyAccount-navigation a {
  display: flex;
  gap: 10px;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #23482d;
  font-size: 15px;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}
body.hier-account-page #main nav.woocommerce-MyAccount-navigation a:hover {
  background: #f3f6ef;
  color: #17351f;
}
body.hier-account-page #main nav.woocommerce-MyAccount-navigation .is-active > a {
  background: #eef2e9;
  color: #17351f;
  font-weight: 600;
}

/* Empty decorative masks retain each native link's visible accessible label.
 * Unknown future menu items receive a neutral menu icon, never a missing glyph.
 */
body.hier-account-page #main nav.woocommerce-MyAccount-navigation ul > li > a::before {
  content: "";
  display: inline-block;
  position: static;
  float: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  background: currentColor;
  transform: none;
  -webkit-mask: var(--hier-account-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 6h14M5 12h14M5 18h14'/%3E%3C/svg%3E")) center / contain no-repeat;
  mask: var(--hier-account-icon, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 6h14M5 12h14M5 18h14'/%3E%3C/svg%3E")) center / contain no-repeat;
}
body.hier-account-page #main nav.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--dashboard {
  --hier-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7M5 9v12h5v-7h4v7h5V9'/%3E%3C/svg%3E");
}
body.hier-account-page #main nav.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--orders {
  --hier-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H5v17h14V4h-4M9 3h6v4H9zM9 12h6M9 16h6'/%3E%3C/svg%3E");
}
body.hier-account-page #main nav.woocommerce-MyAccount-navigation :is(.woocommerce-MyAccount-navigation-link--hier-cadeaubontegoed, .woocommerce-MyAccount-navigation-link--pw-gift-card-balance) {
  --hier-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h18v4H3zM5 12v9h14v-9M12 8v13M12 8H8.5a2.5 2.5 0 1 1 2.4-3.2L12 8Zm0 0h3.5a2.5 2.5 0 1 0-2.4-3.2L12 8Z'/%3E%3C/svg%3E");
}
body.hier-account-page #main nav.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--edit-address {
  --hier-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 0 1 14 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}
body.hier-account-page #main nav.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--edit-account {
  --hier-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21v-2a8 8 0 0 1 16 0v2'/%3E%3C/svg%3E");
}
body.hier-account-page #main nav.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout {
  --hier-account-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H4v16h5M10 12h11m-5-5 5 5-5 5'/%3E%3C/svg%3E");
}

body.hier-account-page #main .woocommerce-MyAccount-content {
  box-sizing: border-box;
  min-width: 0;
  padding: 24px;
  border: 1px solid #dfe6d9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(20, 49, 31, .045);
  overflow-wrap: anywhere;
}
body.hier-account-page #main .woocommerce-MyAccount-content > :first-child {
  margin-top: 0;
}
body.hier-account-page #main .woocommerce-MyAccount-content > :last-child {
  margin-bottom: 0;
}
body.hier-account-page #main .woocommerce-MyAccount-content :is(h2, h3) {
  margin-top: 24px;
  margin-bottom: 12px;
  color: #23482d;
  font-size: 22px;
  line-height: 1.3;
}
body.hier-account-page #main .woocommerce-MyAccount-content p {
  line-height: 1.65;
}
body.hier-account-page #main .woocommerce-MyAccount-content a:not(.button) {
  color: #315b20;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Account actions keep the existing dark-green palette, not checkout-route green. */
body.hier-account-page #main .woocommerce :is(a.button, button.button, input.button),
body.hier-account-page #main #pwgc-balance-form :is(#pwgc-balance-button, #pwgc-balance-reload) {
  box-sizing: border-box;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #336611;
  border-radius: 8px;
  background: #336611;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
body.hier-account-page #main .woocommerce :is(a.button, button.button, input.button):hover:not(:disabled):not(.disabled):not([aria-disabled="true"]),
body.hier-account-page #main #pwgc-balance-form :is(#pwgc-balance-button, #pwgc-balance-reload):hover:not(:disabled):not(.disabled):not([aria-disabled="true"]) {
  border-color: #274f0d;
  background: #274f0d;
  color: #fff;
}
body.hier-account-page #main :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #336611;
  outline-offset: 3px;
}
body.hier-account-page #main .woocommerce :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], select, textarea) {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #9aa991;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
}
body.hier-account-page #main .woocommerce form .form-row :is(input.input-text, select, textarea) {
  width: 100%;
}
body.hier-account-page #main .woocommerce .password-input :is(input[type="password"], input[type="text"]) {
  padding-right: 48px;
}
body.hier-account-page #main .woocommerce form :is(fieldset, .form-row) {
  min-width: 0;
}
body.hier-account-page #main .woocommerce form fieldset {
  margin-top: 24px;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid #dfe6d9;
}
body.hier-account-page #main .woocommerce form fieldset legend {
  padding: 0 8px 0 0;
  color: #23482d;
  font-size: 19px;
  font-weight: 600;
}

/* Order references and statuses remain whole on the native desktop table.
 * Auto table sizing gives them room; compact actions retain a 44px touch target.
 * Mobile responsive rows and other account tables keep their existing layout.
 */
@media (min-width: 922px) {
  body.hier-account-page #main table.woocommerce-orders-table :is(.woocommerce-orders-table__header-order-number, .woocommerce-orders-table__cell-order-number, .woocommerce-orders-table__header-order-status, .woocommerce-orders-table__cell-order-status) {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
  body.hier-account-page #main table.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions > a.button {
    min-height: 44px;
    padding: 10px 12px;
  }
}
/* Current WooCommerce uses a row header for the reference. Older responsive
 * theme CSS hides tbody th; keep that one native reference visible on phones.
 */
@media (max-width: 768px) {
  body.hier-account-page #main table.woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number[scope="row"] {
    display: block;
    text-align: right;
    font-weight: 400;
  }
  body.hier-account-page #main table.woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number[scope="row"]::before {
    content: attr(data-title) ": ";
    float: left;
    font-weight: 700;
  }
}

/* Native address cards remain the single editing route for address data. */
body.hier-account-page #main .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
body.hier-account-page #main .woocommerce-Addresses::before,
body.hier-account-page #main .woocommerce-Addresses::after {
  content: none;
}
body.hier-account-page #main .woocommerce-Addresses > .woocommerce-Address,
body.hier-account-page #main .woocommerce-MyAccount-content > .woocommerce-Address {
  box-sizing: border-box;
  float: none;
  width: auto;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e4e9df;
  border-radius: 12px;
}
body.hier-account-page #main .woocommerce-Address-title {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
body.hier-account-page #main .woocommerce-Address-title::before,
body.hier-account-page #main .woocommerce-Address-title::after {
  content: none;
}
body.hier-account-page #main .woocommerce-Address-title :is(h2, h3) {
  float: none;
  margin: 0;
  font-size: 19px;
}
body.hier-account-page #main .woocommerce-Address-title a.edit {
  display: inline-flex;
  float: none;
  align-items: center;
  min-height: 44px;
}
body.hier-account-page #main .woocommerce-Address address {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: normal;
  line-height: 1.65;
}
body.hier-account-page #main .hier-account-address-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #dfe6d9;
}
body.hier-account-page #main .hier-account-address-links > h2 {
  margin-top: 0;
}
body.hier-account-page #main .hier-account-address-links > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.hier-account-page #main .hier-account-address-links > ul > li {
  margin: 0;
  padding: 0;
}

/* Logged-out login, registration and password-reset forms retain native markup. */
body.hier-account-page #main .woocommerce form:is(.woocommerce-form-login, .register, .lost_reset_password) {
  box-sizing: border-box;
  min-width: 0;
  padding: 24px;
  border: 1px solid #dfe6d9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(20, 49, 31, .045);
}
body.hier-account-page #main #customer_login > :is(.u-column1, .u-column2) {
  box-sizing: border-box;
  min-width: 0;
}

/* Native PW Gift Cards form: override only its standalone-page presentation. */
body.hier-account-page #main #pwgc-balance-form {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  text-align: left;
}
body.hier-account-page #main #pwgc-balance-form #pwgc-balance-container {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
  text-align: left;
}
body.hier-account-page #main #pwgc-balance-form #pwgc-balance-title {
  margin: 0 0 8px;
  color: #4c574d;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}
body.hier-account-page #main #pwgc-balance-form .fa-gift {
  display: none;
}
/* The account wrapper already provides a clear heading, helper and input label. */
body.hier-account-page #main .hier-account-gift:has(> label[for="pwgc-balance-number"]) #pwgc-balance-form #pwgc-balance-title {
  display: none;
}
body.hier-account-page #main #pwgc-balance-form #pwgc-balance-number-container {
  margin: 8px 0 0;
  text-align: left;
}
body.hier-account-page #main .hier-account-gift > label[for="pwgc-balance-number"] {
  display: block;
  margin: 0;
  color: #23482d;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
body.hier-account-page #main #pwgc-balance-form :is(h1, h2, h3) {
  color: #23482d;
  font-size: 22px;
  line-height: 1.3;
  text-align: left;
}
body.hier-account-page #main #pwgc-balance-form p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}
body.hier-account-page #main #pwgc-balance-form input[type="text"] {
  display: block;
  width: 100%;
  max-width: 380px;
  margin: 8px 0 12px;
  text-align: left;
}
body.hier-account-page #main #pwgc-balance-form :is(button, input[type="submit"]) {
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 760px) {
  body.hier-account-page #content > .ast-container {
    padding-right: 16px;
    padding-left: 16px;
  }
  body.hier-account-page #primary {
    margin-top: 24px;
    margin-bottom: 40px;
  }
  body.hier-account-page #main .woocommerce:has(> nav.woocommerce-MyAccount-navigation + .woocommerce-MyAccount-content) {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  body.hier-account-page #main nav.woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  body.hier-account-page #main nav.woocommerce-MyAccount-navigation li + li {
    margin-top: 0;
  }
  body.hier-account-page #main nav.woocommerce-MyAccount-navigation a {
    height: 100%;
    padding: 10px;
    font-size: 14px;
  }
  body.hier-account-page #main .woocommerce-MyAccount-content,
  body.hier-account-page #main .woocommerce form:is(.woocommerce-form-login, .register, .lost_reset_password) {
    padding: 18px;
  }
  body.hier-account-page #main .woocommerce-Addresses {
    grid-template-columns: minmax(0, 1fr);
  }
  body.hier-account-page #main .woocommerce form .form-row-first,
  body.hier-account-page #main .woocommerce form .form-row-last {
    float: none;
    width: 100%;
  }
}

