/* ==========================================================================
   MKZ Konto & Zamówienia – Frontend CSS  v2.1
   Philosophy: inherit from theme wherever possible; override only layout
   and structural issues.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CRITICAL — Remove sidebar & ALL its borders on account / login pages
   -------------------------------------------------------------------------- */

/* Hide sidebar by every common ID / class pattern */
.woocommerce-account #secondary,
.woocommerce-account #sidebar,
.woocommerce-account #sidebar-1,
.woocommerce-account #sidebar-2,
.woocommerce-account .col-sidebar,
.woocommerce-account .sidebar,
.woocommerce-account .sidebar-area,
.woocommerce-account .shop-sidebar,
.woocommerce-account .widget-area,
.woocommerce-account aside.widget-area,
.woocommerce-account [id*="sidebar"],
.woocommerce-account [class*="sidebar"]:not(.mkz-auth-wrap):not(.mkz-account-wrap) {
  display:    none    !important;
  width:      0       !important;
  min-width:  0       !important;
  max-width:  0       !important;
  padding:    0       !important;
  margin:     0       !important;
  border:     none    !important;
  overflow:   hidden  !important;
}

/* Make primary content column full-width, no borders */
.woocommerce-account #primary,
.woocommerce-account #content,
.woocommerce-account .site-main,
.woocommerce-account main,
.woocommerce-account .content-area {
  width:       100%   !important;
  max-width:   100%   !important;
  float:       none   !important;
  margin:      0      !important;
  border:      none   !important;
  border-left: none   !important;
  border-right: none  !important;
}

/* Remove the WC My Account navigation entirely */
.woocommerce-account .woocommerce-MyAccount-navigation {
  display:    none      !important;
  width:      0         !important;
  min-width:  0         !important;
  padding:    0         !important;
  margin:     0         !important;
  border:     none      !important;
  visibility: hidden    !important;
  overflow:   hidden    !important;
  position:   absolute  !important;
  left:       -9999px   !important;
}

/* WC content area — full width, no remnant borders anywhere */
.woocommerce-account .woocommerce-MyAccount-content {
  width:        100%  !important;
  float:        none  !important;
  padding:      0     !important;
  margin:       0     !important;
  border:       none  !important;
  border-left:  none  !important;
  border-right: none  !important;
}

/* Hide the WP page/entry title on account pages — our templates carry their own headings */
.woocommerce-account .entry-title,
.woocommerce-account .page-title,
.woocommerce-account h1.page-title,
.woocommerce-account h1.entry-title { display: none !important; }

/* Remove WC default "Hello <name>" dashboard paragraph */
.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Auth page wrapper (login / register)
   -------------------------------------------------------------------------- */
.mkz-auth-wrap {
  max-width: 520px;
  margin: 2rem auto 3rem;
  font-family: inherit;
}

/* Tabs */
.mkz-auth-tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1.75rem;
}
.mkz-auth-tab {
  padding: .7rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.mkz-auth-tab.is-active {
  color: inherit;
  border-bottom-color: currentColor;
}
.mkz-auth-tab:hover { color: inherit; }

/* Hidden panels */
.mkz-hidden { display: none !important; }

/* --------------------------------------------------------------------------
   Form fields
   -------------------------------------------------------------------------- */
.mkz-auth-form { display: flex; flex-direction: column; gap: 1.1rem; }

.mkz-field { display: flex; flex-direction: column; gap: .35rem; }

.mkz-field label {
  font-size: .875rem;
  font-weight: 600;
  color: inherit;
}
.mkz-required { color: #dc2626; margin-left: 2px; }

.mkz-field input[type="text"],
.mkz-field input[type="email"],
.mkz-field input[type="password"] {
  display: block;
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  color: inherit;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.mkz-field input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* Password field with toggle button */
.mkz-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.mkz-pw-wrap input {
  flex: 1;
  padding-right: 2.5rem !important;
}
.mkz-pw-toggle {
  position: absolute;
  right: .6rem;
  background: none;
  border: none;
  padding: .25rem;
  cursor: pointer;
  color: #9ca3af;
  line-height: 0;
  transition: color .15s;
}
.mkz-pw-toggle:hover { color: inherit; }

/* Checkbox + lost-password row */
.mkz-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .875rem;
}
.mkz-checkbox {
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  font-size: .875rem;
}
.mkz-checkbox input { width: auto; }

/* Links */
.mkz-link {
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Submit button — use WC/theme button class so it inherits theme colour */
.mkz-submit-btn {
  display: block;
  width: 100%;
  padding: .75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  margin-top: .5rem;
}

/* Info / privacy text */
.mkz-info-note {
  font-size: .85rem;
  color: #6b7280;
  background: #f9fafb;
  border-left: 3px solid #d1d5db;
  padding: .6rem .85rem;
  border-radius: 0 4px 4px 0;
  margin: 0;
}
.mkz-privacy { font-size: .8rem; color: #6b7280; }
.mkz-privacy a { text-decoration: underline; }

/* Tracker hint */
.mkz-tracker-hint {
  margin: 1.25rem 0 0;
  font-size: .875rem;
  color: #6b7280;
  text-align: center;
}

/* --------------------------------------------------------------------------
   My Account — global wrapper
   -------------------------------------------------------------------------- */
.mkz-account-wrap {
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 3rem;
  font-family: inherit;
  color: inherit;
}
.mkz-account-wrap *,
.mkz-account-wrap *::before,
.mkz-account-wrap *::after { box-sizing: border-box; }

/* --------------------------------------------------------------------------
   Back link / back to account button
   -------------------------------------------------------------------------- */
.mkz-back-link,
.mkz-back-to-account {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .875rem;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 1.25rem;
  font-weight: 500;
  padding: .4rem .85rem;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  background: #f9fafb;
  transition: background .15s, border-color .15s, color .15s;
}
.mkz-back-link:hover,
.mkz-back-to-account:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Login lockout notice
   -------------------------------------------------------------------------- */
.mkz-lockout-notice {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  padding: .9rem 1rem;
  margin-bottom: 1.25rem;
  color: #991b1b;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.5;
}
.mkz-lockout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }
.mkz-lockout-text { flex: 1; }
.mkz-lockout-countdown {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  border-radius: 4px;
  padding: .05rem .45rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  min-width: 3.5rem;
  text-align: center;
}

/* Disabled submit during lockout */
.mkz-btn-disabled,
.mkz-submit-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Remaining-attempts warning (shown below form, not a popup) */
.mkz-attempts-notice {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  padding: .8rem 1rem;
  margin-top: .875rem;
  color: #92400e;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
}
.mkz-attempts-danger {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: #dc2626;
  color: #991b1b;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Item base price (order detail)
   -------------------------------------------------------------------------- */
.mkz-item-base-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-top: .3rem;
  font-size: .78rem;
  color: #6b7280;
}
.mkz-item-base-label { font-weight: 600; }
.mkz-item-addon-cost { color: #374151; font-weight: 500; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.mkz-order-card,
.mkz-order-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.mkz-order-card-title,
.mkz-order-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1.1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: .45rem;
}

/* --------------------------------------------------------------------------
   Welcome banner (dashboard)
   -------------------------------------------------------------------------- */
.mkz-welcome-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.mkz-welcome-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #374151;
}
.mkz-welcome-text h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 .25rem;
}
.mkz-welcome-text p { margin: 0; font-size: .875rem; color: #6b7280; }

/* --------------------------------------------------------------------------
   Dashboard stat cards
   -------------------------------------------------------------------------- */
.mkz-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mkz-dash-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}
.mkz-dash-card-icon { font-size: 1.5rem; margin-bottom: .4rem; line-height: 1; }
.mkz-dash-card-value { font-size: 1.75rem; font-weight: 800; margin-bottom: .2rem; }
.mkz-dash-card-label { font-size: .72rem; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* --------------------------------------------------------------------------
   Status badge
   -------------------------------------------------------------------------- */
.mkz-status-badge {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .02em;
}
.status-pending          { background: #fef3c7; color: #92400e; }
.status-processing       { background: #dbeafe; color: #1e40af; }
.status-on-hold          { background: #ffedd5; color: #9a3412; }
.status-completed        { background: #d1fae5; color: #065f46; }
.status-cancelled        { background: #fee2e2; color: #991b1b; }
.status-refunded         { background: #ede9fe; color: #4c1d95; }
.status-failed           { background: #fee2e2; color: #991b1b; }
.status-shipped          { background: #ede9fe; color: #4c1d95; }
.status-out-for-delivery { background: #cffafe; color: #155e75; }

/* --------------------------------------------------------------------------
   Orders list table
   -------------------------------------------------------------------------- */
.mkz-orders-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.mkz-orders-header h2 { margin: 0; font-size: 1.35rem; font-weight: 700; }
.mkz-orders-count {
  font-size: .75rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: .15rem .6rem;
  color: #6b7280;
  font-weight: 600;
}
.mkz-orders-subheader {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.mkz-tracker-desc { color: #6b7280; margin: 0 0 1.5rem; }
.mkz-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.mkz-orders-table thead th {
  background: #f9fafb;
  padding: .7rem 1rem;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid #e5e7eb;
}
.mkz-orders-table tbody tr:hover { background: #f9fafb; }
.mkz-orders-table td {
  padding: .875rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.mkz-orders-table tbody tr:last-child td { border-bottom: none; }

/* Pagination */
.mkz-pagination { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.mkz-page-info  { font-size: .85rem; color: #6b7280; }

/* Empty state */
.mkz-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  color: #9ca3af;
}
.mkz-empty-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.mkz-empty-state p { font-size: 1rem; margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Order detail – hero header
   -------------------------------------------------------------------------- */
.mkz-order-hero {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.mkz-order-hero-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: .25rem;
}
.mkz-order-hero-number {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: .4rem;
}
.mkz-order-hero-date { font-size: .875rem; color: #6b7280; }
.mkz-order-hero-right { text-align: right; }
.mkz-order-hero-total { font-size: 1.5rem; font-weight: 800; margin-top: .4rem; }
.mkz-status-lg { font-size: .8rem; padding: .3rem .9rem; }

/* --------------------------------------------------------------------------
   Timeline — shared rules for PHP template (order-detail.php) AND
   JS-rendered tracker timeline.
   PHP uses:  .mkz-timeline-v2 > .mkz-tl-track-wrap + .mkz-tl-stages
   JS uses:   .mkz-tl-wrap     > .mkz-tl-track-row  + .mkz-tl-stages-row
   Both share the same stage / icon / label class names.
   -------------------------------------------------------------------------- */

/* Outer wrappers */
.mkz-timeline-v2,
.mkz-tl-wrap { padding: .5rem 0 1rem; }

/* Track row */
.mkz-tl-track-wrap,
.mkz-tl-track-row { padding: 0 calc(100% / 12); }

/* Track bar */
.mkz-tl-track {
  height: 4px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

/* Animated fill */
.mkz-tl-fill {
  height: 100%;
  background: #374151;
  border-radius: 4px;
  transition: width 1s ease;
}

/* Stages row — floats above the track via negative top margin */
.mkz-tl-stages,
.mkz-tl-stages-row {
  display: flex;
  justify-content: space-between;
  margin-top: -10px;
  position: relative;
  z-index: 2;
}

/* Individual stage */
.mkz-tl-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* Icon circle */
.mkz-tl-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: .4rem;
  transition: border-color .2s, background .2s;
}

/* Completed stage */
.mkz-tl-stage.is-done .mkz-tl-icon-wrap {
  background: #374151;
  border-color: #374151;
}
.mkz-tl-stage.is-done .mkz-tl-emoji { display: none; }

/* Checkmark — only visible on done stages */
.mkz-tl-check { display: none; color: #fff; font-weight: 700; font-size: .9rem; }
.mkz-tl-stage.is-done .mkz-tl-check { display: block; }

/* Current / active stage */
.mkz-tl-stage.is-current .mkz-tl-icon-wrap {
  border-color: #374151;
  border-width: 3px;
  background: #fff;
}

/* Future stages — dimmed */
.mkz-tl-stage.is-future .mkz-tl-icon-wrap { opacity: .4; }

/* Legacy dot — hidden, icon-wrap replaces it */
.mkz-tl-dot { display: none; }

/* Stage labels */
.mkz-tl-label {
  font-size: .65rem;
  text-align: center;
  color: #9ca3af;
  max-width: 64px;
  line-height: 1.3;
  font-weight: 500;
}
.mkz-tl-stage.is-done .mkz-tl-label,
.mkz-tl-stage.is-current .mkz-tl-label { color: inherit; font-weight: 700; }

/* Cancelled / failed / refunded banner */
.mkz-timeline-cancelled {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  padding: .875rem 1rem;
  color: #991b1b;
  font-weight: 600;
}


/* --------------------------------------------------------------------------
   Order items
   -------------------------------------------------------------------------- */
.mkz-items-list { display: flex; flex-direction: column; gap: .75rem; }
.mkz-item-row {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem;
  background: #f9fafb;
  border-radius: 6px;
}
.mkz-item-thumb { flex-shrink: 0; position: relative; width: 56px; height: 56px; }
.mkz-item-thumb img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #e5e7eb;
}
.mkz-item-qty-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: #374151;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  border-radius: 10px;
  padding: .05rem .35rem;
  border: 1.5px solid #fff;
}
.mkz-item-info { flex: 1; min-width: 0; }
.mkz-item-name { font-weight: 600; font-size: .9rem; margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkz-item-name a { text-decoration: none; color: inherit; }
.mkz-item-name a:hover { text-decoration: underline; }
.mkz-item-meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
.mkz-item-meta-tag { font-size: .7rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 3px; padding: .05rem .35rem; color: #6b7280; }
.mkz-item-price { font-weight: 700; white-space: nowrap; flex-shrink: 0; }

/* Totals */
.mkz-order-totals-v2 { margin-top: 1rem; border-top: 1px solid #e5e7eb; padding-top: .875rem; }
.mkz-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .3rem 0;
  font-size: .875rem;
  color: #6b7280;
}
.mkz-total-discount span:last-child { color: #059669; font-weight: 700; }
.mkz-total-final {
  border-top: 1px solid #e5e7eb;
  margin-top: .4rem;
  padding-top: .6rem;
  font-size: 1rem;
  font-weight: 800;
  color: inherit;
}
.mkz-muted { color: #9ca3af; font-size: .8rem; }

/* --------------------------------------------------------------------------
   Two-column grid (addresses in order detail)
   -------------------------------------------------------------------------- */
.mkz-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   Address section
   -------------------------------------------------------------------------- */
.mkz-addresses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.mkz-address-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
}
.mkz-address-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.mkz-address-card h3 { font-size: .95rem; font-weight: 700; margin: 0; }
.mkz-order-address { font-style: normal; line-height: 1.7; margin: 0; }
.mkz-order-contact-row,
.mkz-payment-info {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  margin-top: .4rem;
  color: #6b7280;
}
.mkz-order-note {
  margin: 0;
  padding: .75rem 1rem;
  border-left: 3px solid #d1d5db;
  background: #f9fafb;
  border-radius: 0 5px 5px 0;
  font-style: italic;
  color: #6b7280;
}

/* --------------------------------------------------------------------------
   Thank you page — MKZ number banner
   -------------------------------------------------------------------------- */
.mkz-thankyou-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #374151;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.mkz-thankyou-icon { font-size: 2rem; flex-shrink: 0; }
.mkz-thankyou-text h3 { margin: 0 0 .25rem; font-size: .875rem; font-weight: 600; color: #6b7280; }
.mkz-thankyou-number { font-size: 2rem; font-weight: 900; line-height: 1; margin-bottom: .25rem; }
.mkz-thankyou-text p  { margin: 0; font-size: .8rem; color: #6b7280; }

/* --------------------------------------------------------------------------
   Buttons (our own — not replacing WC theme buttons)
   -------------------------------------------------------------------------- */
.mkz-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem 1.25rem;
  border-radius: 5px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid #d1d5db;
  background: #fff;
  color: inherit;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.mkz-btn:hover { background: #f9fafb; border-color: #9ca3af; text-decoration: none; }
.mkz-btn-sm { padding: .35rem .8rem; font-size: .8rem; }
.mkz-btn-primary { background: #374151; color: #fff; border-color: #374151; }
.mkz-btn-primary:hover { background: #1f2937; color: #fff; }
.mkz-btn-secondary { background: #fff; color: inherit; border-color: #d1d5db; }
.mkz-btn-secondary:hover { background: #f9fafb; border-color: #9ca3af; text-decoration: none; }

/* --------------------------------------------------------------------------
   Quick links (dashboard)
   -------------------------------------------------------------------------- */
.mkz-quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.mkz-quick-link-card {
  display: flex;
  align-items: center;
  gap: .875rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.mkz-quick-link-card:hover { border-color: #9ca3af; box-shadow: 0 2px 8px rgba(0,0,0,.06); text-decoration: none; }
.mkz-quick-link-card .icon { font-size: 1.5rem; flex-shrink: 0; }
.mkz-quick-link-card strong { display: block; font-size: .9rem; }
.mkz-quick-link-card p { margin: 0; font-size: .8rem; color: #6b7280; }

/* --------------------------------------------------------------------------
   Alert
   -------------------------------------------------------------------------- */
.mkz-alert { padding: .75rem 1rem; border-radius: 5px; font-size: .875rem; margin-bottom: 1rem; }
.mkz-alert-error   { background: #fef2f2; border-left: 3px solid #dc2626; color: #991b1b; }
.mkz-alert-success { background: #f0fdf4; border-left: 3px solid #16a34a; color: #15803d; }

/* --------------------------------------------------------------------------
   Order Tracker (shortcode page)
   -------------------------------------------------------------------------- */
.mkz-tracker-wrap {
  max-width: 560px;
  margin: 1.5rem auto 3rem;
  font-family: inherit;
}
.mkz-tracker-header { text-align: center; margin-bottom: 2rem; }
.mkz-tracker-icon { font-size: 3rem; margin-bottom: .5rem; line-height: 1; }
.mkz-tracker-header h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: .4rem; }
.mkz-tracker-header p { color: #6b7280; margin: 0; }

.mkz-tracker-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.75rem;
}
.mkz-form-group { margin-bottom: 1.1rem; }
.mkz-form-group label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.mkz-form-group .required { color: #dc2626; }
.mkz-form-group input[type="text"] {
  display: block;
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.mkz-form-group input:focus { outline: none; border-color: #374151; box-shadow: 0 0 0 2px rgba(55,65,81,.1); }
.mkz-tracker-error {
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  border-radius: 5px;
  padding: .75rem 1rem;
  color: #991b1b;
  font-size: .875rem;
  font-weight: 600;
  margin-top: 1rem;
}
.mkz-tracker-result {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.25rem;
}
.mkz-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: .5rem;
}
.mkz-result-header h3 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.mkz-result-meta {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .75rem;
  background: #f9fafb;
  border-radius: 6px;
  padding: .875rem;
  margin: .875rem 0;
}
/* Each meta item is a flex column so label sits above value */
.mkz-result-meta-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.mkz-result-meta-item .label {
  display: block;
  font-size: .68rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}
.mkz-result-meta-item .value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Form styles (account-details, edit-address)
   -------------------------------------------------------------------------- */
.mkz-form-wrap { max-width: 600px; }
.mkz-form-section { margin-bottom: 1.75rem; }
.mkz-form-section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.mkz-field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.mkz-field-group { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.mkz-field-group label { font-size: .875rem; font-weight: 600; }
.mkz-field-group .required { color: #dc2626; }
.mkz-field-group input[type="text"],
.mkz-field-group input[type="email"],
.mkz-field-group input[type="password"],
.mkz-account-form input {
  display: block;
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-family: inherit;
  font-size: .95rem;
  color: inherit;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.mkz-field-group input:focus,
.mkz-account-form input:focus { outline: none; border-color: #374151; box-shadow: 0 0 0 2px rgba(55,65,81,.1); }
.mkz-section-divider { border: none; border-top: 1px solid #e5e7eb; margin: 1.5rem 0; }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.mkz-pagination { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Edit Address Form Overrides
   -------------------------------------------------------------------------- */
.mkz-wc-fields-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.mkz-wc-fields-wrapper .form-row {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mkz-wc-fields-wrapper .form-row-first,
.mkz-wc-fields-wrapper .form-row-last {
  width: calc(50% - 0.5rem);
}
.mkz-wc-fields-wrapper .form-row-wide {
  width: 100%;
}
.mkz-address-form label {
  font-size: .875rem;
  font-weight: 600;
  color: inherit;
}
.mkz-address-form label .required {
  color: #dc2626;
  text-decoration: none;
  border: none;
}
.mkz-address-form .optional {
  font-weight: normal;
  color: #9ca3af;
  font-size: .8rem;
  margin-left: 0.25rem;
}
.mkz-address-form input[type="text"],
.mkz-address-form input[type="email"],
.mkz-address-form input[type="tel"],
.mkz-address-form select,
.mkz-address-form textarea {
  display: block;
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-family: inherit;
  font-size: .95rem;
  color: inherit;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
  height: auto;
  min-height: 42px;
}
.mkz-address-form input:focus,
.mkz-address-form select:focus,
.mkz-address-form textarea:focus {
  outline: none;
  border-color: #374151;
  box-shadow: 0 0 0 2px rgba(55,65,81,.1);
}
/* Select2 overrides for WooCommerce */
.mkz-address-form .select2-container .select2-selection--single {
  height: 42px;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #fff;
}
.mkz-address-form .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  padding-left: .85rem;
  padding-right: 2rem;
  color: inherit;
  font-size: .95rem;
}
.mkz-address-form .select2-container .select2-selection--single .select2-selection__arrow {
  height: 40px;
}
.mkz-address-form .select2-container--focus .select2-selection--single {
  border-color: #374151;
  box-shadow: 0 0 0 2px rgba(55,65,81,.1);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .mkz-wc-fields-wrapper .form-row-first,
  .mkz-wc-fields-wrapper .form-row-last { width: 100%; }
  .mkz-dashboard-cards { grid-template-columns: 1fr 1fr; }
  .mkz-quick-links     { grid-template-columns: 1fr; }
  .mkz-addresses-grid  { grid-template-columns: 1fr; }
  .mkz-two-col-grid    { grid-template-columns: 1fr; }
  .mkz-field-row-2     { grid-template-columns: 1fr; }
  .mkz-result-meta     { grid-template-columns: 1fr 1fr; }
  .mkz-order-hero      { flex-direction: column; }
  .mkz-order-hero-right{ text-align: left; }
  .mkz-auth-wrap       { margin: 1rem 0 2rem; }
  .mkz-orders-table thead th:nth-child(4),
  .mkz-orders-table td:nth-child(4) { display: none; }
}
@media (max-width: 480px) {
  .mkz-dashboard-cards { grid-template-columns: 1fr; }
  .mkz-result-meta     { grid-template-columns: 1fr; }
  .mkz-tl-label        { display: none; }
  .mkz-orders-table thead th:nth-child(3),
  .mkz-orders-table td:nth-child(3) { display: none; }
  .mkz-thankyou-banner { flex-direction: column; }
}

/* -------------------------------------------------------------------------
   Password toggle button — our own control inside .mkz-pw-wrap.
   ------------------------------------------------------------------------- */
.mkz-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.mkz-pw-wrap input {
  flex: 1;
  padding-right: 2.5rem; /* room for the toggle button */
}
.mkz-pw-toggle {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--mkz-muted, #94a3b8);
  line-height: 1;
  transition: color 0.18s ease;
  z-index: 2;
}
.mkz-pw-toggle:hover { color: var(--mkz-accent, #6366f1); }
.mkz-pw-toggle svg   { display: block; }

/* -------------------------------------------------------------------------
   Hide EXTERNAL eye-icon widgets injected by WooCommerce / themes.
   Our own .mkz-pw-toggle is excluded via :not().
   The JS MutationObserver in form-login.php removes them at runtime too.
   ------------------------------------------------------------------------- */
.mkz-pw-wrap .show-password-input,
.mkz-pw-wrap .woocommerce-password-strength {
  display: none !important;
}
