/* =============================================================================
   MY ACCOUNT — Blue Sky structure (LOCKED #1), themed to the store.

   No source markup to match: trehouse hands off to Shopify's hosted customer
   accounts, so this follows the locked spec rather than a capture.
   ============================================================================= */

.th-account { padding: 32px 0 56px; }

.th-account__grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* ⚠ WooCommerce ships `.woocommerce-MyAccount-navigation { width: 30% }` and
   floats it. Inside a CSS grid the FLOAT is ignored but the PERCENTAGE is
   not, so the sidebar collapses to a sliver of its own 240px track — the same
   defect that squeezed the PDP summary column. Matched on specificity rather
   than reached for !important. */
.woocommerce-account .th-account .woocommerce-MyAccount-navigation,
.woocommerce-account .th-account .woocommerce-MyAccount-content {
  float: none;
  width: auto;
}

/* ---------- nav ---------- */
.th-account__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--th-border);
}

.th-account__nav li { border-bottom: 1px solid var(--th-border); }
.th-account__nav li:last-child { border-bottom: 0; }

.th-account__nav a {
  display: block;
  padding: 13px 16px;
  font-size: var(--th-fs-sm);
  font-weight: var(--th-fw-semi);
  color: var(--th-text);
}
.th-account__nav a:hover { background: var(--th-badge-bg); text-decoration: none; }

.th-account__nav li.is-active a {
  background: var(--th-btn-bg);
  color: #fff;
}

/* ---------- content ---------- */
.th-account__content h2 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 14px;
}

.th-dash__hi { font-size: 2.4rem; font-weight: var(--th-fw-bold); margin: 0 0 10px; }
.th-dash__intro { font-size: var(--th-fs-sm); line-height: 1.6; margin: 0 0 20px; }
.th-dash__intro a { text-decoration: underline; }

/* On-hold notice — these orders wait on a manual payment, which is unusual
   enough that a customer will assume something broke. */
.th-dash__notice {
  padding: 14px 16px;
  margin: 0 0 24px;
  border-left: 3px solid var(--th-age-accent);
  background: var(--th-badge-bg);
}
.th-dash__notice p { margin: 0; font-size: var(--th-fs-sm); line-height: 1.5; }

.th-dash__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.th-dash__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--th-border);
}
.th-dash__card:hover { border-color: var(--th-btn-bg); text-decoration: none; }
.th-dash__card-title { font-size: var(--th-fs-sm); font-weight: var(--th-fw-bold); color: var(--th-heading); }
.th-dash__card-sub { font-size: var(--th-fs-xs); color: var(--th-muted); }

/* ---------- Woo tables inside the account ----------
   `.woocommerce table.shop_table` is (0,2,1) with a border, a radius and
   border-collapse:separate plus 1px rules on every cell — a bare class loses
   and you get a rounded grey box around the header row and each item.
   Prefix with the body class AND .woocommerce to match it. */
.woocommerce-account .woocommerce table.shop_table {
  border: 1px solid var(--th-border);
  border-radius: 0;
  border-collapse: collapse;
}
.woocommerce-account .woocommerce table.shop_table th,
.woocommerce-account .woocommerce table.shop_table td {
  border: 0;
  border-bottom: 1px solid var(--th-border);
  padding: 12px 14px;
  font-size: var(--th-fs-sm);
}
.woocommerce-account .woocommerce table.shop_table thead th {
  background: var(--th-badge-bg);
  font-weight: var(--th-fw-bold);
}

/* ---------- forms ---------- */
.woocommerce-account .th-account .form-row { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; }
.woocommerce-account .th-account .form-row label { font-size: var(--th-fs-xs); font-weight: var(--th-fw-semi); }
.woocommerce-account .th-account input.input-text,
.woocommerce-account .th-account select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  font-family: var(--th-font);
  font-size: var(--th-fs-sm);
}

/* Login / register columns */
.woocommerce-account .u-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.woocommerce-account .u-columns > div { float: none !important; width: auto !important; }

@media (max-width: 991px) {
  .th-account .th-account__grid { grid-template-columns: 1fr; gap: 24px; }
  .th-account .th-dash__links { grid-template-columns: 1fr; }
  .woocommerce-account .u-columns { grid-template-columns: 1fr; }
}
