/* FoodMart — logged-in account subpages (forms, lists, tables) */

.hk-page-account-inner .hk-fm-account-inner {
  margin: 0 auto 3rem;
  max-width: 1080px;
}

.hk-fm-account-inner__head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.hk-fm-account-inner__title {
  color: var(--dark-color, #222);
  font-family: var(--heading-font, "Nunito", sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.hk-fm-account-inner__back {
  border: 1px solid rgba(15, 17, 21, 0.12);
  border-radius: 999px;
  color: var(--dark-color, #222);
  font-family: var(--body-font, "Open Sans", sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.hk-fm-account-inner__back:hover,
.hk-fm-account-inner__back:focus-visible {
  background: rgba(153, 194, 41, 0.1);
  border-color: rgba(153, 194, 41, 0.55);
  color: var(--dark-color, #222);
}

.hk-fm-account-inner__body {
  min-width: 0;
}

.hk-fm-account-inner__panel {
  background: #fff;
  border: 1px solid rgba(15, 17, 21, 0.07);
  border-radius: 1.125rem;
  box-shadow: 0 4px 20px rgba(15, 17, 21, 0.04);
  box-sizing: border-box;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__card,
.hk-page-account-inner .hk-fm-account-inner .hk-account-wishlist__card,
.hk-page-account-inner .hk-fm-account-inner .hk-account-logout__card {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

/* account/edit — hide Last Name + User ID (custom field 10), same as hk-account.css */
.hk-page-account-inner#account-edit .form-group:has(#input-lastname),
.hk-page-account-inner#account-edit .form-group.hk-account-edit--hide,
#account-edit .form-group.hk-account-edit--hide,
#account-edit .form-group:has(#input-custom-field10) {
  display: none !important;
}

/* —— Forms (edit, password, newsletter, address, affiliate…) —— */
.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__legend {
  color: var(--dark-color, #222);
  float: none;
  font-family: var(--heading-font, "Nunito", sans-serif);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0 0 1.25rem;
  padding: 0;
  width: auto;
}

.hk-page-account-inner .hk-fm-account-inner#account-password .hk-account-edit__legend {
  display: none;
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__form .form-group {
  margin-bottom: 1.125rem;
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__label {
  color: var(--dark-color, #222);
  display: block;
  font-family: var(--body-font, "Open Sans", sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.hk-page-account-inner .hk-fm-account-inner .form-group.required .hk-account-edit__label::after {
  color: #c0392b;
  content: " *";
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__control .form-control {
  background: #fff;
  border: 1px solid rgba(15, 17, 21, 0.12);
  border-radius: 0.65rem;
  box-sizing: border-box;
  color: var(--dark-color, #222);
  display: block;
  font-family: var(--body-font, "Open Sans", sans-serif);
  font-size: 0.9375rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__control .form-control:focus {
  border-color: var(--hk-bc-green, #99c229);
  box-shadow: 0 0 0 3px rgba(153, 194, 41, 0.22);
  outline: none;
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__control textarea.form-control {
  min-height: 7rem;
  resize: vertical;
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__control .text-danger {
  font-size: 0.8125rem;
  margin-top: 0.35rem;
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__actions {
  align-items: center;
  border-top: 1px solid rgba(15, 17, 21, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--body-font, "Open Sans", sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.35rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__btn--primary {
  background: var(--hk-bc-green, #99c229);
  border-color: var(--hk-bc-green, #99c229);
  color: #fff;
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__btn--primary:hover,
.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__btn--primary:focus {
  background: var(--hk-bc-green-hover, #7da622);
  border-color: var(--hk-bc-green-hover, #7da622);
  color: #fff;
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__btn--ghost {
  background: #fff;
  border-color: rgba(15, 17, 21, 0.14);
  color: var(--dark-color, #222);
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__btn--ghost:hover,
.hk-page-account-inner .hk-fm-account-inner .hk-account-edit__btn--ghost:focus {
  background: rgba(153, 194, 41, 0.08);
  border-color: rgba(153, 194, 41, 0.45);
  color: var(--dark-color, #222);
}

.hk-page-account-inner .hk-fm-account-inner button.btn.hk-account-edit__btn,
.hk-page-account-inner .hk-fm-account-inner input.hk-account-edit__btn {
  background-image: none;
  box-shadow: none;
  text-shadow: none;
}

.hk-page-account-inner .hk-fm-account-inner#account-password .hk-account-edit__btn--ghost {
  display: none;
}

/* —— Orders / wishlist tables —— */
.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__table-wrap {
  overflow-x: auto;
}

.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__table {
  background: #fff;
  border: 1px solid rgba(15, 17, 21, 0.08);
  border-collapse: separate;
  border-radius: 0.85rem;
  border-spacing: 0;
  font-size: 0.875rem;
  overflow: hidden;
  width: 100%;
}

.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__table thead th {
  background: rgba(153, 194, 41, 0.12);
  border-bottom: 1px solid rgba(15, 17, 21, 0.08);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.75rem 0.85rem;
  text-transform: uppercase;
}

.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__table tbody td {
  border-bottom: 1px solid rgba(15, 17, 21, 0.06);
  padding: 0.8rem 0.85rem;
  vertical-align: middle;
}

.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__table tbody tr:last-child td {
  border-bottom: 0;
}

.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__btn {
  align-items: center;
  border: 0;
  border-radius: 50%;
  box-sizing: border-box;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.875rem;
  height: 2.5rem;
  justify-content: center;
  line-height: 1;
  min-height: 2.5rem;
  min-width: 2.5rem;
  padding: 0;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  width: 2.5rem;
}

.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__btn .fa {
  font-size: 0.9375rem;
  line-height: 1;
}

.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__btn--primary {
  background: var(--hk-bc-green, #99c229);
  border-color: var(--hk-bc-green, #99c229);
  color: #fff;
}

.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__btn--primary:hover,
.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__btn--primary:focus-visible {
  background: var(--hk-bc-green-hover, #7da622);
  color: #fff;
}

.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__btn--danger {
  background: #fff;
  border: 1px solid rgba(15, 17, 21, 0.12);
  color: #c0392b;
}

.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__btn--danger:hover,
.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__btn--danger:focus-visible {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.35);
}

.hk-page-account-inner .hk-fm-account-inner .hk-wishlist__empty {
  color: var(--light-dark-color, #727272);
  margin: 0;
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-order__pager {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1rem;
}

@media (max-width: 600px) {
  .hk-page-account-inner .hk-fm-account-inner .hk-account-edit__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hk-page-account-inner .hk-fm-account-inner .hk-account-edit__btn {
    width: 100%;
  }
}

.hk-page-account-inner .hk-fm-account-inner .alert {
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.hk-fm-account-table-wrap {
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.hk-fm-account-table {
  background: #fff;
  border: 1px solid rgba(15, 17, 21, 0.08);
  border-collapse: separate;
  border-radius: 1rem;
  border-spacing: 0;
  font-family: var(--body-font, "Open Sans", sans-serif);
  font-size: 0.875rem;
  margin: 0;
  overflow: hidden;
  width: 100%;
}

.hk-fm-account-table thead td,
.hk-fm-account-table thead th {
  background: rgba(153, 194, 41, 0.1);
  border-bottom: 1px solid rgba(15, 17, 21, 0.08);
  color: var(--dark-color, #222);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  text-transform: uppercase;
}

.hk-fm-account-table tbody td {
  border-bottom: 1px solid rgba(15, 17, 21, 0.06);
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

.hk-fm-account-table tbody tr:last-child td {
  border-bottom: 0;
}

.hk-fm-account-table .btn {
  border-radius: 999px;
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
}

.hk-fm-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.hk-fm-account-empty {
  color: var(--light-dark-color, #727272);
  font-size: 0.9375rem;
  margin: 0 0 1rem;
}

.hk-page-account-inner .hk-fm-account-inner .hk-plp-pagination {
  margin: 0;
}

.hk-page-account-inner .hk-fm-account-inner .hk-plp-pagination__pages {
  text-align: left;
}

.hk-page-account-inner .hk-fm-account-inner .hk-account-order__pager-right {
  color: var(--light-dark-color, #727272);
  font-size: 0.8125rem;
}

.hk-page-account-inner .hk-fm-account-inner .pagination,
.hk-page-account-inner .hk-fm-account-inner .hk-pagination {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hk-page-account-inner .hk-fm-account-inner .pagination > li,
.hk-page-account-inner .hk-fm-account-inner .hk-pagination > li {
  display: flex;
  float: none;
}

.hk-page-account-inner .hk-fm-account-inner .pagination > li > a,
.hk-page-account-inner .hk-fm-account-inner .pagination > li > span,
.hk-page-account-inner .hk-fm-account-inner .hk-pagination > li > a,
.hk-page-account-inner .hk-fm-account-inner .hk-pagination > li > span {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 17, 21, 0.1);
  border-radius: 999px;
  box-sizing: border-box;
  color: var(--dark-color, #222);
  display: inline-flex;
  font-family: var(--body-font, "Open Sans", sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  justify-content: center;
  line-height: 1.2;
  min-height: 2.25rem;
  min-width: 2.25rem;
  padding: 0.35rem 0.65rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hk-page-account-inner .hk-fm-account-inner .pagination > li > a:hover,
.hk-page-account-inner .hk-fm-account-inner .pagination > li > a:focus-visible,
.hk-page-account-inner .hk-fm-account-inner .hk-pagination > li > a:hover,
.hk-page-account-inner .hk-fm-account-inner .hk-pagination > li > a:focus-visible {
  background: rgba(153, 194, 41, 0.1);
  border-color: rgba(153, 194, 41, 0.45);
  color: var(--dark-color, #222);
}

.hk-page-account-inner .hk-fm-account-inner .pagination > .active > span,
.hk-page-account-inner .hk-fm-account-inner .hk-pagination > .active > span {
  background: var(--hk-bc-green, #99c229);
  border-color: var(--hk-bc-green, #99c229);
  color: #fff;
}

.hk-page-account-inner .hk-fm-account-inner .hk-pagination__ctrl > a {
  font-size: 1rem;
  letter-spacing: 0;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

@media (max-width: 760px) {
  .hk-page-account-inner .hk-fm-account-inner .hk-plp-pagination .pagination > li.hk-plp-pagination__page--hidden {
    display: none !important;
  }
}

.hk-page-account-inner .hk-fm-account-inner .buttons {
  margin-top: 1rem;
}

.hk-page-account-inner .hk-fm-account-inner .buttons .btn-primary {
  background: var(--hk-bc-green, #99c229);
  border-color: var(--hk-bc-green, #99c229);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
}

.hk-page-account-inner .hk-fm-account-inner .buttons .btn-primary:hover,
.hk-page-account-inner .hk-fm-account-inner .buttons .btn-primary:focus {
  background: var(--hk-bc-green-hover, #7da622);
  border-color: var(--hk-bc-green-hover, #7da622);
}

.hk-page-account-inner .hk-fm-account-inner .table-responsive {
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.hk-page-account-inner .hk-fm-account-inner .table.table-bordered {
  background: #fff;
  border: 1px solid rgba(15, 17, 21, 0.08);
  border-collapse: separate;
  border-radius: 1rem;
  border-spacing: 0;
  overflow: hidden;
}

.hk-page-account-inner .hk-fm-account-inner .table.table-bordered > thead > tr > td,
.hk-page-account-inner .hk-fm-account-inner .table.table-bordered > thead > tr > th {
  background: rgba(153, 194, 41, 0.1);
  border-bottom: 1px solid rgba(15, 17, 21, 0.08);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hk-page-account-inner .hk-fm-account-inner .table.table-bordered > tbody > tr > td {
  border-color: rgba(15, 17, 21, 0.06);
  font-size: 0.875rem;
  vertical-align: middle;
}

.hk-page-account-inner .hk-fm-account-inner h2 {
  font-family: var(--heading-font, "Nunito", sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

/* —— Order detail (account/order/info) —— */
.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-fm-order-detail__section {
  border-top: 1px solid rgba(15, 17, 21, 0.08);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-fm-order-detail__section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__card-title,
.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info h3.hk-account-order-info__card-title {
  color: var(--dark-color, #222);
  font-family: var(--heading-font, "Nunito", sans-serif);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__address-title {
  color: var(--light-dark-color, #727272);
  font-family: var(--body-font, "Open Sans", sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__summary {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__line {
  align-items: baseline;
  display: grid;
  gap: 0.2rem 0.75rem;
  grid-template-columns: minmax(7.25rem, 38%) 1fr;
  margin: 0 0 0.6rem;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__line:last-child {
  margin-bottom: 0;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__label {
  color: var(--light-dark-color, #727272);
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__value {
  color: var(--dark-color, #222);
  font-size: 0.875rem;
  line-height: 1.45;
  margin: 0;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__address-body {
  background: rgba(153, 194, 41, 0.07);
  border: 1px solid rgba(153, 194, 41, 0.2);
  border-radius: 0.75rem;
  color: var(--dark-color, #222);
  font-size: 0.875rem;
  line-height: 1.55;
  padding: 1rem 1.15rem;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__comment {
  color: var(--dark-color, #222);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__option {
  color: var(--light-dark-color, #727272);
  font-size: 0.8125rem;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-fm-order-detail__section--products .hk-wishlist__table-wrap {
  margin: 0;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-wishlist__table tfoot .hk-account-order-info__total-row td {
  background: rgba(153, 194, 41, 0.08);
  border-bottom: 0;
  border-top: 1px solid rgba(15, 17, 21, 0.1);
  padding-bottom: 0.85rem;
  padding-top: 0.85rem;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__total-label,
.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__total-value,
.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__col-qty,
.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-wishlist__cell-price {
  text-align: right;
}

.hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__total-value {
  color: var(--dark-color, #222);
  font-size: 1rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__summary {
    grid-template-columns: 1fr;
  }

  .hk-page-account-inner .hk-fm-account-inner.hk-account-order-info .hk-account-order-info__line {
    grid-template-columns: 1fr;
  }
}
