/* account: My Account pages (login/register, dashboard, orders, view order, addresses, account details).
   Everything is scoped to body.woocommerce-account. Global tokens/components stay in theme.css. */

.woocommerce-account {
  --nv-acct-line: var(--wp--preset--color--sand);
  --nv-acct-field: #A39488;   /* field border: 3:1 against white */
}
.woocommerce-account .woocommerce { font-size: 1rem; }
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after,
.woocommerce-account .col2-set::before,
.woocommerce-account .col2-set::after { display: none; }

/* Same left edge as the header, shop, cart and checkout (Woo caps these at 1000px); only policy pages use a reading column. */
.woocommerce-account .wp-block-post-title,
.woocommerce-account main > .wp-block-post-content,
.woocommerce-account main .woocommerce { max-width: var(--wp--style--global--wide-size); }
/* order number links in the orders list: 44px tap target */
.woocommerce-account .woocommerce-orders-table__cell-order-number a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }

/* ---------- Buttons (pill, like the homepage) ---------- */
.woocommerce-account .woocommerce .button,
.woocommerce-account .nv-acct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; box-sizing: border-box; padding: .7rem 1.6rem; margin: 0;
  border: 1.5px solid var(--wp--preset--color--maroon); border-radius: 999px;
  background: var(--wp--preset--color--maroon); color: #fff;
  font-family: var(--wp--preset--font-family--body); font-weight: 600; font-size: .9375rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.woocommerce-account .woocommerce .button:hover,
.woocommerce-account .nv-acct-btn:hover { background: var(--wp--preset--color--maroon-deep); border-color: var(--wp--preset--color--maroon-deep); color: #fff; }
/* secondary actions: outline pill */
.woocommerce-account .woocommerce .button.invoice,
.woocommerce-account .woocommerce .button.ast_track,
.woocommerce-account .woocommerce .button.cancel,
.woocommerce-account .nv-acct-btn--ast_track,
.woocommerce-account .nv-acct-btn--cancel,
.woocommerce-account .woocommerce-Address .edit { background: #fff; color: var(--wp--preset--color--maroon); }
.woocommerce-account .woocommerce .button.invoice:hover,
.woocommerce-account .woocommerce .button.ast_track:hover,
.woocommerce-account .woocommerce .button.cancel:hover,
.woocommerce-account .nv-acct-btn--ast_track:hover,
.woocommerce-account .nv-acct-btn--cancel:hover,
.woocommerce-account .woocommerce-Address .edit:hover { background: var(--wp--preset--color--maroon); color: #fff; }

.woocommerce-account .wc-block-components-notice-banner.is-info { background: var(--wp--preset--color--cream); border: 1px solid var(--nv-acct-line); border-radius: var(--nv-radius); color: var(--wp--preset--color--ink); }
.woocommerce-account .wc-block-components-notice-banner.is-info > svg { background: var(--wp--preset--color--maroon); fill: #fff; }
/* notice links ("Confirm email address") stay text links, as the blocks notice styles them */
.woocommerce-account .wc-block-components-notice-banner .button.wc-forward { display: inline-flex; min-height: 44px; border: 0; border-radius: 0; font-size: .9rem; color: var(--wp--preset--color--maroon) !important; opacity: 1; }

/* ---------- Fields (match the checkout: white, 50px, maroon focus ring) ---------- */
.woocommerce-account .woocommerce form .form-row { margin: 0 0 1rem; padding: 0; }
.woocommerce-account .woocommerce form .form-row label,
.woocommerce-account .woocommerce form legend + p label { display: block; font-size: .875rem; font-weight: 600; line-height: 1.4; color: var(--wp--preset--color--ink); margin-bottom: .35rem; }
.woocommerce-account .woocommerce form .form-row .required { color: var(--wp--preset--color--tomato); text-decoration: none; }
.woocommerce-account .woocommerce form .form-row .input-text,
.woocommerce-account .woocommerce form .form-row select,
.woocommerce-account .woocommerce form .form-row .select2-container .select2-selection--single {
  width: 100%; min-height: 50px; box-sizing: border-box; padding: .7rem 1rem;
  border: 1px solid var(--nv-acct-field); border-radius: var(--nv-radius-sm); background: #fff;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--wp--preset--color--ink);
  transition: border-color .15s, box-shadow .15s;
}
.woocommerce-account .woocommerce form .form-row .select2-container .select2-selection--single { display: flex; align-items: center; padding-block: 0; }
.woocommerce-account .woocommerce form .form-row .select2-container .select2-selection__rendered { padding: 0; line-height: 1.4; color: var(--wp--preset--color--ink); }
.woocommerce-account .woocommerce form .form-row .select2-container .select2-selection__arrow { height: 48px; right: 8px; }
.woocommerce-account .woocommerce form .form-row .input-text:focus,
.woocommerce-account .woocommerce form .form-row select:focus,
.woocommerce-account .woocommerce form .form-row .select2-container--focus .select2-selection--single,
.woocommerce-account .woocommerce form .form-row .select2-container--open .select2-selection--single {
  outline: none; border-color: var(--wp--preset--color--maroon); box-shadow: 0 0 0 3px rgba(122, 27, 46, .15);
}
/* field that failed a save (class + message added in inc/account.php): tomato border, message in maroon for 4.5:1 text */
.woocommerce-account .woocommerce form .form-row.woocommerce-invalid .input-text,
.woocommerce-account .woocommerce form .form-row.woocommerce-invalid select,
.woocommerce-account .woocommerce form .form-row.woocommerce-invalid .select2-container .select2-selection--single { border-color: var(--wp--preset--color--tomato); box-shadow: 0 0 0 1px var(--wp--preset--color--tomato); }
.woocommerce-account .woocommerce form .form-row.woocommerce-invalid label { color: var(--wp--preset--color--ink); }
.woocommerce-account .nv-field-error { display: block; margin-top: .35rem; font-size: .85rem; font-weight: 600; line-height: 1.4; color: var(--wp--preset--color--maroon); }
.woocommerce-account .woocommerce form .password-input { display: block; position: relative; }
.woocommerce-account .woocommerce form .password-input .input-text { padding-right: 3.25rem; }
.woocommerce-account .woocommerce form .show-password-input {
  position: absolute; top: 50%; right: 3px; transform: translateY(-50%);
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; margin: 0; background-color: transparent; background-position: center; border: 0; border-radius: 50%; cursor: pointer;
}
.woocommerce-account .woocommerce form .show-password-input:focus-visible { outline: 2px solid var(--wp--preset--color--maroon); outline-offset: -2px; }
.woocommerce-account .woocommerce form .form-row label.woocommerce-form__label-for-checkbox {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; margin: 0; font-size: .95rem; font-weight: 500; cursor: pointer;
}
.woocommerce-account .woocommerce form input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--wp--preset--color--maroon); flex: 0 0 auto; }
.woocommerce-account .woocommerce form fieldset { margin: 1.5rem 0 1rem; padding: 1.25rem 1.25rem .25rem; border: 1px solid var(--nv-acct-line); border-radius: var(--nv-radius); }
.woocommerce-account .woocommerce form legend { padding: 0 .5rem; font-weight: 700; color: var(--wp--preset--color--maroon-deep); }
.woocommerce-account .woocommerce form .form-row em,
.woocommerce-account #account_display_name_description { display: block; margin-top: .35rem; font-style: normal; font-size: .82rem; color: var(--wp--preset--color--ink-soft); }
.woocommerce-account form.register > p:not(.form-row, .nv-acct-lede),
.woocommerce-account .woocommerce-privacy-policy-text p { font-size: .85rem; color: var(--wp--preset--color--ink-soft); }

/* ---------- Logged out: login + register side by side ---------- */
.woocommerce-account #customer_login,
.woocommerce-account .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.woocommerce-account .col2-set .col-1,
.woocommerce-account .col2-set .col-2 { float: none; width: auto; max-width: none; }
.woocommerce-account #customer_login > div {
  padding: 2rem; border: 1px solid var(--nv-acct-line); border-radius: var(--nv-radius); background: #fff;
}
.woocommerce-account #customer_login > .col-2 { background: var(--wp--preset--color--paper); }
.woocommerce-account #customer_login h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0 0 .35rem; }
.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register,
.woocommerce-account .woocommerce form.lost_reset_password { margin: 0; padding: 0; border: 0; border-radius: 0; }
.woocommerce-account .nv-acct-lede { margin: 0 0 1.25rem; color: var(--wp--preset--color--ink-soft); font-size: .95rem; }
.woocommerce-account form.login .form-row:has(.woocommerce-form-login__submit) { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; margin-bottom: .25rem; }
.woocommerce-account .woocommerce form.login .woocommerce-form-login__submit,
.woocommerce-account .woocommerce form.register .woocommerce-form-register__submit { float: none; width: 100%; margin: 0; }
.woocommerce-account .woocommerce-LostPassword { margin: 0; }
.woocommerce-account .woocommerce-LostPassword a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .95rem; }

/* lost / reset password (and "link sent"): one centred card under a centred page title */
.woocommerce-lost-password .wp-block-post-title { text-align: center; }
.woocommerce-lost-password .wp-block-post-content .woocommerce {
  max-width: 560px; margin-inline: auto !important; padding: 2rem; border: 1px solid var(--nv-acct-line); border-radius: var(--nv-radius); background: #fff;
}
.woocommerce-account form.lost_reset_password > p:first-child { margin-top: 0; color: var(--wp--preset--color--ink-soft); }
.woocommerce-account form.lost_reset_password .form-row-first,
.woocommerce-account form.lost_reset_password .form-row-last { float: none; width: 100%; }
.woocommerce-account form.lost_reset_password .button { width: 100%; }

/* ---------- Logged in: sidebar + content ---------- */
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem 3rem; align-items: start;
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; min-width: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation {
  position: sticky; top: calc(var(--nv-header-h) + 1.5rem);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none; margin: 0; padding: .5rem; display: grid; gap: .15rem;
  background: var(--wp--preset--color--paper); border: 1px solid var(--nv-acct-line); border-radius: var(--nv-radius);
}
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: .5rem 1rem; box-sizing: border-box;
  border-radius: 999px; color: var(--wp--preset--color--ink); font-weight: 500; text-decoration: none; transition: background-color .15s, color .15s;
}
.woocommerce-account .woocommerce-MyAccount-navigation li a,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation a::before {
  content: ""; flex: 0 0 20px; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--nv-icon) center / contain no-repeat; mask: var(--nv-icon) center / contain no-repeat;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--maroon); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--wp--preset--color--maroon); color: #fff; font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { border-top: 1px solid var(--nv-acct-line); margin-top: .35rem !important; padding-top: .35rem; }
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--wp--preset--color--ink-soft); }
.woocommerce-MyAccount-navigation-link--dashboard { --nv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--orders, .nv-acct-card--orders { --nv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l1 14H5z'/%3E%3Cpath d='M9 10V6a3 3 0 0 1 6 0v4'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-address, .nv-acct-card--edit-address { --nv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-12a7 7 0 0 1 14 0c0 5.8-7 12-7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-account, .nv-acct-card--edit-account { --nv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--payment-methods { --nv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--downloads { --nv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--customer-logout, .nv-acct-card--logout { --nv-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h4'/%3E%3Cpath d='M16 16l4-4-4-4M20 12H10'/%3E%3C/svg%3E"); }

.woocommerce-account .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
.woocommerce-account .woocommerce-MyAccount-content h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 700; margin: 2rem 0 .75rem; }
.woocommerce-account .woocommerce-MyAccount-content form > h2:first-child,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper + h2 { margin-top: 0; }

/* ---------- Dashboard ---------- */
.nv-acct-hello__title { margin: 0 !important; font-size: clamp(1.75rem, 3vw, 2.25rem) !important; }
.nv-acct-hello__sub { margin: 0; color: var(--wp--preset--color--ink-soft); }
.nv-acct-hello__sub a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.nv-acct-latest {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin: 1.25rem 0 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--nv-radius); background: var(--wp--preset--color--cream);
}
.nv-acct-latest p { margin: 0; }
.nv-acct-latest__label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--maroon); }
.nv-acct-latest__order { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; margin: .15rem 0 !important; }
.nv-acct-latest__meta { font-size: .9rem; color: var(--wp--preset--color--ink-soft); }
.nv-acct-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.nv-acct-cards li { margin: 0; }
.nv-acct-card {
  display: block; position: relative; height: 100%; box-sizing: border-box; min-height: 96px; padding: 1.35rem 1.25rem 1.35rem 5.25rem;
  border: 1px solid var(--nv-acct-line); border-radius: var(--nv-radius); background: #fff; color: var(--wp--preset--color--ink);
  text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.nv-acct-card:hover { border-color: var(--wp--preset--color--maroon); box-shadow: var(--nv-shadow); transform: translateY(-2px); color: var(--wp--preset--color--ink); }
.nv-acct-card::before { content: ""; position: absolute; left: 1.25rem; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: var(--bg); }
.nv-acct-card::after {
  content: ""; position: absolute; left: calc(1.25rem + 14px); top: 50%; width: 24px; height: 24px; margin-top: -12px; background: #fff;
  -webkit-mask: var(--nv-icon) center / contain no-repeat; mask: var(--nv-icon) center / contain no-repeat;
}
.nv-acct-card strong { display: block; font-size: 1.05rem; color: var(--wp--preset--color--maroon-deep); }
.nv-acct-card span { display: block; font-size: .9rem; color: var(--wp--preset--color--ink-soft); }
.nv-acct-card--orders { --bg: var(--wp--preset--color--maroon); }
.nv-acct-card--edit-address { --bg: var(--wp--preset--color--green); }
.nv-acct-card--edit-account { --bg: var(--wp--preset--color--saffron); }
.nv-acct-card--logout { --bg: var(--wp--preset--color--tomato); }

/* ---------- Status pills ---------- */
.nv-status,
.woocommerce-account .woocommerce-MyAccount-content mark.order-status {
  display: inline-block; padding: .2rem .75rem; border-radius: 999px; white-space: nowrap;
  font-size: .8rem; font-weight: 600; line-height: 1.5; background: var(--pill-bg, var(--wp--preset--color--cream)); color: var(--pill-fg, var(--wp--preset--color--ink));
}
.nv-status--completed, .nv-order-is-completed mark.order-status { --pill-bg: #E1EFE5; --pill-fg: var(--wp--preset--color--green-deep); }
.nv-status--processing, .nv-order-is-processing mark.order-status { --pill-bg: #FCEACB; --pill-fg: #6E4300; }
.nv-status--on-hold, .nv-order-is-on-hold mark.order-status { --pill-bg: var(--wp--preset--color--sand); --pill-fg: var(--wp--preset--color--maroon-deep); }
.nv-status--pending, .nv-order-is-pending mark.order-status,
.nv-status--checkout-draft { --pill-bg: #EFE9E4; --pill-fg: var(--wp--preset--color--ink); }
.nv-status--cancelled, .nv-order-is-cancelled mark.order-status,
.nv-status--failed, .nv-order-is-failed mark.order-status { --pill-bg: #FADFD9; --pill-fg: #93260F; }
.nv-status--refunded, .nv-order-is-refunded mark.order-status { --pill-bg: #ECE8E5; --pill-fg: var(--wp--preset--color--ink-soft); }

/* ---------- Tables: orders list + order details ---------- */
.woocommerce-account .woocommerce table.shop_table {
  width: 100%; margin: 0 0 1.5rem; border: 1px solid var(--nv-acct-line); border-radius: var(--nv-radius); border-collapse: separate; border-spacing: 0;
  overflow: hidden; background: #fff; font-size: .95rem;
}
.woocommerce-account .woocommerce table.shop_table th,
.woocommerce-account .woocommerce table.shop_table td { padding: .85rem 1rem; border: 0; border-top: 1px solid var(--nv-acct-line); vertical-align: middle; line-height: 1.45; }
.woocommerce-account .woocommerce table.shop_table thead th {
  border-top: 0; background: var(--wp--preset--color--paper); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--ink-soft);
}
.woocommerce-account .woocommerce-orders-table__cell-order-number a { font-weight: 700; color: var(--wp--preset--color--maroon); text-decoration: none; }
.woocommerce-account .woocommerce-orders-table__cell-order-number a:hover { text-decoration: underline; }
.woocommerce-account .woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions .button { display: flex; width: 100%; min-height: 40px; padding: .45rem 1rem; font-size: .85rem; margin: .2rem 0; }
.woocommerce-account .woocommerce-orders-table__cell-order-date { white-space: nowrap; }
.woocommerce-account .woocommerce-table--order-details td.product-name a { padding-block: .75rem; /* 44px tap height without moving the line */ color: var(--wp--preset--color--ink); font-weight: 600; text-decoration: none; }
.woocommerce-account .woocommerce-table--order-details td.product-name a:hover { color: var(--wp--preset--color--maroon); text-decoration: underline; }
.woocommerce-account .woocommerce-table--order-details .product-quantity { font-weight: 500; color: var(--wp--preset--color--ink-soft); }
.woocommerce-account .woocommerce-table--order-details th.product-total,
.woocommerce-account .woocommerce-table--order-details td.product-total,
.woocommerce-account .woocommerce-table--order-details tfoot td { text-align: right; }
.woocommerce-account .woocommerce-table--order-details tfoot th { font-weight: 500; color: var(--wp--preset--color--ink-soft); }
.woocommerce-account .woocommerce-table--order-details tfoot td { font-weight: 600; }
/* the same actions are shown as buttons above the table (inc/account.php) */
.woocommerce-account .woocommerce-table--order-details tr:has(> th.order-actions--heading) { display: none; }

/* ---------- View order ---------- */
.woocommerce-account .woocommerce-MyAccount-content > p:has(> mark.order-number) {
  margin: 0 0 1rem; padding: 1rem 1.25rem; border-radius: var(--nv-radius); background: var(--wp--preset--color--paper); border: 1px solid var(--nv-acct-line);
}
.woocommerce-account .woocommerce-MyAccount-content mark.order-number,
.woocommerce-account .woocommerce-MyAccount-content mark.order-date { background: none; color: inherit; font-weight: 700; }
.nv-order-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.5rem; }
.woocommerce-account .order-again { margin: 0 0 1.5rem; }
.woocommerce-account .order-again .button { background: #fff; color: var(--wp--preset--color--maroon); }
.woocommerce-account .order-again .button:hover { background: var(--wp--preset--color--maroon); color: #fff; }

/* tracking card from Advanced Shipment Tracking (its own inline styles are weaker than these) */
.woocommerce-account .fluid_section { margin: 0 0 1.5rem; }
.woocommerce-account .fluid_container { box-sizing: border-box; border-radius: var(--nv-radius); border-color: var(--nv-acct-line); background: var(--wp--preset--color--paper); align-items: center; margin: 0; }
.woocommerce-account .fluid_cl { padding: 1rem 1.25rem; box-sizing: border-box; }
.woocommerce-account .fluid_right_cl { padding-top: 1rem; width: auto; }
.woocommerce-account .fluid_section .tracking_provider { font-size: 1.05rem; }
.woocommerce-account .fluid_section .tracking_number { display: inline-flex; align-items: center; min-height: 44px; color: var(--wp--preset--color--maroon); font-weight: 600; letter-spacing: .03em; }
.woocommerce-account .fluid_section .order_status { font-size: .85rem; color: var(--wp--preset--color--ink-soft); }
/* logo + text side by side, text takes the rest of the column (the plugin gives it a fixed calc width) */
.woocommerce-account .fluid_img_with_provider { display: flex; align-items: center; gap: .75rem; }
.woocommerce-account .fluid_section .provider_name { flex: 1 1 0; min-width: 0; width: auto; }
.woocommerce-account .provider_name .order_status strong { display: inline-block; margin-left: .25em; white-space: nowrap; } /* date drops below as one piece; its leading space collapses inside the box */
.woocommerce-account .fluid_section .button.track-button { white-space: nowrap; }

/* addresses (order view + Addresses page) */
.woocommerce-account .woocommerce-customer-details address,
.woocommerce-account .woocommerce-Address {
  margin: 0; padding: 1.25rem; border: 1px solid var(--nv-acct-line); border-radius: var(--nv-radius); background: #fff; font-style: normal; line-height: 1.6;
}
.woocommerce-account .woocommerce-customer-details address p { margin: .5rem 0 0; }
.woocommerce-account .woocommerce-customer-details .woocommerce-column--2 { margin-top: 2rem; } /* stacked under the billing card; Woo gives it no gap */
.woocommerce-account .woocommerce-Addresses { margin-top: 1rem; }
.woocommerce-account .woocommerce-Address address { margin: 0; padding: 0; border: 0; font-style: normal; }
.woocommerce-account .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--nv-acct-line); }
.woocommerce-account .addresses .woocommerce-Address-title::before,
.woocommerce-account .addresses .woocommerce-Address-title::after { display: none; } /* Woo's clearfix pseudo would be a flex item */
.woocommerce-account .woocommerce-Address-title h2 { float: none; margin: 0 !important; font-size: 1.35rem; text-align: left; }
.woocommerce-account .woocommerce-Address .edit {
  float: none; display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1.1rem; box-sizing: border-box;
  border: 1.5px solid var(--wp--preset--color--maroon); border-radius: 999px; font-size: .875rem; font-weight: 600; text-decoration: none;
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 1023px) {
  .woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem 2rem; }
}
@media (max-width: 781px) {
  .woocommerce-account #customer_login,
  .woocommerce-account .woocommerce-Addresses { grid-template-columns: 1fr; }
  .woocommerce-account #customer_login > div { padding: 1.5rem 1.25rem; }
  .woocommerce-lost-password .wp-block-post-content .woocommerce { padding: 1.5rem 1.25rem; }
  .woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); }
  /* account menu as an easy two-column list of pills; dashboard shows the cards instead */
  .woocommerce-account .woocommerce-MyAccount-navigation { position: static; }
  .woocommerce-account .woocommerce:has(.nv-acct-hello) > .woocommerce-MyAccount-navigation { display: none; }
  .woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: 1fr 1fr; gap: .35rem; }
  .woocommerce-account .woocommerce-MyAccount-navigation li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .woocommerce-account .woocommerce-MyAccount-navigation a { padding: .5rem .85rem; font-size: .875rem; line-height: 1.25; gap: .5rem; }
  .woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { border-top: 0; margin-top: 0 !important; padding-top: 0; }
  .nv-acct-cards { grid-template-columns: 1fr; gap: .75rem; }
  .nv-acct-card { min-height: 84px; padding: 1.1rem 1rem 1.1rem 4.75rem; }
  .nv-acct-card::before { left: 1rem; }
  .nv-acct-card::after { left: calc(1rem + 14px); }
  .nv-acct-latest { padding: 1.1rem 1.25rem; }
  .nv-acct-latest .nv-acct-btn { width: 100%; }
  .nv-order-actions .nv-acct-btn { flex: 1 1 100%; }
}
/* orders table as one card per order up to 1100px: next to the sidebar 5 columns do not fit.
   woocommerce-smallscreen only does this below 768px, so the label/stack rules are repeated here. */
@media (max-width: 1100px) {
  .woocommerce-account .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce-account .woocommerce table.shop_table_responsive { border: 0; border-radius: 0; background: none; overflow: visible; }
  .woocommerce-account .woocommerce table.shop_table_responsive tbody tr {
    display: block; margin: 0 0 1rem; padding: .35rem 1rem; border: 1px solid var(--nv-acct-line); border-radius: var(--nv-radius); background: #fff;
  }
  .woocommerce-account .woocommerce table.shop_table_responsive tbody tr th,
  .woocommerce-account .woocommerce table.shop_table_responsive tbody tr td { display: block; padding: .6rem 0; text-align: right !important; background: none; }
  .woocommerce-account .woocommerce table.shop_table_responsive tbody tr > :first-child { border-top: 0; }
  .woocommerce-account .woocommerce table.shop_table_responsive tbody tr td::before,
  .woocommerce-account .woocommerce table.shop_table_responsive tbody tr th::before { content: attr(data-title) ": "; float: left; font-weight: 500; color: var(--wp--preset--color--ink-soft); }
  .woocommerce-account .woocommerce table.shop_table_responsive tbody tr td.woocommerce-orders-table__cell-order-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
  .woocommerce-account .woocommerce table.shop_table_responsive tbody tr td.woocommerce-orders-table__cell-order-actions::before { display: none; }
  /* the 44px order link would push "#38" below its label: centre both */
  .woocommerce-account .woocommerce table.shop_table_responsive tbody tr .woocommerce-orders-table__cell-order-number { display: flex; align-items: center; justify-content: space-between; }
  .woocommerce-account .woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions .button { flex: 1 1 0; width: auto; min-height: 44px; margin: 0; }
}
@media (max-width: 768px) {
  .woocommerce-account .wc-block-components-notice-banner__content:has(> .wc-forward) { display: flex; flex-direction: column; }
  .woocommerce-account .wc-block-components-notice-banner .button.wc-forward { float: none; order: 2; align-self: flex-start; margin: 0; }
  .woocommerce-account .woocommerce-table--order-details th,
  .woocommerce-account .woocommerce-table--order-details td { padding: .75rem .85rem; }
  .woocommerce-account .fluid_container { flex-wrap: wrap; }
  .woocommerce-account .fluid_cl { width: 100%; }
  .woocommerce-account .fluid_right_cl { padding-top: 0; }
  .woocommerce-account .fluid_section .button.track-button { width: 100%; }
}
