/* Страницы контента и «Мой аккаунт» (WooCommerce / MEMBERLUX) */

.page-hero--compact {
  padding: 6.2rem 1.5rem 3.2rem;
}

.page-content {
  padding: 3.5rem 0 5rem;
  flex: 1 0 auto;
}

.page-content__body {
  max-width: none;
}

.page-content__body > * + * {
  margin-top: 1.15rem;
}

.page-content__body h2,
.page-content__body h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2rem;
}

.page-content__body a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.page-content__body ul,
.page-content__body ol {
  padding-left: 1.2rem;
  list-style: disc;
}

.page-content__body ol {
  list-style: decimal;
}

/* ——— Аккаунт ——— */

.page-content--account {
  padding-top: 2.5rem;
}

.account-shell {
  width: 100%;
}

.account-shell--login {
  max-width: 28rem;
  margin: 0 auto;
}

.account-shell .woocommerce {
  width: 100%;
}

.account-shell .woocommerce h2,
.account-shell .woocommerce .woocommerce-MyAccount-content > h2,
.account-shell .woocommerce .woocommerce-MyAccount-content > h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1.4rem;
  text-align: center;
}

.account-shell--dashboard .woocommerce h2,
.account-shell--dashboard .woocommerce .woocommerce-MyAccount-content > h2,
.account-shell--dashboard .woocommerce .woocommerce-MyAccount-content > h3 {
  text-align: left;
}

.account-shell .woocommerce-form-login,
.account-shell .woocommerce-form-register,
.account-shell .woocommerce-ResetPassword,
.account-shell .woocommerce-EditAccountForm,
.account-shell .woocommerce-address-fields {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.account-shell .woocommerce form .form-row,
.account-shell .woocommerce-form-row {
  margin: 0;
  padding: 0;
  width: 100%;
}

.account-shell .woocommerce form .form-row-first,
.account-shell .woocommerce form .form-row-last {
  width: 100%;
  float: none;
}

.account-shell .woocommerce form label,
.account-shell .woocommerce-form-row label {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.account-shell .woocommerce form .required,
.account-shell .required {
  color: var(--ink-soft);
  text-decoration: none;
  border: 0;
}

.account-shell .woocommerce form .input-text,
.account-shell .woocommerce form input[type="text"],
.account-shell .woocommerce form input[type="email"],
.account-shell .woocommerce form input[type="password"],
.account-shell .woocommerce form input[type="tel"],
.account-shell .woocommerce form input[type="number"],
.account-shell .woocommerce form select,
.account-shell .woocommerce form textarea {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.account-shell .woocommerce form .input-text:focus,
.account-shell .woocommerce form input:focus,
.account-shell .woocommerce form select:focus,
.account-shell .woocommerce form textarea:focus {
  border-color: var(--ink);
}

.account-shell .password-input {
  display: block;
  position: relative;
  width: 100%;
}

.account-shell .password-input .show-password-input {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.account-shell .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
  cursor: pointer;
}

.account-shell .woocommerce-form-login__rememberme span {
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.account-shell .woocommerce-form-login .form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.2rem;
}

.account-shell .woocommerce-form-login__submit {
  margin-left: auto;
}

.account-shell .woocommerce button.button,
.account-shell .woocommerce a.button,
.account-shell .woocommerce input.button,
.account-shell .woocommerce #place_order,
.account-shell .woocommerce .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  margin: 0;
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.account-shell .woocommerce button.button:hover,
.account-shell .woocommerce a.button:hover,
.account-shell .woocommerce input.button:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-1px);
}

.account-shell .woocommerce-LostPassword,
.account-shell .lost_password {
  margin: 0.4rem 0 0;
  text-align: center;
}

.account-shell .woocommerce-LostPassword a,
.account-shell .lost_password a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.account-shell .woocommerce-LostPassword a:hover,
.account-shell .lost_password a:hover {
  color: var(--ink);
}

.account-shell .woocommerce-notices-wrapper {
  margin-bottom: 1.2rem;
}

.account-shell .woocommerce-message,
.account-shell .woocommerce-info,
.account-shell .woocommerce-error {
  margin: 0 0 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  list-style: none;
  font-size: 1rem;
}

.account-shell .woocommerce-error {
  border-color: rgba(138, 43, 43, 0.35);
  color: #8a2b2b;
}

.account-shell .woocommerce-message {
  border-color: rgba(31, 92, 58, 0.35);
  color: #1f5c3a;
}

.account-shell .woocommerce-message::before,
.account-shell .woocommerce-info::before,
.account-shell .woocommerce-error::before {
  display: none;
}

/* Дашборд: сайдбар (YITH / MEMBERLUX + меню) | контент.
   YITH (.yith-wcmap) часто ставит width:30% — внутри нашей колонки это ~80px. */

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.account-shell--dashboard .woocommerce-MyAccount-navigation,
.account-shell--dashboard .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

.account-shell--dashboard .woocommerce {
  display: grid !important;
  grid-template-columns: 18rem minmax(0, 1fr);
  column-gap: 2.5rem;
  row-gap: 1.25rem;
  align-items: start;
}

.account-shell--dashboard .woocommerce::before,
.account-shell--dashboard .woocommerce::after {
  display: none !important;
  content: none !important;
}

.account-shell--dashboard .woocommerce > * {
  grid-column: 1;
}

.account-shell--dashboard .woocommerce > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

.account-shell--dashboard .woocommerce > .woocommerce-MyAccount-content {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: start;
  min-width: 0;
  width: 100% !important;
}

/* YITH Customize My Account — на всю ширину сайдбар-колонки */
.account-shell--dashboard #my-account-menu,
.account-shell--dashboard .yith-wcmap,
.account-shell--dashboard .yith-wcmap.position-left,
.account-shell--dashboard .yith-wcmap.position-vertical-left {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0;
  box-sizing: border-box;
}

.account-shell--dashboard .yith-wcmap .user-info,
.account-shell--dashboard .yith-wcmap .user-profile,
.account-shell--dashboard .yith-wcmap .username,
.account-shell--dashboard .yith-wcmap .user-email,
.account-shell--dashboard .yith-wcmap li,
.account-shell--dashboard .yith-wcmap a {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.account-shell--dashboard .yith-wcmap ul,
.account-shell--dashboard .yith-wcmap .myaccount-menu,
.account-shell--dashboard .yith-wcmap .woocommerce-MyAccount-navigation {
  width: 100% !important;
  float: none !important;
}

.account-shell .woocommerce-MyAccount-navigation {
  margin: 0;
}

.account-shell .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.account-shell .woocommerce-MyAccount-navigation li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.account-shell .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.85rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border: 0;
}

.account-shell .woocommerce-MyAccount-navigation a:hover,
.account-shell .woocommerce-MyAccount-navigation .is-active a {
  color: var(--ink);
}

.account-shell .woocommerce-MyAccount-content {
  min-width: 0;
}

.account-shell .woocommerce-MyAccount-content > p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.account-shell .woocommerce-MyAccount-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.account-shell .woocommerce table.shop_table {
  width: 100%;
  margin: 0 0 1.5rem;
  border: 0;
  border-collapse: collapse;
  background: transparent;
}

.account-shell .woocommerce table.shop_table th,
.account-shell .woocommerce table.shop_table td {
  padding: 0.85rem 0.4rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 1rem;
  text-align: left;
}

.account-shell .woocommerce table.shop_table th {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.account-shell .woocommerce-Addresses,
.account-shell .u-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.account-shell .woocommerce-Address,
.account-shell .u-column1,
.account-shell .u-column2 {
  width: 100%;
  float: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.account-shell .woocommerce-Address-title,
.account-shell .woocommerce-Address header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.account-shell .woocommerce-Address-title h3,
.account-shell .woocommerce-Address header h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
}

@media (max-width: 820px) {
  .account-shell--dashboard .woocommerce {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .account-shell--dashboard .woocommerce > *,
  .account-shell--dashboard .woocommerce > .woocommerce-MyAccount-content {
    grid-column: 1;
    grid-row: auto;
  }

  .account-shell .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.1rem;
    border-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .account-shell .woocommerce-MyAccount-navigation li {
    border-bottom: 0;
  }

  .account-shell .woocommerce-MyAccount-navigation a {
    padding: 0.35rem 0;
  }

  .account-shell .woocommerce-Addresses,
  .account-shell .u-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .account-shell--login {
    max-width: none;
  }

  .account-shell .woocommerce button.button,
  .account-shell .woocommerce a.button,
  .account-shell .woocommerce input.button {
    width: 100%;
  }
}
