/* ===== Variables ZDL Shop ===== */
:root {
  --zdl-primary: #2563eb;
  --zdl-primary-dark: #1d4ed8;
  --zdl-primary-light: #3b82f6;
  --zdl-secondary: #60a5fa;
  --zdl-accent: #93c5fd;
  --zdl-dark: #1e293b;
  --zdl-gray-100: #f8fafc;
  --zdl-gray-200: #e2e8f0;
  --zdl-gray-300: #cbd5e1;
  --zdl-gray-500: #64748b;
  --zdl-gray-600: #475569;
  --zdl-success: #10b981;
  --zdl-warning: #f59e0b;
  --zdl-error: #ef4444;
  --zdl-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --zdl-shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --zdl-radius: 12px;
  --zdl-radius-lg: 16px;
}

/* ===== Login Page ===== */
.zdl-login-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--zdl-gray-100);
}

.zdl-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 860px;
  width: 100%;
}

/* Tarjeta de formulario */
.zdl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 25px;
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.4) 1px 2px 2px;
  transition: 0.4s ease-in-out;
}

.zdl-card:hover {
  transform: translateX(-0.5em) translateY(-0.5em);
  border: 1px solid #2563eb;
  box-shadow: 10px 10px 0px #2563eb33;
}

.zdl-card--solo {
  max-width: 420px;
  width: 100%;
}

/* Logo */
.zdl-card__logo {
  margin-bottom: 1.25rem;
}

.zdl-card__logo img,
.zdl-card__logo a img {
  max-height: 65px;
  width: auto;
  display: block;
}

/* Título */
.zdl-card__title {
  color: var(--zdl-dark);
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--zdl-gray-200);
  width: 100%;
}

/* Formulario interno */
.zdl-card .woocommerce-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zdl-card .woocommerce-form .form-row {
  margin: 0;
}

/* Inputs */
.zdl-input {
  border-radius: 5px !important;
  border: 1px solid #f0f0f0 !important;
  background-color: #f5f5f5 !important;
  outline: none !important;
  padding: 0.75em 1em !important;
  width: 100% !important;
  font-size: 0.95rem !important;
  transition: 0.4s ease-in-out !important;
  box-shadow: none !important;
  color: var(--zdl-dark) !important;
}

.zdl-input:hover {
  box-shadow: 6px 6px 0px #2563eb33, -3px -3px 10px #ffffff !important;
}

.zdl-input:focus {
  background: #ffffff !important;
  box-shadow: inset 2px 4px 8px rgba(0, 0, 0, 0.12) !important;
  border-color: #2563eb !important;
}

/* Recordarme */
.zdl-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--zdl-gray-600);
  cursor: pointer;
}

.zdl-remember input[type="checkbox"] {
  accent-color: #2563eb;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Footer del form (recordarme + botón) */
.zdl-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 !important;
}

/* Botón submit */
.zdl-btn {
  padding: 0.65em 1.75em !important;
  border-radius: 10px !important;
  border: none !important;
  background-color: #2563eb !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: 0.4s ease-in-out !important;
  box-shadow: rgba(0, 0, 0, 0.35) 1px 1px 1px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin: 0 !important;
}

.zdl-btn:hover {
  box-shadow: 6px 6px 0px #1d4ed8, -3px -3px 10px #ffffff !important;
  transform: translateX(-0.4em) translateY(-0.4em) !important;
  background-color: #1d4ed8 !important;
  color: white !important;
}

.zdl-btn:active {
  transition: 0.15s !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Olvidaste contraseña */
.zdl-lost-password {
  text-align: center;
  margin: 0.25rem 0 0 0 !important;
  font-size: 0.85rem;
}

.zdl-lost-password a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s;
}

.zdl-lost-password a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Nota de registro */
.zdl-register-note {
  font-size: 0.875rem;
  color: var(--zdl-gray-500);
  background: var(--zdl-gray-100);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0;
}

@media (max-width: 680px) {
  .zdl-login-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Dashboard Container ===== */
.xochiatl-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== Dashboard Header ===== */
.dashboard-header {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1e40af 0%, var(--zdl-primary) 50%, #3b82f6 100%);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.75rem;
  color: white;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.35);
  gap: 1rem;
}

/* Decorative background orbs */
.dashboard-header__bg-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.dashboard-header__bg-orb--1 {
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.06);
  top: -60px;
  right: 120px;
}

.dashboard-header__bg-orb--2 {
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.08);
  bottom: -50px;
  right: 40px;
}

.user-welcome {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.user-avatar {
  position: relative;
  flex-shrink: 0;
}

.user-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  object-fit: cover;
  display: block;
}

.status-indicator {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  background: #34d399;
  border-radius: 50%;
  border: 2px solid #1e40af;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.4);
}

.user-info__greeting {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.user-info h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  color: white;
  line-height: 1.2;
}

.member-since {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  opacity: 0.8;
  margin: 0;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
}

.quick-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 0.875rem;
  white-space: nowrap;
}

.btn-action.btn-primary {
  background: white;
  color: var(--zdl-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-action.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  color: var(--zdl-primary-dark);
}

.btn-action.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.btn-action.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: white;
}

/* ===== Stats Cards ===== */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 1.25rem 1.5rem 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

.stat-card__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--zdl-gray-500);
  border-top: 1px solid var(--zdl-gray-200);
  padding-top: 0.6rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card--orders .stat-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: var(--zdl-primary);
}
.stat-card--spent .stat-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}
.stat-card--wishlist .stat-icon {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
}
.stat-card--points .stat-icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}

.stat-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--zdl-dark);
  line-height: 1.1;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--zdl-gray-500);
  margin-top: 0.2rem;
  font-weight: 500;
}

/* ===== Dashboard Grid ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ===== Sidebar ===== */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 1.5rem;
}

.dashboard-nav {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* WooCommerce nav inside .dashboard-nav */
.dashboard-nav .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.dashboard-nav .woocommerce-MyAccount-navigation li {
  border: none;
}

.dashboard-nav .woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.25rem;
  color: var(--zdl-gray-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  border-left: 3px solid transparent;
}

.dashboard-nav .woocommerce-MyAccount-navigation li a:hover {
  background: #f0f6ff;
  color: var(--zdl-primary);
  padding-left: 1.5rem;
  border-left-color: var(--zdl-primary);
}

.dashboard-nav .woocommerce-MyAccount-navigation li.is-active a {
  background: #eff6ff;
  color: var(--zdl-primary);
  font-weight: 600;
  border-left-color: var(--zdl-primary);
}

.dashboard-nav .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #fef2f2;
  color: #dc2626;
  border-left-color: #dc2626;
}

/* Promo Card */
.promo-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1e3a8a 0%, var(--zdl-primary) 60%, #60a5fa 100%);
  border-radius: 16px;
  padding: 1.5rem;
  color: white;
  text-align: center;
}

.promo-card__glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -30px;
  right: -20px;
  pointer-events: none;
}

.promo-card__content {
  position: relative;
  z-index: 1;
}

.promo-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.promo-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem 0;
  color: white;
}

.promo-card p {
  font-size: 0.8rem;
  opacity: 0.85;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: white;
  color: var(--zdl-primary);
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  color: var(--zdl-primary-dark);
}

/* ===== Dashboard Content ===== */
.dashboard-content {
  min-width: 0;
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.dashboard-section {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--zdl-gray-200);
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: var(--zdl-dark);
}

.view-all {
  color: var(--zdl-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.view-all:hover {
  color: var(--zdl-primary-dark);
}

/* Orders Table */
.orders-table-wrapper {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--zdl-gray-200);
}

.orders-table th {
  font-weight: 600;
  color: var(--zdl-gray-600);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: var(--zdl-gray-100);
}

.orders-table tbody tr:hover {
  background: #f8fbff;
}

.orders-table tbody tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-completed { background: #d1fae5; color: #059669; }
.status-processing { background: #dbeafe; color: var(--zdl-primary); }
.status-pending,
.status-on-hold   { background: #fef3c7; color: #d97706; }
.status-cancelled,
.status-failed,
.status-refunded  { background: #fee2e2; color: #dc2626; }

.btn-view {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--zdl-gray-100);
  color: var(--zdl-primary);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-view:hover {
  background: var(--zdl-primary);
  color: white;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-icon {
  color: var(--zdl-gray-300);
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.15rem;
  color: var(--zdl-dark);
  margin: 0 0 0.5rem 0;
}

.empty-state p {
  color: var(--zdl-gray-500);
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
}

.btn-shop {
  display: inline-block;
  background: var(--zdl-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--zdl-radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-shop:hover {
  background: var(--zdl-primary-dark);
  transform: translateY(-2px);
  color: white;
}

/* Quick Links */
.quick-links-section h2 {
  font-size: 1.15rem;
  margin: 0 0 1.25rem 0;
  color: var(--zdl-dark);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.quick-link-card {
  background: var(--zdl-gray-100);
  border-radius: var(--zdl-radius);
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.quick-link-card:hover {
  border-color: var(--zdl-primary);
  transform: translateY(-3px);
  box-shadow: var(--zdl-shadow);
}

.ql-icon {
  color: var(--zdl-primary);
  margin-bottom: 0.6rem;
}

.quick-link-card h3 {
  font-size: 0.9rem;
  color: var(--zdl-dark);
  margin: 0 0 0.2rem 0;
  font-weight: 600;
}

.quick-link-card p {
  font-size: 0.78rem;
  color: var(--zdl-gray-500);
  margin: 0;
}

/* Account Info Grid */
.account-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-card {
  background: var(--zdl-gray-100);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.info-label {
  font-size: 0.75rem;
  color: var(--zdl-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.info-value {
  font-size: 0.95rem;
  color: var(--zdl-dark);
  font-weight: 600;
}

/* ===== Endpoint Content Styles ===== */
.endpoint-section {
  min-height: 400px;
}

.endpoint-content {
  padding: 0.5rem 0;
}

/* WooCommerce Form Styles */
.endpoint-content .woocommerce-EditAccountForm,
.endpoint-content .woocommerce-address-fields {
  max-width: 100%;
}

.endpoint-content .woocommerce-EditAccountForm .form-row,
.endpoint-content .woocommerce-address-fields .form-row {
  margin-bottom: 1.25rem;
}

.endpoint-content label {
  display: block;
  font-weight: 500;
  color: var(--zdl-dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.endpoint-content input[type="text"],
.endpoint-content input[type="email"],
.endpoint-content input[type="password"],
.endpoint-content input[type="tel"],
.endpoint-content select,
.endpoint-content textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--zdl-gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.endpoint-content input:focus,
.endpoint-content select:focus,
.endpoint-content textarea:focus {
  outline: none;
  border-color: var(--zdl-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.endpoint-content .woocommerce-Button,
.endpoint-content button[type="submit"] {
  background: var(--zdl-primary);
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.endpoint-content .woocommerce-Button:hover,
.endpoint-content button[type="submit"]:hover {
  background: var(--zdl-primary-dark);
  transform: translateY(-2px);
}

/* Fieldset Styles */
.endpoint-content fieldset {
  border: 1px solid var(--zdl-gray-200);
  border-radius: var(--zdl-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.endpoint-content legend {
  font-weight: 600;
  color: var(--zdl-dark);
  padding: 0 0.5rem;
  font-size: 1.1rem;
}

/* Password Change Section */
.endpoint-content .woocommerce-EditAccountForm fieldset {
  background: var(--zdl-gray-100);
  border: none;
}

/* Address Cards */
.endpoint-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.endpoint-content .woocommerce-Address {
  background: var(--zdl-gray-100);
  padding: 1.5rem;
  border-radius: var(--zdl-radius);
}

.endpoint-content .woocommerce-Address-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--zdl-gray-200);
}

.endpoint-content .woocommerce-Address-title h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--zdl-dark);
}

.endpoint-content .woocommerce-Address-title .edit {
  color: var(--zdl-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.endpoint-content .woocommerce-Address-title .edit:hover {
  color: var(--zdl-primary-dark);
}

.endpoint-content .woocommerce-Address address {
  font-style: normal;
  color: var(--zdl-gray-600);
  line-height: 1.6;
}

/* Orders Table in Endpoint */
.endpoint-content .woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
}

.endpoint-content .woocommerce-orders-table th,
.endpoint-content .woocommerce-orders-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--zdl-gray-200);
}

.endpoint-content .woocommerce-orders-table th {
  background: var(--zdl-gray-100);
  font-weight: 600;
  color: var(--zdl-gray-600);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.endpoint-content .woocommerce-orders-table tbody tr:hover {
  background: var(--zdl-gray-100);
}

.endpoint-content .woocommerce-orders-table .woocommerce-button {
  padding: 0.5rem 1rem;
  background: var(--zdl-gray-100);
  color: var(--zdl-primary);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.endpoint-content .woocommerce-orders-table .woocommerce-button:hover {
  background: var(--zdl-primary);
  color: white;
}

/* Order Details View */
.endpoint-content .woocommerce-order-details {
  margin-bottom: 2rem;
}

.endpoint-content .woocommerce-order-details__title {
  font-size: 1.25rem;
  color: var(--zdl-dark);
  margin-bottom: 1rem;
}

/* Downloads Table */
.endpoint-content .woocommerce-table--order-downloads {
  width: 100%;
  border-collapse: collapse;
}

.endpoint-content .woocommerce-table--order-downloads th,
.endpoint-content .woocommerce-table--order-downloads td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--zdl-gray-200);
}

/* Notices */
.endpoint-content .woocommerce-message,
.endpoint-content .woocommerce-info,
.endpoint-content .woocommerce-error {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.endpoint-content .woocommerce-message {
  background: #d1fae5;
  color: #059669;
  border-left: 4px solid #059669;
}

.endpoint-content .woocommerce-info {
  background: #dbeafe;
  color: var(--zdl-primary);
  border-left: 4px solid var(--zdl-primary);
}

.endpoint-content .woocommerce-error {
  background: #fee2e2;
  color: #dc2626;
  border-left: 4px solid #dc2626;
}

/* ===== Address Form Styles ===== */
.endpoint-content .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.endpoint-content .woocommerce-address-fields__field-wrapper .form-row-wide {
  grid-column: 1 / -1;
}

.endpoint-content .woocommerce-address-fields__field-wrapper .form-row-first {
  grid-column: 1;
}

.endpoint-content .woocommerce-address-fields__field-wrapper .form-row-last {
  grid-column: 2;
}

.endpoint-content .woocommerce-address-fields p.form-row {
  margin-bottom: 0;
}

.endpoint-content .woocommerce-address-fields .select2-container {
  width: 100% !important;
}

.endpoint-content
  .woocommerce-address-fields
  .select2-container--default
  .select2-selection--single {
  height: auto;
  padding: 0.75rem 1rem;
  border: 1px solid var(--zdl-gray-300);
  border-radius: 8px;
}

.endpoint-content
  .woocommerce-address-fields
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 1.5;
  padding: 0;
}

.endpoint-content
  .woocommerce-address-fields
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  right: 10px;
}

/* Required field indicator */
.endpoint-content .woocommerce-address-fields label .required {
  color: var(--zdl-error);
}

/* Address form button */
.endpoint-content .woocommerce-address-fields button[type="submit"] {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .endpoint-content .woocommerce-address-fields__field-wrapper {
    grid-template-columns: 1fr;
  }

  .endpoint-content .woocommerce-address-fields__field-wrapper .form-row-first,
  .endpoint-content .woocommerce-address-fields__field-wrapper .form-row-last {
    grid-column: 1;
  }
}

/* ===== Responsive Dashboard ===== */
@media (max-width: 1024px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 768px) {
  .xochiatl-dashboard {
    padding: 1rem 1rem 2rem;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
    border-radius: 16px;
  }

  .quick-actions {
    width: 100%;
  }

  .btn-action {
    flex: 1;
    justify-content: center;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .dashboard-content {
    padding: 1.25rem;
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-info h1 {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-avatar img {
    width: 60px;
    height: 60px;
  }
}
