/* =========================================================
   HARMONIA TEA — MY ACCOUNT
   ========================================================= */

:root {
  --ht-account-bg: #f7f4ea;
  --ht-account-white: #ffffff;
  --ht-account-night: #000410;
  --ht-account-gold: #ffd28e;

  --ht-account-text: #000410;
  --ht-account-muted: rgba(0, 4, 16, 0.62);

  --ht-account-border: rgba(0, 4, 16, 0.15);
}


/* =========================================================
   FULL PAGE
   ========================================================= */

body.woocommerce-account .site-content,
body.woocommerce-account .site-main,
body.woocommerce-account article.page,
body.woocommerce-account .page-content,
body.woocommerce-account .entry-content {

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  background: var(--ht-account-bg) !important;

  border-radius: 0 !important;
}


body.woocommerce-account .woocommerce {

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
}


/* =========================================================
   NASCONDI NAVIGAZIONE WOO
   ========================================================= */

body.woocommerce-account
.woocommerce-MyAccount-navigation {

  display: none !important;

}


body.woocommerce-account
.woocommerce-MyAccount-content {

  float: none !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

}


/* =========================================================
   DASHBOARD
   ========================================================= */

.ht-account-dashboard {

  width: 100%;

  min-height: calc(100vh - 140px);

  padding:
    64px
    clamp(32px, 4vw, 72px)
    90px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    360px;

  gap: clamp(48px, 6vw, 100px);

  align-items: start;

  background: var(--ht-account-bg);

}


/* =========================================================
   MAIN
   ========================================================= */

.ht-account-main {

  width: 100%;

  margin: 0;
  padding: 0;

  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

}


/* =========================================================
   HERO
   ========================================================= */

.ht-account-hero {

  margin: 0 0 48px;

  text-align: left;

}


.ht-account-title {

  margin: 0 !important;

  color: var(--ht-account-night) !important;

  font-size: clamp(34px, 3vw, 48px) !important;

  font-weight: 800 !important;

  line-height: 1.05 !important;

  letter-spacing: -0.035em !important;

  text-align: left !important;

}


.ht-account-subtitle {

  max-width: 620px;

  margin: 12px 0 0 !important;

  color: var(--ht-account-muted) !important;

  font-size: 15px !important;

  line-height: 1.55 !important;

  text-align: left !important;

}


/* =========================================================
   SECTION
   ========================================================= */

.ht-account-section {

  width: 100%;

}


.ht-account-section + .ht-account-section {

  margin-top: 46px;

}


.ht-account-section-title {

  margin: 0 0 18px !important;

  color: var(--ht-account-night) !important;

  font-size: 20px !important;

  font-weight: 800 !important;

  line-height: 1.2 !important;

  text-align: left !important;

}


/* =========================================================
   CARD GRID
   ========================================================= */

.ht-account-card-grid {

  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;

}


/* =========================================================
   CARDS
   ========================================================= */

body.woocommerce-account
a.ht-account-card {

  position: relative;

  z-index: 2;

  min-height: 170px;

  padding: 22px;

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  justify-content: flex-start;

  background: #ffffff !important;

  border:
    1px solid
    var(--ht-account-border) !important;

  border-radius: 16px;

  color: var(--ht-account-night) !important;

  text-align: left !important;

  text-decoration: none !important;

  box-shadow: none;

  cursor: pointer;

  pointer-events: auto !important;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;

}


body.woocommerce-account
a.ht-account-card:hover {

  transform: translateY(-2px);

  border-color:
    rgba(0, 4, 16, 0.3) !important;

  box-shadow:
    0 14px 28px
    rgba(0, 4, 16, 0.07);

  color: var(--ht-account-night) !important;

}


/* =========================================================
   CARD ICON
   ========================================================= */

.ht-account-card-icon {

  width: 28px;

  height: 28px;

  margin-bottom: 20px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--ht-account-night);

}


.ht-account-card-icon svg {

  width: 26px;

  height: 26px;

  display: block;

}


/* =========================================================
   CARD TITLE
   ========================================================= */

body.woocommerce-account
.ht-account-card h3 {

  margin: 0 0 8px !important;

  color: var(--ht-account-night) !important;

  font-size: 16px !important;

  font-weight: 800 !important;

  line-height: 1.25 !important;

  text-align: left !important;

}


/* =========================================================
   CARD DESCRIPTION
   ========================================================= */

body.woocommerce-account
.ht-account-card p {

  margin: 0 !important;

  color: var(--ht-account-muted) !important;

  font-size: 13px !important;

  line-height: 1.45 !important;

  text-align: left !important;

}


/* =========================================================
   SIDEBAR
   ========================================================= */

.ht-account-sidebar {

  width: 100%;

  margin: 0;

}


/* =========================================================
   SIDEBAR HEADER / LOGOUT
   ========================================================= */

.ht-account-sidebar-header {

  width: 100%;

  margin: 0 0 54px;

  display: flex;

  justify-content: flex-end;

}


/* =========================================================
   LOGOUT BUTTON
   ========================================================= */

body.woocommerce-account
a.ht-account-logout {

  min-height: 48px;

  padding: 0 22px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  background: var(--ht-account-night) !important;

  border:
    1px solid
    var(--ht-account-night) !important;

  border-radius: 999px;

  color: var(--ht-account-gold) !important;

  font-size: 13px !important;

  font-weight: 800 !important;

  line-height: 1 !important;

  text-decoration: none !important;

}


body.woocommerce-account
a.ht-account-logout svg {

  width: 19px;

  height: 19px;

  color: currentColor;

}


body.woocommerce-account
a.ht-account-logout:hover {

  background: var(--ht-account-gold) !important;

  color: var(--ht-account-night) !important;

}


/* =========================================================
   PROFILE CARD
   ========================================================= */

.ht-account-profile-card {

  width: 100%;

  max-width: 330px;

  margin:
    0
    auto;

  padding:
    30px
    24px;

  background: #ffffff;

  border:
    1px solid
    var(--ht-account-border);

  border-radius: 18px;

  text-align: center;

  box-shadow: none;

}


/* =========================================================
   AVATAR
   ========================================================= */

.ht-account-avatar {

  margin: 0 0 18px;

  display: flex;

  justify-content: center;

}


.ht-account-avatar img {

  width: 96px !important;

  height: 96px !important;

  display: block;

  border-radius: 50%;

  object-fit: cover;

}


/* =========================================================
   PROFILE NAME
   ========================================================= */

.ht-account-name {

  margin: 0 !important;

  color: var(--ht-account-night) !important;

  font-size: 25px !important;

  font-weight: 800 !important;

  line-height: 1.15 !important;

  text-align: center !important;

}


.ht-account-member-since {

  margin:
    8px
    0
    0 !important;

  color:
    var(--ht-account-muted) !important;

  font-size: 12px !important;

  line-height: 1.5 !important;

  text-align: center !important;

}


/* =========================================================
   IMPORTANT:
   evita overlay/elementi Woo sopra le card
   ========================================================= */

.ht-account-dashboard a {

  pointer-events: auto !important;

}


.ht-account-main,
.ht-account-section,
.ht-account-card-grid {

  position: relative;

  z-index: 1;

}


/* =========================================================
   OTHER MY ACCOUNT ENDPOINTS
   ========================================================= */

body.woocommerce-account
.woocommerce-MyAccount-content
> :not(.ht-account-dashboard) {

  width:
    calc(100% - 128px);

  max-width: 1400px;

  margin:
    48px
    auto
    80px;

  padding: 32px;

  background: #ffffff;

  border:
    1px solid
    var(--ht-account-border);

  border-radius: 22px;

}


/* =========================================================
   WOO BUTTONS
   ========================================================= */

body.woocommerce-account
.woocommerce button.button,

body.woocommerce-account
.woocommerce a.button,

body.woocommerce-account
.woocommerce input.button {

  min-height: 46px;

  padding:
    12px
    20px;

  border: 0 !important;

  border-radius:
    999px !important;

  background:
    var(--ht-account-night) !important;

  color:
    var(--ht-account-gold) !important;

  font-weight:
    800 !important;

}


body.woocommerce-account
.woocommerce button.button:hover,

body.woocommerce-account
.woocommerce a.button:hover,

body.woocommerce-account
.woocommerce input.button:hover {

  background:
    var(--ht-account-gold) !important;

  color:
    var(--ht-account-night) !important;

}


/* =========================================================
   TABLET
   ========================================================= */

@media
(max-width: 1200px) {

  .ht-account-dashboard {

    grid-template-columns:
      minmax(0, 1fr)
      300px;

    gap: 40px;

    padding:
      48px
      32px
      70px;

  }


  .ht-account-card-grid {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

  }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media
(max-width: 900px) {

  .ht-account-dashboard {

    grid-template-columns:
      1fr;

    padding:
      36px
      20px
      60px;

  }


  .ht-account-sidebar {

    display: flex;

    flex-direction: column;

  }


  .ht-account-sidebar-header {

    margin-bottom: 24px;

    order: 1;

  }


  .ht-account-profile-card {

    order: 2;

    max-width: none;

  }


  body.woocommerce-account
  .woocommerce-MyAccount-content
  > :not(.ht-account-dashboard) {

    width:
      calc(100% - 40px);

  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media
(max-width: 600px) {

  .ht-account-dashboard {

    padding:
      28px
      16px
      48px;

    gap: 32px;

  }


  .ht-account-title {

    font-size:
      34px !important;

  }


  .ht-account-card-grid {

    grid-template-columns: 1fr;

  }


  body.woocommerce-account
  a.ht-account-card {

    min-height: 150px;

    padding: 20px;

  }


  .ht-account-sidebar-header {

    justify-content: stretch;

  }


  body.woocommerce-account
  a.ht-account-logout {

    width: 100%;

  }


  .ht-account-profile-card {

    width: 100%;

  }


  body.woocommerce-account
  .woocommerce-MyAccount-content
  > :not(.ht-account-dashboard) {

    width:
      calc(100% - 32px);

    margin:
      24px
      auto
      48px;

    padding: 20px;

  }

}

/* =========================================================
   HARMONIA ACCOUNT — INTERNAL PAGES
   Layout condiviso: sidebar premium + contenuto
   ========================================================= */

/* =========================================================
   SHARED TWO-COLUMN LAYOUT
   ========================================================= */

.ht-account-inner {
  width: 100%;
  min-height: calc(100vh - 140px);

  display: grid;
  grid-template-columns: minmax(300px, 32%) minmax(0, 68%);
  align-items: stretch;

  background: #ffffff;
}

/* =========================================================
   LEFT COLUMN
   ========================================================= */

.ht-account-inner-sidebar {
  min-height: 100%;

  padding: 58px clamp(28px, 4vw, 84px) 72px;

  background: #f7f4ea;
}

/* Riattiva la navigazione solo nelle pagine interne */
body.woocommerce-account
.ht-account-inner
.woocommerce-MyAccount-navigation {
  display: block !important;
  float: none !important;

  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* =========================================================
   USER HEADER
   ========================================================= */

.ht-account-inner-user {
  margin: 0 0 30px;
}

.ht-account-inner-user h2 {
  margin: 0 0 18px !important;

  color: #000410 !important;

  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;

  text-align: left !important;
}

body.woocommerce-account
a.ht-account-inner-logout {
  min-height: 48px;

  padding: 0 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  background: #000410 !important;
  color: #ffd28e !important;

  border: 1px solid #000410 !important;
  border-radius: 999px !important;

  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;

  text-decoration: none !important;
  text-transform: none !important;

  box-shadow: none !important;
}

body.woocommerce-account
a.ht-account-inner-logout:hover {
  background: #ffd28e !important;
  color: #000410 !important;
}

.ht-account-inner-logout svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* =========================================================
   SIDEBAR MENU — RESET COMPLETO STILI WOO / TEMA
   ========================================================= */

/* Supporta sia il markup custom Harmonia sia l'UL Woo standard */
body.woocommerce-account
.ht-account-inner-sidebar
.woocommerce-MyAccount-navigation ul,
body.woocommerce-account
.ht-account-inner-sidebar
.ht-account-inner-menu {
  width: 100% !important;

  margin: 28px 0 0 !important;
  padding: 0 !important;

  display: block !important;

  list-style: none !important;

  background: transparent !important;

  border: 0 !important;
  border-top: 1px solid rgba(0, 4, 16, 0.18) !important;
  border-radius: 0 !important;

  box-shadow: none !important;
}

body.woocommerce-account
.ht-account-inner-sidebar
.woocommerce-MyAccount-navigation ul li,
body.woocommerce-account
.ht-account-inner-sidebar
.ht-account-inner-menu li {
  width: 100% !important;

  margin: 0 !important;
  padding: 0 !important;

  display: block !important;

  background: transparent !important;

  border: 0 !important;
  border-bottom: 1px solid rgba(0, 4, 16, 0.18) !important;
  border-radius: 0 !important;

  box-shadow: none !important;
}

/* Questo selettore volutamente forte elimina definitivamente i pill button */
body.woocommerce-account
.ht-account-inner-sidebar
nav.woocommerce-MyAccount-navigation
ul
li
a,
body.woocommerce-account
.ht-account-inner-sidebar
.ht-account-inner-menu
li
a {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 56px !important;
  height: auto !important;

  margin: 0 !important;
  padding: 0 8px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;

  gap: 14px !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  color: #000410 !important;

  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;

  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;

  text-align: left !important;
  text-decoration: none !important;
  text-transform: none !important;

  box-shadow: none !important;
  text-shadow: none !important;

  transform: none !important;

  transition:
    background-color 0.2s ease,
    padding-left 0.2s ease !important;
}

body.woocommerce-account
.ht-account-inner-sidebar
nav.woocommerce-MyAccount-navigation
ul
li
a:hover,
body.woocommerce-account
.ht-account-inner-sidebar
.ht-account-inner-menu
li
a:hover {
  padding-left: 12px !important;

  background: rgba(255, 255, 255, 0.42) !important;
  color: #000410 !important;

  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Voce attiva: solo peso tipografico, come Lush */
body.woocommerce-account
.ht-account-inner-sidebar
.woocommerce-MyAccount-navigation
li.is-active > a,
body.woocommerce-account
.ht-account-inner-sidebar
.woocommerce-MyAccount-navigation
li[class*="--edit-account"].is-active > a,
body.woocommerce-account
.ht-account-inner-sidebar
.ht-account-inner-menu
li.is-active > a {
  background: transparent !important;
  color: #000410 !important;

  font-weight: 800 !important;

  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Neutralizza pseudo-elementi provenienti dal tema */
body.woocommerce-account
.ht-account-inner-sidebar
.woocommerce-MyAccount-navigation
a::before,
body.woocommerce-account
.ht-account-inner-sidebar
.woocommerce-MyAccount-navigation
a::after,
body.woocommerce-account
.ht-account-inner-sidebar
.ht-account-inner-menu
a::before,
body.woocommerce-account
.ht-account-inner-sidebar
.ht-account-inner-menu
a::after {
  background: transparent !important;
  box-shadow: none !important;
}

/* =========================================================
   MENU ICONS
   ========================================================= */

.ht-account-inner-menu-icon {
  width: 24px;
  height: 24px;

  flex: 0 0 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #000410;
}

.ht-account-inner-menu-icon svg {
  width: 22px;
  height: 22px;

  display: block;

  color: currentColor;
}

/* Se navigation.php usa ancora il menu Woo standard, aggiungiamo un'icona minima */
body.woocommerce-account
.ht-account-inner-sidebar
.woocommerce-MyAccount-navigation
li > a:not(:has(.ht-account-inner-menu-icon))::before {
  content: "" !important;

  width: 20px;
  height: 20px;

  flex: 0 0 20px;

  display: block !important;

  border: 1.6px solid currentColor;
  border-radius: 50%;

  background: transparent !important;
}

/* =========================================================
   RIGHT COLUMN
   ========================================================= */

.ht-account-inner-content {
  min-width: 0;

  padding: 58px clamp(42px, 6vw, 100px) 90px;

  background: #ffffff;
}

body.woocommerce-account
.ht-account-inner
.woocommerce-MyAccount-content {
  float: none !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Neutralizza il vecchio box endpoint definito sopra nel file */
body.woocommerce-account
.ht-account-inner
.woocommerce-MyAccount-content
> :not(.ht-account-dashboard) {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;
}

/* =========================================================
   PAGE HEADER
   ========================================================= */

.ht-account-page {
  width: 100%;
  max-width: 760px;

  margin: 0;
}

.ht-account-page-header {
  margin: 0 0 34px;
}

.ht-account-page-header h1 {
  margin: 0 !important;

  color: #000410 !important;

  font-size: clamp(32px, 3vw, 42px) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em !important;

  text-align: left !important;
}

.ht-account-page-header p {
  margin: 12px 0 0 !important;

  color: rgba(0, 4, 16, 0.62) !important;

  font-size: 14px !important;
  line-height: 1.55 !important;

  text-align: left !important;
}

/* =========================================================
   EDIT ACCOUNT FORM
   ========================================================= */

.ht-account-form {
  width: 100%;

  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

  text-align: left !important;
}

.ht-account-form-grid {
  width: 100%;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 16px;
}

body.woocommerce-account
.ht-account-form .form-row {
  width: 100% !important;

  float: none !important;

  margin: 0 0 20px !important;
  padding: 0 !important;

  text-align: left !important;
}

body.woocommerce-account
.ht-account-form label {
  margin: 0 0 8px !important;

  display: block !important;

  color: #000410 !important;

  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;

  text-align: left !important;
}

.ht-account-form .required {
  color: #b42318 !important;
}

/* =========================================================
   INPUT
   ========================================================= */

body.woocommerce-account
.ht-account-form
input.input-text,
body.woocommerce-account
.ht-account-form
input[type="text"],
body.woocommerce-account
.ht-account-form
input[type="email"],
body.woocommerce-account
.ht-account-form
input[type="password"] {
  width: 100% !important;
  min-height: 56px !important;

  margin: 0 !important;
  padding: 0 16px !important;

  background: #ffffff !important;
  color: #000410 !important;

  border: 1px solid rgba(0, 4, 16, 0.34) !important;
  border-radius: 14px !important;

  font-size: 15px !important;
  line-height: 1.3 !important;

  text-align: left !important;

  outline: none !important;
  box-shadow: none !important;
}

body.woocommerce-account
.ht-account-form
input.input-text:focus,
body.woocommerce-account
.ht-account-form
input[type="text"]:focus,
body.woocommerce-account
.ht-account-form
input[type="email"]:focus,
body.woocommerce-account
.ht-account-form
input[type="password"]:focus {
  border-color: #000410 !important;

  box-shadow: 0 0 0 3px rgba(255, 210, 142, 0.30) !important;
}

/* =========================================================
   FIELD HELP
   ========================================================= */

.ht-account-field-help {
  margin-top: 7px;

  display: block;

  color: rgba(0, 4, 16, 0.55) !important;

  font-size: 12px;
  line-height: 1.5;

  text-align: left !important;
}

/* =========================================================
   PASSWORD SECTION
   ========================================================= */

.ht-account-password {
  margin-top: 14px;
  padding-top: 30px;

  background: transparent !important;

  border: 0 !important;
  border-top: 1px solid rgba(0, 4, 16, 0.12) !important;
  border-radius: 0 !important;

  box-shadow: none !important;
}

.ht-account-password-heading {
  margin-bottom: 24px;
}

.ht-account-password-heading h2 {
  margin: 0 !important;

  color: #000410 !important;

  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;

  text-align: left !important;
}

.ht-account-password-heading p {
  margin: 7px 0 0 !important;

  color: rgba(0, 4, 16, 0.58) !important;

  font-size: 13px !important;
  line-height: 1.5 !important;

  text-align: left !important;
}

.ht-account-form fieldset,
.ht-account-form legend {
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;
}

/* =========================================================
   SAVE BUTTON
   ========================================================= */

.ht-account-form-submit {
  margin-top: 30px;
}

body.woocommerce-account
.ht-account-form
button.ht-account-save {
  width: 100% !important;
  min-height: 56px !important;

  margin: 0 !important;
  padding: 12px 20px !important;

  background: #000410 !important;
  color: #ffd28e !important;

  border: 1px solid #000410 !important;
  border-radius: 999px !important;

  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;

  text-transform: none !important;

  box-shadow: none !important;
}

body.woocommerce-account
.ht-account-form
button.ht-account-save:hover {
  background: #ffd28e !important;
  color: #000410 !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .ht-account-inner {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .ht-account-inner-sidebar {
    padding: 42px 24px 60px;
  }

  .ht-account-inner-content {
    padding: 42px 32px 70px;
  }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .ht-account-inner {
    display: block;
  }

  .ht-account-inner-sidebar {
    min-height: auto;

    padding: 26px 16px;
  }

  .ht-account-inner-content {
    padding: 32px 16px 50px;
  }

  .ht-account-inner-user {
    margin-bottom: 0;
  }

  .ht-account-inner-user h2 {
    font-size: 18px !important;
  }

  /* Mobile: menu compatto ma sempre leggibile */
  body.woocommerce-account
  .ht-account-inner-sidebar
  .woocommerce-MyAccount-navigation ul,
  body.woocommerce-account
  .ht-account-inner-sidebar
  .ht-account-inner-menu {
    margin-top: 22px !important;
  }

  body.woocommerce-account
  .ht-account-inner-sidebar
  nav.woocommerce-MyAccount-navigation
  ul
  li
  a,
  body.woocommerce-account
  .ht-account-inner-sidebar
  .ht-account-inner-menu
  li
  a {
    min-height: 52px !important;
  }

  .ht-account-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ht-account-page {
    max-width: none;
  }

}
/* =========================================================
   MY ACCOUNT — OFFSET HEADER FISSO
   ========================================================= */

body.woocommerce-account .ht-account-inner {
  margin-top: var(--ht-fixed-header-stack, 148px) !important;
  min-height: calc(
    100vh - var(--ht-fixed-header-stack, 148px)
  ) !important;
}


/* La dashboard usa già il proprio layout */
body.woocommerce-account .ht-account-dashboard {
  margin-top: var(--ht-fixed-header-stack, 148px);
}


@media (max-width: 992px) {

  body.woocommerce-account .ht-account-inner,
  body.woocommerce-account .ht-account-dashboard {
    margin-top: var(--ht-fixed-header-stack, 126px) !important;
  }

}

body.woocommerce-account .ht-account-inner,
body.woocommerce-account .ht-account-dashboard {
  margin-top:
    var(--ht-fixed-header-stack) !important;
}

body.woocommerce-account .ht-account-inner {
  min-height:
    calc(
      100vh
      -
      var(--ht-fixed-header-stack)
    ) !important;
}

/* =========================================================
   HARMONIA ACCOUNT — ADDRESSES
   ========================================================= */


/* =========================================================
   ADDRESS LIST
   ========================================================= */

.ht-address-page {
  max-width: 880px;
}


.ht-address-grid {
  width: 100%;

  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 18px;
}


/* =========================================================
   ADDRESS CARD
   ========================================================= */

.ht-address-card {
  min-height: 310px;

  padding: 24px;

  display: flex;
  flex-direction: column;

  background: #ffffff;

  border:
    1px solid
    rgba(0, 4, 16, 0.16);

  border-radius: 16px;

  color: #000410;

  text-align: left !important;
}


.ht-address-card-icon {
  width: 30px;
  height: 30px;

  margin: 0 0 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #000410;
}


.ht-address-card-icon svg {
  width: 28px;
  height: 28px;

  display: block;
}


.ht-address-card h2 {
  margin: 0 0 20px !important;

  color: #000410 !important;

  font-size: 18px !important;
  font-weight: 800 !important;

  line-height: 1.25 !important;

  text-align: left !important;
}


.ht-address-card-content {
  flex: 1;

  text-align: left !important;
}


.ht-address-card address {
  margin: 0 !important;

  color:
    rgba(0, 4, 16, 0.72) !important;

  font-size: 14px !important;

  font-style: normal !important;

  line-height: 1.65 !important;

  text-align: left !important;
}


.ht-address-empty {
  margin: 0 !important;

  color:
    rgba(0, 4, 16, 0.55) !important;

  font-size: 14px !important;

  line-height: 1.55 !important;

  text-align: left !important;
}


/* =========================================================
   EDIT LINK
   ========================================================= */

body.woocommerce-account
a.ht-address-edit {
  min-height: 48px;

  margin-top: 26px;
  padding: 0 2px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  border-top:
    1px solid
    rgba(0, 4, 16, 0.10);

  color: #000410 !important;

  font-size: 13px !important;
  font-weight: 800 !important;

  text-align: left !important;

  text-decoration: none !important;
}


body.woocommerce-account
a.ht-address-edit svg {
  width: 18px;
  height: 18px;

  transition:
    transform 0.2s ease;
}


body.woocommerce-account
a.ht-address-edit:hover svg {
  transform:
    translateX(3px);
}


/* =========================================================
   EDIT ADDRESS PAGE
   ========================================================= */

.ht-address-edit-page {
  max-width: 760px;
}


/* back */
body.woocommerce-account
a.ht-account-page-back {
  margin: 0 0 24px;

  display: inline-flex;

  align-items: center;

  gap: 8px;

  color: #000410 !important;

  font-size: 12px !important;
  font-weight: 700 !important;

  line-height: 1 !important;

  text-decoration: none !important;
}


body.woocommerce-account
a.ht-account-page-back:hover {
  color: #000410 !important;

  text-decoration: underline !important;

  text-decoration-color:
    #ffd28e !important;

  text-decoration-thickness:
    2px !important;

  text-underline-offset:
    4px !important;
}


/* =========================================================
   DYNAMIC ADDRESS FORM
   ========================================================= */

.ht-address-form,
.ht-address-form .woocommerce-address-fields,
.ht-address-form
.woocommerce-address-fields__field-wrapper {
  width: 100%;

  margin: 0 !important;

  padding: 0 !important;

  text-align: left !important;
}


/*
 * WooCommerce usa form-row-first / last
 * per costruire alcune righe a 2 colonne.
 */
.ht-address-fields {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  column-gap: 16px;

  align-items: start;
}


/* campi full width */
body.woocommerce-account
.ht-address-fields
.form-row-wide {
  grid-column:
    1 / -1;
}


/* first / last */
body.woocommerce-account
.ht-address-fields
.form-row-first,
body.woocommerce-account
.ht-address-fields
.form-row-last {
  width: 100% !important;

  float: none !important;
}


/* tutti i field */
body.woocommerce-account
.ht-address-form
.form-row {
  width: 100% !important;

  margin:
    0
    0
    20px !important;

  padding: 0 !important;

  text-align: left !important;
}


/* =========================================================
   LABEL
   ========================================================= */

body.woocommerce-account
.ht-address-form
label {
  margin:
    0
    0
    8px !important;

  display: block;

  color: #000410 !important;

  font-size: 13px !important;
  font-weight: 700 !important;

  line-height: 1.3 !important;

  text-align: left !important;
}


body.woocommerce-account
.ht-address-form
.required {
  color: #b42318;
}


/* =========================================================
   INPUT / SELECT / TEXTAREA
   ========================================================= */

body.woocommerce-account
.ht-address-form
input.input-text,

body.woocommerce-account
.ht-address-form
select,

body.woocommerce-account
.ht-address-form
textarea {
  width: 100% !important;

  min-height: 56px !important;

  margin: 0 !important;

  padding:
    0
    16px !important;

  border:
    1px solid
    rgba(0, 4, 16, 0.34) !important;

  border-radius:
    14px !important;

  background:
    #ffffff !important;

  color:
    #000410 !important;

  font-size:
    15px !important;

  text-align:
    left !important;

  box-shadow:
    none !important;

  outline:
    none !important;
}


body.woocommerce-account
.ht-address-form
textarea {
  min-height: 120px !important;

  padding-top:
    14px !important;

  padding-bottom:
    14px !important;
}


/* focus */
body.woocommerce-account
.ht-address-form
input.input-text:focus,

body.woocommerce-account
.ht-address-form
select:focus,

body.woocommerce-account
.ht-address-form
textarea:focus {
  border-color:
    #000410 !important;

  box-shadow:
    0 0 0 3px
    rgba(255, 210, 142, 0.30) !important;
}


/* =========================================================
   SELECT2 — COUNTRY / STATE
   ========================================================= */

body.woocommerce-account
.ht-address-form
.select2-container {
  width: 100% !important;

  text-align: left !important;
}


body.woocommerce-account
.ht-address-form
.select2-container
.select2-selection--single {
  height: 56px !important;

  border:
    1px solid
    rgba(0, 4, 16, 0.34) !important;

  border-radius:
    14px !important;

  background:
    #ffffff !important;

  box-shadow:
    none !important;
}


body.woocommerce-account
.ht-address-form
.select2-container
.select2-selection--single
.select2-selection__rendered {
  height: 54px;

  padding:
    0
    44px
    0
    16px;

  display: flex;

  align-items: center;

  color:
    #000410 !important;

  font-size:
    15px !important;

  line-height:
    normal !important;

  text-align:
    left !important;
}


body.woocommerce-account
.ht-address-form
.select2-container
.select2-selection--single
.select2-selection__arrow {
  top: 50% !important;
  right: 14px !important;

  transform:
    translateY(-50%);
}


/* =========================================================
   SAVE
   ========================================================= */

.ht-address-form
.ht-account-form-submit {
  margin-top: 12px;
}


body.woocommerce-account
.ht-address-form
button.ht-account-save {
  width: 100% !important;

  min-height: 56px !important;

  margin: 0 !important;

  border: 0 !important;

  border-radius:
    999px !important;

  background:
    #000410 !important;

  color:
    #ffd28e !important;

  font-size:
    14px !important;

  font-weight:
    800 !important;

  box-shadow:
    none !important;
}


body.woocommerce-account
.ht-address-form
button.ht-account-save:hover {
  background:
    #ffd28e !important;

  color:
    #000410 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .ht-address-grid {
    grid-template-columns:
      1fr;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .ht-address-page,
  .ht-address-edit-page {
    max-width: none;
  }


  .ht-address-fields {
    grid-template-columns:
      1fr;

    column-gap: 0;
  }


  body.woocommerce-account
  .ht-address-fields
  .form-row-first,

  body.woocommerce-account
  .ht-address-fields
  .form-row-last,

  body.woocommerce-account
  .ht-address-fields
  .form-row-wide {
    grid-column:
      1;
  }


  .ht-address-card {
    min-height: auto;
  }

}

/* =========================================================
   HARMONIA ACCOUNT — ORDERS
   ========================================================= */

.ht-orders-page {
  max-width: 900px;
}


/* =========================================================
   ORDER LIST
   ========================================================= */

.ht-orders-list {
  width: 100%;

  display: grid;

  gap: 16px;
}


/* =========================================================
   ORDER CARD
   ========================================================= */

.ht-order-card {
  overflow: hidden;

  background: #ffffff;

  border:
    1px solid
    rgba(0, 4, 16, 0.15);

  border-radius: 16px;
}


.ht-order-card-main {
  padding: 24px;
}


.ht-order-card-icon {
  width: 30px;
  height: 30px;

  margin-bottom: 18px;

  color: #000410;
}


.ht-order-card-icon svg {
  width: 28px;
  height: 28px;

  display: block;
}


/* HEADER */

.ht-order-card-heading {
  margin-bottom: 24px;

  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}


.ht-order-label {
  margin-bottom: 5px;

  display: block;

  color:
    rgba(0, 4, 16, .48);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: .12em;

  text-transform: uppercase;
}


.ht-order-card h2 {
  margin: 0 !important;

  color: #000410 !important;

  font-size: 22px !important;

  font-weight: 800 !important;

  line-height: 1.15 !important;

  text-align: left !important;
}


/* =========================================================
   STATUS
   ========================================================= */

.ht-order-status {
  min-height: 30px;

  padding: 0 12px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 999px;

  background:
    rgba(0, 4, 16, .07);

  color: #000410;

  font-size: 11px;

  font-weight: 800;

  line-height: 1;
}


/* completato */
.ht-order-status--completed {
  background: #e7f5e9;

  color: #266b35;
}


/* processing */
.ht-order-status--processing {
  background: #fff4db;

  color: #75540b;
}


/* cancelled / failed */
.ht-order-status--cancelled,
.ht-order-status--failed {
  background: #fff0ee;

  color: #9f2419;
}


/* on hold */
.ht-order-status--on-hold {
  background: #eef2f6;

  color: #455468;
}


/* =========================================================
   META
   ========================================================= */

.ht-order-meta {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;
}


.ht-order-meta-item {
  display: grid;

  gap: 5px;

  text-align: left;
}


.ht-order-meta-item span {
  color:
    rgba(0, 4, 16, .5);

  font-size: 11px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: .08em;
}


.ht-order-meta-item strong {
  color: #000410;

  font-size: 14px;

  font-weight: 700;

  line-height: 1.4;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.ht-order-card-actions {
  padding: 0 24px;

  border-top:
    1px solid
    rgba(0, 4, 16, .1);
}


body.woocommerce-account
a.ht-order-view {
  min-height: 56px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 14px;

  color: #000410 !important;

  font-size: 13px !important;

  font-weight: 800 !important;

  text-decoration: none !important;
}


body.woocommerce-account
a.ht-order-view svg {
  width: 19px;
  height: 19px;

  transition:
    transform .2s ease;
}


body.woocommerce-account
a.ht-order-view:hover svg {
  transform:
    translateX(3px);
}


.ht-order-secondary-actions {
  padding-bottom: 18px;

  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}


body.woocommerce-account
a.ht-order-secondary-action {
  min-height: 36px;

  padding: 0 14px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(0, 4, 16, .2);

  border-radius: 999px;

  background: transparent !important;

  color: #000410 !important;

  font-size: 11px !important;

  font-weight: 700 !important;

  text-decoration: none !important;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.ht-orders-pagination {
  margin-top: 24px;

  display: flex;

  justify-content: space-between;

  gap: 12px;
}


body.woocommerce-account
a.ht-orders-pagination-button {
  min-height: 46px;

  padding: 0 18px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(0,4,16,.18);

  border-radius: 999px;

  color: #000410 !important;

  font-size: 12px !important;

  font-weight: 800 !important;

  text-decoration: none !important;
}


/* =========================================================
   EMPTY ORDERS
   ========================================================= */

.ht-orders-empty {
  padding: 50px 30px;

  background: #ffffff;

  border:
    1px solid
    rgba(0,4,16,.14);

  border-radius: 16px;

  text-align: center;
}


.ht-orders-empty-icon {
  width: 42px;
  height: 42px;

  margin:
    0
    auto
    20px;
}


.ht-orders-empty-icon svg {
  width: 100%;
  height: 100%;
}


.ht-orders-empty h2 {
  margin:
    0
    0
    9px !important;

  color: #000410 !important;

  font-size: 22px !important;

  text-align: center !important;
}


.ht-orders-empty p {
  margin:
    0
    0
    24px !important;

  color:
    rgba(0,4,16,.6) !important;

  text-align: center !important;
}


body.woocommerce-account
a.ht-orders-shop {
  min-height: 50px;

  padding: 0 22px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: #000410;

  color: #ffd28e !important;

  font-size: 13px;

  font-weight: 800;

  text-decoration: none !important;
}

/* =========================================================
   SINGLE ORDER
   ========================================================= */

.ht-order-detail-page {
  max-width: 900px;
}


/* HEADER */

.ht-order-detail-header {
  margin-bottom: 32px;
}


.ht-order-detail-title-row {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 24px;
}


.ht-order-detail-title-row h1 {
  margin: 0 !important;

  text-align: left !important;
}


.ht-order-detail-summary {
  margin:
    14px
    0
    0 !important;

  color:
    rgba(0,4,16,.62) !important;

  font-size: 14px !important;

  line-height: 1.5 !important;

  text-align: left !important;
}


/* =========================================================
   ORDER NOTES
   ========================================================= */

.ht-order-updates {
  margin-bottom: 32px;
}


.ht-order-updates h2 {
  margin:
    0
    0
    16px !important;

  color: #000410 !important;

  font-size: 20px !important;

  font-weight: 800 !important;

  text-align: left !important;
}


.ht-order-updates-list {
  display: grid;

  gap: 10px;
}


.ht-order-update {
  padding: 17px 18px;

  background: #f7f4ea;

  border-radius: 12px;

  text-align: left;
}


.ht-order-update time {
  margin-bottom: 6px;

  display: block;

  color:
    rgba(0,4,16,.5);

  font-size: 11px;

  font-weight: 700;
}


.ht-order-update p {
  margin: 0 !important;

  color: #000410 !important;

  font-size: 13px !important;

  line-height: 1.5 !important;

  text-align: left !important;
}


/* =========================================================
   NATIVE WOO ORDER DETAILS
   ========================================================= */

.ht-order-native-details {
  width: 100%;

  text-align: left !important;
}


/*
 * Titolo "Dettagli ordine"
 */
body.woocommerce-account
.ht-order-native-details
.woocommerce-order-details__title,

body.woocommerce-account
.ht-order-native-details
.woocommerce-column__title {

  margin:
    32px
    0
    16px !important;

  color: #000410 !important;

  font-size: 20px !important;

  font-weight: 800 !important;

  line-height: 1.2 !important;

  text-align: left !important;
}


/* =========================================================
   ORDER DETAILS TABLE
   ========================================================= */

body.woocommerce-account
.ht-order-native-details
table.shop_table {
  width: 100% !important;

  margin: 0 !important;

  overflow: hidden;

  border:
    1px solid
    rgba(0,4,16,.14) !important;

  border-radius: 14px !important;

  background: #ffffff !important;
}


body.woocommerce-account
.ht-order-native-details
table.shop_table th,

body.woocommerce-account
.ht-order-native-details
table.shop_table td {

  padding:
    15px
    16px !important;

  border-color:
    rgba(0,4,16,.08) !important;

  color: #000410 !important;

  font-size: 13px !important;

  text-align: left !important;
}


/* product links */
body.woocommerce-account
.ht-order-native-details
table.shop_table
a {
  color: #000410 !important;

  font-weight: 700 !important;

  text-decoration:
    underline !important;

  text-decoration-color:
    #ffd28e !important;

  text-decoration-thickness:
    2px !important;

  text-underline-offset:
    3px !important;
}


/* totals */
body.woocommerce-account
.ht-order-native-details
table.shop_table
tfoot th {
  font-weight: 700 !important;
}


body.woocommerce-account
.ht-order-native-details
table.shop_table
tfoot tr:last-child th,

body.woocommerce-account
.ht-order-native-details
table.shop_table
tfoot tr:last-child td {
  font-size: 15px !important;

  font-weight: 800 !important;
}


/* =========================================================
   BILLING / SHIPPING ADDRESSES
   ========================================================= */

body.woocommerce-account
.ht-order-native-details
.woocommerce-columns--addresses {
  margin-top: 30px;

  display: grid !important;

  grid-template-columns:
    repeat(2, minmax(0,1fr));

  gap: 16px;
}


body.woocommerce-account
.ht-order-native-details
.woocommerce-column--billing-address,

body.woocommerce-account
.ht-order-native-details
.woocommerce-column--shipping-address {

  float: none !important;

  width: 100% !important;

  padding: 22px;

  background: #ffffff;

  border:
    1px solid
    rgba(0,4,16,.14);

  border-radius: 14px;

  text-align: left !important;
}


body.woocommerce-account
.ht-order-native-details
address {
  color:
    rgba(0,4,16,.72) !important;

  font-size: 13px !important;

  font-style: normal !important;

  line-height: 1.65 !important;

  text-align: left !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {

  .ht-orders-page,
  .ht-order-detail-page {
    max-width: none;
  }


  .ht-order-card-heading,
  .ht-order-detail-title-row {
    flex-direction: column;
  }


  .ht-order-meta {
    grid-template-columns: 1fr;

    gap: 12px;
  }


  .ht-order-meta-item {
    padding-bottom: 10px;

    border-bottom:
      1px solid
      rgba(0,4,16,.08);
  }


  body.woocommerce-account
  .ht-order-native-details
  .woocommerce-columns--addresses {
    grid-template-columns: 1fr;
  }


  .ht-orders-pagination {
    flex-direction: column;
  }


  body.woocommerce-account
  a.ht-orders-pagination-button {
    width: 100%;
  }

}