/* HG Store customer workspace; native WooCommerce endpoints and forms remain intact. */
body.hg-store-account {
  --hg-primary: #001d6e;
  --hg-on-primary: #fff;
}

.hg-store-account .hg-commerce-content > .woocommerce:has(> .woocommerce-MyAccount-navigation) {
  display: grid;
  grid-template-columns: minmax(190px,230px) minmax(0,1fr);
  align-items: start;
  gap: 24px;
}

.hg-store-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
.hg-store-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::after {
  display: none;
}

.hg-store-account .woocommerce > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

.hg-store-account .woocommerce :is(.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content) {
  float: none;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.hg-store-account .woocommerce-MyAccount-navigation {
  padding: 12px;
  border: 1px solid #dbe3ed;
  border-radius: 14px;
  background: #fff;
}

.hg-store-account .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hg-store-account .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
  border: 0;
}

.hg-store-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f1f6fd;
  color: #001d6e;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.hg-store-account .woocommerce-MyAccount-navigation a:hover {
  border-color: #9bbcf0;
  background: #c4ddff;
}

.hg-store-account .woocommerce-MyAccount-navigation .is-active a {
  border-color: #001d6e;
  background: #001d6e;
  color: #fff;
}

.hg-store-account .woocommerce-MyAccount-content {
  padding: clamp(16px,3vw,28px);
  border: 1px solid #dbe3ed;
  border-radius: 14px;
  background: #fff;
  overflow-wrap: anywhere;
}

.hg-store-account .woocommerce :is(h2,h3) {
  color: #001d6e;
  font-size: clamp(19px,2.4vw,25px);
  line-height: 1.3;
  margin: 0 0 16px;
}

.hg-store-account .woocommerce p {
  margin: 0 0 18px;
}

.hg-store-account .hg-account-orders {
  margin-top: 26px;
}

.hg-store-account .hg-account-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.hg-store-account .hg-account-section-heading h2 {
  margin: 0;
}

.hg-store-account .hg-account-section-heading a {
  font-size: 14px;
  font-weight: 650;
}

.hg-store-account .woocommerce table.shop_table {
  width: 100%;
  margin: 0 0 22px;
  border: 1px solid #dbe3ed;
  border-spacing: 0;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.hg-store-account .woocommerce table.shop_table :is(th,td) {
  padding: 12px;
  border-top: 1px solid #e4ebf4;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.hg-store-account .woocommerce table.shop_table thead th {
  border-top: 0;
  background: #edf4ff;
  color: #001d6e;
}

.hg-store-account :is(.hg-account-status,mark.order-status) {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 7px;
  background: #eaf2ff;
  color: #001d6e;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.hg-store-account .woocommerce-orders-table__row--status-completed .hg-account-status {
  background: #eaf7ef;
  color: #1b6139;
}

.hg-store-account .woocommerce-orders-table__row--status-failed .hg-account-status,
.hg-store-account .woocommerce-orders-table__row--status-cancelled .hg-account-status {
  background: #fff0f1;
  color: #8a2c3b;
}

.hg-store-account .woocommerce mark:not(.order-status) {
  background: #edf4ff;
  color: #001d6e;
}

.hg-store-account .woocommerce :is(.order-actions,.woocommerce-orders-table__cell-order-actions) .button {
  margin: 3px;
}

.hg-store-account .woocommerce :is(#customer_login,.woocommerce-Addresses) {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
}

.hg-store-account .woocommerce :is(#customer_login,.woocommerce-Addresses)::before,
.hg-store-account .woocommerce :is(#customer_login,.woocommerce-Addresses)::after {
  display: none;
}

.hg-store-account .woocommerce :is(.u-column1,.u-column2,.col-1,.col-2) {
  float: none;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.hg-store-account #customer_login > div,
.hg-store-account .woocommerce form:is(.login,.register,.lost_reset_password) {
  padding: clamp(18px,3vw,28px);
  border: 1px solid #dbe3ed;
  border-radius: 14px;
  background: #fff;
}

.hg-store-account #customer_login form {
  margin: 0;
  padding: 0;
  border: 0;
}

.hg-store-account .woocommerce > form:is(.login,.lost_reset_password) {
  max-width: 640px;
  margin: 0 auto;
}

.hg-store-account .woocommerce form .form-row {
  margin: 0 0 18px;
  padding: 0;
}

.hg-store-account .woocommerce form label {
  display: block;
  margin-bottom: 7px;
}

.hg-store-account .woocommerce form .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-right: 12px;
}

.hg-store-account .woocommerce :is(input.input-text,textarea,select) {
  width: 100%;
  font-size: 16px;
}

.hg-store-account .woocommerce span.password-input {
  width: 100%;
}

.hg-store-account .woocommerce .select2-container .select2-selection--single {
  min-height: 46px;
  padding: 7px 4px;
  border: 1px solid #bccbdb;
  border-radius: 8px;
}

.hg-store-account .woocommerce .select2-selection__arrow {
  top: 10px;
}

.hg-store-account .woocommerce fieldset {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
}

.hg-store-account .woocommerce address {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #dbe3ed;
  border-radius: 10px;
  font-style: normal;
}

.hg-store-account .woocommerce .woocommerce-OrderUpdates {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

.hg-store-account .woocommerce .woocommerce-OrderUpdate {
  padding: 14px;
  border-radius: 10px;
  background: #f1f6fd;
}

.hg-store-account .hg-account-library-link {
  margin: 20px 0 0;
  font-weight: 650;
}

@media(max-width:760px) {
  .hg-store-account .hg-commerce-content > .woocommerce:has(> .woocommerce-MyAccount-navigation) {
    grid-template-columns: minmax(0,1fr);
    gap: 16px;
  }

  .hg-store-account .woocommerce-MyAccount-navigation ul {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .hg-store-account .woocommerce-MyAccount-navigation a {
    height: 100%;
    padding: 10px;
    font-size: 13px;
  }

  .hg-store-account .woocommerce :is(#customer_login,.woocommerce-Addresses) {
    grid-template-columns: minmax(0,1fr);
  }

  .hg-store-account .woocommerce table.account-orders-table {
    border: 0;
  }

  .hg-store-account .woocommerce table.account-orders-table thead {
    display: none;
  }

  .hg-store-account .woocommerce table.account-orders-table tbody {
    display: grid;
    gap: 14px;
  }

  .hg-store-account .woocommerce table.account-orders-table tbody tr {
    display: block;
    padding: 10px;
    border: 1px solid #dbe3ed;
    border-radius: 10px;
    background: #fff;
  }

  .hg-store-account .woocommerce table.account-orders-table tbody :is(th,td) {
    display: grid;
    grid-template-columns: minmax(75px,.7fr) minmax(0,1fr);
    align-items: center;
    gap: 10px;
    padding: 7px 3px;
    border: 0;
    background: transparent;
    text-align: left!important;
  }

  .hg-store-account .woocommerce table.account-orders-table tbody :is(th,td)::before {
    content: attr(data-title);
    float: none;
    font-weight: 650;
    color: #536780;
  }

  .hg-store-account .woocommerce form :is(.form-row-first,.form-row-last) {
    float: none;
    width: 100%;
  }

  .hg-store-account .woocommerce fieldset {
    padding: 15px;
  }
}
