/*
 * My Account, converted from the guardrail customers templates: the views in
 * sections/main-customers.liquid, the "Customer accounts" rules in
 * assets/pages.css and the shared pieces they use from assets/theme.css
 * (.ig-page, .ig-field, .ig-form, .ig-support, .ig-error, .ig-empty,
 * .ig-crumbs, .ig-cart-line, .ig-cart__sub, .ig-split, .ig-pagination).
 *
 * Markup comes from WooCommerce, woocommerce/myaccount/form-login.php,
 * woocommerce/myaccount/dashboard.php, the Reviews endpoint templates
 * (woocommerce/myaccount/reviews.php, review-form.php) and inc/account.php. Selectors start at
 * .hg-account (body) so they outrank the Ecomus .woocommerce-account rules,
 * which load earlier.
 */

.hg-account {
  /* Reference rgba(0,0,0,.12) card rule, rgba(0,0,0,.1) table rule and rgba(0,0,0,.62) muted text, on the Hagoma text colour. */
  --hg-account-line: color-mix(in srgb, var(--hg-text) 12%, transparent);
  --hg-account-rule: color-mix(in srgb, var(--hg-text) 10%, transparent);
  --hg-account-muted: color-mix(in srgb, var(--hg-text) 62%, transparent);
  /* Reference .ig-field and .ig-cart-line greys. */
  --hg-account-field-border: #ddd;
  --hg-account-item-rule: #eee;
  /* Reference .ig-support grey, as the Hagoma panel colour on the cream page. */
  --hg-account-panel: var(--hg-card-media-bg);
  /* Error text: the accent darkened so 13px text keeps 4.5:1 on the cream page. */
  --hg-account-error: color-mix(in srgb, var(--hg-accent) 80%, #000);
}

/* Page (guardrail .ig-page): 36px above, 64px below, 12px side gutters on phones. */
.hg-account .site-content {
  padding-block: 36px 64px;
}
@media (max-width: 749px) {
  .hg-account .site-content > .em-container {
    padding-inline: 12px;
  }
}

/* Column: 520px for the signed-out forms, 1000px for the signed-in views. */
.hg-account article > .woocommerce {
  max-width: 1000px;
  margin-inline: auto;
  color: var(--hg-text);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
.hg-account--guest article > .woocommerce {
  max-width: 520px;
}

/* Headings (guardrail .pg-account-title, .pg-account-subheading). */
.hg-account .hg-account__title {
  margin: 0 0 18px;
  color: var(--hg-text);
  font-family: var(--hg-font-heading);
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-align: center;
  text-transform: uppercase;
}
.hg-account--member .hg-account__title {
  text-align: start;
}
@media (max-width: 749px) {
  .hg-account .hg-account__title {
    font-size: 36px;
  }
}

.hg-account .woocommerce-MyAccount-content :is(.hg-account__subheading, form > h2, h2:has(+ .woocommerce-OrderUpdates)),
.hg-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset legend {
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  color: var(--hg-text);
  font-family: var(--hg-font-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-align: center;
  text-transform: uppercase;
}

.hg-account .hg-account__muted {
  margin: 0;
  color: var(--hg-account-muted);
}

/* Breadcrumb (guardrail .ig-crumbs). */
.hg-account .hg-account__crumbs {
  margin: 0 0 12px;
  color: var(--hg-account-muted);
  font-size: 13px;
}
.hg-account .hg-account__crumbs a {
  color: var(--hg-text);
}
.hg-account .hg-account__crumbs a:hover {
  color: var(--hg-accent-text);
}
.hg-account .hg-account__crumb-sep {
  margin-inline: 8px;
}

.hg-account .hg-account__email {
  margin: 0 0 12px;
}

/* Account links: the reference "View addresses · Log out" row in place of the Ecomus sidebar. */
.hg-account .woocommerce-MyAccount-navigation {
  float: none;
  width: auto;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.hg-account .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hg-account .woocommerce-MyAccount-navigation li {
  display: flex;
  align-items: center;
  margin: 0;
}
/* The dot follows each link, so a wrapped row starts with a link, not a dot. */
.hg-account .woocommerce-MyAccount-navigation li:not(:last-child)::after {
  content: "\00b7";
  content: "\00b7" / "";
  margin-inline: 0.4em;
}
.hg-account .woocommerce-MyAccount-navigation li a {
  display: inline-block;
  margin: 0;
  padding: 2px 0;
  border: 0;
  color: var(--hg-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
.hg-account .woocommerce-MyAccount-navigation li a:hover {
  color: var(--hg-accent-text);
}
.hg-account .woocommerce-MyAccount-navigation li a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Content: one column under the links instead of the Ecomus bordered panel. */
.hg-account .woocommerce-MyAccount-content {
  float: none;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.hg-account .woocommerce-MyAccount-content p {
  font-size: inherit;
}
.hg-account .woocommerce-MyAccount-content p a {
  box-shadow: none;
}
.hg-account .woocommerce-MyAccount-content > p {
  margin: 0 0 18px;
}

/* Keyboard focus on links: Ecomus a:focus { outline: 0 } outranks the base.css ring. */
.hg-account .woocommerce a:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 2px;
}

/* Notices: errors as the reference .ig-error text, other notices in the .ig-support panel. */
.hg-account .woocommerce :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
  margin: 0 0 18px;
  border: 0;
  outline: 0;
  font-weight: 400;
  line-height: 1.6;
  list-style: none;
}
.hg-account .woocommerce .woocommerce-error {
  padding: 0;
  background: none;
  color: var(--hg-account-error);
  font-size: 13px;
}
.hg-account .woocommerce .woocommerce-error li {
  margin: 0;
}
.hg-account .woocommerce .woocommerce-error li + li {
  margin-block-start: 4px;
}
.hg-account .woocommerce :is(.woocommerce-message, .woocommerce-info) {
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--hg-account-panel);
  color: var(--hg-text);
  font-size: 14px;
}
.hg-account .woocommerce :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hg-account .woocommerce :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) a.button {
  --em-button-bg-color: transparent;
  --em-button-border-color: transparent;
  --em-button-color: currentColor;
  --em-button-bg-color-hover: transparent;
  --em-button-border-color-hover: transparent;
  --em-button-color-hover: var(--hg-accent);
  display: inline;
  float: none;
  min-height: 0;
  margin: 0;
  margin-inline-start: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-transform: none;
}

/* Signed-out card (guardrail .pg-account--card .pg-account-form + .ig-form): 28px padding, 12px between rows. */
.hg-account .woocommerce :is(.hg-account__card, form.lost_reset_password) {
  display: grid;
  gap: 12px;
  max-width: none;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--hg-account-line);
  border-radius: 6px;
}
.hg-account .woocommerce :is(.hg-account__card, form.lost_reset_password) > * {
  margin: 0;
}
/* Clearing divs and empty hook output would only add grid gaps. */
.hg-account .woocommerce :is(.hg-account__card, form.lost_reset_password, .woocommerce-EditAccountForm) > :is(.clear, div:empty) {
  display: none;
}
.hg-account .woocommerce :is(.hg-account__card, form.lost_reset_password) :is(button[type="submit"], .button) {
  width: 100%;
  margin: 0;
}
/* Order attribution inputs are hidden fields; keep their wrapper out of the grid gap. */
.hg-account .woocommerce .hg-account__card > wc-order-attribution-inputs {
  display: none;
}

.hg-account .hg-account__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 14px;
}
.hg-account .hg-account__remember {
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
/* Ecomus draws a 20px box over the native checkbox; keep its own spacing. */
.hg-account .hg-account__remember input {
  margin: 0;
  margin-inline-end: 14px;
}
/* guardrail .pg-account-forgot: 14px, at the end of the line. */
.hg-account .hg-account__forgot {
  margin-inline-start: auto;
  color: var(--hg-text);
}
.hg-account .hg-account__forgot:hover {
  color: var(--hg-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hg-account .hg-account__note,
.hg-account .woocommerce-privacy-policy-text,
.hg-account .woocommerce-privacy-policy-text p {
  margin: 0;
  color: var(--hg-account-muted);
  font-size: 13px;
}
.hg-account .woocommerce-privacy-policy-text a {
  color: var(--hg-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Create-account prompt under the sign-in card (guardrail .pg-account-alt). */
.hg-account .hg-account__alt {
  display: grid;
  gap: 10px;
  margin-block-start: 24px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--hg-account-line);
  text-align: center;
}
.hg-account .hg-account__alt .hg-btn {
  width: 100%;
}

.hg-account .hg-account__switch {
  margin: 18px 0 0;
}
.hg-account--guest .hg-account__switch {
  text-align: center;
}
.hg-account .hg-account__switch a {
  color: var(--hg-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hg-account .hg-account__switch a:hover {
  color: var(--hg-accent-text);
}

/* Field rows (guardrail .ig-field): a white box holding the label and its control. */
.hg-account .woocommerce :is(.hg-account__field, .form-row) {
  float: none;
  width: auto;
  margin: 0;
}
.hg-account .woocommerce :is(.hg-account__field, .form-row:has(> label)) {
  display: block;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--hg-account-field-border);
  border-radius: 10px;
  background: #fff;
}
/* guardrail .ig-form label. */
.hg-account .woocommerce :is(.hg-account__field, .form-row) > label:not(.screen-reader-text, .checkbox) {
  position: static;
  display: block;
  height: auto;
  margin: 0;
  color: var(--hg-text);
  font-size: 12px;
  font-weight: 700;
  /* The reference label sits inline on a 14px / 1.6 line. */
  line-height: 22.4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: none;
  pointer-events: auto;
}
.hg-account .woocommerce :is(.hg-account__field, .form-row) > label .required {
  color: var(--hg-account-error);
  text-decoration: none;
}
.hg-account .woocommerce :is(.hg-account__field, .form-row) > label .optional {
  color: var(--hg-account-muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.hg-account .woocommerce :is(.hg-account__field, .form-row) :is(.input-text, select, textarea) {
  width: 100%;
  height: auto;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--hg-account-field-border);
  border-radius: 10px;
  background-color: #fff;
  color: var(--hg-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
}
.hg-account .woocommerce :is(.hg-account__field, .form-row) :is(.input-text, select, textarea):focus {
  border-color: var(--hg-text);
}
.hg-account .woocommerce :is(.hg-account__field, .form-row) :is(.input-text, select, textarea):focus-visible {
  outline: 2px solid var(--hg-text);
  outline-offset: 1px;
}
.hg-account .woocommerce :is(.hg-account__field, .form-row) .input-text::placeholder {
  color: var(--hg-account-muted);
}
.hg-account .woocommerce .form-row :is(#account_display_name_description, .description) {
  display: block;
  margin-block-start: 6px;
  color: var(--hg-account-muted);
  font-size: 12px;
}
.hg-account .woocommerce .form-row #account_display_name_description em {
  font-style: normal;
}

/* Password toggle added by WooCommerce (guardrail .pg-password__toggle): "Show" / "Hide" text at the end of the input. */
.hg-account .woocommerce .password-input {
  position: relative;
  display: block;
}
.hg-account .woocommerce .password-input .input-text {
  padding-inline-end: 72px;
}
.hg-account .woocommerce .show-password-input,
.hg-account .woocommerce .show-password-input.display-password {
  position: absolute;
  inset-block: 0;
  inset-inline: auto 8px;
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--hg-text);
  opacity: 1;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: visible;
  cursor: pointer;
}
.hg-account .woocommerce .show-password-input::after {
  content: var(--hg-account-show, "Show");
  position: static;
  width: auto;
  background: none;
  transform: none;
  animation: none;
}
.hg-account .woocommerce .show-password-input.display-password::after {
  content: var(--hg-account-hide, "Hide");
}
.hg-account .woocommerce .show-password-input:hover {
  color: var(--hg-accent-text);
}
.hg-account .woocommerce .show-password-input:focus-visible {
  outline: 2px solid var(--hg-text);
  outline-offset: -2px;
}

/* Select boxes made by selectWoo on the address form, sized like the inputs. */
.hg-account .woocommerce .form-row .select2-container {
  width: 100% !important; /* selectWoo writes an inline pixel width. */
}
.hg-account .woocommerce .select2-container .select2-selection--single {
  min-width: 0;
  height: auto;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--hg-account-field-border);
  border-radius: 10px;
  background-color: #fff;
}
.hg-account .woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
  color: var(--hg-text);
  line-height: 1.6;
}
.hg-account .woocommerce .select2-container--focus .select2-selection--single,
.hg-account .woocommerce .select2-container--open .select2-selection--single {
  border-color: var(--hg-text);
}
.hg-account .woocommerce .select2-container--focus .select2-selection--single {
  outline: 2px solid var(--hg-text);
  outline-offset: 1px;
}

/* WooCommerce buttons in the account pages: the Hagoma solid button (guardrail .ig-btn). */
.hg-account .woocommerce .button {
  --em-button-bg-color: var(--hg-accent);
  --em-button-border-color: var(--hg-accent);
  --em-button-color: #fff;
  --em-button-bg-color-hover: color-mix(in srgb, var(--hg-accent) 85%, #000);
  --em-button-border-color-hover: color-mix(in srgb, var(--hg-accent) 85%, #000);
  --em-button-color-hover: #fff;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: var(--hg-font-heading);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}
.hg-account .woocommerce .button::after {
  content: none;
}
@media (max-width: 749px) {
  .hg-account .woocommerce .button {
    min-height: 39px;
    padding: 8px 15px;
  }
}

/* Tables (guardrail .pg-account table): 13px, 10px 8px cells, a light rule under each row. */
.hg-account .woocommerce-MyAccount-content .shop_table:not(.woocommerce-table--order-details) {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 13px;
}
.hg-account .woocommerce-MyAccount-content .shop_table:not(.woocommerce-table--order-details) :is(th, td) {
  width: auto;
  padding: 10px 8px;
  border: 0;
  border-block-end: 1px solid var(--hg-account-rule);
  font-size: inherit;
  text-align: start;
  vertical-align: top;
  white-space: normal;
}
.hg-account .woocommerce-MyAccount-content .shop_table:not(.woocommerce-table--order-details) thead th {
  font-weight: 700;
}
.hg-account .woocommerce-MyAccount-content .shop_table:not(.woocommerce-table--order-details) tbody th {
  font-weight: 400;
}
.hg-account .woocommerce-MyAccount-content .shop_table a:not(.button) {
  color: var(--hg-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hg-account .woocommerce-MyAccount-content .shop_table a:not(.button):hover {
  color: var(--hg-accent-text);
}
/* Row actions (View, Pay, Cancel...) stay text links, as the reference order links. */
.hg-account .woocommerce-MyAccount-content .shop_table .button {
  --em-button-bg-color: transparent;
  --em-button-border-color: transparent;
  --em-button-color: var(--hg-text);
  --em-button-bg-color-hover: transparent;
  --em-button-border-color-hover: transparent;
  --em-button-color-hover: var(--hg-accent);
  min-height: 0;
  margin: 0;
  margin-inline-end: 10px;
  padding: 0;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  text-decoration: underline;
  text-transform: none;
  text-underline-offset: 3px;
}
@media (max-width: 749px) {
  .hg-account .woocommerce-MyAccount-content .shop_table:not(.woocommerce-table--order-details) thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .hg-account .woocommerce-MyAccount-content .shop_table:not(.woocommerce-table--order-details) tr {
    display: block;
    padding: 12px 0;
    border-block-end: 1px solid var(--hg-account-rule);
  }
  .hg-account .woocommerce-MyAccount-content .shop_table:not(.woocommerce-table--order-details) :is(tbody, tfoot) :is(th, td) {
    display: block;
    padding: 4px 0;
    border: 0;
  }
}

/* Previous / next under the orders (guardrail .ig-pagination). */
.hg-account .woocommerce-MyAccount-content .woocommerce-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-pagination .button {
  --em-button-bg-color: transparent;
  --em-button-border-color: #ddd;
  --em-button-color: var(--hg-text);
  --em-button-bg-color-hover: var(--hg-text);
  --em-button-border-color-hover: var(--hg-text);
  --em-button-color-hover: #fff;
  min-width: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
}

/* Dashboard: default address panel (guardrail .ig-support.ig-account-summary), orders, empty state. */
.hg-account .woocommerce-MyAccount-content .hg-account__summary {
  margin: 0 0 22px;
  padding: 24px;
  border-radius: 12px;
  background: var(--hg-account-panel);
}
.hg-account .woocommerce-MyAccount-content .hg-account__summary-title {
  margin: 0 0 10px;
  color: var(--hg-text);
  font-family: var(--hg-font-body);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.hg-account .woocommerce-MyAccount-content address {
  margin: 0;
  font-style: normal;
  line-height: 1.6;
}
.hg-account .woocommerce-MyAccount-content .hg-account__empty {
  margin: 0;
  padding: 48px 0;
  text-align: center;
}
.hg-account .woocommerce-MyAccount-content .hg-account__more {
  margin: 18px 0 0;
  text-align: center;
}
.hg-account .woocommerce-MyAccount-content .hg-account__more a {
  color: var(--hg-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hg-account .woocommerce-MyAccount-content .hg-account__more a:hover {
  color: var(--hg-accent-text);
}

/* Order view: muted date and status line under the links. */
.hg-account .hg-account__meta {
  color: var(--hg-account-muted);
}

/* Order lines (guardrail .ig-cart-line): image 88x110, then name, quantity and options. */
.hg-account .woocommerce-MyAccount-content .woocommerce-order-details {
  margin: 0;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-order-details__title,
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tbody td {
  padding: 14px 0;
  border: 0;
  border-block-end: 1px solid var(--hg-account-item-rule);
  vertical-align: top;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details td.product-name {
  position: relative;
  padding-inline-start: 100px;
}
/* Keeps the row as tall as the image. */
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details td.product-name::before {
  content: "";
  float: left;
  width: 0;
  height: 110px;
}
.hg-account .woocommerce-MyAccount-content .hg-account__line-image {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 0;
  display: block;
  width: 88px;
  height: 110px;
  object-fit: cover;
  background: var(--hg-account-panel);
}
/* The image's frame (inc/account.php) takes the image's place, rounded like it, so the loading
   shade (base.css) has a box to draw on while the file downloads; the image fills it. A product
   without an image keeps the plain placeholder above. */
.hg-account .woocommerce-MyAccount-content .hg-account__line-media {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 0;
  display: block;
  width: 88px;
  height: 110px;
  overflow: hidden;
  border-radius: var(--em-image-rounded);
  background: var(--hg-account-panel);
}
.hg-account .woocommerce-MyAccount-content .hg-account__line-media > .hg-account__line-image {
  position: static;
  width: 100%;
  height: 100%;
}
html.hg-iw .hg-account .woocommerce-MyAccount-content .hg-account__line-media:has(> img:not(.hg-img-ok))::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--hg-wait);
  pointer-events: none;
  animation: var(--hg-wait-late);
}
html.hg-iw .hg-account .woocommerce-MyAccount-content .hg-account__line-media:has(> img:not(.hg-img-ok))::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  background: var(--hg-wait-spinner) center / contain no-repeat;
  pointer-events: none;
  animation: var(--hg-wait-late), var(--hg-wait-spin);
}
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details td.product-name > a {
  display: block;
  color: var(--hg-text);
  font-weight: 700;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details td.product-name > a:hover {
  color: var(--hg-accent-text);
}
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details .product-quantity {
  display: block;
  font-weight: 400;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details .wc-item-meta {
  margin: 4px 0 0;
  padding: 0;
  color: var(--hg-account-muted);
  font-size: 13px;
  list-style: none;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details .wc-item-meta li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details .wc-item-meta :is(p, strong) {
  margin: 0;
  font-weight: 400;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details td.product-total {
  padding-inline-start: 12px;
  color: var(--hg-text);
  font-weight: 400;
  text-align: end;
  white-space: nowrap;
}

/* Order totals (guardrail .ig-support with .ig-cart__sub rows: bold, 8px apart), 18px below the lines. */
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot :is(th, td) {
  border: 0;
  color: var(--hg-text);
  font-size: inherit;
  font-weight: 700;
  vertical-align: top;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot th {
  text-align: start;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot td {
  text-align: end;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot .woocommerce-Price-amount {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/* Wide screens: the totals stay table rows, so the amounts line up with the line prices. */
@media (min-width: 750px) {
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot::before {
    content: "";
    display: block;
    height: 18px;
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot :is(th, td) {
    padding: 0 24px 8px;
    background: var(--hg-account-panel);
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr:first-child > * {
    padding-block-start: 24px;
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr:last-child > * {
    padding-block-end: 32px;
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr:first-child > :first-child {
    border-start-start-radius: 12px;
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr:first-child > :last-child {
    border-start-end-radius: 12px;
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr:last-child > :first-child {
    border-end-start-radius: 12px;
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr:last-child > :last-child {
    border-end-end-radius: 12px;
  }
}

/* Phones: the price joins the line details, as in the reference line, and the totals become one panel. */
@media (max-width: 749px) {
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details,
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details :is(tbody, tfoot) {
    display: block;
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tbody tr {
    position: relative;
    display: block;
    min-height: 139px; /* 110px image, 14px above and below, 1px rule. */
    border-block-end: 1px solid var(--hg-account-item-rule);
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tbody td {
    display: block;
    border: 0;
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details td.product-name {
    position: static;
    padding-block-end: 4px;
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details td.product-name::before {
    content: none;
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details td.product-total {
    padding-block: 0 14px;
    padding-inline-start: 100px;
    text-align: start;
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot {
    margin-block-start: 18px;
    padding: 24px 24px 32px;
    border-radius: 12px;
    background: var(--hg-account-panel);
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-block-end: 8px;
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot tr:last-child {
    margin-block-end: 0;
  }
  .hg-account .woocommerce-MyAccount-content .woocommerce-table--order-details tfoot :is(th, td) {
    display: block;
    padding: 0;
  }
}

.hg-account .woocommerce-MyAccount-content .order-again {
  margin: 18px 0 0;
}

/* Order updates: each note in a panel (guardrail .ig-account-note). */
.hg-account .woocommerce-MyAccount-content .woocommerce-OrderUpdates {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-OrderUpdate {
  margin: 0 0 16px;
  padding: 24px;
  border-radius: 12px;
  background: var(--hg-account-panel);
}
.hg-account .woocommerce-MyAccount-content .woocommerce-OrderUpdate :is(p, .clear) {
  margin: 0;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-OrderUpdate-meta {
  color: var(--hg-account-muted);
  font-size: 13px;
}

/* Order addresses (guardrail .ig-split). */
.hg-account .woocommerce-MyAccount-content .woocommerce-customer-details {
  margin: 18px 0 0;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: auto;
  margin: 0;
  padding: 40px 28px;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns::before,
.hg-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns::after {
  content: none;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-column {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.hg-account .woocommerce-MyAccount-content :is(.woocommerce-column__title, .woocommerce-Address-title h2) {
  margin: 0 0 8px;
  color: var(--hg-text);
  font-family: var(--hg-font-body);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: start;
  text-transform: none;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-customer-details address p {
  margin: 0;
}

/* Saved addresses: one panel each (guardrail addresses view .ig-support articles). */
.hg-account .woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
  margin: 0;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-Addresses::before,
.hg-account .woocommerce-MyAccount-content .woocommerce-Addresses::after {
  content: none;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-Address {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 24px;
  border-radius: 12px;
  background: var(--hg-account-panel);
}
.hg-account .woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0 0 8px;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-Address-title h2 {
  margin: 0;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-Address-title > a {
  border: 0;
  color: var(--hg-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-Address-title > a:hover {
  color: var(--hg-accent-text);
}

/* Address and account forms (guardrail addresses form: .ig-form, 12px rows, full-width button). */
.hg-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper,
.hg-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.hg-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset {
  display: grid;
  gap: 12px;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
  margin: 12px 0 0;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-address-fields > p {
  margin: 12px 0 0;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm > p:not(.form-row) {
  margin: 0;
}
.hg-account .woocommerce-MyAccount-content :is(.woocommerce-address-fields, .woocommerce-EditAccountForm) button[type="submit"] {
  width: 100%;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset {
  min-width: 0;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}
.hg-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset legend {
  margin: 0;
  padding-block-end: 10px;
}

/* Reviews: products from paid orders as order lines (guardrail .ig-cart-line), with the action at the end. */
.hg-account {
  /* Empty star: the reference .plp-stars rgb(0 0 0 / .18), on the Hagoma text colour. */
  --hg-account-star-off: color-mix(in srgb, var(--hg-text) 18%, transparent);
  /* Empty star in the rating choice: darker, so the five choices keep 3:1 on the white field. */
  --hg-account-rate-off: color-mix(in srgb, var(--hg-text) 50%, transparent);
}
.hg-account .woocommerce-MyAccount-content .hg-reviews__intro {
  margin: 0 0 6px;
}
.hg-account .woocommerce-MyAccount-content .hg-reviews {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hg-account .woocommerce-MyAccount-content .hg-reviews--single {
  margin: 0 0 18px;
}
.hg-account .woocommerce-MyAccount-content .hg-reviews__item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 14px 0;
  border-block-end: 1px solid var(--hg-account-item-rule);
  font-size: 14px;
}
.hg-account .woocommerce-MyAccount-content .hg-reviews__media {
  position: relative;
  display: block;
  align-self: start;
}
.hg-account .woocommerce-MyAccount-content .hg-reviews__image {
  display: block;
  width: 88px;
  height: 110px;
  object-fit: cover;
  background: var(--hg-account-panel);
}
/* An image still downloading: the loading shade and spinner (base.css) over it, rounded like the
   image (the link around it has no radius of its own). */
html.hg-iw .hg-account .woocommerce-MyAccount-content .hg-reviews__media:has(> img:not(.hg-img-ok))::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--em-image-rounded);
  background: var(--hg-wait);
  pointer-events: none;
  animation: var(--hg-wait-late);
}
html.hg-iw .hg-account .woocommerce-MyAccount-content .hg-reviews__media:has(> img:not(.hg-img-ok))::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  background: var(--hg-wait-spinner) center / contain no-repeat;
  pointer-events: none;
  animation: var(--hg-wait-late), var(--hg-wait-spin);
}
.hg-account .woocommerce-MyAccount-content .hg-reviews__name {
  display: block;
  color: var(--hg-text);
  font-weight: 700;
}
.hg-account .woocommerce-MyAccount-content .hg-reviews__name:hover {
  color: var(--hg-accent-text);
}
.hg-account .woocommerce-MyAccount-content :is(.hg-reviews__meta, .hg-reviews__status) {
  margin: 4px 0 0;
  color: var(--hg-account-muted);
  font-size: 13px;
}
.hg-account .woocommerce-MyAccount-content .hg-reviews__action {
  display: grid;
  justify-items: end;
  text-align: end;
}
.hg-account .woocommerce-MyAccount-content .hg-reviews__action .hg-btn {
  white-space: nowrap;
}
/* Phones: the action goes under the name, next to the image. */
@media (max-width: 749px) {
  .hg-account .woocommerce-MyAccount-content .hg-reviews__item {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
  }
  .hg-account .woocommerce-MyAccount-content .hg-reviews__media {
    grid-row: span 2;
  }
  .hg-account .woocommerce-MyAccount-content .hg-reviews__action {
    grid-column: 2;
    justify-items: start;
    text-align: start;
  }
}

/* Stars (guardrail .plp-stars): five empty glyphs with the filled ones laid over, cut to the rating. */
.hg-account .hg-stars {
  position: relative;
  display: inline-block;
  /* As a grid item it would stretch, and the filled layer is a share of the width. */
  width: max-content;
  color: var(--hg-account-star-off);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
}
.hg-account .hg-stars::before,
.hg-account .hg-stars::after {
  content: "\2605\2605\2605\2605\2605";
}
.hg-account .hg-stars::after {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: var(--hg-stars, 0%);
  overflow: hidden;
  color: var(--hg-text);
}

/* Review form: a star choice and the review text, in 12px rows with a full-width
   button like the address and account forms (no card: that is the signed-out look). */
.hg-account .woocommerce-MyAccount-content .hg-review-form__wrap {
  margin: 0;
  padding: 0;
}
.hg-account .woocommerce-MyAccount-content .hg-review-form {
  display: grid;
  gap: 12px;
}
.hg-account .woocommerce-MyAccount-content .hg-review-form > * {
  margin: 0;
}
.hg-account .woocommerce-MyAccount-content .hg-review-form button[type="submit"] {
  width: 100%;
  margin: 0;
}
/* "Back to reviews": the content's own > p rule would put it flush under the form. */
.hg-account .woocommerce-MyAccount-content > .hg-account__switch {
  margin: 18px 0 0;
}
.hg-account .woocommerce .hg-review-form__rating {
  min-width: 0;
}
/* Floated so the legend sits inside the field box, like the other field labels. */
.hg-account .woocommerce .hg-review-form__rating legend {
  float: left;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--hg-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 22.4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hg-account .woocommerce .hg-rate {
  display: flex;
  clear: both;
  gap: 4px;
}
.hg-account .woocommerce .hg-rate label {
  display: block;
  margin: 0;
  padding: 2px;
  color: var(--hg-account-rate-off);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
/* The chosen star and the ones before it are filled. */
.hg-account .woocommerce .hg-rate:has(:checked) label {
  color: var(--hg-text);
}
.hg-account .woocommerce .hg-rate :checked + label ~ label {
  color: var(--hg-account-rate-off);
}
/* Pointer preview: the hovered star and the ones before it. */
@media (hover: hover) {
  .hg-account .woocommerce .hg-rate:has(label:hover) label {
    color: var(--hg-text);
  }
  .hg-account .woocommerce .hg-rate label:hover ~ label {
    color: var(--hg-account-rate-off);
  }
}
.hg-account .woocommerce .hg-rate input:focus-visible + label {
  outline: 2px solid var(--hg-text);
  outline-offset: 1px;
  border-radius: 2px;
}
.hg-account .woocommerce .hg-review-form .form-submit {
  margin: 0;
}

/* Sent review: a panel like the order updates. */
.hg-account .woocommerce-MyAccount-content .hg-review-done {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: 12px;
  background: var(--hg-account-panel);
}
.hg-account .woocommerce-MyAccount-content .hg-review-done__title {
  margin: 0;
  color: var(--hg-text);
  font-family: var(--hg-font-body);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: start;
  text-transform: none;
}
.hg-account .woocommerce-MyAccount-content .hg-review-done__text p {
  margin: 0 0 8px;
}
.hg-account .woocommerce-MyAccount-content .hg-review-done__text p:last-child {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hg-account .woocommerce :is(.button, .input-text, .show-password-input, select) {
    transition: none;
  }
}
