/* ═══════════════════════════════════════════
   Account Pages — WV Claude Theme
   ═══════════════════════════════════════════ */

/* ── Layout ── */

.wv-account {
  display: flex;
  gap: 40px;
  max-width: var(--wv-container-max);
  margin: 0 auto;
  padding: 40px var(--wv-page-gutter);
  min-height: 60vh;
}

.wv-account__main {
  flex: 1;
  min-width: 0;
  /* Top padding so heading text isn't flush with the parent's
     40px parent padding — gives consistent breathing room
     across dashboard / orders / my-points / edit-account /
     payment-methods / back-in-stock endpoints. */
  padding-top: 24px;
}

/* ═══════════════════════════════════════════
   Sidebar
   ═══════════════════════════════════════════ */

.wv-account-sidebar {
  width: 250px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--wv-header-height) + 20px);
  align-self: flex-start;
  /* Match the .wv-account__main padding-top + compensate for the
     visual gap between the avatar's top (an image edge) and the
     heading's text top (line-box top is several px above the
     visible letters). The extra 16px lines the avatar baseline up
     with the heading's text baseline. */
  padding-top: 40px;
}

/* ── User Info ── */

.wv-account-sidebar__user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  /* Divider drawn as an ::after pseudo so it can be 85% width
     instead of spanning the full sidebar. */
  position: relative;
}

.wv-account-sidebar__user::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 85%;
  height: 1px;
  background: var(--wv-color-border);
}

.wv-account-sidebar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.wv-account-sidebar__name {
  display: block;
  font-family: var(--wv-font-primary);
  font-weight: var(--wv-weight-bold);
  font-size: var(--wv-text-base);
  color: var(--wv-color-text-primary);
}

.wv-account-sidebar__loyalty {
  display: block;
  font-family: var(--wv-font-mono);
  font-size: var(--wv-text-label);
  color: var(--wv-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Navigation ── */

.wv-account-nav {
  margin-bottom: 32px;
}

.wv-account-nav__section {
  margin-bottom: 24px;
}

.wv-account-nav__heading {
  font-family: var(--wv-font-primary);
  font-weight: var(--wv-weight-bold);
  font-size: var(--wv-text-sm);
  color: var(--wv-color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.wv-account-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wv-account-nav__list li {
  margin-bottom: 4px;
}

.wv-account-nav__link {
  display: inline-block;
  font-family: var(--wv-font-primary);
  font-weight: var(--wv-weight-regular);
  font-size: var(--wv-text-sm);
  color: var(--wv-color-text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 0;
  transition: color var(--wv-transition-fast);
}

.wv-account-nav__link:hover {
  color: var(--wv-color-text-primary);
}

.wv-account-nav__link--active {
  color: var(--wv-color-text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wv-account-nav__arrow {
  margin-left: 4px;
}

/* ── Logout ── */

.wv-account-nav__logout {
  display: inline-block;
  font-family: var(--wv-font-primary);
  font-weight: var(--wv-weight-regular);
  font-size: var(--wv-text-sm);
  color: var(--wv-color-text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 0;
  transition: color var(--wv-transition-fast);
}

.wv-account-nav__logout:hover {
  color: var(--wv-color-text-primary);
}

/* ── Quiz CTA Card ── */

.wv-account-quiz {
  display: block;
  background: var(--wv-color-surface);
  border-radius: var(--wv-radius-sm);
  padding: 20px;
  text-decoration: none;
  color: var(--wv-color-text-primary);
  margin-bottom: 20px;
  transition: opacity var(--wv-transition-base);
}

.wv-account-quiz:hover {
  opacity: 0.9;
}

.wv-account-quiz__heading {
  font-family: var(--wv-font-primary);
  font-weight: var(--wv-weight-bold);
  font-size: var(--wv-text-base);
  margin: 0 0 4px;
}

.wv-account-quiz__body {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-text-sm);
  color: var(--wv-color-text-secondary);
  margin: 0 0 12px;
}

.wv-account-quiz__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wv-font-mono);
  font-size: var(--wv-text-label);
  font-weight: var(--wv-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wv-color-accent);
}

.wv-account-quiz__cta svg {
  width: 18px;
  height: 11px;
}


/* ═══════════════════════════════════════════
   Dashboard — Welcome
   ═══════════════════════════════════════════ */

/* Three account pages have heading-then-non-table content
   (/my-account dashboard, /my-points, /edit-account) where the
   heading sits at the same mathematical y position as the
   table-anchored pages (/orders, /payment-methods, etc.), but
   reads as visually closer to the website header because there's
   no full-width table mass below to anchor the heading. Adding
   24px padding-top on these specific wrappers pushes the
   heading down for visual parity with the authoritative pages. */
.wv-account-welcome,
.ywpar-wrapper,
.woocommerce-EditAccountForm.edit-account {
  padding-top: 24px;
}

.wv-account-welcome {
  margin-bottom: 40px;
}

.wv-account-welcome__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.wv-account-welcome__title {
  font-family: var(--wv-font-primary);
  font-weight: 300;
  font-size: var(--wv-fs-h-serif-sm);
  color: var(--wv-color-text-primary);
  margin: 0;
  line-height: 1.2;
}

.wv-account-welcome__since {
  font-family: var(--wv-font-mono);
  font-size: var(--wv-text-label);
  color: var(--wv-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.wv-account-welcome__body {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-text-base);
  color: var(--wv-color-text-secondary);
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}


/* ═══════════════════════════════════════════
   Dashboard — Product Recommendations
   ═══════════════════════════════════════════ */

.wv-account-recs {
  margin-bottom: 48px;
}

.wv-account-recs__title {
  font-family: var(--wv-font-primary);
  font-weight: var(--wv-weight-semibold);
  font-size: var(--wv-text-lg);
  color: var(--wv-color-text-primary);
  margin: 0 0 20px;
}

.wv-account-recs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.wv-account-rec-card {
  display: flex;
  flex-direction: column;
  background: var(--wv-color-card-bg);
  border-radius: var(--wv-radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--wv-color-text-primary);
  transition: box-shadow var(--wv-transition-base);
}

.wv-account-rec-card:hover {
  box-shadow: var(--wv-shadow-md);
}

.wv-account-rec-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wv-account-rec-card__info {
  padding: 16px;
}

.wv-account-rec-card__name {
  display: block;
  font-family: var(--wv-font-primary);
  font-weight: var(--wv-weight-semibold);
  font-size: var(--wv-text-base);
  margin-bottom: 4px;
}

.wv-account-rec-card__price {
  font-family: var(--wv-font-mono);
  font-size: var(--wv-text-sm);
  color: var(--wv-color-text-secondary);
}


/* ═══════════════════════════════════════════
   Dashboard — Subscriptions
   ═══════════════════════════════════════════ */

.wv-account-subs {
  margin-bottom: 48px;
}

/* Tabs */

.wv-account-subs__tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--wv-color-border);
  margin-bottom: 24px;
}

.wv-account-subs__tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
  cursor: pointer;
  font-family: var(--wv-font-primary);
  font-weight: var(--wv-weight-semibold);
  font-size: var(--wv-text-base);
  color: var(--wv-color-text-secondary);
  transition: color var(--wv-transition-fast), border-color var(--wv-transition-fast);
}

.wv-account-subs__tab:hover {
  color: var(--wv-color-text-primary);
}

.wv-account-subs__tab--active {
  color: var(--wv-color-text-primary);
  border-bottom-color: var(--wv-color-text-primary);
}

/* Subscription Groups */

.wv-account-sub-group {
  margin-bottom: 28px;
}

.wv-account-sub-group__header {
  background: var(--wv-color-surface);
  padding: 12px 20px;
  border-radius: 8px 8px 0 0;
  font-family: var(--wv-font-primary);
  font-weight: var(--wv-weight-bold);
  font-size: var(--wv-text-base);
  color: var(--wv-color-text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Subscription Table */

.wv-account-sub-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--wv-color-border);
  border-top: none;
}

.wv-account-sub-table thead th {
  font-family: var(--wv-font-mono);
  font-weight: var(--wv-weight-medium);
  font-size: var(--wv-text-label);
  color: var(--wv-color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 10px 16px;
  background: rgba(221, 222, 199, 0.3);
  border-bottom: 1px solid var(--wv-color-border);
}

.wv-account-sub-table tbody td {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-text-sm);
  color: var(--wv-color-text-primary);
  padding: 14px 16px;
  border-bottom: 1px solid var(--wv-color-border);
  vertical-align: middle;
}

.wv-account-sub-table tbody tr:last-child td {
  border-bottom: none;
}

.wv-account-sub-table__products {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.wv-account-sub-table__thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--wv-color-background);
}

.wv-account-sub-table__order {
  font-family: var(--wv-font-mono);
  font-size: var(--wv-text-sm);
}

/* VIEW Button */

.wv-btn-view {
  display: inline-block;
  background: var(--wv-color-accent);
  color: var(--wv-color-card-bg);
  font-family: var(--wv-font-primary);
  font-weight: var(--wv-weight-semibold);
  font-size: var(--wv-text-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: var(--wv-radius-pill);
  transition: opacity var(--wv-transition-fast);
}

.wv-btn-view:hover {
  opacity: 0.85;
}

/* Empty state */

.wv-account-subs__empty {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-text-base);
  color: var(--wv-color-text-secondary);
  padding: 24px 0;
}


/* ═══════════════════════════════════════════
   Responsive — Account Pages
   ═══════════════════════════════════════════ */

/* Hidden by default — shown on mobile via media query below */
.wv-account-nav__mobile-trigger {
  display: none;
}

/* ── Mobile-first base — was a 110-line max-width: 767 block pre-2026-06-01.
   Account dashboard reorganizes for mobile: sidebar dissolves, accordion
   trigger reveals nav, content reorders. Restored to sidebar+content
   row layout at tablet+. ── */

.wv-account {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  gap: 0;
}

/* Sidebar dissolves — children become direct flex children of .wv-account */
.wv-account-sidebar {
  display: contents;
}

.wv-account-nav__mobile-trigger {
  order: 1;
}

.wv-account-nav {
  order: 2;
}

.wv-account__main {
  order: 3;
}

.wv-account-sidebar__user--reorder {
  order: 4;
  padding-top: 12px;
  border-top: 1px solid var(--wv-color-border);
  margin-top: 4px;
}

.wv-account-nav__logout {
  order: 5;
}

.wv-quiz-cta {
  display: none;
}

.wv-account-welcome__header {
  flex-direction: column;
  gap: 4px;
}

.wv-account-welcome__title {
  font-size: var(--wv-fs-h5);
}

.wv-account-recs__grid {
  grid-template-columns: 1fr;
}

.wv-account-sub-table {
  font-size: var(--wv-text-sm);
  min-width: 500px;
}

.wv-account-sub-group {
  overflow-x: auto;
}

/* Mobile accordion trigger — overrides base display: none */
.wv-account-nav__mobile-trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--wv-color-text-primary);
  cursor: pointer;
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-label-nav);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wv-color-text-primary);
}

.wv-account-nav__mobile-chevron {
  flex-shrink: 0;
  transition: transform var(--wv-transition-fast);
}

.wv-account-nav__mobile-trigger[aria-expanded="true"] .wv-account-nav__mobile-chevron {
  transform: rotate(180deg);
}

/* Nav body hidden by default on mobile */
.wv-account-nav {
  display: none;
  padding-top: 12px;
}

.wv-account-nav.is-open {
  display: block;
}

/* ── Tablet+ restoration ── */
@media (min-width: 768px) {
  /* Explicit values rather than `revert` — `revert` undoes ALL author
     CSS for a property and falls back to UA default (padding: 0 etc.),
     NOT to the prior author rule at line 7. This was a long-standing
     bug that caused .wv-account to have zero horizontal padding at
     tablet+, making content sit flush against the 1440 container edge.
     Reinstating the line-7 desktop values here. */
  .wv-account {
    flex-direction: row;
    padding: 40px var(--wv-page-gutter);
    gap: 40px;
  }

  .wv-account-sidebar {
    display: revert;
  }

  .wv-account-nav__mobile-trigger,
  .wv-account-nav,
  .wv-account__main,
  .wv-account-sidebar__user--reorder,
  .wv-account-nav__logout {
    order: revert;
  }

  .wv-account-sidebar__user--reorder {
    padding-top: revert;
    border-top: revert;
    margin-top: revert;
  }

  .wv-quiz-cta {
    display: revert;
  }

  .wv-account-welcome__header {
    flex-direction: revert;
    gap: revert;
  }

  .wv-account-welcome__title {
    font-size: var(--wv-fs-h-serif-sm);
  }

  .wv-account-recs__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wv-account-sub-table {
    font-size: revert;
    min-width: revert;
  }

  .wv-account-sub-group {
    overflow-x: revert;
  }

  /* Mobile trigger hidden at tablet+ */
  .wv-account-nav__mobile-trigger {
    display: none !important;
  }

  .wv-account-nav {
    display: block !important;
    padding-top: revert;
  }
}

/* ═══════════════════════════════════════════
   Auth Forms — Login, Register, Forgot Password
   ═══════════════════════════════════════════ */

.wv-auth {
  display: flex;
  justify-content: center;
  padding: 60px 80px;
  min-height: 60vh;
  background: var(--wv-color-background);
}

/* ── Account Section Title ── */
.wv-account-section__title {
  font-family: var(--wv-font-primary);
  font-weight: 300;
  font-size: var(--wv-fs-h-serif-sm);
  color: var(--wv-color-text-primary);
  margin: 0 0 24px;
}

.wv-account-empty {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-h6);
  color: var(--wv-color-text-secondary);
}

/* ── Account Tables (shared for orders, subscriptions) ── */
.wv-account-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(42, 43, 20, 0.15);
}


.wv-account-table thead th {
  background: var(--wv-color-surface);
  font-family: var(--wv-font-mono);
  font-weight: var(--wv-weight-regular);
  font-size: var(--wv-fs-label-legal);
  letter-spacing: 0.3px;
  color: var(--wv-color-text-primary);
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(42, 43, 20, 0.15);
}

.wv-account-table tbody td {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  color: var(--wv-color-text-primary);
  padding: 16px;
  border-bottom: 1px solid rgba(42, 43, 20, 0.1);
  background: var(--wv-color-card-bg);
  vertical-align: middle;
}

.wv-account-table tbody tr:last-child td {
  border-bottom: 0;
}

.wv-account-table__order {
  font-weight: 600;
  white-space: nowrap;
}

.wv-account-table__date,
.wv-account-table__status,
.wv-account-table__items {
  white-space: nowrap;
}

.wv-account-table__total {
  font-weight: 600;
  white-space: nowrap;
}

.wv-account-table__action {
  text-align: right;
  white-space: nowrap;
}

.wv-account-table__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 24px;
  min-width: 120px;
  background: var(--wv-color-accent);
  color: var(--wv-color-card-bg);
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body-sm);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: var(--wv-radius-pill);
  cursor: pointer;
  transition: background var(--wv-transition-base);
}

.wv-account-table__view:hover {
  background: var(--wv-color-text-primary);
  color: var(--wv-color-card-bg);
}

/* ── Pagination ── */
.wv-account-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 0;
}

.wv-account-pagination__btn {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  font-weight: 600;
  color: var(--wv-color-text-primary);
  text-decoration: none;
  transition: color var(--wv-transition-base);
}

.wv-account-pagination__btn:hover {
  color: var(--wv-color-text-link-hover);
}

.wv-account-pagination__info {
  font-family: var(--wv-font-mono);
  font-size: var(--wv-fs-body-sm);
  color: var(--wv-color-text-secondary);
  text-transform: uppercase;
}

/* Mobile-first table — block + scroll, restored at tablet+ */
.wv-account-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .wv-account-table {
    display: revert;
    overflow-x: revert;
  }
}

/* ── Easy Reorder ── */
.wv-account-table__product a {
  font-weight: 600;
  color: var(--wv-color-text-primary);
  text-decoration: none;
}

.wv-account-table__product a:hover {
  color: var(--wv-color-text-link-hover);
  text-decoration: underline;
}

.wv-account-table__muted {
  color: var(--wv-color-text-secondary);
  font-size: var(--wv-fs-body);
}


.wv-account-table__view--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.wv-reorder-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(42, 43, 20, 0.2);
  border-radius: var(--wv-radius-pill);
  overflow: hidden;
}

.wv-reorder-qty__btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  font-size: var(--wv-fs-h6);
  color: var(--wv-color-text-primary);
  cursor: pointer;
}

.wv-reorder-qty__btn:hover {
  background: rgba(42, 43, 20, 0.05);
}

.wv-reorder-qty__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.wv-reorder-qty__val {
  min-width: 24px;
  text-align: center;
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  font-weight: 600;
  color: var(--wv-color-text-primary);
}

.wv-account-table__qty-cell {
  white-space: nowrap;
}

/* Back In Stock notification */
/* Discontinued note — inherits font-size from td (14px), matching out-of-stock */
.wv-reorder__dc-note {
  color: var(--wv-color-text-secondary);
  line-height: 1.5;
}

.wv-reorder__dc-note a {
  color: var(--wv-color-text-link-hover);
  text-decoration: underline;
  font-weight: 500;
  font-size: var(--wv-fs-body-sm);
}

.wv-reorder__bis-wrap {
  color: var(--wv-color-text-secondary);
}

.wv-reorder-bis-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--wv-color-text-link-hover);
  text-decoration: underline;
  font-size: var(--wv-fs-body-sm);
  font-weight: 500;
  cursor: pointer;
  display: inline;
  font-family: inherit;
}

.wv-reorder-bis-btn:hover {
  color: var(--wv-color-accent);
}

.wv-reorder__bis-confirm {
  display: none;
  color: var(--wv-color-accent);
  font-size: var(--wv-fs-body-sm);
}

.wv-reorder__bis-error,
.wv-reorder__action-error {
  display: none;
  margin-top: 4px;
  color: var(--wv-color-warning);
  font-size: var(--wv-fs-body-sm);
}

/* ── Back In Stock Notifications — restyle plugin tables ── */
/* Scale down the plugin-rendered <h2>Pending / Active / Your Activity</h2>
   subheadings on /back-in-stock so they read as subsections under the
   main 'Back in Stock Notifications' heading we inject via the
   woocommerce_bis_before_account_backinstock action (functions.php).
   Uses :has() to target only h2s that immediately precede a BIS table.
   .wv-account__main prefix bumps specificity to (0,2,1) so it wins
   over the .wv-account__main h2 rule (also 0,2,1 effective) by source
   order — necessary because that rule sits later in the file and
   would otherwise override. */
.wv-account__main h2:has(+ .wc-bis-active-notifications-table),
.wv-account__main h2:has(+ .wc-bis-pending-notifications-table),
.wv-account__main h2:has(+ .wc-bis-notifications-activity-table) {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-h6);
  font-weight: 600;
  color: var(--wv-color-text-primary);
  margin: 24px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wc-bis-active-notifications-table,
.wc-bis-pending-notifications-table,
.wc-bis-notifications-activity-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(42, 43, 20, 0.15);
}

.wc-bis-active-notifications-table thead th,
.wc-bis-pending-notifications-table thead th,
.wc-bis-notifications-activity-table thead th {
  background: var(--wv-color-surface);
  font-family: var(--wv-font-mono);
  font-weight: var(--wv-weight-regular);
  font-size: var(--wv-fs-label-legal);
  letter-spacing: 0.3px;
  color: var(--wv-color-text-primary);
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(42, 43, 20, 0.15);
}

.wc-bis-active-notifications-table tbody td,
.wc-bis-pending-notifications-table tbody td,
.wc-bis-notifications-activity-table tbody td {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  color: var(--wv-color-text-primary);
  padding: 16px;
  border-bottom: 1px solid rgba(42, 43, 20, 0.1);
  background: var(--wv-color-card-bg);
  vertical-align: middle;
}

.wc-bis-active-notifications-table tbody tr:last-child td,
.wc-bis-pending-notifications-table tbody tr:last-child td,
.wc-bis-notifications-activity-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Action buttons — Deactivate, Cancel, Resend */
.woocommerce-orders-table__cell-notification-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 24px;
  min-width: 120px;
  background: var(--wv-color-accent);
  color: var(--wv-color-card-bg) !important;
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body-sm);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--wv-radius-pill);
  transition: background var(--wv-transition-base);
  margin: 2px 4px 2px 0;
}

.woocommerce-orders-table__cell-notification-actions a:hover {
  background: var(--wv-color-text-primary);
  color: var(--wv-color-card-bg) !important;
}

/* Product links */
.woocommerce-backinstock-table__cell__product a {
  font-weight: 600;
  color: var(--wv-color-text-primary);
  text-decoration: none;
}

.woocommerce-backinstock-table__cell__product a:hover {
  color: var(--wv-color-text-link-hover);
}

.woocommerce-backinstock-table__cell__product .description {
  display: block;
  font-size: var(--wv-fs-body-sm);
  color: var(--wv-color-text-secondary);
  margin-top: 4px;
}

/* Section headings.
   The sibling .wc-bis-active-notifications-table ~ h2 selector was
   removed 2026-06-05 — it conflicted with the BIS subheading :has()
   rule earlier in this file and caused 'Your Activity' to render at
   the generic h5 size instead of the intended h6 subheading scale. */
.wv-account__main h2 {
  font-family: var(--wv-font-primary);
  font-weight: 300;
  font-size: var(--wv-fs-h5);
  color: var(--wv-color-text-primary);
  margin: 32px 0 16px;
}

.wv-account__main h2:first-child {
  margin-top: 0;
}

/* Pagination */
.wv-account__main .woocommerce-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
}

.wv-account__main .woocommerce-pagination a {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  font-weight: 600;
  color: var(--wv-color-text-primary);
  text-decoration: none;
}

.wv-account__main .woocommerce-pagination a:hover {
  color: var(--wv-color-text-link-hover);
}

/* ── Coming Soon Placeholder ── */
.wv-account-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  text-align: center;
}

.wv-account-coming-soon__title {
  font-family: var(--wv-font-primary);
  font-weight: 300;
  font-size: var(--wv-fs-h-serif-sm);
  color: var(--wv-color-text-primary);
  margin: 0 0 12px;
  text-transform: uppercase;
}

.wv-account-coming-soon__text {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-h6);
  color: var(--wv-color-text-secondary);
  margin: 0;
}

.wv-auth__form {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.wv-auth__heading {
  font-family: var(--wv-font-primary);
  font-weight: 300;
  font-size: var(--wv-fs-h2);
  color: var(--wv-color-text-primary);
  margin: 0 0 32px;
}

.wv-auth__field {
  margin-bottom: 16px;
}

/* Accessible visible label for auth inputs (added 2026-06-06 during
   form-login a11y remediation). Placeholders demoted to supplementary
   hints. The .screen-reader-text utility below carries the "(required)"
   announcement that visual users see implicitly via the required attr. */
.wv-auth__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--wv-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wv-color-text-primary);
  text-align: left;
}

/* WP-standard accessible-hiding utility. Used to surface "(required)"
   to screen readers without burdening visual layout. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.wv-auth__field input {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(42, 43, 20, 0.3);
  border-radius: 25px;
  background: var(--wv-color-card-bg);
  font-family: var(--wv-font-mono);
  /* 16px floor — prevents iOS Safari zoom-on-focus. */
  font-size: var(--wv-fs-h6);
  letter-spacing: 0.5px;
  color: var(--wv-color-text-primary);
  text-transform: uppercase;
  box-sizing: border-box;
}

.wv-auth__field input::placeholder {
  color: var(--wv-color-text-primary);
  opacity: 0.7;
}

.wv-auth__field input:focus {
  outline: 2px solid var(--wv-color-accent);
  border-color: transparent;
}

.wv-auth__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 44px;
  padding: 0 32px;
  background: var(--wv-color-text-primary);
  color: var(--wv-color-text-inverse);
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 0;
  border-radius: var(--wv-radius-pill);
  cursor: pointer;
  transition: background var(--wv-transition-base);
  margin: 8px 0;
}

.wv-auth__btn-primary:hover {
  background: var(--wv-color-accent);
}

.wv-auth__btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 44px;
  padding: 0 32px;
  background: transparent;
  color: var(--wv-color-text-primary);
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--wv-color-text-primary);
  border-radius: var(--wv-radius-pill);
  cursor: pointer;
  transition: var(--wv-transition-base);
  margin: 8px 0;
  text-decoration: none;
}

.wv-auth__btn-outline:hover {
  background: var(--wv-color-text-primary);
  color: var(--wv-color-text-inverse);
}

.wv-auth__link-text {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  color: var(--wv-color-text-secondary);
  margin: 16px 0;
}

.wv-auth__link-text a {
  color: var(--wv-color-text-primary);
  text-decoration: underline;
}

.wv-auth__link-bold {
  font-weight: 700;
}

/* Confirmation icon */

.wv-auth__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 24px;
  border: 2px solid var(--wv-color-accent);
  border-radius: 50%;
  color: var(--wv-color-accent);
}

.wv-auth__subtitle {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  color: var(--wv-color-text-secondary);
  margin: 8px 0 24px;
}

/* ── Helper Text ── */

.wv-auth__helper {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body-sm);
  color: var(--wv-color-text-secondary);
  margin: -8px 0 16px;
  text-align: left;
}

/* ── Checkboxes ── */

.wv-auth__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  text-align: left;
}

.wv-auth__checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--wv-color-accent);
  cursor: pointer;
}

.wv-auth__checkbox label {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body-sm);
  line-height: 16px;
  color: var(--wv-color-text-secondary);
}

.wv-auth__checkbox label a {
  color: var(--wv-color-text-primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Mobile-first auth — tighter padding, restored at tablet+ */
.wv-auth {
  padding: 40px 24px;
}

@media (min-width: 768px) {
  .wv-auth {
    padding: 60px 80px;
  }
}

/* ═══════════════════════════════════════════
   YITH Points & Rewards — style overrides
   Targets plugin-generated markup on /my-account/my-points
   ═══════════════════════════════════════════ */

/* Match the /orders heading EFFECTIVE rendering (the
   .wv-account-section__title class declares h-serif-sm but loses
   the cascade to .wv-account__main h2 which is class+element 0,1,1
   vs class 0,1,0 — so Order History actually renders at h5 size).
   My Points should match that effective h5 rendering, not the
   declared section-title size. */
.wv-account__main .ywpar-wrapper h2 {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-h5);
  font-weight: 300;
  color: var(--wv-color-text-primary);
  margin: 0 0 24px;
}

.ywpar_myaccount_entry_info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.ywpar_summary_badge {
  background: var(--wv-color-card-bg);
  border: 1px solid var(--wv-color-border);
  border-radius: 10px;
  padding: 12px 24px;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 24px;
  width: 100%;
  flex-wrap: wrap;
}

.ywpar_myaccount_entry_info span.ywpar_entry_info_title {
  font-family: var(--wv-font-mono);
  font-size: var(--wv-fs-h6);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--wv-color-text-secondary);
  text-align: left;
}

.ywpar_summary_badge .points_collected {
  font-family: var(--wv-font-serif);
  font-size: var(--wv-fs-h-serif-sm);
  font-weight: 400;
  color: var(--wv-color-accent);
  line-height: 1;
}

.ywpar_summary_badge .points_worth {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  font-weight: 400;
  color: var(--wv-color-text-secondary);
}

.ywpar_summary_badge .ywpar_to_redeem_title {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-label-legal);
  color: var(--wv-color-text-secondary);
}

.ywpar_myaccount_entry_info span.ywpar_total_collected_title {
  font-family: var(--wv-font-mono);
  font-size: var(--wv-fs-h6);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--wv-color-text-secondary);
  margin-left: auto;
  margin-top: 0;
  text-align: right;
}


.ywpar_levels_badges,
.ywpar_rank_badges {
  background: var(--wv-color-card-bg);
  border: 1px solid var(--wv-color-border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}

.ywpar_levels_badges .ywpar_entry_info_title,
.ywpar_rank_badges .ywpar_entry_info_title {
  font-family: var(--wv-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wv-color-text-secondary);
}

.ywpar_rank_badges .rank {
  font-family: var(--wv-font-serif);
  font-size: var(--wv-fs-h5);
  font-weight: 400;
  color: var(--wv-color-text-primary);
}

/* Banners */
.ywpar-wrapper .ywpar-banner {
  background: var(--wv-color-card-bg);
  border: 1px solid var(--wv-color-border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  color: var(--wv-color-text-secondary);
  line-height: 1.6;
}

.ywpar-wrapper .ywpar-banner h3,
.ywpar-wrapper .ywpar-banner h4 {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  font-weight: 600;
  color: var(--wv-color-text-primary);
  margin: 0 0 8px;
}

/* History table — matches .wv-account-table (orders) */
table.shop_table.ywpar_points_rewards {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(42, 43, 20, 0.15);
  margin-top: 24px;
}

table.shop_table.ywpar_points_rewards thead th {
  background: var(--wv-color-surface);
  font-family: var(--wv-font-mono);
  font-weight: var(--wv-weight-regular);
  font-size: var(--wv-fs-label-legal);
  letter-spacing: 0.3px;
  color: var(--wv-color-text-primary);
  text-transform: uppercase;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(42, 43, 20, 0.15);
}

table.shop_table.ywpar_points_rewards tbody td {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  color: var(--wv-color-text-primary);
  padding: 16px;
  border-bottom: 1px solid rgba(42, 43, 20, 0.1);
  background: var(--wv-color-card-bg);
  vertical-align: middle;
}

table.shop_table.ywpar_points_rewards tbody tr:last-child td {
  border-bottom: 0;
}

/* Share points */
.ywpar-wrapper .ywpar-share-points {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body);
  color: var(--wv-color-text-secondary);
}

.ywpar-wrapper .ywpar-share-points input[type="text"],
.ywpar-wrapper .ywpar-share-points input[type="email"],
.ywpar-wrapper .ywpar-share-points input[type="number"] {
  font-family: var(--wv-font-mono);
  /* 16px floor — prevents iOS Safari zoom-on-focus. */
  font-size: var(--wv-fs-h6);
  padding: 8px 12px;
  border: 1px solid var(--wv-color-border);
  border-radius: var(--wv-radius-sm);
  background: var(--wv-color-card-bg);
  color: var(--wv-color-text-primary);
}

.ywpar-wrapper button,
.ywpar-wrapper input[type="submit"] {
  font-family: var(--wv-font-primary);
  font-size: var(--wv-fs-body-sm);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--wv-color-accent);
  color: var(--wv-color-text-inverse);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background var(--wv-transition-base);
}

.ywpar-wrapper button:hover,
.ywpar-wrapper input[type="submit"]:hover {
  background: var(--wv-color-atc-hover);
}

/* Mobile-first ywpar badges — stacked column, auto min-width.
   Restored at tablet+. */
.ywpar_myaccount_entry_info {
  flex-direction: column;
}

.ywpar_summary_badge,
.ywpar_levels_badges,
.ywpar_rank_badges {
  min-width: auto;
}

@media (min-width: 768px) {
  .ywpar_myaccount_entry_info {
    flex-direction: revert;
  }
  .ywpar_summary_badge,
  .ywpar_levels_badges,
  .ywpar_rank_badges {
    min-width: revert;
  }
}
