/* ─────────────────────────────
   ACCOUNT.CSS — Lo Castro My Account page
   wp-content/themes/twentytwentyfive-child/styles/account.css

   Consumes the global --lc-* tokens from styles/tokens.css.

   Matches the real Next.js design system exactly: Grid / Row / Panel /
   Kicker / H2 / P / Divider / PrimaryBtn / GhostBtn pattern
   (see /app/designsystem/page.tsx).
   ───────────────────────────── */

/* Page title area */
.woocommerce-account .entry-title,
.woocommerce-account h1.wp-block-post-title {
  font-family: var(--lc-font-display);
  font-size: 14px !important;
  letter-spacing: var(--lc-track-wide) !important;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0;
  text-align: center;
}

.woocommerce-account .wp-block-post-title + * {
  margin-top: 0;
}

.woocommerce-account .entry-content > h1.wp-block-post-title {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--lc-border-subtle);
  margin-bottom: 0;
}

/* ── Strip WordPress's own block-theme wrapper padding ──
   The "Pages" template (used by default for any Page, including My
   Account) wraps content in 2-3 nested wp-block-group divs, each
   injecting Twenty Twenty-Five's global spacing preset via inline
   style="margin-top:var(--wp--preset--spacing--60)" etc. None of that
   is part of our reference design system — it's generic WP scaffolding
   that was adding a large amount of unaccounted-for space above/below
   and around the actual Grid. Overriding inline styles requires
   !important; scoped to .woocommerce-account so no other page is
   affected. */
.woocommerce-account main.wp-block-group {
  margin-top: 0 !important;
}

.woocommerce-account .wp-block-group.alignfull.has-global-padding {
  padding-top: 2rem !important;
  padding-bottom: 0 !important;
}



/* Grid: the outer frame. Matches the reference exactly — the Grid
   itself carries NO padding of its own, only the border-top +
   border-left. Page spacing (the reference's Content: padding 34px 0
   70px) is expressed as margin here, since padding would inset space
   inside the border instead of positioning the frame. */
.woocommerce-account .woocommerce {

  max-width: 1200px;
  margin: 34px auto 70px;
}

@media (max-width: 780px) {
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }
}

/* Nav Panel — identical padding to the Content Panel below. Every
   Panel in the reference gets the exact same padding regardless of
   what's inside it: 48px 34px 54px, 28px 18px 32px on mobile. */
.woocommerce-MyAccount-navigation {

  box-sizing: border-box;
}



.woocommerce-MyAccount-navigation::before {
  content: "Account";
  display: block;
  font-family: var(--lc-font-display);
  font-size: 10px;
  letter-spacing: var(--lc-track-wide);
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 20px;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.woocommerce-account .woocommerce-MyAccount-navigation li{
    padding: 0;
}

.woocommerce-account h1.wp-block-post-title{
    text-align: center;
}

.woocommerce-MyAccount-navigation-link a {
  display: block;
  border: 1px solid var(--lc-border-default);
  padding: 12px 14px;
  font-family: var(--lc-font-serif);
  font-size: 13px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--lc-text);
  opacity: 0.8;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.woocommerce-MyAccount-navigation-link a:hover {
  opacity: 1;
  border-color: var(--lc-border-strong);
}

.woocommerce-MyAccount-navigation-link.is-active a {
  opacity: 1;
  background: var(--lc-text);
  color: var(--lc-bg);
  border-color: var(--lc-text);
}

/* Content Panel */
.woocommerce-MyAccount-content {
  border-bottom: 1px solid var(--lc-border-strong);
  padding: 0px;
  box-sizing: border-box;
}

.woocommerce table.shop_table th{
    padding:0px;
}


.woocommerce-MyAccount-content mark {
  background: none;
  color: var(--lc-text);
  font-weight: 600;
}

/* H2 / P (Kicker and Divider: shared, style.css §3) */
.lc-account-h2 {
  font-family: var(--lc-font-serif) !important;
  font-size: 14px !important;
  letter-spacing: var(--lc-track-wide) !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

.lc-account-p {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.75;
  margin: 12px 0 0;
  max-width: 60ch;
}

/* Stats */
.lc-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.lc-dashboard-stat {
  border: 1px solid var(--lc-border-default);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.lc-dashboard-stat-label {
  font-size: 10px;
  letter-spacing: var(--lc-track-wide);
  text-transform: uppercase;
  opacity: 0.55;
}

.lc-dashboard-stat-value {
  font-size: 13px;
  letter-spacing: var(--lc-track-default);
  text-transform: uppercase;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .lc-dashboard-stats {
    grid-template-columns: 1fr;
  }
}

/* Buttons (.lc-btn-row / -primary / -ghost): shared, style.css §3 */
.lc-dashboard-logout {
  font-size: 12px;
  opacity: 0.55;
  margin-top: 18px;
}

/* Account headings (Login / Register, order and address titles):
   inner-title role (16px, as the product title and consulenza step
   titles); the parent theme's default h2 was 32px. */
.woocommerce-account .woocommerce h2 {
  font-size: 16px;
  letter-spacing: var(--lc-track-default);
  line-height: 1.4;
}

/* Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.wc-block-components-notice-banner {
  border: 1px solid var(--lc-border-strong);
  border-radius: 0;
  background: transparent;
  color: var(--lc-text);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.woocommerce-error li {
  list-style: none;
}

.wc-block-components-notice-banner svg {
  fill: var(--lc-text);
  opacity: 0.7;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.wc-block-components-notice-banner__content {
  line-height: 1.6;
}

/* ─────────────────────────────
   LOGIN / REGISTER PAGE — logo, intro, two-column divider
   (structural additions in woocommerce/myaccount/form-login.php override)
   ───────────────────────────── */

.locastro-account-header {
  text-align: center;
  margin-bottom: 40px;
}

.locastro-account-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
}

.locastro-account-intro {
  max-width: 46ch;
  margin: 0 auto;
}



@media (max-width: 780px) {
  .locastro-account-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.locastro-account-col {
  min-width: 0;
}

.locastro-account-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1px;
  background: var(--lc-border-subtle);
}

.locastro-account-divider span {
  position: absolute;
  background: var(--lc-bg);
  padding: 8px 0;
  font-family: var(--lc-font-display);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lc-text);
  opacity: 0.5;
}

@media (max-width: 780px) {
  .locastro-account-divider {
    width: auto;
    height: 1px;
    background: var(--lc-border-subtle);
  }

  .locastro-account-divider span {
    padding: 0 12px;
  }
}