/* =============================================
   3MART — Mi Cuenta (login / register)
   ============================================= */

/* (Enfold reset no necesario — mi-cuenta.php reemplaza page.php por completo) */

/* ── Full-screen wrapper ── */
.mc-fullscreen {
  display: flex;
  min-height: calc(100vh - 88px);
  width: 100%;
}

/* ── Left panel ── */
.mc-left {
  flex: 0 0 45%;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 56px 60px;
  box-sizing: border-box;
}

.mc-left-inner {
  width: 100%;
  max-width: 400px;
}

/* ── Back link (lost-password) ── */
.mc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #888;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.mc-back-link svg {
  width: 14px;
  height: 14px;
}

.mc-back-link:hover {
  color: #d22a32;
}

/* ── Heading ── */
.mc-heading-block {
  margin-bottom: 28px;
}

.mc-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 6px;
  line-height: 1.1;
}

.mc-subtitle {
  font-size: 0.875rem;
  color: #777;
  margin: 0;
}

/* ── Tab switcher ── */
.mc-tabs {
  display: flex;
  background: #f0f0f0;
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 0;
}

.mc-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 100px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.mc-tab.is-active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

/* ── Tab panes ── */
.mc-tab-pane {
  display: none;
}

.mc-tab-pane.is-active {
  display: block;
}

/* ── Form rows ── */
.mc-form-row {
  margin: 0 0 22px;
}

.mc-form-row label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #111;
  margin-bottom: 6px;
}

.mc-form-row label .required {
  color: #d22a32;
}

.mc-forgot {
  font-size: 0.72rem;
  font-weight: 500;
  color: #888;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  transition: color 0.2s;
}

.mc-forgot:hover {
  color: #d22a32;
}

/* ── Input wrapper (solo para campos con ojito) ── */
.mc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mc-input-wrap .mc-input {
  padding-right: 42px;
}

/* ── Inputs ── */
.mc-input {
  display: block;
  width: 100%;
  padding: 14px 16px !important;
  border: 1px solid #ddd;
  border-radius: 0;
  font-size: 0.875rem;
  color: #111;
  background: #fff;
  box-shadow: none;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  letter-spacing: 1px;
}

.mc-input:focus {
  border-color: #111;
}

/* ── Eye toggle button ── */
.mc-eye-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #aaa;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.mc-eye-btn:hover { color: #555; }

.mc-eye-btn svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* ── Password rules checklist ── */
.mc-pw-rules {
  list-style: none;
  margin: -4px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mc-pw-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #aaa;
  transition: color 0.2s;
}

.mc-pw-rule-icon {
  width: 14px;
  height: 14px;
  min-width: 14px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  transition: background 0.2s, border-color 0.2s;
  display: inline-block;
}

.mc-pw-rule.is-valid {
  color: #111;
}

.mc-pw-rule.is-valid .mc-pw-rule-icon {
  background: #22a861;
  border-color: #22a861;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* shake on submit fail */
@keyframes mc-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.mc-shake { animation: mc-shake 0.4s ease; }

/* ── Confirm password match message ── */
.mc-pw-match-msg {
  display: block;
  font-size: 0.75rem;
  margin-top: 6px;
}

.mc-pw-match-msg.is-ok    { color: #22a861; }
.mc-pw-match-msg.is-error { color: #d22a32; }

/* ── Remember me ── */
.mc-remember-row {
  margin-bottom: 24px;
}

.mc-checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  font-weight: 500 !important;
  color: #555 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  justify-content: flex-start !important;
}

.mc-checkbox-label input[type="checkbox"] {
  width: auto;
  accent-color: #d22a32;
  margin: 0;
}

/* ── Hint text ── */
.mc-form-hint {
  font-size: 0.825rem;
  color: #777;
  margin: 0 0 20px;
  line-height: 1.5;
}

/* ── Primary button ── */
.mc-btn-primary {
  display: block;
  width: 100%;
  padding: 13px;
  background: #d22a32;
  border: none;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.mc-btn-primary:hover {
  background: #a82027;
}

/* ── Right visual panel ── */
.mc-right {
  flex: 1;
  position: relative;
  background-color: #111;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.mc-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

.mc-right-content {
  position: relative;
  z-index: 1;
  padding: 56px 48px;
  color: #fff;
  max-width: 480px;
}

.mc-right-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d22a32;
  margin-bottom: 14px;
  font-weight: 600;
}

.mc-right-heading {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #fff;
}

.mc-right-sub {
  font-size: 0.925rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ── WooCommerce notices inside form ── */
.mc-form-wrap .woocommerce-error,
.mc-form-wrap .woocommerce-message,
.mc-form-wrap .woocommerce-info {
  margin-bottom: 20px !important;
}

/* ══════════════════════════════════════════
   Dashboard (logged in)
   ══════════════════════════════════════════ */
.mc-dashboard {
  width: 100%;
}

/* ── Header ── */
.mc-dashboard-header {
  background: #111;
  padding: 44px 0;
}

.mc-dashboard-header-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mc-dashboard-eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d22a32;
  margin: 0 0 6px;
  font-weight: 600;
}

.mc-dashboard-title {
  font-size: 1.75rem;
  font-weight: 400;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.mc-dashboard-title strong {
  font-weight: 800;
}

.mc-logout-btn {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #777;
  text-decoration: none;
  border: 1px solid #333;
  padding: 8px 16px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.mc-logout-btn:hover {
  color: #fff;
  border-color: #666;
}

/* ── Body ── */
.mc-dashboard-body {
  width: 90%;
  max-width: 1100px;
  margin: 52px auto 80px;
}

/* ── Back link (sub-endpoints) ── */
.mc-dashboard-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #888;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.mc-dashboard-back svg {
  width: 14px;
  height: 14px;
}

.mc-dashboard-back:hover { color: #d22a32; }

/* ── Ocultar nav de WooCommerce (usamos cards propias) ── */
.mc-dashboard-body .woocommerce-MyAccount-navigation {
  display: none;
}

.mc-dashboard-content {
  width: 100%;
}

/* ── Cards grid ── */
.mc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 32px 28px;
  background: #f7f7f7;
  border: 1px solid transparent;
  text-decoration: none;
  color: #111;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
}

.mc-card:hover {
  background: #fff;
  border-color: #e0e0e0;
  transform: translateY(-2px);
  text-decoration: none;
  color: #111;
}

.mc-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #ececec;
  border-radius: 50%;
  margin-bottom: 4px;
  transition: background 0.2s;
}

.mc-card:hover .mc-card-icon {
  background: #fde8e9;
}

.mc-card-icon svg {
  width: 24px;
  height: 24px;
  color: #555;
  transition: color 0.2s;
}

.mc-card:hover .mc-card-icon svg {
  color: #d22a32;
}

.mc-card-label {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.mc-card-sub {
  font-size: 0.825rem;
  color: #777;
  line-height: 1.5;
  flex: 1;
}

.mc-card-arrow {
  display: flex;
  align-items: center;
  justify-content: end;
  color: #ccc;
  margin-top: 8px;
  transition: color 0.2s, transform 0.2s;
}

.mc-card-arrow svg {
  width: 18px;
  height: 18px;
}

.mc-card:hover .mc-card-arrow {
  color: #d22a32;
  transform: translateX(4px);
}

/* ══════════════════════════════════════════
   Orders list
   ══════════════════════════════════════════ */

.mc-orders-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid #111;
}

.mc-orders-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
  color: #111;
}

/* ── Filter ── */
.mc-orders-filter {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mc-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mc-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mc-filter-pill:hover {
  border-color: #bbb;
  color: #111;
  text-decoration: none;
}

.mc-filter-pill.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.mc-filter-pill.is-active:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.mc-filter-pill svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.mc-filter-custom-toggle.is-active svg {
  transform: rotate(180deg);
}

/* Custom date range — hidden/shown */
.mc-filter-custom {
  display: none;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px;
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 4px;
}

.mc-filter-custom.is-open {
  display: flex;
}

.mc-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mc-filter-group label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #888;
}

.mc-filter-group input[type="date"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  font-size: 0.825rem;
  color: #111;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.mc-filter-group input[type="date"]:focus {
  border-color: #111;
}

.mc-filter-btn {
  padding: 9px 20px;
  background: #111;
  color: #fff;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-end;
}

.mc-filter-btn:hover { background: #d22a32; }

@media (max-width: 640px) {
  .mc-filter-pills { gap: 6px; }
  .mc-filter-pill  { padding: 6px 12px; }
  .mc-filter-custom { flex-direction: column; align-items: stretch; }
  .mc-filter-btn { width: 100%; text-align: center; }
}

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

/* ── Order card ── */
.mc-order-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f7f7f7;
  padding: 24px 28px;
  border-left: 3px solid #ddd;
  transition: border-color 0.2s, background 0.2s;
}

.mc-order-card:hover {
  background: #fff;
  border-left-color: #d22a32;
}

/* status border colors */
.mc-order-status-completed  { border-left-color: #22a861; }
.mc-order-status-processing { border-left-color: #2a7dd2; }
.mc-order-status-pending    { border-left-color: #f0a500; }
.mc-order-status-failed     { border-left-color: #d22a32; }

.mc-order-info {
  flex: 1;
  min-width: 0;
}

.mc-order-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.mc-order-number {
  font-size: 0.925rem;
  color: #111;
}

.mc-order-number strong {
  font-weight: 700;
}

.mc-order-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--badge-color) 12%, transparent);
  color: var(--badge-color);
  border: 1px solid color-mix(in srgb, var(--badge-color) 30%, transparent);
}

.mc-order-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mc-order-date,
.mc-order-total {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.825rem;
  color: #555;
}

.mc-order-date svg,
.mc-order-total svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #aaa;
}

.mc-order-item-count {
  color: #aaa;
}

.mc-order-products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mc-order-products li {
  font-size: 0.75rem;
  color: #777;
  background: #ebebeb;
  padding: 3px 10px;
  border-radius: 100px;
}

.mc-order-products .mc-order-more {
  color: #aaa;
  background: transparent;
  padding: 3px 0;
}

/* ── Actions ── */
.mc-order-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.mc-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  background: #111;
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: background 0.2s;
  white-space: nowrap;
}

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

.mc-order-btn:hover {
  background: #d22a32;
  color: #fff !important;
}

.mc-order-btn--secondary {
  background: transparent;
  color: #555 !important;
  border: 1px solid #ddd;
}

.mc-order-btn--secondary:hover {
  background: #f0f0f0;
  color: #111 !important;
  border-color: #bbb;
}

/* ── Pagination ── */
.mc-orders-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.mc-pagination-info {
  font-size: 0.78rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mc-pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111 !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

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

.mc-pagination-btn:hover { color: #d22a32 !important; }

/* ── Empty state ── */
.mc-orders-empty {
  padding: 60px 0;
  text-align: center;
  color: #777;
}

.mc-orders-empty p {
  margin-bottom: 24px;
  font-size: 0.925rem;
}

/* ── Responsive orders ── */
@media (max-width: 640px) {
  .mc-order-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

  .mc-order-actions {
    width: 100%;
    flex-direction: row;
  }

  .mc-order-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ── Responsive dashboard ── */
@media (max-width: 768px) {
  .mc-dashboard-header {
    padding: 32px 0;
  }

  .mc-dashboard-title {
    font-size: 1.4rem;
  }

  .mc-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mc-card {
    flex-direction: row;
    align-items: center;
    padding: 20px 20px;
    gap: 16px;
  }

  .mc-card-icon {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .mc-card-sub {
    display: none;
  }

  .mc-card-arrow {
    margin-top: 0;
    margin-left: auto;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .mc-right {
    display: none;
  }

  .mc-fullscreen {
    min-height: auto;
  }

  .mc-left {
    flex: 1;
    padding: 52px 40px 60px;
    align-items: flex-start;
  }

  .mc-left-inner {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .mc-left {
    padding: 40px 24px 52px;
  }

  .mc-title {
    font-size: 1.5rem;
  }

  .mc-tabs {
    margin-bottom: 24px;
  }

  .mc-form-row {
    margin-bottom: 18px;
  }

  .mc-btn-primary {
    padding: 15px;
  }
}

/* ══════════════════════════════════════════
   Breadcrumb
   ══════════════════════════════════════════ */
.mc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 32px;
}

.mc-breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.mc-breadcrumb a:hover {
  color: #d22a32;
}

.mc-breadcrumb span:not(.mc-breadcrumb-sep) {
  color: #111;
}

.mc-breadcrumb-sep {
  color: #ccc;
  font-weight: 400;
}

/* ══════════════════════════════════════════
   View Order
   ══════════════════════════════════════════ */

/* ── Header ── */
.mc-vo-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 2px solid #111;
}

.mc-vo-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mc-vo-number {
  font-size: 1.25rem;
  font-weight: 400;
  color: #111;
  margin: 0;
  line-height: 1.2;
}

.mc-vo-number strong {
  font-weight: 800;
}

.mc-vo-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mc-vo-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  color: #777;
}

.mc-vo-date svg {
  width: 15px;
  height: 15px;
  color: #bbb;
  flex-shrink: 0;
}

.mc-vo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Two-column grid ── */
.mc-vo-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* ── Section title ── */
.mc-vo-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #aaa;
  margin: 0 0 16px;
}

/* ── Items list ── */
.mc-vo-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #eee;
}

.mc-vo-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.mc-vo-item-img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  overflow: hidden;
  background: #f5f5f5;
}

.mc-vo-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mc-vo-item-img a {
  display: block;
  width: 100%;
  height: 100%;
}

.mc-vo-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mc-vo-item-name {
  font-size: 0.925rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.mc-vo-item-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.mc-vo-item-name a:hover {
  color: #d22a32;
}

.mc-vo-item-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mc-vo-item-meta li {
  font-size: 0.78rem;
  color: #777;
}

.mc-vo-item-meta li span {
  font-weight: 600;
  color: #555;
}

.mc-vo-item-qty {
  font-size: 0.78rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mc-vo-item-qty del {
  color: #d22a32;
  text-decoration-color: #d22a32;
}

.mc-vo-item-total {
  flex-shrink: 0;
  font-size: 0.925rem;
  font-weight: 700;
  color: #111;
  text-align: right;
  min-width: 72px;
}

/* ── Customer note ── */
.mc-vo-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: #fffbf0;
  border-left: 3px solid #f0a500;
}

.mc-vo-note-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f0a500;
  margin-bottom: 6px;
}

.mc-vo-note p {
  font-size: 0.875rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* ── Order updates ── */
.mc-vo-updates {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.mc-vo-update {
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 2px solid #e0e0e0;
}

.mc-vo-update-date {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #aaa;
  margin-bottom: 4px;
}

.mc-vo-update p {
  font-size: 0.875rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* ── Sidebar boxes ── */
.mc-vo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mc-vo-box {
  background: #f7f7f7;
  padding: 20px 24px;
}

.mc-vo-box-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #aaa;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ebebeb;
}

/* ── Totals ── */
.mc-vo-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mc-vo-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.875rem;
  color: #555;
}

.mc-vo-total-row span:last-child {
  font-weight: 600;
  color: #111;
  text-align: right;
}

.mc-vo-total-row.is-grand {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.mc-vo-total-row.is-grand span:last-child {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
}

/* ── Address ── */
.mc-vo-address {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.7;
  font-style: normal;
  margin: 0;
}

.mc-vo-address p {
  margin: 4px 0 0;
}

/* ── Responsive: view-order ── */
@media (max-width: 900px) {
  .mc-vo-grid {
    grid-template-columns: 1fr;
  }

  .mc-vo-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .mc-vo-box {
    flex: 1;
    min-width: 260px;
  }
}

@media (max-width: 600px) {
  .mc-vo-header {
    flex-direction: column;
    gap: 12px;
  }

  .mc-vo-header-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mc-vo-item {
    gap: 12px;
  }

  .mc-vo-item-img {
    width: 60px;
    height: 60px;
  }

  .mc-vo-sidebar {
    flex-direction: column;
  }

  .mc-vo-box {
    min-width: 0;
  }
}

/* ══════════════════════════════════════════
   Mis Direcciones
   ══════════════════════════════════════════ */

/* ── List page header ── */
.mc-addr-header {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 2px solid #111;
}

.mc-addr-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111;
  margin: 0 0 6px;
}

.mc-addr-desc {
  font-size: 0.875rem;
  color: #777;
  margin: 0;
}

/* ── Cards grid ── */
.mc-addr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mc-addr-card {
  background: #f7f7f7;
  padding: 24px 28px;
}

.mc-addr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ebebeb;
}

.mc-addr-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #aaa;
  margin: 0;
}

.mc-addr-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #555;
  text-decoration: none;
  border: 1px solid #ddd;
  padding: 6px 12px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.mc-addr-edit-btn svg {
  width: 12px;
  height: 12px;
}

.mc-addr-edit-btn:hover {
  color: #fff;
  background: #111;
  border-color: #111;
  text-decoration: none;
}

.mc-addr-text {
  font-style: normal;
  font-size: 0.875rem;
  color: #444;
  line-height: 1.8;
}

.mc-addr-empty {
  font-size: 0.875rem;
  color: #aaa;
  margin: 0;
  font-style: italic;
}

/* ── Edit form ── */
.mc-addr-form-wrap {
  max-width: 680px;
}

.mc-addr-form-header {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 2px solid #111;
}

.mc-addr-form-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111;
  margin: 0;
}

/* WooCommerce field overrides inside address form */
.mc-addr-fields .form-row {
  margin-bottom: 18px !important;
}

.mc-addr-fields .form-row label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #111;
  margin-bottom: 6px;
}

.mc-addr-fields .form-row .required {
  color: #d22a32;
}

.mc-addr-fields input.input-text,
.mc-addr-fields select,
.mc-addr-fields textarea {
  width: 100% !important;
  padding: 13px 16px !important;
  border: 1px solid #ddd !important;
  border-radius: 0 !important;
  font-size: 0.875rem !important;
  color: #111 !important;
  background: #fff !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.2s;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
}

.mc-addr-fields input.input-text:focus,
.mc-addr-fields select:focus,
.mc-addr-fields textarea:focus {
  border-color: #111 !important;
  box-shadow: none !important;
}

/* Two-column layout for address fields */
.mc-addr-fields .form-row-first,
.mc-addr-fields .form-row-last {
  float: left;
  width: calc(50% - 8px) !important;
  clear: none !important;
}

.mc-addr-fields .form-row-first { margin-right: 16px !important; }

.mc-addr-fields .form-row-wide {
  clear: both !important;
  width: 100% !important;
  float: none !important;
}

.mc-addr-fields::after {
  content: '';
  display: table;
  clear: both;
}

/* Woo validation states */
.mc-addr-fields .form-row.woocommerce-invalid input,
.mc-addr-fields .form-row.woocommerce-invalid select {
  border-color: #d22a32 !important;
}

.mc-addr-fields .form-row.woocommerce-validated input,
.mc-addr-fields .form-row.woocommerce-validated select {
  border-color: #22a861 !important;
}

/* ── Save button ── */
.mc-addr-form-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  clear: both;
}

.mc-addr-save-btn {
  display: inline-block;
  width: auto;
  padding: 13px 36px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .mc-addr-grid {
    grid-template-columns: 1fr;
  }

  .mc-addr-fields .form-row-first,
  .mc-addr-fields .form-row-last {
    float: none !important;
    width: 100% !important;
    margin-right: 0 !important;
  }

  .mc-addr-save-btn {
    width: 100%;
    text-align: center;
  }
}

/* ══════════════════════════════════════════
   Datos de cuenta (edit-account)
   ══════════════════════════════════════════ */

.mc-ea-wrap {
  max-width: 680px;
}

/* ── Section title ── */
.mc-ea-section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #111;
}

/* ── Password subsection ── */
.mc-ea-pw-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #eee;
}

.mc-ea-pw-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #aaa;
  margin: 0 0 6px;
}

.mc-ea-pw-hint {
  font-size: 0.825rem;
  color: #999;
  margin: 0 0 20px;
}

/* ── Fields layout ── */
.mc-ea-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mc-ea-row {
  margin-bottom: 20px;
}

.mc-ea-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mc-ea-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mc-ea-field label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #111;
}

.mc-ea-required {
  color: #d22a32;
}

.mc-ea-input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #ddd;
  border-radius: 0;
  font-size: 0.875rem;
  color: #111;
  background: #fff;
  box-shadow: none;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.mc-ea-input:focus {
  border-color: #111;
}

/* Eye button inside .mc-input-wrap reuses existing .mc-eye-btn rules */
/* Add right padding when inside wrap */
.mc-ea-field .mc-input-wrap .mc-ea-input {
  padding-right: 42px;
}

.mc-ea-hint {
  font-size: 0.75rem;
  color: #aaa;
  line-height: 1.4;
}

/* ── Footer / save button ── */
.mc-ea-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.mc-ea-save-btn {
  display: inline-block;
  width: auto;
  padding: 13px 36px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .mc-ea-row--half {
    grid-template-columns: 1fr;
  }

  .mc-ea-save-btn {
    width: 100%;
    text-align: center;
  }
}