/* ============================================================
   MEIN KONTO – WooCommerce MyAccount (Zaunshop-Systeme)
   ============================================================ */

/* ── Buttons (shared) ─────────────────────────────────────── */
.zs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  line-height: 1.2;
}
.zs-btn-primary {
  background: var(--color-primary);
  color: #fff !important;
}
.zs-btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
}
.zs-btn-ghost {
  background: #fff;
  color: var(--color-text) !important;
  border-color: var(--color-border);
}
.zs-btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
  background: #fff;
}

/* ── Login / Register / Lost-Password Card ────────────────── */
.zs-auth-wrap { max-width: 480px; margin: 40px auto 60px; padding: 0 20px; }
.zs-auth-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow); }
.zs-auth-hidden { display: none !important; }
.zs-auth-card-header { margin-bottom: 28px; }
.zs-auth-card-header h2 { font-size: 24px; font-weight: 900; margin: 0 0 6px; }
.zs-auth-card-header p { font-size: 14px; color: var(--color-muted); margin: 0; line-height: 1.5; }
.zs-auth-form { display: flex; flex-direction: column; gap: 18px; }
.zs-form-group { display: flex; flex-direction: column; gap: 6px; }
.zs-form-group label { font-size: 13px; font-weight: 700; color: var(--color-text); }
.zs-form-group input { padding: 12px 14px; font-family: inherit; font-size: 15px; border: 2px solid var(--color-border); border-radius: var(--radius-xs); transition: border-color .15s, box-shadow .15s; background: #fff; }
.zs-form-group input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.zs-form-group small { font-size: 12px; color: var(--color-muted); }
.zs-form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.zs-checkbox-label { font-size: 13px; color: var(--color-muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.zs-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-primary); }
.zs-forgot-link { font-size: 13px; color: var(--color-primary); font-weight: 600; }
.zs-auth-btn { display: block; width: 100%; padding: 14px; background: var(--color-primary); color: #fff; border: none; border-radius: var(--radius-sm); font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: background .15s, transform .1s; margin-top: 4px; }
.zs-auth-btn:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.zs-auth-legal { font-size: 12px; color: var(--color-muted); line-height: 1.5; margin: 0; }
.zs-auth-legal a { color: var(--color-primary); font-weight: 600; }
.zs-auth-switch { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--color-border); text-align: center; font-size: 14px; color: var(--color-muted); }
.zs-auth-switch a { color: var(--color-primary); font-weight: 700; }
.zs-req { color: #dc2626; }

/* ── Account Page Wrapper & Layout ────────────────────────── */
.zs-account-page { max-width: var(--container-width); margin: 0 auto; padding: 32px 20px 60px; }
.zs-account-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Sidebar Navigation ───────────────────────────────────── */
.zs-account-nav {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 80px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.zs-account-nav ul { list-style: none; margin: 0; padding: 6px; }
.zs-account-nav li { margin: 0; }
.zs-account-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.zs-account-nav-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: color .12s;
}
.zs-account-nav li a:hover { background: var(--color-bg); color: var(--color-primary); }
.zs-account-nav li a:hover .zs-account-nav-icon { color: var(--color-primary); }
.zs-account-nav li.is-active a {
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
}
.zs-account-nav li.is-active a .zs-account-nav-icon { color: #fff; }

/* ── Content Card ─────────────────────────────────────────── */
.zs-account-content {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 300px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.zs-account-content h2 { font-size: 22px; font-weight: 900; margin: 0 0 6px; color: var(--color-text); }
.zs-account-content h3 { font-size: 16px; font-weight: 800; margin: 0 0 14px; color: var(--color-text); }
.zs-account-content p { font-size: 14px; line-height: 1.7; color: var(--color-muted); margin: 0 0 12px; }

/* ── WC Notices ───────────────────────────────────────────── */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info { padding: 14px 20px; border-radius: var(--radius-xs); font-size: 14px; margin-bottom: 20px; list-style: none; }
.woocommerce-notices-wrapper .woocommerce-message { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.woocommerce-notices-wrapper .woocommerce-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.woocommerce-notices-wrapper .woocommerce-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 14px 20px; border-radius: var(--radius-xs); font-size: 14px; margin-bottom: 20px; list-style: none; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.zs-dashboard { display: flex; flex-direction: column; gap: 24px; }

.zs-dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 26px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-sm);
}
.zs-dashboard-hero-content h2 { font-size: 24px; font-weight: 900; margin: 0 0 4px; color: var(--color-text); }
.zs-dashboard-hero-content p { font-size: 14px; color: var(--color-muted); margin: 0; }
.zs-dashboard-hero-logout a {
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: #fff;
  white-space: nowrap;
  font-weight: 600;
  transition: color .15s, border-color .15s;
}
.zs-dashboard-hero-logout a:hover { color: var(--color-primary); border-color: var(--color-primary); }

.zs-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.zs-dashboard-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
}
.zs-dashboard-stat-value { font-size: 22px; font-weight: 900; color: var(--color-text); line-height: 1.2; }
.zs-dashboard-stat-label { font-size: 12px; color: var(--color-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.zs-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.zs-dashboard-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.zs-dashboard-action:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(31, 122, 224, 0.10);
  transform: translateY(-1px);
}
.zs-dashboard-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary-light, #dbeafe);
  color: var(--color-primary);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.zs-dashboard-action > div { display: flex; flex-direction: column; gap: 2px; }
.zs-dashboard-action strong { font-size: 15px; font-weight: 800; color: var(--color-text); }
.zs-dashboard-action span { font-size: 12.5px; color: var(--color-muted); }

/* Recent orders */
.zs-dashboard-recent {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.zs-dashboard-recent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}
.zs-dashboard-recent-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.zs-dashboard-recent-head a { font-size: 13px; color: var(--color-primary); font-weight: 700; text-decoration: none; }
.zs-dashboard-recent-list { display: flex; flex-direction: column; background: #fff; }
.zs-dashboard-recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--color-border);
  text-decoration: none;
  transition: background .12s;
}
.zs-dashboard-recent-item:first-child { border-top: none; }
.zs-dashboard-recent-item:hover { background: var(--color-bg); }
.zs-dashboard-recent-main { display: flex; flex-direction: column; gap: 2px; }
.zs-dashboard-recent-num { font-size: 14px; font-weight: 800; color: var(--color-text); }
.zs-dashboard-recent-date { font-size: 12.5px; color: var(--color-muted); }
.zs-dashboard-recent-meta { display: flex; align-items: center; gap: 12px; }
.zs-dashboard-recent-total { font-size: 14px; font-weight: 700; color: var(--color-text); }

/* Support box */
.zs-dashboard-support {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
}
.zs-dashboard-support-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: var(--color-primary-light, #dbeafe);
  border-radius: var(--radius-xs);
}
.zs-dashboard-support-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.zs-dashboard-support-text strong { font-size: 14.5px; font-weight: 800; color: var(--color-text); }
.zs-dashboard-support-text span { font-size: 13px; color: var(--color-muted); }
.zs-dashboard-support-ctas { display: flex; gap: 8px; flex-shrink: 0; }

/* ============================================================
   STATUS PILLS
   ============================================================ */
.zs-order-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  white-space: nowrap;
  background: #e5e7eb;
  color: #374151;
  border: 1px solid #d1d5db;
}
.zs-status-pending      { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.zs-status-on-hold      { background: #fef9c3; color: #854d0e; border-color: #fef08a; }
.zs-status-processing   { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.zs-status-completed    { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.zs-status-cancelled    { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.zs-status-refunded     { background: #e0e7ff; color: #3730a3; border-color: #c7d2fe; }
.zs-status-failed       { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

/* ============================================================
   ORDERS LIST
   ============================================================ */
.zs-orders-head { margin-bottom: 20px; }
.zs-orders-head h2 { margin: 0 0 6px; }
.zs-orders-head p { margin: 0; font-size: 14px; color: var(--color-muted); }

.zs-orders-list { display: flex; flex-direction: column; gap: 14px; }
.zs-order-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.zs-order-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(31, 122, 224, 0.08);
}
.zs-order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.zs-order-card-ident { display: flex; flex-direction: column; gap: 2px; }
.zs-order-card-num { font-size: 15px; font-weight: 800; color: var(--color-text); }
.zs-order-card-date { font-size: 12.5px; color: var(--color-muted); }
.zs-order-card-products {
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--color-muted);
  line-height: 1.6;
  border-bottom: 1px solid var(--color-border);
}
.zs-order-card-more {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--color-muted);
  font-weight: 700;
}
.zs-order-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.zs-order-card-totals { display: flex; flex-direction: column; gap: 2px; }
.zs-order-card-label { font-size: 12.5px; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.zs-order-card-total { font-size: 17px; font-weight: 900; color: var(--color-text); }
.zs-order-card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.zs-order-card-actions .zs-btn { padding: 8px 16px; font-size: 13px; }

.zs-orders-pagination {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 24px;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.zs-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
}
.zs-empty-state-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--color-muted);
  border-radius: 50%;
  border: 1px solid var(--color-border);
  margin-bottom: 16px;
}
.zs-empty-state h3 { margin: 0 0 8px; font-size: 18px; font-weight: 900; color: var(--color-text); }
.zs-empty-state p { margin: 0 0 20px; max-width: 420px; font-size: 14px; color: var(--color-muted); }

/* ============================================================
   VIEW ORDER (single order detail)
   ============================================================ */
.zs-view-order { display: flex; flex-direction: column; gap: 20px; }

.zs-vo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.zs-vo-eyebrow { display: block; font-size: 12px; color: var(--color-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.zs-vo-head h2 { margin: 0 0 4px; font-size: 24px; }
.zs-vo-sub { margin: 0; font-size: 13.5px; color: var(--color-muted); }

.zs-vo-alert {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  flex-wrap: wrap;
}
.zs-vo-alert-warn {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
}
.zs-vo-alert strong { font-weight: 900; }
.zs-vo-alert .zs-btn { margin-left: auto; }

.zs-vo-bacs {
  padding: 20px 22px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
}
.zs-vo-bacs h3 { margin: 0 0 14px; font-size: 15px; }
.zs-vo-bacs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.zs-vo-bacs-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #eff6ff;
  font-size: 13px;
}
.zs-vo-bacs-list li:last-child { border-bottom: none; }
.zs-vo-bacs-list li > span {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.zs-vo-bacs-list li > strong {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}
.zs-vo-bacs-purpose { flex-wrap: wrap; }
.zs-vo-copy {
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.zs-vo-copy:hover { background: var(--color-primary-dark); }

/* Order updates */
.zs-vo-notes { padding: 18px 20px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.zs-vo-notes h3 { margin: 0 0 12px; font-size: 15px; }
.zs-vo-notes ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.zs-vo-notes li { background: #fff; padding: 12px 14px; border-left: 3px solid var(--color-primary); border-radius: var(--radius-xs); }
.zs-vo-notes time { display: block; font-size: 12px; color: var(--color-muted); margin-bottom: 4px; font-weight: 600; }
.zs-vo-notes div, .zs-vo-notes p { font-size: 13.5px; color: var(--color-text); margin: 0; }

/* Order summary */
.zs-vo-summary { border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.zs-vo-summary h3 { margin: 0; padding: 14px 18px; background: var(--color-bg); border-bottom: 1px solid var(--color-border); font-size: 14px; }
.zs-vo-items { display: flex; flex-direction: column; }
.zs-vo-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}
.zs-vo-item:last-child { border-bottom: none; }
.zs-vo-item-media { width: 56px; height: 56px; flex-shrink: 0; border-radius: var(--radius-xs); overflow: hidden; background: var(--color-bg); border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; }
.zs-vo-item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zs-vo-item-placeholder { display: block; width: 100%; height: 100%; background: var(--color-bg); }
.zs-vo-item-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zs-vo-item-name { font-size: 14px; font-weight: 700; color: var(--color-text); line-height: 1.35; }
.zs-vo-item-qty { font-size: 12.5px; color: var(--color-muted); }
.zs-vo-item-price { font-size: 14px; font-weight: 800; color: var(--color-text); text-align: right; white-space: nowrap; }

.zs-vo-totals {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.zs-vo-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--color-muted);
}
.zs-vo-total-row strong { color: var(--color-text); font-weight: 700; }
.zs-vo-total-row.is-grand {
  padding-top: 12px;
  margin-top: 6px;
  border-top: 1px solid var(--color-border);
  font-size: 16px;
  color: var(--color-text);
}
.zs-vo-total-row.is-grand strong { font-size: 18px; font-weight: 900; }

/* Addresses */
.zs-vo-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zs-vo-address {
  padding: 16px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.zs-vo-address h4 { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: var(--color-text); text-transform: uppercase; letter-spacing: 0.04em; }
.zs-vo-address address { font-style: normal; font-size: 13.5px; line-height: 1.6; color: var(--color-text); }
.zs-vo-address-contact { font-size: 13px; color: var(--color-muted); margin-top: 4px; }

.zs-vo-support {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}
.zs-vo-support > div:first-child { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.zs-vo-support strong { font-size: 14.5px; font-weight: 800; color: var(--color-text); }
.zs-vo-support span { font-size: 13px; color: var(--color-muted); }
.zs-vo-support-ctas { display: flex; gap: 8px; }

/* ============================================================
   FORMS (edit account, edit address)
   ============================================================ */
.zs-acc-form-head { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--color-border); }
.zs-acc-form-head h2 { margin: 0 0 4px; }
.zs-acc-form-head p { margin: 0; font-size: 14px; color: var(--color-muted); }
.zs-back-link { display: inline-block; font-size: 13px; color: var(--color-primary); font-weight: 700; text-decoration: none; margin-bottom: 12px; }
.zs-back-link:hover { text-decoration: underline; }

.zs-acc-form { display: flex; flex-direction: column; gap: 20px; }
.zs-acc-section {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.zs-acc-section h3 { margin: 0 0 4px; font-size: 15px; }
.zs-acc-section-hint { margin: 0 0 16px; font-size: 13px; color: var(--color-muted); }

.zs-acc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zs-acc-form .zs-form-group { margin-bottom: 14px; }
.zs-acc-form .zs-form-group:last-child { margin-bottom: 0; }
.zs-acc-form .zs-form-group input {
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.zs-acc-form .zs-form-group input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }

.zs-acc-form-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* WC form field overrides inside edit-address */
.zs-acc-form .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.zs-acc-form .woocommerce-address-fields__field-wrapper .form-row-wide,
.zs-acc-form .woocommerce-address-fields__field-wrapper .notes { grid-column: 1 / -1; }
.zs-acc-form .form-row { margin: 0 !important; padding: 0 !important; width: auto !important; float: none !important; }
.zs-acc-form .form-row label { display: block; font-size: 13px; font-weight: 700; color: var(--color-text); margin-bottom: 5px; }
.zs-acc-form .form-row .required { color: #dc2626; }
.zs-acc-form .form-row .optional { color: var(--color-muted); font-weight: 400; font-style: italic; }
.zs-acc-form .form-row input.input-text,
.zs-acc-form .form-row select,
.zs-acc-form .form-row textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.zs-acc-form .form-row input.input-text:focus,
.zs-acc-form .form-row select:focus,
.zs-acc-form .form-row textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.zs-acc-form .form-row.woocommerce-invalid input.input-text,
.zs-acc-form .form-row.woocommerce-invalid select { border-color: #dc2626; }
.zs-acc-form .select2-container .select2-selection--single {
  height: auto;
  padding: 9px 12px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: #fff;
}
.zs-acc-form .select2-container--focus .select2-selection--single,
.zs-acc-form .select2-container--open .select2-selection--single { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.zs-acc-form .select2-container .select2-selection__rendered { padding: 0; line-height: 1.4; font-size: 14px; color: var(--color-text); }
.zs-acc-form .select2-container .select2-selection__arrow { height: 100%; }

/* ============================================================
   ADDRESSES (OVERVIEW)
   ============================================================ */
.zs-address-intro { font-size: 14px; color: var(--color-muted); margin: 0 0 20px; }

.zs-address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.zs-address-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.zs-address-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(31, 122, 224, 0.08);
}
.zs-address-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}
.zs-address-card-header h3 { font-size: 14.5px; font-weight: 800; margin: 0 !important; padding: 0 !important; border: none !important; }
.zs-address-card-body { padding: 16px 18px; flex: 1; }
.zs-address-card-body address { font-size: 14px; line-height: 1.7; color: var(--color-text); font-style: normal; }
.zs-address-empty { font-size: 13px; color: var(--color-muted); margin: 0; }

.zs-address-card-footer { padding: 12px 18px; border-top: 1px solid var(--color-border); }
.zs-address-edit-btn {
  display: inline-block;
  padding: 8px 18px;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.zs-address-edit-btn:hover { background: var(--color-primary-dark); color: #fff !important; }

/* ============================================================
   DOWNLOADS
   ============================================================ */
.zs-dl-head { margin-bottom: 20px; }
.zs-dl-head h2 { margin: 0 0 4px; }
.zs-dl-head p { margin: 0; font-size: 14px; color: var(--color-muted); }
.zs-dl-list { display: flex; flex-direction: column; gap: 10px; }
.zs-dl-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color .15s;
}
.zs-dl-item:hover { border-color: var(--color-primary); }
.zs-dl-item-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: var(--color-primary-light, #dbeafe);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.zs-dl-item-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.zs-dl-item-name { font-size: 14.5px; font-weight: 700; color: var(--color-text); }
.zs-dl-item-meta { font-size: 12.5px; color: var(--color-muted); }
.zs-dl-item-meta a { color: var(--color-primary); font-weight: 700; text-decoration: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .zs-account-wrap { grid-template-columns: 1fr; gap: 16px; }
  .zs-account-nav { position: static; }
  .zs-account-nav ul { display: flex; overflow-x: auto; padding: 6px; gap: 4px; }
  .zs-account-nav li a { white-space: nowrap; padding: 9px 14px; }
  .zs-account-nav-icon { width: 18px; height: 18px; }
  .zs-account-nav-icon svg { width: 16px; height: 16px; }
}

@media (max-width: 700px) {
  .zs-auth-card { padding: 24px 20px; }
  .zs-account-content { padding: 20px; }
  .zs-dashboard-hero { flex-direction: column; align-items: stretch; }
  .zs-dashboard-stats { grid-template-columns: 1fr; }
  .zs-dashboard-actions { grid-template-columns: 1fr; }
  .zs-dashboard-support { flex-direction: column; text-align: center; }
  .zs-dashboard-support-ctas { width: 100%; justify-content: center; }
  .zs-vo-head { flex-direction: column; align-items: stretch; }
  .zs-vo-addresses { grid-template-columns: 1fr; }
  .zs-vo-item { flex-wrap: wrap; }
  .zs-vo-item-price { width: 100%; text-align: right; }
  .zs-order-card-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .zs-order-card-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .zs-order-card-actions { justify-content: flex-start; }
  .zs-address-grid { grid-template-columns: 1fr; }
  .zs-acc-grid-2 { grid-template-columns: 1fr; }
  .zs-acc-form .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
  .zs-dashboard-recent-item { flex-direction: column; align-items: stretch; gap: 8px; }
  .zs-dashboard-recent-meta { justify-content: space-between; }
  .zs-vo-alert { flex-direction: column; align-items: stretch; }
  .zs-vo-alert .zs-btn { margin-left: 0; width: 100%; }
}


/* ==========================================================
   ACCOUNT v1.1 – Small Mobile Additions (≤420px)
   Added 17.04.2026 as part of mobile audit
   ========================================================== */

/* ── Prevent iOS zoom ─────────────────────────────────── */
@media (max-width: 700px) {
  .zs-account-page input[type="text"],
  .zs-account-page input[type="email"],
  .zs-account-page input[type="tel"],
  .zs-account-page input[type="password"],
  .zs-account-page select,
  .zs-account-page textarea,
  .zs-auth-card input,
  .zs-auth-card select {
    font-size: 16px !important;
  }
}

/* ── Small Mobile (≤420px) ────────────────────────────── */
@media (max-width: 420px) {
  .zs-account-page {
    padding: 18px 14px 40px;
  }
  .zs-account-wrap {
    gap: 12px;
  }
  /* Nav pills: tighter */
  .zs-account-nav ul {
    padding: 4px;
    gap: 2px;
  }
  .zs-account-nav li a {
    padding: 8px 12px;
    font-size: 13px;
  }
  /* Content card */
  .zs-account-content {
    padding: 16px !important;
  }
  .zs-account-content h2 {
    font-size: 19px !important;
  }
  .zs-account-content h3 {
    font-size: 15px !important;
  }
  /* Login / Register card */
  .zs-auth-card {
    padding: 20px 16px !important;
    border-radius: 12px;
  }
  .zs-auth-card h1,
  .zs-auth-card h2 {
    font-size: 20px !important;
  }
  /* Buttons touch target */
  .zs-auth-card button,
  .zs-account-content button[type="submit"],
  .zs-acc-form button[type="submit"] {
    min-height: 48px;
    font-size: 15px;
  }
  /* Order cards */
  .zs-order-card {
    padding: 12px 14px !important;
  }
  .zs-order-card-head strong {
    font-size: 13px;
  }
  .zs-vo-head {
    gap: 8px;
  }
  .zs-vo-item {
    padding: 10px;
    gap: 8px;
  }
  /* Dashboard stats */
  .zs-dashboard-stat {
    padding: 12px 14px;
  }
  .zs-dashboard-stat-num {
    font-size: 22px;
  }
  /* Address cards */
  .zs-address-card {
    padding: 14px;
  }
  /* Downloads */
  .zs-dl-item {
    padding: 12px;
    gap: 10px;
  }
}

/* ── Ultra-narrow safety net ──────────────────────────── */
@media (max-width: 360px) {
  .zs-account-nav li a {
    padding: 7px 10px;
    font-size: 12.5px;
  }
  .zs-account-nav-icon {
    display: none;
  }
}
