/* Account wrapper */
.ne-acc {
  width: 100%;
}

/* Account header */
.acc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 0 32px;
  gap: 24px;
  flex-wrap: wrap;
}

.acc-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3, #7a7a7a);
  margin-bottom: 8px;
}

.acc-crumb a {
  color: var(--ink-3, #7a7a7a);
  text-decoration: none;
}

.acc-crumb a:hover {
  color: var(--ink, #0a0a0a);
}

.acc-crumb span {
  color: var(--ink, #0a0a0a);
}

.acc-h1 {
  font-family: "Montserrat", sans-serif;
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.05;
}

.acc-h1 em {
  font-style: italic;
  color: var(--accent, #8b734b);
}

.acc-h1 .ne-em {
  color: var(--accent, #8b734b);
}

/* User chip (top right) */
.acc-head-right {
  flex-shrink: 0;
}

.acc-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line, #ececea);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  background: #fff;
}

.acc-chip__av {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent-soft, #f3eee2);
  color: var(--accent-ink, #6a572f);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: "Montserrat", sans-serif;
}

.acc-chip__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acc-chip__info b {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink, #0a0a0a);
  letter-spacing: -0.05em;
}

.acc-logout {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-3, #7a7a7a);
  text-decoration: none;
  transition: color 0.15s;
}

.acc-logout:hover {
  color: #d93025;
}

.acc-logout svg {
  width: 13px;
  height: 13px;
}

/* Account grid (sidebar + content) */
.acc-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.acc-side-wrap {
  position: sticky;
  top: 100px;
}

.account-pane {
  min-width: 0;
}

/* Account navigation */
.acc-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acc-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2, #3a3a3a);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.acc-side a:hover {
  background: var(--soft, #f6f4ef);
  color: var(--ink, #0a0a0a);
}

.acc-side a.is-active {
  background: var(--accent-soft, #f3eee2);
  color: var(--accent-ink, #6a572f);
  font-weight: 600;
}

.acc-side a.danger {
  color: var(--ink-3, #7a7a7a);
  margin-top: 8px;
}

.acc-side a.danger:hover {
  background: #fef2f2;
  color: #d93025;
}

.acc-side a .ic {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acc-side a .ic svg {
  width: 18px;
  height: 18px;
}

/* Card section (generic account content block) */
.card-section {
  border-radius: 20px;
  border: 1px solid var(--line, #ececea);
  background: #fff;
  overflow: hidden;
  margin-bottom: 20px;
}

.card-section:last-child {
  margin-bottom: 0;
}

.card-section--mb {
  margin-bottom: 18px;
}

.cs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line, #ececea);
  flex-wrap: wrap;
  gap: 8px;
}

.cs-head h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.375rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.cs-head h2 em {
  font-style: italic;
  color: var(--accent, #8b734b);
}

.cs-head h2 .ne-em {
  color: var(--accent, #8b734b);
}

.cs-head .meta {
  font-size: 12px;
  color: var(--ink-3, #7a7a7a);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}

.cs-head-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cs-head-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cs-head .see-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2, #3a3a3a);
  text-decoration: none;
  transition: color 0.15s;
}

.cs-head .see-all:hover {
  color: var(--ink, #0a0a0a);
}

.cs-head .see-all svg {
  width: 14px;
  height: 14px;
}

/* Orders table (ne_render_orders_table) - div-based, not a <table>: .o-table > .o-trow > spans */
.o-table {
  display: flex;
  flex-direction: column;
}

.o-trow {
  display: grid;
  grid-template-columns: 120px 140px auto 1fr 140px 120px;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line, #ececea);
  align-items: center;
  font-size: 14px;
  color: var(--ink-2, #3a3a3a);
}

.o-trow:last-child {
  border-bottom: 0;
}

.o-trow.head {
  background: var(--soft-2, #faf8f3);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3, #7a7a7a);
  font-weight: 500;
  padding: 14px 24px;
}

.o-trow:not(.head):hover {
  background: var(--soft-2, #faf8f3);
}

.o-trow .num {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  color: var(--ink, #0a0a0a);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.o-trow .num a {
  color: inherit;
  text-decoration: none;
}

.o-trow .num a:hover {
  color: var(--accent, #8b734b);
}

.o-trow .date {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  color: var(--ink-3, #7a7a7a);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.o-trow .items-mini {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.o-trow .items-mini .pic {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--soft, #f6f4ef);
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-left: -10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.o-trow .items-mini .pic:first-child {
  margin-left: 0;
}

.o-trow .items-mini .pic img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.o-trow .items-mini .more {
  margin-left: 8px;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  color: var(--ink-3, #7a7a7a);
}

.o-trow .price {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  color: var(--ink, #0a0a0a);
  letter-spacing: -0.005em;
  font-weight: 400;
}

.o-trow .actions {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  align-items: center;
}

.o-trow .actions .btn-sm {
  height: auto;
  padding: 6px 12px;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.o-trow .actions .btn-sm:hover {
  border-color: var(--ink, #0a0a0a);
  background: var(--ink, #0a0a0a);
  color: #fff;
}

.o-trow .actions .btn-sm.primary:hover {
  background: var(--accent-ink, #6a572f);
  border-color: var(--accent-ink, #6a572f);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.badge-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Status color variants -- must match the bare css key from ne_order_status_meta() */
.badge-status.completed {
  background: #eef6ea;
  color: #3a6b30;
}

.badge-status.completed .dot {
  background: #3a8a4f;
}

.badge-status.processing {
  background: #fff3e0;
  color: #9b6420;
}

.badge-status.processing .dot {
  background: #d97a40;
}

.badge-status.pending {
  background: #f0eef9;
  color: #5a4d8e;
}

.badge-status.pending .dot {
  background: #7c6cc0;
}

.badge-status.cancelled {
  background: #f9eeee;
  color: #a14b3b;
}

.badge-status.cancelled .dot {
  background: #c64b3b;
}

/* Buttons (account context) */
.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line, #ececea);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2, #3a3a3a);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-sm:hover {
  background: var(--soft, #f6f4ef);
  border-color: var(--line-2, #e5e2db);
}

.btn-sm.primary {
  background: var(--ink, #0a0a0a);
  border-color: var(--ink, #0a0a0a);
  color: #fff;
}

.btn-sm.primary:hover {
  background: #222;
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink, #0a0a0a);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: #222;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

/* Pagination */
.acc-pagination {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--line, #ececea);
}

.acc-pag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2, #3a3a3a);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line, #ececea);
  background: #fff;
  transition: background 0.15s;
}

.acc-pag-btn:hover {
  background: var(--soft, #f6f4ef);
}

.acc-pag-btn svg {
  width: 14px;
  height: 14px;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
}

.empty-state .ic {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--soft, #f6f4ef);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.empty-state .ic svg {
  width: 28px;
  height: 28px;
  color: var(--ink-3, #7a7a7a);
}

.empty-state h4 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink, #0a0a0a);
  margin: 0;
  letter-spacing: -0.05em;
}

.empty-state p {
  font-size: 14px;
  color: var(--ink-3, #7a7a7a);
  max-width: 380px;
  margin: 0;
}

/* Dashboard */
.dash-welcome {
  background: linear-gradient(135deg, var(--soft-2, #faf8f3) 0%, var(--accent-soft, #f3eee2) 100%);
  border-radius: 20px;
  border: 1px solid var(--line-2, #e5e2db);
  padding: 28px 32px;
  margin-bottom: 20px;
}

.dash-welcome h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.dash-welcome h2 em {
  font-style: italic;
  color: var(--accent, #8b734b);
}

.dash-welcome h2 .ne-em {
  color: var(--accent, #8b734b);
}

.dash-welcome p {
  font-size: 14px;
  color: var(--ink-2, #3a3a3a);
  margin: 0;
  line-height: 1.6;
}

.dash-welcome p a {
  color: var(--accent, #8b734b);
  text-decoration: underline;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat {
  border-radius: 20px;
  border: 1px solid var(--line, #ececea);
  background: #fff;
  padding: 20px 24px;
}

.stat .lbl {
  font-size: 12px;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3, #7a7a7a);
  margin-bottom: 8px;
}

.stat .val {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: var(--ink, #0a0a0a);
  line-height: 1;
}

.stat .val--spent {
  font-size: clamp(22px, 3vw, 34px);
}

/* Order notes (view-order.php) */
.ne-order-notes {
  list-style: none;
  margin: 0;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ne-order-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 2px solid var(--line-2, #e5e2db);
}

.ne-order-note__date {
  font-size: 11px;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink-3, #7a7a7a);
}

.ne-order-note__body {
  font-size: 14px;
  color: var(--ink-2, #3a3a3a);
}

.ne-order-note__body p {
  margin: 0;
}

/* Order details: products table (order-details.php) */
.ne-od-items {
  display: flex;
  flex-direction: column;
}

.ne-od-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line, #ececea);
}

.ne-od-row--head {
  font-size: 11px;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3, #7a7a7a);
  padding: 10px 24px;
}

.ne-od-row:last-of-type {
  border-bottom: none;
}

.ne-od-product {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.ne-od-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--soft, #f6f4ef);
}

.ne-od-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ne-od-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ne-od-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #0a0a0a);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.ne-od-name:hover {
  text-decoration: underline;
  color: var(--accent, #8b734b);
}

.ne-od-note {
  font-size: 12px;
  color: var(--ink-3, #7a7a7a);
  margin: 0;
  padding: 4px 8px;
  background: var(--soft, #f6f4ef);
  border-radius: 6px;
}

.ne-od-qty {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #0a0a0a);
  text-align: center;
  flex-shrink: 0;
}

.ne-od-qty del {
  color: var(--ink-3, #7a7a7a);
  font-weight: 400;
  text-decoration: line-through;
  margin-right: 4px;
}

.ne-od-qty ins {
  text-decoration: none;
  color: var(--ink, #0a0a0a);
}

.ne-od-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #0a0a0a);
  text-align: right;
  flex-shrink: 0;
}

.ne-od-totals {
  border-top: 1px solid var(--line, #ececea);
  padding: 0 24px 4px;
}

.ne-od-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line, #ececea);
}

.ne-od-total-row:last-child {
  border-bottom: none;
}

.ne-od-total-row--grand {
  font-weight: 700;
  border-top: 2px solid var(--line, #ececea);
  padding-top: 14px;
  margin-top: 4px;
  border-bottom: none;
}

.ne-od-total-row--grand .ne-od-total-val {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  color: var(--accent, #8b734b);
  font-weight: 400;
}

.ne-od-total-lbl {
  color: var(--ink-2, #3a3a3a);
}

.ne-od-total-val {
  font-weight: 500;
  color: var(--ink, #0a0a0a);
}

.ne-od-customer-note .ne-od-total-lbl {
  font-weight: 600;
}

.ne-od-customer-note .ne-od-total-val {
  font-size: 13px;
  color: var(--ink-2, #3a3a3a);
  text-align: right;
  max-width: 60%;
}

.ne-od-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--line, #ececea);
}

/* Addresses - my-address.php and order-details-customer.php share these classes */
.addr-intro {
  padding: 20px 24px 0;
  font-size: 14px;
  color: var(--ink-2, #3a3a3a);
  line-height: 1.6;
}

.addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 24px 24px;
}

.addr-card {
  border: 1px solid var(--line, #ececea);
  border-radius: var(--radius-md, 14px);
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.addr-card h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.addr-card h4 em {
  font-style: italic;
  color: var(--accent, #8b734b);
}

.addr-card h4 .ne-em {
  color: var(--accent, #8b734b);
}

.addr-card h4 .badge-default {
  padding: 3px 9px;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.addr-card address {
  font-style: normal;
  font-size: 14px;
  color: var(--ink-2, #3a3a3a);
  line-height: 1.7;
}

.addr-card address b {
  color: var(--ink, #0a0a0a);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.05em;
}

.addr-empty {
  color: var(--ink-3, #7a7a7a);
  font-style: italic;
}

.addr-card .edit-row {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.addr-card .edit-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line, #ececea);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2, #3a3a3a);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.addr-card .edit-row a:hover {
  background: var(--ink, #0a0a0a);
  color: #fff;
  border-color: var(--ink, #0a0a0a);
}

.addr-card .edit-row a.primary {
  background: var(--accent, #8b734b);
  color: #fff;
  border-color: var(--accent, #8b734b);
}

.addr-card .edit-row a.primary:hover {
  background: var(--accent-ink, #6a572f);
  border-color: var(--accent-ink, #6a572f);
}

.addr-card .edit-row svg {
  width: 11px;
  height: 11px;
}

/* Payment methods (payment-methods.php) */
.pay-methods-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pay-card {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line, #ececea);
}

.pay-card:last-child {
  border-bottom: none;
}

.pay-brand {
  width: 48px;
  height: 32px;
  border-radius: 6px;
  background: var(--ink, #0a0a0a);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.pay-brand.mc {
  background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%);
}

.pay-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pay-info b {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink, #0a0a0a);
  letter-spacing: -0.05em;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}

.pay-info span {
  font-size: 12px;
  color: var(--ink-3, #7a7a7a);
}

.badge-default {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft, #f3eee2);
  color: var(--accent-ink, #6a572f);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pay-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pay-remove {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  font-size: 13px;
  font-weight: 600;
  color: #d93025;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.pay-remove:hover {
  background: #fee2e2;
}

.pay-add {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-top: 1px solid var(--line, #ececea);
  margin: 0;
}

.pay-add .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--soft, #f6f4ef);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-add .ic svg {
  width: 18px;
  height: 18px;
  color: var(--ink-2, #3a3a3a);
}

.pay-add h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.pay-add h4 em {
  font-style: italic;
  color: var(--accent, #8b734b);
}

.pay-add h4 .ne-em {
  color: var(--accent, #8b734b);
}

.pay-add p {
  font-size: 14px;
  color: var(--ink-3, #7a7a7a);
  margin: 0;
}

.pay-add-wrap {
  padding: 28px;
}

.pay-add-wrap--empty {
  padding-top: 18px;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink, #0a0a0a);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.15s;
  width: fit-content;
}

.btn-add:hover {
  background: #222;
}

.btn-add svg {
  width: 14px;
  height: 14px;
}

/* Account forms (form-edit-account.php, form-edit-address.php) - fields mirror checkout */
.acc-form {
  padding: 28px;
}

.acc-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.acc-form .field.full {
  grid-column: 1 / -1;
}

.acc-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acc-form .field label {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3, #7a7a7a);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.acc-form .field .req {
  color: var(--accent, #8b734b);
  margin-left: 2px;
}

.acc-form .field input,
.acc-form .field select,
.acc-form .field textarea {
  width: 100%;
  border: 1px solid var(--line, #ececea);
  border-radius: var(--radius-md, 14px);
  padding: 14px 16px;
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  color: var(--ink, #0a0a0a);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.acc-form .field input:focus,
.acc-form .field select:focus,
.acc-form .field textarea:focus {
  border-color: var(--accent, #8b734b);
  box-shadow: 0 0 0 3px var(--accent-soft, #f3eee2);
}

.acc-form .helper {
  font-size: 12px;
  color: var(--ink-3, #7a7a7a);
  margin-top: 6px;
  font-style: italic;
}

.acc-form .section-divider {
  margin: 32px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line, #ececea);
}

.acc-form .section-divider h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 6px;
  letter-spacing: -0.05em;
  color: var(--ink, #0a0a0a);
}

.acc-form .section-divider h3 em {
  font-style: italic;
  color: var(--accent, #8b734b);
}

.acc-form .section-divider h3 .ne-em {
  color: var(--accent, #8b734b);
}

.acc-form .section-divider p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3, #7a7a7a);
}

/* Password field with show/hide toggle */
.acc-form .password-eye {
  position: relative;
}

.acc-form .password-eye input {
  padding-right: 44px;
}

.acc-form .pw-toggle {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-3, #7a7a7a);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.acc-form .pw-toggle:hover {
  background: var(--soft, #f6f4ef);
  color: var(--ink, #0a0a0a);
}

.acc-form .pw-toggle svg {
  width: 16px;
  height: 16px;
}

.acc-form .save-row {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line, #ececea);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.acc-form .save-row .save-info {
  font-size: 12px;
  color: var(--ink-3, #7a7a7a);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.acc-form .save-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--accent, #8b734b);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.acc-form .save-btn:hover {
  background: var(--accent-ink, #6a572f);
}

.acc-form .save-btn svg {
  width: 14px;
  height: 14px;
}

/* Native WC address form (form-edit-address.php) reuses the same
   field-wrapper grid + select2 pattern as checkout */
.acc-form .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.acc-form .woocommerce-address-fields__field-wrapper .form-row-wide,
.acc-form .woocommerce-address-fields__field-wrapper #billing_company_field,
.acc-form .woocommerce-address-fields__field-wrapper #shipping_company_field,
.acc-form .woocommerce-address-fields__field-wrapper #billing_address_1_field,
.acc-form .woocommerce-address-fields__field-wrapper #shipping_address_1_field,
.acc-form .woocommerce-address-fields__field-wrapper #billing_address_2_field,
.acc-form .woocommerce-address-fields__field-wrapper #shipping_address_2_field,
.acc-form .woocommerce-address-fields__field-wrapper #billing_country_field,
.acc-form .woocommerce-address-fields__field-wrapper #shipping_country_field {
  grid-column: 1 / -1;
}

/*
 * Kod pocztowy + miasto w jednej linii, tak jak na checkout. WC-owy
 * address-i18n.js resetuje klasy form-row-* przy zmianie kraju (patrz
 * ne-checkout.css) -- selektor ID ma wyższą specyficzność, więc
 * przetrwa ten reset niezależnie od tego, jaką klasę JS ustawi.
 */
.acc-form .woocommerce-address-fields__field-wrapper #billing_postcode_field,
.acc-form .woocommerce-address-fields__field-wrapper #billing_city_field,
.acc-form .woocommerce-address-fields__field-wrapper #shipping_postcode_field,
.acc-form .woocommerce-address-fields__field-wrapper #shipping_city_field {
  grid-column: span 1;
}

.acc-form .woocommerce-address-fields__field-wrapper .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.acc-form .woocommerce-address-fields__field-wrapper label {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3, #7a7a7a);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.acc-form .woocommerce-address-fields__field-wrapper label .required {
  color: var(--accent, #8b734b);
  margin-left: 2px;
}

.acc-form .woocommerce-address-fields__field-wrapper input,
.acc-form .woocommerce-address-fields__field-wrapper select,
.acc-form .woocommerce-address-fields__field-wrapper textarea {
  width: 100%;
  border: 1px solid var(--line, #ececea);
  border-radius: var(--radius-md, 14px);
  padding: 14px 16px;
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  color: var(--ink, #0a0a0a);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.acc-form .woocommerce-address-fields__field-wrapper input:focus,
.acc-form .woocommerce-address-fields__field-wrapper select:focus,
.acc-form .woocommerce-address-fields__field-wrapper textarea:focus {
  border-color: var(--accent, #8b734b);
  box-shadow: 0 0 0 3px var(--accent-soft, #f3eee2);
}

.acc-form .woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

/* Select2 (country dropdown) -- match the plain input styling */
.acc-form .select2-container {
  width: 100% !important;
}

.acc-form .select2-container .select2-selection--single {
  height: auto;
  border: 1px solid var(--line, #ececea);
  border-radius: var(--radius-md, 14px);
  padding: 14px 16px;
  background: #fff;
  transition: border-color 0.15s;
}

.acc-form .select2-container--open .select2-selection--single,
.acc-form .select2-container--focus .select2-selection--single {
  border-color: var(--accent, #8b734b);
  box-shadow: 0 0 0 3px var(--accent-soft, #f3eee2);
}

.acc-form .select2-selection--single .select2-selection__rendered {
  padding: 0;
  padding-right: 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink, #0a0a0a);
}

.acc-form .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
  right: 12px;
}

/* Select2 dropdown panel -- appended to <body>, styled unscoped */
.select2-dropdown {
  border-color: var(--line, #ececea);
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
}

.select2-results__option {
  padding: 10px 16px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--accent, #8b734b);
  color: #fff;
}

.select2-container--default .select2-results__option[aria-selected='true'] {
  background-color: var(--accent-soft, #f3eee2);
  color: var(--ink, #0a0a0a);
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid var(--line, #ececea);
  border-radius: 8px;
  padding: 8px 12px;
  outline: none;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: var(--accent, #8b734b);
}

/* Affiliate program (affiliate-program.php) */
.ne-aff-card {
  /* inherits .card-section */
}

.ne-aff-link-wrap {
  padding: 20px 24px 0;
}

.aff-link-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--line, #ececea);
  border-radius: 14px;
  padding: 20px;
  background: var(--soft-2, #faf8f3);
}

.aff-link-box .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft, #f3eee2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aff-link-box .ic svg {
  width: 20px;
  height: 20px;
  color: var(--accent, #8b734b);
}

.aff-link-box > div {
  flex: 1;
  min-width: 0;
}

.aff-link-box h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 6px;
  letter-spacing: -0.05em;
}

.aff-link-box h3 em {
  font-style: italic;
  color: var(--accent, #8b734b);
}

.aff-link-box h3 .ne-em {
  color: var(--accent, #8b734b);
}

.aff-link-box p {
  font-size: 13px;
  color: var(--ink-2, #3a3a3a);
  margin: 0 0 14px;
  line-height: 1.6;
}

.aff-link-box p code {
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  background: var(--soft, #f6f4ef);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--accent-ink, #6a572f);
}

.aff-input-row {
  display: flex;
  gap: 8px;
}

.aff-input-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line, #ececea);
  border-radius: 999px;
  padding: 0 16px;
  height: 40px;
  font-size: 13px;
  color: var(--ink-2, #3a3a3a);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  background: #fff;
  outline: none;
}

.aff-input-row button {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink, #0a0a0a);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.aff-input-row button:hover {
  background: #222;
}

/* Commission sections */
.commission-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 8px;
  font-size: 13px;
  color: var(--ink-2, #3a3a3a);
  font-weight: 600;
  border-top: 1px solid var(--line, #ececea);
  margin-top: 12px;
}

.commission-section-head em {
  font-style: normal;
  color: var(--ink-3, #7a7a7a);
  font-weight: 400;
}

.commission-section-head .ne-em {
  font-style: normal;
  color: var(--ink-3, #7a7a7a);
  font-weight: 400;
}

.commission-section-head .tag {
  font-size: 11px;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3, #7a7a7a);
  padding: 3px 10px;
  border: 1px solid var(--line, #ececea);
  border-radius: 999px;
}

.commission-table {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 12px;
}

.commission-cell {
  padding: 12px 12px;
  border-right: 1px solid var(--line, #ececea);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.commission-cell:last-child {
  border-right: none;
}

.commission-cell.highlight {
  background: var(--accent-soft, #f3eee2);
  border-radius: 10px;
}

.commission-cell .lbl {
  font-size: 11px;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3, #7a7a7a);
}

.commission-cell .val {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink, #0a0a0a);
  line-height: 1;
}

.commission-table--last {
  padding-bottom: 28px;
}

/* Responsive */
@media (max-width: 1024px) {
  .acc-grid {
    grid-template-columns: 1fr;
  }

  .acc-side-wrap {
    position: static;
  }

  .acc-side {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .acc-side a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .acc-h1 {
    font-size: 40px;
  }

  .acc-head {
    flex-direction: column;
    gap: 16px;
    padding: 24px 0 20px;
  }

  .commission-table {
    grid-template-columns: repeat(3, 1fr);
  }

  .commission-cell:nth-child(3) {
    border-right: none;
  }

  .commission-cell:nth-child(4),
  .commission-cell:nth-child(5) {
    border-top: 1px solid var(--line, #ececea);
  }
}

@media (max-width: 768px) {
  .o-trow {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
  }

  .o-trow.head {
    display: none;
  }

  .addr-grid {
    grid-template-columns: 1fr;
  }

  .dash-stats {
    grid-template-columns: 1fr;
  }

  .ne-od-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding: 12px 16px;
  }

  .ne-od-product {
    grid-column: 1 / -1;
  }

  .ne-od-qty,
  .ne-od-price {
    grid-column: auto;
  }

  .pay-card {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
  }

  .pay-card .badge-default,
  .pay-card-actions {
    grid-column: 2;
  }

  .commission-table {
    grid-template-columns: repeat(2, 1fr);
  }

  .commission-cell:nth-child(2n) {
    border-right: none;
  }

  .commission-cell:nth-child(n+3) {
    border-top: 1px solid var(--line, #ececea);
  }
}

@media (max-width: 640px) {
  .acc-h1 {
    font-size: 32px;
  }

  .ne-orders-table thead {
    display: none;
  }

  .ne-orders-table tr {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line, #ececea);
  }

  .ne-orders-table td {
    padding: 2px 0;
    border-bottom: none;
  }

  .dash-welcome {
    padding: 20px;
  }

  .dash-welcome h2 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.05em;
}

  .commission-table {
    grid-template-columns: 1fr 1fr;
  }

  .aff-link-box {
    flex-direction: column;
  }

  .aff-input-row {
    flex-direction: column;
  }

  .aff-input-row input,
  .aff-input-row button {
    width: 100%;
  }
}

.ne-account-nav__item.is-active>a {
  --tw-bg-opacity:1;
  background-color:rgb(243 238 226/var(--tw-bg-opacity,1));
  font-weight:600;
  --tw-text-opacity:1;
  color:rgb(23 23 23/var(--tw-text-opacity,1));
}

.woocommerce-account .woocommerce-MyAccount-navigation ul>:not([hidden])~:not([hidden]) {
  --tw-divide-y-reverse:0;
  border-top-width:calc(1px*(1 - var(--tw-divide-y-reverse)));
  border-bottom-width:calc(1px*var(--tw-divide-y-reverse));
  --tw-divide-opacity:1;
  border-color:rgb(236 236 234/var(--tw-divide-opacity,1));
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display:flex;
  align-items:center;
  padding:.875rem 1.25rem;
  font-size:.875rem;
  line-height:1.25rem;
  font-weight:500;
  --tw-text-opacity:1;
  color:rgb(82 82 82/var(--tw-text-opacity,1));
  transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;
  transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;
  transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;
  transition-timing-function:cubic-bezier(.4,0,.2,1);
  transition-duration:.15s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background-color:hsla(42,41%,92%,.6);
  --tw-text-opacity:1;
  color:rgb(23 23 23/var(--tw-text-opacity,1));
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  --tw-bg-opacity:1;
  background-color:rgb(243 238 226/var(--tw-bg-opacity,1));
  --tw-text-opacity:1;
  color:rgb(23 23 23/var(--tw-text-opacity,1));
}
