/*
 * account.css — My Account + Login/Register pages.
 * Loaded only on is_account_page() via performance.php.
 * All classes prefixed vt- to avoid collision with global.css.
 */

/* ── Local token ─────────────────────────────────────────────────────────────── */
body.woocommerce-account {
  --vt-page-bg:   #FFFFFF;
  --page-bg:      #FFFFFF;
  --vt-true-black:var(--black);
  background-color: #FFFFFF;
}

/* ── Page wrapper: login/register — strip all spacing so auth-wrap sits flush ──── */
body.woocommerce-account:not(.logged-in) .page-content,
body.woocommerce-account:not(.logged-in) .valentte-woo-content,
body.woocommerce-account:not(.logged-in) .woocommerce {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 0 auto;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
body.woocommerce-account:not(.logged-in) #main-content {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.woocommerce-account:not(.logged-in) .vt-auth-wrap {
  flex: 1 0 auto;
  margin: 0 !important;
}
body.woocommerce-account:not(.logged-in) .site-footer {
  margin-top: 0 !important;
}

/* ── Page wrapper: logged-in dashboard ───────────────────────────────────────── */
body.woocommerce-account.logged-in .page-content {
  padding-top: 40px;
  padding-bottom: 80px;
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* AUTH LAYOUT (login + register pages — unauthenticated)                         */
/* ────────────────────────────────────────────────────────────────────────────── */

.vt-auth-wrap {
  display: flex;
  align-items: stretch;
  background: var(--vt-page-bg);
}

/* ── Left brand panel ────────────────────────────────────────────────────────── */
.vt-auth-left {
  flex: 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
  position: relative;
  overflow: hidden;
}
.vt-auth-left-inner {
  max-width: 400px;
  position: relative;
  z-index: 1;
}
.vt-auth-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text);
  margin-bottom: 18px;
}
.vt-auth-heading {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--vt-true-black);
  line-height: 1.05;
  margin-bottom: 24px;
}
.vt-auth-quote {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 36px;
  padding-left: 18px;
  border-left: 2px solid rgba(34,31,32,0.18);
}

/* Real review shown in place of .vt-auth-quote when one is available —
 * see valentte_render_auth_review() in inc/featured-review.php. */
.vt-auth-review {
  margin-bottom: 36px;
}
.vt-auth-review__stars {
  color: #FFA222;
  font-size: 18px;
  line-height: 1;
  margin-bottom: 10px;
}
.vt-auth-review__text {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 14px;
  padding-left: 18px;
  border-left: 2px solid rgba(34,31,32,0.18);
}
.vt-auth-review__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-left: 18px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text);
}
.vt-auth-review__author {
  font-weight: 600;
  color: var(--black);
}
.vt-auth-review__verified {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #1a7a3a;
  font-weight: 500;
}
.vt-auth-review__verified-icon {
  width: 13px;
  height: 13px;
  fill: #1a7a3a;
  flex-shrink: 0;
}

.vt-auth-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vt-auth-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.5;
}
.vt-auth-perk svg {
  width: 16px;
  height: 16px;
  stroke: var(--vt-true-black);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* Variant panels — only active one is shown */
.vt-auth-variant { display: none; }
.vt-auth-variant.is-active { display: block; }

/* ── Right form panel ────────────────────────────────────────────────────────── */
.vt-auth-right {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 48px;
  background: var(--white);
  border-left: 1px solid var(--grey3);
}
.vt-auth-card {
  width: 100%;
  max-width: 380px;
}

/* Valentte logo mark inside the card */
.vt-auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.vt-auth-logo__text {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vt-true-black);
  line-height: 1;
}
.vt-auth-logo__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 3px;
}
.vt-auth-logo__rule {
  width: 32px;
  height: 1px;
  background: var(--grey3);
  margin: 12px auto 0;
}

/* Card headings */
.vt-auth-title {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--vt-true-black);
  margin-bottom: 6px;
  text-align: center;
  line-height: 1.15;
}
.vt-auth-subtitle {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 28px;
  font-weight: 300;
  line-height: 1.65;
}

/* Form helper classes (scoped to auth) */
.vt-auth-wrap .vt-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.vt-auth-wrap .vt-form-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
}
.vt-auth-wrap .vt-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.vt-auth-wrap .vt-form-hint {
  font-size: 11px;
  color: var(--text);
  font-weight: 300;
}

/* Forgot password link */
.vt-forgot-link {
  display: block;
  font-size: 12px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: right;
  margin-top: -6px;
  margin-bottom: 6px;
  cursor: pointer;
}
.vt-forgot-link:hover { color: var(--black); }

/* Full-width sign-in / register button */
.vt-auth-wrap .vt-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  background: var(--vt-true-black);
  color: var(--white);
  border: 1px solid var(--vt-true-black);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.18s;
  text-decoration: none;
}
.vt-auth-wrap .vt-auth-submit:hover {
  background: #3a3637;
  border-color: #3a3637;
}
.vt-auth-wrap .vt-auth-submit:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

/* Secondary CTA — switching sign-in mode (OTC <-> password), not a form submit */
.vt-auth-wrap .vt-auth-submit--outline {
  margin-top: 12px;
  min-height: 40px;
  font-size: 0.8125rem;
  font-weight: 400;
  background: transparent;
  color: var(--vt-true-black);
}
.vt-auth-wrap .vt-auth-submit--outline:hover {
  background: var(--grey3);
  border-color: var(--vt-true-black);
}

/* ── Password show/hide wrapper ──────────────────────────────────────────────── */
.vt-pw-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
/* WooCommerce JS wraps password inputs in <span class="password-input"> — stretch it */
.vt-pw-wrap .password-input {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
/* Hide WC's own show-password button — we use .vt-pw-toggle instead */
.vt-pw-wrap .show-password-input,
.vt-auth-wrap .show-password-input {
  display: none !important;
}
.vt-pw-wrap .woocommerce-Input,
.vt-pw-wrap .input-text,
.vt-pw-wrap .password-input .woocommerce-Input,
.vt-pw-wrap .password-input .input-text {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding-right: 44px !important;
  display: block !important;
}
.vt-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text);
  line-height: 0;
  transition: color 0.15s;
}
.vt-pw-toggle:hover { color: var(--black); }
.vt-pw-icon,
.vt-pw-icon--show,
.vt-pw-icon--hide {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Shrink WC-injected privacy policy text in register form ────────────── */
.vt-auth-wrap .woocommerce-privacy-policy-text,
.vt-auth-wrap .woocommerce-privacy-policy-text p {
  font-size: 11px !important;
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 12px;
}

/* ── Suppress stray WC-injected bullets and password strength dots ───────── */
.vt-auth-wrap li,
.vt-auth-wrap .woocommerce-form li,
.vt-auth-wrap .woocommerce-form p:empty,
.vt-auth-wrap .woocommerce-privacy-policy-text {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}
.vt-auth-wrap li::marker,
.vt-auth-wrap li::before { content: '' !important; font-size: 0 !important; }
/* Kill any WC-injected <ul> (password strength wrapper) inside the forms */
.woocommerce-form-login ul,
.woocommerce-form-register ul {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.woocommerce-form-login li,
.woocommerce-form-register li {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}
/* Hide WC password strength meter and show-password button inside auth forms */
.vt-auth-wrap #password-strength,
.vt-auth-wrap .woocommerce-password-strength,
.vt-auth-wrap .woocommerce-password-hint,
.vt-auth-wrap .show-password-input,
.vt-auth-wrap .display-password { display: none !important; }

/* Remember-me row */
.vt-auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  font-weight: 300;
  margin-bottom: 4px;
}
.vt-auth-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--vt-true-black); /* progressive enhancement — older browsers use default */
  flex-shrink: 0;
}

/* ── Email-sent confirmation state ──────────────────────────────────────────── */
.vt-auth-confirm {
  text-align: center;
  padding: 8px 0 24px;
}
.vt-auth-confirm__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cream, #f7f5f2);
  margin: 0 auto 20px;
  color: var(--vt-true-black);
}
/* Suppress raw WC notice that fires before our split-panel on lost-password page */
body.woocommerce-account .woocommerce-notices-wrapper:first-child {
  display: none !important;
}

/* Switch link (Don't have an account?) */
.vt-auth-switch {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text);
  margin-top: 22px;
  font-weight: 300;
}
.vt-auth-switch a,
.vt-auth-switch button {
  color: var(--vt-true-black);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 400;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

/* Terms text */
.vt-auth-terms {
  font-size: 11px;
  color: var(--text);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
  font-weight: 300;
}
.vt-auth-terms a { color: var(--vt-true-black); }

/* Mobile: hide left panel */
@media (max-width: 900px) {
  .vt-auth-left { display: none; }
  .vt-auth-right {
    width: 100%;
    padding: 24px 24px 40px;
    border-left: none;
  }
}
@media (max-width: 480px) {
  .vt-auth-right { padding: 20px 20px 36px; }
  .vt-auth-card { max-width: 100%; }
  .vt-auth-wrap .vt-form-row-2 { grid-template-columns: 1fr; }
}

/* ── WooCommerce notices inside auth panels ──────────────────────────────────── */
.vt-auth-right .woocommerce-message,
.vt-auth-right .woocommerce-error,
.vt-auth-right .woocommerce-info {
  font-family: var(--font-body);
  font-size: 0.875rem;
  border-radius: 6px;
  border: none;
  border-left: 3px solid var(--black);
  background: var(--cream);
  color: var(--black);
  padding: 12px 16px;
  margin-bottom: 20px;
  list-style: none;
}
.vt-auth-right .woocommerce-error {
  border-left-color: #d32f2f;
  background: #fdf4f4;
}
.vt-auth-right .woocommerce-message::before,
.vt-auth-right .woocommerce-error::before,
.vt-auth-right .woocommerce-info::before { display: none; }

/* ── WooCommerce input overrides inside auth ─────────────────────────────────── */
.vt-auth-wrap .woocommerce-Input,
.vt-auth-wrap .input-text {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--vt-true-black);
  background: var(--white);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  transition: border-color 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  display: block;
}
.vt-auth-wrap .woocommerce-Input:focus,
.vt-auth-wrap .input-text:focus {
  border-color: var(--vt-true-black);
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* LOGGED-IN LAYOUT                                                               */
/* ────────────────────────────────────────────────────────────────────────────── */

.vt-myaccount-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .vt-myaccount-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ── Sidebar card ─────────────────────────────────────────────────────────────── */
.vt-sidebar {
  background: var(--white);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
}

/* User section (cream header) */
.vt-sidebar-user {
  padding: 20px;
  border-bottom: 1px solid var(--grey3);
  background: var(--cream);
}
.vt-sidebar-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--vt-true-black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.vt-sidebar-name {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 2px;
  line-height: 1.3;
}
.vt-sidebar-email {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 300;
  word-break: break-all;
}
.vt-sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #059669;
}
.vt-sidebar-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #059669;
  flex-shrink: 0;
  animation: vt-badge-pulse 2s ease-in-out infinite;
}
@keyframes vt-badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* Nav section */
.vt-sidebar-nav {
  padding: 8px 0;
}
.vt-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.vt-sidebar-item:hover {
  background: #FAFAFA;
  color: var(--black);
  text-decoration: none;
}
.vt-sidebar-item.active,
.vt-sidebar-item.is-active {
  color: var(--black);
  font-weight: 500;
  border-left-color: var(--black);
  background: var(--vt-page-bg);
}
.vt-sidebar-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.vt-sidebar-item.vt-sidebar-logout {
  color: var(--text);
  border-left-color: transparent;
}
.vt-sidebar-item.vt-sidebar-logout:hover {
  color: #C62828;
  background: #fff5f5;
}
.vt-sidebar-divider {
  height: 1px;
  background: var(--grey3);
  margin: 6px 0;
}
.vt-notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  margin-left: auto;
  flex-shrink: 0;
}

/* Mobile: sidebar hidden, mobile strips shown */
@media (max-width: 900px) {
  .vt-sidebar { display: none; }
}

/* ── Mobile user strip ────────────────────────────────────────────────────────── */
.vt-mobile-user-strip {
  display: none;
  background: var(--cream);
  padding: 14px 20px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--grey3);
  margin-bottom: 0;
}
.vt-mobile-user-strip .vt-sidebar-avatar {
  width: 38px;
  height: 38px;
  font-size: 17px;
  margin-bottom: 0;
}
.vt-mobile-user-info .vt-sidebar-name { font-size: 0.875rem; }
.vt-mobile-user-info .vt-sidebar-email { font-size: 11px; }

/* ── Mobile account nav strip ─────────────────────────────────────────────────── */
.vt-mobile-account-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--grey3);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
}
.vt-mobile-account-nav::-webkit-scrollbar { display: none; }
.vt-mobile-nav-inner {
  display: flex;
  padding: 0 16px;
  min-width: max-content;
}
.vt-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text);
  font-weight: 400;
  text-decoration: none;
  position: relative;
}
.vt-mobile-nav-item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.vt-mobile-nav-item.active,
.vt-mobile-nav-item.is-active {
  color: var(--black);
  border-bottom-color: var(--black);
  font-weight: 500;
}
.vt-mobile-nav-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .vt-mobile-user-strip { display: flex; }
  .vt-mobile-account-nav { display: block; }
}

/* ── Content area ─────────────────────────────────────────────────────────────── */
.woocommerce-MyAccount-content {
  min-width: 0;
}
.vt-page-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 4px;
  line-height: 1.15;
}
.vt-page-subtitle {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 300;
  margin-bottom: 24px;
}

/* ─── DASHBOARD ─────────────────────────────────────────────────────── */

/* Active subscription card */
.vt-dash-sub-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.vt-dash-sub-card__icon {
  width: 36px; height: 36px; flex-shrink: 0;
}
.vt-dash-sub-card__icon svg {
  width: 100%; height: 100%;
  fill: none; stroke: #059669;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.vt-dash-sub-card__body { flex: 1; min-width: 0; }
.vt-dash-sub-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
}
.vt-dash-sub-card__meta {
  font-size: 0.75rem;
  color: var(--text);
  margin-top: 2px;
}
.vt-dash-sub-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
}
.vt-dash-sub-card__link:hover { text-decoration: underline; }

/* Dashboard sections */
.vt-dash-section {
  margin-bottom: 28px;
}
.vt-dash-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.vt-dash-section__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--black);
}
.vt-dash-section__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
}
.vt-dash-section__link:hover { text-decoration: underline; }

/* Recent orders list */
.vt-dash-orders {
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  overflow: hidden;
}
.vt-dash-order {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  text-decoration: none;
  transition: background .12s;
}
.vt-dash-order:not(:last-child) {
  border-bottom: 1px solid var(--grey3);
}
.vt-dash-order:hover { background: #F7F5F2; }
.vt-dash-order__thumb {
  width: 48px; height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: #F7F5F2;
  flex-shrink: 0;
}
.vt-dash-order__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.vt-dash-order__info { flex: 1; min-width: 0; }
.vt-dash-order__number {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
}
.vt-dash-order__status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: #F3F4F6;
  color: var(--text);
}
.vt-dash-order__status--processing { background: #FEF3C7; color: #92400E; }
.vt-dash-order__status--completed { background: #ECFDF5; color: #059669; }
.vt-dash-order__status--refunded { background: #FDF2F8; color: #BE185D; }
.vt-dash-order__status--cancelled { background: #FEE2E2; color: #DC2626; }
.vt-dash-order__status--on-hold { background: #FFF7ED; color: #C2410C; }
.vt-dash-order__meta {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 300;
  margin-top: 2px;
}
.vt-dash-order__arrow {
  width: 18px; height: 18px;
  flex-shrink: 0;
  fill: none; stroke: var(--grey2);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 600px) {
  .vt-dash-sub-card { flex-wrap: wrap; }
}

/* Generic card for sections */
.vt-card {
  background: var(--white);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
/* ─── MY DETAILS TABS ───────────────────────────────────────────────── */
.vt-details-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--grey3);
  margin-bottom: 20px;
}
.vt-details-tab {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.vt-details-tab:hover { color: var(--black); }
.vt-details-tab--active {
  color: var(--black);
  border-bottom-color: var(--black);
}

.vt-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--grey3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vt-card-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
}
.vt-card-body { padding: 24px; }
.vt-card-link {
  font-size: 0.8125rem;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Shared button variants */
.vt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--btn-font-size-compact);
  text-transform: capitalize;
  padding: 0 var(--btn-pad-x);
  min-height: var(--btn-h);
  border-radius: var(--radius-btn);
  box-shadow: none;
  border: 1px solid var(--black);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.vt-btn-solid {
  background: var(--black);
  color: var(--white);
}
.vt-btn-solid:hover {
  background: #3a3a3a;
  border-color: #3a3a3a;
  color: var(--white);
  text-decoration: none;
}
.vt-btn-outline {
  background: transparent;
  color: var(--black);
}
.vt-btn-outline:hover {
  background: var(--black);
  color: var(--white);
  text-decoration: none;
}
.vt-btn-sm {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 0.75rem;
}
.vt-btn-danger {
  border-color: #C62828;
  color: #C62828;
  background: transparent;
}
.vt-btn-danger:hover {
  background: #C62828;
  color: var(--white);
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* ORDER CARDS                                                                    */
/* ────────────────────────────────────────────────────────────────────────────── */

.vt-orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Tabs row */
.vt-orders-tabs {
  display: flex;
  border-bottom: 1px solid var(--grey3);
  margin-bottom: 24px;
  gap: 0;
}
.vt-orders-tab {
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.vt-orders-tab.active,
.vt-orders-tab[aria-selected="true"] {
  color: var(--black);
  font-weight: 500;
  border-bottom-color: var(--black);
}
.vt-orders-tab:hover:not(.active) { color: var(--black); }

/* Order card */
.vt-order-card {
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.vt-order-card[hidden] { display: none; }

.vt-order-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--grey3);
  background: #F7F5F2;
  flex-wrap: wrap;
  gap: 10px;
}
.vt-order-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.vt-order-meta-group { line-height: 1; }
.vt-order-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 3px;
  font-weight: 400;
}
.vt-order-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
}

/* Status pill */
.vt-order-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  background: var(--grey3);
  color: var(--text);
}
.vt-order-status-pill--completed  { background: #E8F5E9; color: #2E7D32; }
.vt-order-status-pill--processing { background: #FFF8E1; color: #F57F17; }
.vt-order-status-pill--on-hold    { background: #FFF8E1; color: #F57F17; }
.vt-order-status-pill--shipped    { background: #E3F2FD; color: #1565C0; }
.vt-order-status-pill--cancelled  { background: #FFEBEE; color: #C62828; }
.vt-order-status-pill--failed     { background: #FFEBEE; color: #C62828; }
.vt-order-status-pill--refunded   { background: #F3E5F5; color: #6A1B9A; }
.vt-order-status-pill--pending    { background: var(--cream); color: var(--text); }

/* Order items list */
.vt-order-items {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vt-order-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vt-order-item-img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: var(--vt-page-bg);
  overflow: hidden;
  flex-shrink: 0;
}
.vt-order-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vt-order-item-info { flex: 1; min-width: 0; }
.vt-order-item-name {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vt-order-item-sub {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 300;
}
.vt-order-item-price {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  flex-shrink: 0;
}

/* Order footer */
.vt-order-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--grey3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.vt-order-total-label {
  font-size: 0.875rem;
  color: var(--text);
}
.vt-order-total-label strong {
  color: var(--black);
  font-weight: 500;
}
.vt-order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Orders empty state */
.vt-orders-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
}
.vt-orders-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--vt-page-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vt-orders-empty__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--grey2);
  fill: none;
  stroke-width: 1.5;
}
.vt-orders-empty__heading {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 6px;
}
.vt-orders-empty__text {
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ─── SUBSCRIPTION UPSELL CARD ──────────────────────────────────────── */
.vt-sub-promo {
  background: #FFF1DE;
  border: 1px solid #FFA222;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(255,162,34,.14), 0 1px 3px rgba(0,0,0,.04);
  overflow: hidden; display: flex;
}
.vt-sp-img-col {
  width: 130px; flex-shrink: 0; align-self: stretch;
  background: var(--vt-page-bg); overflow: hidden;
}
.vt-sp-img-col picture { display: block; width: 100%; height: 100%; }
.vt-sp-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-sp-body {
  flex: 1; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 5px;
}
.vt-sp-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text);
}
.vt-sp-badge {
  display: inline-flex; align-self: flex-start; align-items: center;
  background: #ECFDF5; border: 1px solid #A7F3D0;
  color: #059669; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; letter-spacing: .05em; text-transform: uppercase;
}
.vt-sp-title {
  font-family: var(--font-head); font-size: 19px; font-weight: 600;
  color: var(--black); line-height: 1.25;
}
.vt-sp-price-row { display: flex; align-items: baseline; gap: 7px; }
.vt-sp-price { font-size: 18px; font-weight: 700; color: var(--black); }
.vt-sp-was { font-size: 12px; color: var(--text); text-decoration: line-through; }
.vt-sp-meta {
  display: flex; flex-wrap: wrap; gap: 2px 12px;
  font-size: 11.5px; color: var(--text);
}
.vt-sp-meta span::before { content: "· "; }
.vt-sp-actions { margin-top: 4px; }
/* Secondary (black) — email button template, no shadow */
.vt-sp-btn {
  display: inline-flex; align-items: center; text-decoration: none;
  background: var(--black); color: #fff; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: var(--btn-font-size-compact); font-weight: 500;
  letter-spacing: 0; text-transform: capitalize;
  min-height: var(--btn-h); padding: 0 var(--btn-pad-x); border-radius: var(--radius-btn);
  transition: background .15s;
}
.vt-sp-btn:hover { background: #3a3a3a; color: #fff; }
@media (max-width: 600px) {
  .vt-sp-img-col { width: 100px; }
  .vt-sp-title { font-size: 16px; }
}

/* ─── MY OFFERS — FREE GIFTS SECTION ────────────────────────────────── */
.vt-offers-gifts {
  background: var(--white);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
}
.vt-offers-gifts .vt-fg-filters {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 24px;
}
.vt-offers-gifts .vt-fg-grid {
  gap: 16px;
}
.vt-offers-gifts .vt-gm-filter {
  font-family: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: .03em; padding: 6px 16px; border-radius: 20px;
  border: 1.5px solid var(--grey3); background: var(--white);
  color: var(--text); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.vt-offers-gifts .vt-gm-filter:hover { border-color: #999; color: var(--black); }
.vt-offers-gifts .vt-gm-filter--active { background: var(--black); border-color: var(--black); color: #fff; }
.vt-offers-gifts .vt-gm-filter--active:hover { background: #000; border-color: #000; color: #fff; }

/* Skeleton */
.vt-fg-skeleton { padding: 0; }
.vt-fg-sk-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px;
}
.vt-fg-sk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.vt-fg-sk-tile {
  background: var(--vt-page-bg);
  border-radius: var(--radius);
  padding: 12px 12px 16px;
  display: flex; flex-direction: column; align-items: center;
}
.vt-fg-sk-tile__img { width: 100%; aspect-ratio: 1; border-radius: var(--radius); }

/* Orders pagination */
.woocommerce-pagination {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  padding-top: 20px;
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* VIEW ORDER (single order detail page)                                          */
/* ────────────────────────────────────────────────────────────────────────────── */

/* Back link */
.vt-vo-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.15s;
}
.vt-vo-back:hover { color: var(--black); }
.vt-vo-back svg { flex-shrink: 0; }

/* Card wrapper (shared by header, details, addresses) */
.vt-vo-card {
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  margin-bottom: 20px;
}

/* ── Header card ── */
.vt-vo-header {
  padding: 20px 24px;
  background: #F7F5F2;
  border-bottom: 1px solid var(--grey3);
}
.vt-vo-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.vt-vo-headline-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vt-vo-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vt-vo-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--black);
  margin: 0;
}
.vt-vo-meta-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.vt-vo-meta-item { line-height: 1; }
.vt-vo-meta-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 400;
}
.vt-vo-meta-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
}

/* ── Section title (Items, Billing, etc.) ── */
.vt-vo-section-title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--black);
  margin: 0 0 14px;
  padding: 20px 24px 0;
}

/* ── Order notes ── */
.vt-vo-notes { padding: 0 24px 20px; }
.vt-vo-notes .vt-vo-section-title { padding: 16px 0 0; }
.vt-vo-notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vt-vo-note {
  padding: 10px 14px;
  background: var(--vt-page-bg);
  border-radius: 6px;
  font-size: 0.8125rem;
}
.vt-vo-note-date {
  display: block;
  font-size: 0.6875rem;
  color: var(--text);
  margin-bottom: 4px;
  font-weight: 400;
}
.vt-vo-note-text p { margin: 0; color: var(--black); }

/* ── Items list ── */
.vt-vo-items {
  padding: 0 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.vt-vo-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey3);
}
.vt-vo-item:last-child { border-bottom: none; }
.vt-vo-item-img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: var(--vt-page-bg);
  overflow: hidden;
  flex-shrink: 0;
}
.vt-vo-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vt-vo-item-body { flex: 1; min-width: 0; }
.vt-vo-item-name {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 4px;
}
.vt-vo-item-name a {
  color: inherit;
  text-decoration: none;
}
.vt-vo-item-name a:hover { text-decoration: underline; }
.vt-vo-item-meta {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 300;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.vt-vo-item-qty { white-space: nowrap; }
/* Style WooCommerce inline meta (Box Type, etc.) */
.vt-vo-item-meta .wc-item-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.vt-vo-item-meta .wc-item-meta li {
  display: inline;
  font-size: 0.75rem;
  color: var(--text);
}
.vt-vo-item-meta .wc-item-meta li strong { font-weight: 400; }
.vt-vo-item-meta .wc-item-meta li p {
  display: inline;
  margin: 0;
}
.vt-vo-item-price {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
  flex-shrink: 0;
  text-align: right;
}
.vt-vo-purchase-note {
  padding: 8px 24px 8px 104px;
  font-size: 0.8125rem;
  color: var(--text);
  font-style: italic;
}
.vt-vo-purchase-note p { margin: 0; }

/* ── Totals ── */
.vt-vo-totals {
  padding: 16px 24px;
  border-top: 1px solid var(--grey3);
  background: var(--vt-page-bg);
}
.vt-vo-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 0.8125rem;
  color: var(--text);
}
.vt-vo-total-row--grand {
  border-top: 1px solid var(--grey3);
  margin-top: 6px;
  padding-top: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
}
.vt-vo-total-label { font-weight: 400; }
.vt-vo-total-row--grand .vt-vo-total-label { font-weight: 500; }
.vt-vo-total-value { text-align: right; }
.vt-vo-customer-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 0;
  font-size: 0.8125rem;
  color: var(--text);
}

/* ── Actions ── */
.vt-vo-actions {
  padding: 14px 24px;
  border-top: 1px solid var(--grey3);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Addresses ── */
.vt-vo-addresses { margin-bottom: 20px; }
.vt-vo-addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.vt-vo-addr .vt-vo-section-title { padding-bottom: 0; }
.vt-vo-addr-text {
  padding: 0 24px 20px;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--black);
  line-height: 1.7;
}
.vt-vo-addr-extra {
  margin-top: 6px;
  color: var(--text);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .vt-vo-header { padding: 16px 18px; }
  .vt-vo-title { font-size: 1.25rem; }
  .vt-vo-meta-row { gap: 18px; }
  .vt-vo-section-title { padding-left: 18px; padding-right: 18px; }
  .vt-vo-items { padding-left: 18px; padding-right: 18px; }
  .vt-vo-item { gap: 12px; }
  .vt-vo-item-img { width: 48px; height: 48px; }
  .vt-vo-totals { padding: 14px 18px; }
  .vt-vo-actions { padding: 12px 18px; }
  .vt-vo-notes { padding: 0 18px 16px; }
  .vt-vo-addr-grid { grid-template-columns: 1fr; gap: 12px; }
  .vt-vo-addr-text { padding: 0 18px 16px; }
  .vt-vo-purchase-note { padding-left: 18px; }
}

/* ── Hide default WooCommerce table styles when our override is active ── */
.vt-vo-details .woocommerce-table--order-details,
.vt-vo-details .shop_table { display: none; }

/* ────────────────────────────────────────────────────────────────────────────── */
/* WC NOTICES (logged-in dashboard context)                                       */
/* ────────────────────────────────────────────────────────────────────────────── */

body.woocommerce-account.logged-in .woocommerce-message,
body.woocommerce-account.logged-in .woocommerce-error,
body.woocommerce-account.logged-in .woocommerce-info {
  font-family: var(--font-body);
  font-size: 0.875rem;
  border-radius: 6px;
  border: none;
  border-left: 3px solid var(--black);
  background: var(--cream);
  color: var(--black);
  padding: 12px 16px;
  margin-bottom: 20px;
  list-style: none;
}
body.woocommerce-account.logged-in .woocommerce-error {
  border-left-color: #d32f2f;
  background: #fdf4f4;
}
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-error::before,
body.woocommerce-account .woocommerce-info::before { display: none; }

/* ── WooCommerce form field overrides (logged-in forms) ──────────────────────── */
body.woocommerce-account .woocommerce-Input,
body.woocommerce-account .input-text {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  transition: border-color 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  display: block;
}
body.woocommerce-account .woocommerce-Input:focus,
body.woocommerce-account .input-text:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(86,86,86,0.1);
}

body.woocommerce-account .woocommerce-form-row label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 5px;
}
body.woocommerce-account .woocommerce-form-row { margin-bottom: 12px; }
body.woocommerce-account .woocommerce-form-row .required { color: #d32f2f; }
body.woocommerce-account .screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── WooCommerce button overrides ────────────────────────────────────────────── */
body.woocommerce-account .woocommerce-Button,
body.woocommerce-account .woocommerce-button,
body.woocommerce-account .button:not(.page-numbers) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
body.woocommerce-account .woocommerce-Button:hover,
body.woocommerce-account .woocommerce-button:hover,
body.woocommerce-account .button:not(.page-numbers):hover {
  background: var(--grey1);
  border-color: var(--grey1);
  color: var(--white);
  text-decoration: none;
}

/* ─── WC ADDRESS FORM (subscription change address, edit address) ─── */
.woocommerce-address-fields .form-row {
  margin-bottom: 14px;
}
.woocommerce-address-fields .form-row label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
  margin-bottom: 5px;
}
.woocommerce-address-fields .form-row .input-text,
.woocommerce-address-fields .form-row select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.875rem;
  padding: 10px 14px;
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.woocommerce-address-fields .form-row .input-text:focus,
.woocommerce-address-fields .form-row select:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(86,86,86,.1);
}
.woocommerce-address-fields .form-row-first,
.woocommerce-address-fields .form-row-last {
  display: inline-block;
  width: calc(50% - 8px);
  vertical-align: top;
}
.woocommerce-address-fields .form-row-first { margin-right: 12px; }
.woocommerce-address-fields p.form-row { padding: 0; }
.woocommerce-address-fields .woocommerce-address-fields__field-wrapper {
  background: var(--white);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .woocommerce-address-fields .form-row-first,
  .woocommerce-address-fields .form-row-last {
    width: 100%; margin-right: 0;
  }
}

/* ─── VIEW SUBSCRIPTION DETAIL PAGE ─────────────────────────────────── */
.woocommerce-MyAccount-content .subscription_details,
.woocommerce-MyAccount-content .wcs-subscription-details-wrapper {
  background: var(--white);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.woocommerce-MyAccount-content .subscription_details h2,
.woocommerce-MyAccount-content .subscription-details h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 16px;
}
.woocommerce-MyAccount-content .subscription_details table {
  width: 100%;
  border-collapse: collapse;
}
.woocommerce-MyAccount-content .subscription_details table th,
.woocommerce-MyAccount-content .subscription_details table td {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey3);
  text-align: left;
}
.woocommerce-MyAccount-content .subscription_details table th {
  font-weight: 500;
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.woocommerce-MyAccount-content .subscription_details table td {
  color: var(--black);
  font-weight: 400;
}

/* Hide WC Subscriptions default "Related subscriptions" on view-order —
   we render our own styled version in the template. */
.woocommerce-MyAccount-content .woocommerce_subscriptions_related_orders_on_view_order,
.woocommerce-MyAccount-content > .woocommerce-order-subscriptions,
.woocommerce-MyAccount-content section.woocommerce-order-subscriptions,
.woocommerce-MyAccount-content .shop_table.my_account_orders.my_account_subscriptions {
  display: none;
}

/* ─── VIEW SUBSCRIPTION — PRODUCT SECTION ───────────────────────────── */
.vt-vs-product {
  display: flex;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--grey3);
}
.vt-vs-product__img {
  width: 160px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #F7F5F2;
}
.vt-vs-product__img img {
  width: 100%; height: auto; display: block; object-fit: cover;
}
.vt-vs-product__info { flex: 1; }
.vt-vs-product__name {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 6px;
  line-height: 1.25;
}
.vt-vs-product__price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
}
.vt-vs-product__period {
  font-weight: 400;
  color: var(--text);
  font-size: 0.875rem;
}
.vt-vs-product__desc {
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
}
.vt-vs-product__desc p { margin: 0 0 8px; }
.vt-vs-product__desc p:last-child { margin-bottom: 0; }
.vt-vs-product__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--text);
  margin-top: 8px;
}
.vt-vs-product__dot { color: var(--text); }
@media (max-width: 600px) {
  .vt-vs-product { flex-direction: column; gap: 16px; }
  .vt-vs-product__img { width: 120px; }
  .vt-vs-product__name { font-size: 1.125rem; }
}
body.woocommerce-account .woocommerce-Button--previous,
body.woocommerce-account .woocommerce-Button--next {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.8125rem;
}
body.woocommerce-account .woocommerce-Button--previous:hover,
body.woocommerce-account .woocommerce-Button--next:hover {
  background: var(--black);
  color: var(--white);
}
#password-strength {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 6px;
  display: block;
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* EDIT ACCOUNT / ADDRESS FORMS                                                   */
/* ────────────────────────────────────────────────────────────────────────────── */

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 16px;
}
.woocommerce-MyAccount-content h2 { font-size: 1.5rem; }
.woocommerce-MyAccount-content h3 { font-size: 1.25rem; }

.woocommerce-MyAccount-content fieldset {
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.woocommerce-MyAccount-content legend {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  padding: 0 8px;
}
.woocommerce-MyAccount-content .woocommerce-form-row--first,
.woocommerce-MyAccount-content .woocommerce-form-row--last {
  display: inline-block;
  width: calc(50% - 8px);
}
.woocommerce-MyAccount-content .woocommerce-form-row--first { margin-right: 16px; }
@media (max-width: 540px) {
  .woocommerce-MyAccount-content .woocommerce-form-row--first,
  .woocommerce-MyAccount-content .woocommerce-form-row--last {
    width: 100%;
    margin-right: 0;
  }
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* ADDRESSES                                                                      */
/* ────────────────────────────────────────────────────────────────────────────── */

.woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .woocommerce-Addresses { grid-template-columns: 1fr; }
}
.woocommerce-Address {
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  padding: 20px;
}
.woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--grey3);
}
.woocommerce-Address-title h3 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--black);
  margin: 0;
}
.woocommerce-Address-title .edit {
  font-size: 0.8125rem;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.woocommerce-Address-title .edit:hover { color: var(--black); }
address.woocommerce-Address,
.woocommerce-Address address {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
  border: none;
  padding: 0;
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* LOST PASSWORD                                                                  */
/* ────────────────────────────────────────────────────────────────────────────── */

.woocommerce-ResetPassword.lost_reset_password {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  padding: 32px 36px 36px;
}
@media (max-width: 540px) {
  .woocommerce-ResetPassword.lost_reset_password {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 24px 20px 28px;
    margin: 0 -16px;
  }
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* SUBSCRIPTION SECTION                                                           */
/* ────────────────────────────────────────────────────────────────────────────── */

.vt-sub-card {
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  margin-bottom: 16px;
}
.vt-sub-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--grey3);
  flex-wrap: wrap;
  gap: 8px;
}
.vt-sub-title { font-size: 0.9375rem; font-weight: 500; color: var(--black); }
.vt-sub-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.vt-sub-status--active   { background: #E8F5E9; color: #2E7D32; }
.vt-sub-status--paused   { background: #FFF8E1; color: #F57F17; }
.vt-sub-status--cancelled { background: #FFEBEE; color: #C62828; }
.vt-sub-body { padding: 20px; }
.vt-sub-product {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.vt-sub-product-img {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  background: var(--vt-page-bg);
  overflow: hidden;
  flex-shrink: 0;
}
.vt-sub-product-img img { width: 100%; height: 100%; object-fit: cover; }
.vt-sub-product-name { font-size: 0.9375rem; font-weight: 500; margin-bottom: 2px; }
.vt-sub-product-scent { font-size: 0.8125rem; color: var(--text); font-weight: 300; margin-bottom: 4px; }
.vt-sub-product-price { font-size: 0.875rem; font-weight: 500; }
.vt-sub-details {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--vt-page-bg);
  border-radius: 6px;
}
@media (max-width: 540px) {
  .vt-sub-details { grid-template-columns: 1fr 1fr; }
}
.vt-sub-detail-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin-bottom: 3px;
}
.vt-sub-detail-value { font-size: 0.875rem; font-weight: 500; color: var(--black); }
.vt-sub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--grey3);
}
.vt-sub-footer__left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vt-btn--danger {
  border-color: #DC2626;
  color: #DC2626;
  background: transparent;
}
.vt-btn--danger:hover {
  background: #DC2626;
  border-color: #DC2626;
  color: #fff;
}
.vt-sub-perks {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 24px;
}
@media (max-width: 540px) { .vt-sub-perks { grid-template-columns: 1fr; } }
.vt-sub-perk {
  background: var(--vt-page-bg);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
}
.vt-sub-perk svg {
  width: 22px; height: 22px;
  stroke: var(--black); fill: none; stroke-width: 1.5;
  margin: 0 auto 8px; display: block;
}
.vt-sub-perk-title { font-size: 0.8125rem; font-weight: 500; margin-bottom: 3px; }
.vt-sub-perk-sub { font-size: 11px; color: var(--text); font-weight: 300; }

/* ── WC hook-injected sections on view-order page ── */

/* Related Subscriptions (injected by WC Subscriptions plugin) */
.woocommerce-account .woocommerce-order-details {
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  margin-bottom: 20px;
  margin-top: 20px;
}
/* Hide the WC Subscriptions injected "Related subscriptions" — we render our own styled version */
.woocommerce-account .woocommerce-order-details:has(> h2:first-child:last-child),
.woocommerce-account section.woocommerce-subscription-details {
  display: none;
}
/* Fallback for browsers without :has() — hide empty sections */
.woocommerce-account .woocommerce-order-details:empty {
  display: none;
}
.woocommerce-account .woocommerce-order-details h2 {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 400;
  padding: 16px 24px;
  margin: 0;
  background: #F7F5F2;
  border-bottom: 1px solid var(--grey3);
}
.woocommerce-account .woocommerce-order-details table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.woocommerce-account .woocommerce-order-details th,
.woocommerce-account .woocommerce-order-details td {
  padding: 12px 24px;
  text-align: left;
  border-bottom: 1px solid var(--grey3);
}
.woocommerce-account .woocommerce-order-details th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  font-weight: 500;
  background: var(--vt-page-bg);
}
.woocommerce-account .woocommerce-order-details td {
  color: var(--black);
  font-weight: 400;
}
.woocommerce-account .woocommerce-order-details td a {
  color: var(--black);
  font-weight: 500;
  text-decoration: none;
}
.woocommerce-account .woocommerce-order-details td a:hover {
  text-decoration: underline;
}
.woocommerce-account .woocommerce-order-details tr:last-child td {
  border-bottom: 0;
}

/* Customer details / addresses (billing + shipping) */
.woocommerce-account .woocommerce-customer-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .woocommerce-account .woocommerce-customer-details { grid-template-columns: 1fr; }
}
.woocommerce-account .woocommerce-customer-details .woocommerce-column {
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px 24px;
}
.woocommerce-account .woocommerce-customer-details h2,
.woocommerce-account .woocommerce-customer-details .woocommerce-column__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--black);
}
.woocommerce-account .woocommerce-customer-details address {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text);
}
.woocommerce-account .woocommerce-customer-details address p {
  margin: 0;
}

/* ── Related Orders ── */
.vt-related-orders { padding: 0; }
.vt-related-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--grey3);
  flex-wrap: wrap;
}
.vt-related-order:last-child { border-bottom: 0; }
.vt-related-order__id a {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--black);
  text-decoration: none;
}
.vt-related-order__id a:hover { text-decoration: underline; }
.vt-related-order__meta {
  font-size: 0.8125rem;
  color: var(--text);
  margin-top: 2px;
}
.vt-related-order__dot { margin: 0 4px; }
.vt-related-order__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.vt-related-order__total {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  min-width: 60px;
  text-align: right;
}
@media (max-width: 540px) {
  .vt-related-order { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .vt-related-order__right { width: 100%; justify-content: space-between; }
}

/* ── Cancel Confirmation ── */
.vt-cancel-confirm {
  margin: 0 24px 20px;
  padding: 16px 20px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
}
.vt-cancel-confirm__inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.vt-cancel-confirm__inner svg { flex-shrink: 0; margin-top: 2px; }
.vt-cancel-confirm__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #991B1B;
  margin: 0 0 4px;
}
.vt-cancel-confirm__text {
  font-size: 0.8125rem;
  color: #7F1D1D;
  margin: 0;
  line-height: 1.5;
}
.vt-cancel-confirm__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Status badges for order statuses */
.vt-sub-status--processing { background: #FFF8E1; color: #F57F17; }
.vt-sub-status--completed  { background: #E8F5E9; color: #2E7D32; }
.vt-sub-status--on-hold    { background: #FFF8E1; color: #F57F17; }
.vt-sub-status--pending    { background: #E3F2FD; color: #1565C0; }
.vt-sub-status--failed     { background: #FFEBEE; color: #C62828; }
.vt-sub-status--refunded   { background: #F3E5F5; color: #7B1FA2; }

/* ────────────────────────────────────────────────────────────────────────────── */
/* OFFERS SECTION                                                                 */
/* ────────────────────────────────────────────────────────────────────────────── */

.vt-offers-banner {
  background: linear-gradient(135deg, var(--cream), #e8ddd0);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--grey3);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.vt-offers-banner h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 400; margin-bottom: 4px; }
.vt-offers-banner p { font-size: 0.8125rem; color: var(--text); font-weight: 300; }
.vt-offers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) { .vt-offers-grid { grid-template-columns: 1fr; } }
.vt-offer-tile {
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.vt-offer-tile.expired .vt-offer-tile-title { color: var(--text); }
.vt-offer-tile-img {
  height: 120px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.vt-offer-tile-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.expired .vt-offer-tile-img img { opacity: 0.3; }
.vt-offer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #F4A400;
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.expired .vt-offer-badge { background: var(--grey2); }
.vt-offer-expiry {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
}
.vt-offer-tile-body { padding: 14px 16px; }
.vt-offer-tile-title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.vt-offer-tile-desc { font-size: 0.75rem; color: var(--text); font-weight: 300; margin-bottom: 10px; line-height: 1.5; }
.vt-offer-code-row { display: flex; align-items: center; gap: 8px; }
.vt-offer-code {
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--vt-page-bg);
  border: 1px dashed var(--grey3);
  border-radius: 4px;
  padding: 5px 10px;
  letter-spacing: 0.08em;
  flex: 1;
  text-align: center;
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* TOGGLE SWITCHES (notifications)                                                 */
/* ────────────────────────────────────────────────────────────────────────────── */

.vt-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey3);
}
.vt-toggle-row:last-child { border-bottom: none; }
.vt-toggle-info { flex: 1; padding-right: 20px; }
.vt-toggle-label { font-size: 0.875rem; font-weight: 500; color: var(--black); margin-bottom: 2px; }
.vt-toggle-sub { font-size: 0.75rem; color: var(--text); font-weight: 300; }
.vt-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.vt-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.vt-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--grey3);
  border-radius: 22px;
  transition: 0.2s;
}
.vt-toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.2s;
}
.vt-toggle input:checked + .vt-toggle-slider { background: var(--black); }
.vt-toggle input:checked + .vt-toggle-slider::before { transform: translateX(18px); }

/* ── Empty state (generic) ───────────────────────────────────────────────────── */
.vt-empty-state {
  text-align: center;
  padding: 48px 24px;
}
.vt-empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: var(--vt-page-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.vt-empty-icon svg { width: 24px; height: 24px; stroke: var(--grey2); fill: none; stroke-width: 1.5; }
.vt-empty-title {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 6px;
}
.vt-empty-sub { font-size: 0.8125rem; color: var(--text); font-weight: 300; margin-bottom: 20px; line-height: 1.6; }

/* ────────────────────────────────────────────────────────────────────────────── */
/* BUTTON MODIFIER ALIASES (double-dash BEM variants used in newer templates)     */
/* ────────────────────────────────────────────────────────────────────────────── */

.vt-btn--primary {
  background: var(--vt-true-black);
  color: var(--white);
  border-color: var(--vt-true-black);
}
.vt-btn--primary:hover {
  background: #3a3a3a;
  border-color: #3a3a3a;
  color: var(--white);
  text-decoration: none;
}
.vt-btn--outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.vt-btn--outline:hover {
  background: var(--black);
  color: var(--white);
  text-decoration: none;
}
.vt-btn--sm {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 0.75rem;
}
.vt-btn--danger {
  border-color: #C62828;
  color: #C62828;
  background: transparent;
}
.vt-btn--danger:hover {
  background: #C62828;
  color: var(--white);
  text-decoration: none;
}

/* ── vt-btn svg icon size ────────────────────────────────────────────────────── */
.vt-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* SKELETON LOADERS                                                               */
/* ────────────────────────────────────────────────────────────────────────────── */

@keyframes vt-acct-sk {
  0%   { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

/* Shared shimmer bar */
.vt-sk-bar {
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, #efefef 0%, #e4e4e4 40%, #efefef 80%);
  background-size: 300% 100%;
  animation: vt-acct-sk 1.4s ease-in-out infinite;
}

/* ── Auth panel skeleton (login / register right panel) ─────────────────────── */
.vt-auth-right { position: relative; }

.vt-auth-sk {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
  transition: opacity 0.25s;
  pointer-events: none;
}

.vt-auth-sk__card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
}

.vt-auth-sk__logo     { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-bottom: 28px; }
.vt-auth-sk__logo-nm  { width: 100px; height: 14px; }
.vt-auth-sk__logo-sub { width: 52px;  height: 8px; }
.vt-auth-sk__title    { width: 62%;   height: 28px; margin-bottom: 8px; }
.vt-auth-sk__sub      { width: 100%;  height: 11px; margin-bottom: 4px; }
.vt-auth-sk__sub2     { width: 78%;   height: 11px; margin-bottom: 24px; }
.vt-auth-sk__lbl      { width: 76px;  height: 10px; margin-bottom: 6px; }
.vt-auth-sk__input    { width: 100%;  height: 44px; margin-bottom: 14px; }
.vt-auth-sk__btn      { width: 100%;  height: 50px; margin-top: 8px; }

@media (max-width: 480px) {
  .vt-auth-sk { padding: 40px 20px; }
}

/* ── Sidebar navigation skeleton ─────────────────────────────────────────────── */
.vt-nav-sk {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--white);
  overflow: hidden;
  transition: opacity 0.25s;
  pointer-events: none;
}

.vt-nav-sk__user {
  padding: 20px;
  background: var(--cream);
  border-bottom: 1px solid var(--grey3);
}

.vt-nav-sk__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(90deg, #d8d4cf 0%, #cdc9c4 40%, #d8d4cf 80%);
  background-size: 300% 100%;
  animation: vt-acct-sk 1.4s ease-in-out infinite;
  margin-bottom: 10px;
}

.vt-nav-sk__name  { width: 108px; height: 14px; margin-bottom: 6px; }
.vt-nav-sk__email { width: 152px; height: 10px; }

.vt-nav-sk__nav { padding: 8px 0; }

.vt-nav-sk__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
}

.vt-nav-sk__icon { width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0; }
.vt-nav-sk__text { height: 13px; }
.vt-nav-sk__row:nth-child(1) .vt-nav-sk__text { width: 80px; }
.vt-nav-sk__row:nth-child(2) .vt-nav-sk__text { width: 60px; }
.vt-nav-sk__row:nth-child(3) .vt-nav-sk__text { width: 110px; }
.vt-nav-sk__row:nth-child(4) .vt-nav-sk__text { width: 72px; }
.vt-nav-sk__row:nth-child(5) .vt-nav-sk__text { width: 96px; }
.vt-nav-sk__row:nth-child(6) .vt-nav-sk__text { width: 64px; }
.vt-nav-sk__row:nth-child(7) .vt-nav-sk__text { width: 84px; }

/* ── Orders list skeleton overlay ────────────────────────────────────────────── */
.vt-orders-list { position: relative; }

.vt-orders-sk {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--vt-page-bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.25s;
  pointer-events: none;
}

.vt-order-sk-c {
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  flex-shrink: 0;
}

.vt-order-sk-c__head {
  padding: 14px 20px;
  background: var(--vt-page-bg);
  border-bottom: 1px solid var(--grey3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vt-order-sk-c__meta { display: flex; gap: 24px; }
.vt-order-sk-c__mg   { display: flex; flex-direction: column; gap: 4px; }
.vt-order-sk-c__lbl  { width: 36px; height: 9px; }
.vt-order-sk-c__val  { width: 58px; height: 13px; }
.vt-order-sk-c__pill { width: 80px; height: 22px; border-radius: 20px; }

.vt-order-sk-c__body  { padding: 14px 20px; display: flex; align-items: center; gap: 14px; }
.vt-order-sk-c__img   { width: 56px; height: 56px; border-radius: 4px; flex-shrink: 0; }
.vt-order-sk-c__info  { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.vt-order-sk-c__iname { height: 13px; width: 62%; }
.vt-order-sk-c__isub  { height: 10px; width: 42px; }
.vt-order-sk-c__price { width: 46px; height: 13px; flex-shrink: 0; }

.vt-order-sk-c__foot {
  padding: 12px 20px;
  border-top: 1px solid var(--grey3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vt-order-sk-c__total { width: 140px; height: 13px; }
.vt-order-sk-c__btn   { width: 80px;  height: 32px; border-radius: var(--radius-btn); }

/* ────────────────────────────────────────────────────────────────────────────── */
/* CARD SUBTITLE + FORM HELPERS (used in edit-account, payment)                   */
/* ────────────────────────────────────────────────────────────────────────────── */

.vt-card-subtitle {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 300;
}
.vt-form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .vt-form-row--2col { grid-template-columns: 1fr; gap: 0; }
}
.vt-form-hint {
  display: block;
  font-size: 11px;
  color: var(--text);
  font-weight: 300;
  margin-top: 4px;
}
.vt-form-actions {
  padding: 4px 0 20px;
  display: flex;
  justify-content: flex-end;
}

/* ── Toggle switch (used in edit-account email prefs) ────────────────────────── */
.vt-toggle-desc { font-size: 0.75rem; color: var(--text); font-weight: 300; }
.vt-toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.vt-toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.vt-toggle-switch .vt-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--grey3);
  border-radius: 22px;
  transition: background 0.2s;
}
.vt-toggle-switch .vt-toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.2s;
}
.vt-toggle-switch input:checked + .vt-toggle-slider { background: var(--vt-true-black); }
.vt-toggle-switch input:checked + .vt-toggle-slider::before { transform: translateX(18px); }

/* ────────────────────────────────────────────────────────────────────────────── */
/* REFER A FRIEND SECTION                                                          */
/* ────────────────────────────────────────────────────────────────────────────── */

.vt-refer-hero {
  background: var(--vt-true-black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 20px;
  text-align: center;
}
.vt-refer-hero h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.1;
}
.vt-refer-hero > p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  line-height: 1.65;
  max-width: 460px;
  margin: 0 auto 28px;
}
.vt-refer-code-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-btn);
  padding: 4px 4px 4px 20px;
  margin-bottom: 24px;
}
.vt-refer-code {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-right: 16px;
}
.vt-refer-copy-btn {
  background: var(--white);
  color: var(--vt-true-black);
  border: none;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: calc(var(--radius-btn) - 2px);
  cursor: pointer;
  transition: background 0.15s;
}
.vt-refer-copy-btn:hover { background: #f0ece8; }
.vt-refer-share {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.vt-refer-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-btn);
  padding: 9px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.vt-refer-share-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  text-decoration: none;
}
.vt-refer-share-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

/* Steps */
.vt-refer-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .vt-refer-steps { grid-template-columns: 1fr; }
}
.vt-refer-step {
  background: var(--white);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.vt-refer-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--vt-true-black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.vt-refer-step-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 6px;
}
.vt-refer-step-sub {
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.55;
}

/* Referral history */
.vt-refer-history { padding: 0 4px; }
.vt-refer-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--grey3);
  gap: 12px;
}
.vt-refer-history-item:last-child { border-bottom: none; }
.vt-refer-history-item--pending { opacity: 0.65; }
.vt-refer-history-name { font-size: 0.9375rem; font-weight: 500; color: var(--black); margin-bottom: 2px; }
.vt-refer-history-date { font-size: 0.75rem; color: var(--text); font-weight: 300; }
.vt-refer-reward {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2E7D32;
  white-space: nowrap;
}
.vt-refer-pending {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #FFF8E1;
  color: #F57F17;
  white-space: nowrap;
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* SUPPORT SECTION                                                                 */
/* ────────────────────────────────────────────────────────────────────────────── */

.vt-support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .vt-support-grid { grid-template-columns: 1fr; }
}
.vt-support-tile {
  background: var(--white);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.vt-support-tile:hover {
  border-color: var(--black);
  box-shadow: 0 2px 12px rgba(34,31,32,0.08);
  text-decoration: none;
}
.vt-support-tile-icon {
  width: 44px;
  height: 44px;
  background: var(--vt-page-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.vt-support-tile-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--black);
  fill: none;
  stroke-width: 1.5;
}
.vt-support-tile-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 6px;
}
.vt-support-tile-sub {
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.55;
}

/* Contact strip */
.vt-contact-strip {
  background: var(--cream);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.vt-contact-strip-label {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
}
.vt-contact-strip-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* FAQ accordion */
.vt-faq-list { padding: 0 4px; }
.vt-faq-item {
  border-bottom: 1px solid var(--grey3);
}
.vt-faq-item:last-child { border-bottom: none; }
.vt-faq-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}
.vt-faq-header:hover { color: var(--text); }
.vt-faq-chevron {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.vt-faq-item.is-open .vt-faq-chevron { transform: rotate(180deg); }
.vt-faq-body {
  padding: 0 4px 16px;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
}
.vt-faq-body p { margin: 0; }
.vt-faq-body[hidden] { display: none; }

/* ────────────────────────────────────────────────────────────────────────────── */
/* PAYMENT METHODS (SAVED CARDS) SECTION                                           */
/* ────────────────────────────────────────────────────────────────────────────── */

.vt-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .vt-payment-grid { grid-template-columns: 1fr; }
}
.vt-payment-card {
  background: linear-gradient(135deg, #2c2c2c 0%, var(--vt-true-black) 100%);
  color: var(--white);
  border-radius: 12px;
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  min-height: 165px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.vt-payment-card--default {
  background: linear-gradient(135deg, #3d2b1f 0%, #221810 100%);
}
.vt-payment-card--add {
  background: transparent;
  border: 2px dashed var(--grey3);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.vt-payment-card--add:hover {
  border-color: var(--black);
  color: var(--black);
  text-decoration: none;
}
.vt-payment-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #F4A400;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.vt-payment-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.vt-payment-chip {
  width: 36px;
  height: 27px;
}
.vt-payment-chip--gold { color: #D4AF37; }
.vt-payment-chip--blue { color: #4A90D9; }
.vt-payment-brand {
  width: 50px;
  height: auto;
  color: var(--white);
  flex-shrink: 0;
}
.vt-payment-brand-text {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.vt-payment-number {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.9);
}
.vt-payment-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.vt-payment-expiry {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  letter-spacing: 0.06em;
}
.vt-payment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.vt-payment-actions .vt-btn--outline {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  background: transparent;
}
.vt-payment-actions .vt-btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.vt-payment-actions .vt-btn--danger {
  border-color: rgba(211,47,47,0.6);
  color: #EF9A9A;
  background: transparent;
}
.vt-payment-actions .vt-btn--danger:hover {
  background: #C62828;
  border-color: #C62828;
  color: var(--white);
}
.vt-payment-add-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--vt-page-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.vt-payment-add-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--grey2);
  fill: none;
  stroke-width: 2;
}
.vt-payment-card--add:hover .vt-payment-add-icon { background: #eee; }
.vt-payment-card--add:hover .vt-payment-add-icon svg { stroke: var(--black); }
.vt-payment-add-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* PAYMENT METHODS — LIGHT LIST (matches designer reference)                      */
/* ────────────────────────────────────────────────────────────────────────────── */

.vt-pm-list {
  display: flex;
  flex-direction: column;
}
.vt-pm-item {
  position: relative;
  padding: 20px 24px;
  border-bottom: 1px solid var(--grey3);
}
.vt-pm-item:last-of-type { border-bottom: none; }
.vt-pm-item--default {
  background: #FDFAF7;
}
.vt-pm-badge {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--vt-true-black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}
.vt-pm-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.vt-pm-chip {
  width: 40px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.vt-pm-chip-lines {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.vt-pm-chip-lines::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%);
}
.vt-pm-number {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.1em;
}
.vt-pm-meta {
  display: flex;
  gap: 32px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.vt-pm-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 3px;
}
.vt-pm-meta-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--black);
}
.vt-pm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vt-pm-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border: 2px dashed var(--grey3);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.vt-pm-add svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.vt-pm-add:hover {
  color: var(--black);
  border-color: var(--black);
  text-decoration: none;
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* MY DETAILS — constrain form width to match reference                           */
/* ────────────────────────────────────────────────────────────────────────────── */

.woocommerce-EditAccountForm,
.woocommerce-EditAccountForm + .vt-card {
  max-width: 680px;
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* MY DETAILS — ADDRESS DISPLAY + INLINE FORM ACTIONS                             */
/* ────────────────────────────────────────────────────────────────────────────── */

.vt-form-actions--inline {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 6px;
  justify-content: flex-start;
}

.vt-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .vt-address-grid { grid-template-columns: 1fr; }
}
.vt-address-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vt-address-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  font-weight: 400;
}
.vt-address-value {
  font-size: 0.9375rem;
  color: var(--black);
  font-weight: 400;
  background: var(--vt-page-bg);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  padding: 10px 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ────────────────────────────────────────────────────────────────────────────── */
/* SELECT + DATE INPUT overrides (edit-account address form, country dropdown)    */
/* ────────────────────────────────────────────────────────────────────────────── */

body.woocommerce-account select.woocommerce-Input,
body.woocommerce-account select.vt-select,
body.woocommerce-account select.input-text {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  transition: border-color 0.15s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  display: block;
  /* chevron arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
body.woocommerce-account select.woocommerce-Input:focus,
body.woocommerce-account select.vt-select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(86,86,86,0.1);
}

/* Date input — match text input appearance, remove browser chrome */
body.woocommerce-account input[type="date"].woocommerce-Input,
body.woocommerce-account input[type="date"].vt-input-date {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* ── Subscription status badge extras ──────────────────────────────────────── */
.vt-sub-status--on-hold      { background: #FFF8E1; color: #F57F17; }
.vt-sub-status--pending       { background: var(--cream); color: var(--text); }
.vt-sub-status--expired       { background: #F3E5F5; color: #6A1B9A; }
.vt-sub-status--pending-cancel { background: #FFF3E0; color: #E65100; }
.vt-sub-status--switched      { background: var(--grey3); color: var(--text); }

/* ── Below-fold content-visibility ───────────────────────────────────────────── */
/* Skip layout/paint for sections reliably below the fold on their sub-page.      */
/* contain-intrinsic-size gives the browser a height hint so the scrollbar thumb  */
/* remains accurate before the section scrolls into view.                         */
.vt-sub-perks {
  content-visibility: auto;
  contain-intrinsic-size: 0 180px;
}
.vt-refer-steps {
  content-visibility: auto;
  contain-intrinsic-size: 0 240px;
}
.vt-refer-history {
  content-visibility: auto;
  contain-intrinsic-size: 0 320px;
}
.vt-faq-list {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* ── Confirm modal (replaces native window.confirm) ──────────────────────────── */
.vt-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.vt-confirm-modal[hidden] { display: none; }
.vt-confirm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 31, 32, 0.5);
}
.vt-confirm-modal__box {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.vt-confirm-modal__message {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 20px;
}
.vt-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
@media (max-width: 480px) {
  .vt-confirm-modal__actions { flex-direction: column-reverse; }
  .vt-confirm-modal__actions .vt-btn { width: 100%; }
}

/* ── OTC ("log in with a code") widget — My Account + Checkout ──────────────── */
.vt-otc {
  margin-top: 16px;
  text-align: center;
}
/* Expanded mode (My Account primary view): no trigger link, no callout box —
 * the widget's own form should look like the page's main sign-in form. */
.vt-otc--expanded {
  margin-top: 0;
  text-align: left;
}
.vt-otc--expanded .vt-otc__panel {
  margin-top: 0;
  padding: 0;
  border: none;
}
/* Match .vt-auth-submit sizing so the OTC button reads as the primary CTA,
 * same as the password form's "Sign In" button. */
.vt-otc--expanded .vt-otc__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 50px;
  padding: 0;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}
.vt-otc__trigger {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.vt-otc__trigger:hover {
  color: var(--black);
}
.vt-otc__panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--grey3);
  border-radius: var(--radius);
  text-align: left;
}
.vt-otc__hint {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.5;
}
.vt-otc .vt-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.vt-otc .vt-form-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
}
.vt-otc__submit,
.vt-otc__resend {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}
.vt-otc__submit {
  width: 100%;
  min-height: 44px;
  background: var(--vt-true-black);
  color: var(--white);
  border: 1px solid var(--vt-true-black);
  border-radius: var(--radius-btn);
  transition: background 0.18s;
}
.vt-otc__submit:hover {
  background: #3a3637;
  border-color: #3a3637;
}
.vt-otc__submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.vt-otc__resend {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vt-otc__resend:disabled {
  text-decoration: none;
  cursor: default;
  opacity: 0.7;
}
.vt-otc__error {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: #b3261e;
}
.vt-otc .vt-auth-remember {
  margin: 10px 0;
}
