/*
 * Emerge Affiliate Skin v1.1
 * Unifica YITH dashboard + bloque de bonos en un solo panel dark cohesivo.
 */

/* ══════════════════════════════════════════════
   RESET DE ANCHO — todo al mismo contenedor
   ══════════════════════════════════════════════ */

.yith-wcaf-dashboard,
.asb-dashboard {
  max-width: 860px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Quitar el margen que separa los dos bloques */
.asb-dashboard {
  margin-top: 0 !important;
  border-top: none !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

/* El dashboard de YITH no tiene radio inferior para que se una al bloque de bonos */
.yith-wcaf-dashboard {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* Contenedor visual unificado — fondo oscuro que abarca ambos bloques */
.yith-wcaf-dashboard,
.asb-dashboard {
  background: #161b27 !important;
  border: 1px solid #1e2535 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #e2e8f0 !important;
}

/* Primer bloque (YITH): borde superior redondeado */
.yith-wcaf-dashboard {
  border-radius: 16px 16px 0 0 !important;
  padding: 1.5rem 1.5rem 1rem !important;
}

/* Segundo bloque (bonos): borde inferior redondeado, sin borde superior */
.asb-dashboard {
  border-radius: 0 0 16px 16px !important;
  padding: 0 1.5rem 1.5rem !important;
  border-top: none !important;
}

/* Línea divisoria entre YITH y bonos */
.asb-dashboard::before {
  content: '' !important;
  display: block !important;
  height: 1px !important;
  background: #1e2535 !important;
  margin: 0 0 1.5rem !important;
}

/* ══════════════════════════════════════════════
   NAVEGACIÓN / TABS
   ══════════════════════════════════════════════ */

.yith-wcaf-dashboard ul.yith-wcaf-dashboard-navigation {
  background: #0f1117 !important;
  border: 1px solid #1e2535 !important;
  border-radius: 10px !important;
  padding: 4px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2px !important;
  margin-bottom: 1.5rem !important;
  list-style: none !important;
}

.yith-wcaf-dashboard ul.yith-wcaf-dashboard-navigation li {
  margin: 0 !important;
  border: none !important;
}

.yith-wcaf-dashboard ul.yith-wcaf-dashboard-navigation li a {
  display: block !important;
  padding: 7px 14px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  text-decoration: none !important;
  border: none !important;
  white-space: nowrap !important;
}

.yith-wcaf-dashboard ul.yith-wcaf-dashboard-navigation li a:hover {
  color: #cbd5e1 !important;
  background: #1e2535 !important;
}

.yith-wcaf-dashboard ul.yith-wcaf-dashboard-navigation li.is-active a {
  background: #E85D04 !important;
  color: #fff !important;
}

/* ══════════════════════════════════════════════
   MÉTRICAS / STAT BOXES
   ══════════════════════════════════════════════ */

.yith-wcaf-dashboard .yith-wcaf-dashboard-summary .affiliate-stats {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 1.5rem !important;
}

.yith-wcaf-dashboard .yith-wcaf-dashboard-summary .affiliate-stats .stat-box {
  border-radius: 12px !important;
  padding: 1.1rem !important;
  border: none !important;
}

.yith-wcaf-dashboard .yith-wcaf-dashboard-summary .affiliate-stats .stat-box:nth-child(1) {
  background: linear-gradient(135deg, #E85D04, #c2410c) !important;
}
.yith-wcaf-dashboard .yith-wcaf-dashboard-summary .affiliate-stats .stat-box:nth-child(2) {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}
.yith-wcaf-dashboard .yith-wcaf-dashboard-summary .affiliate-stats .stat-box:nth-child(3) {
  background: linear-gradient(135deg, #22c55e, #15803d) !important;
}
.yith-wcaf-dashboard .yith-wcaf-dashboard-summary .affiliate-stats .stat-box:nth-child(4) {
  background: linear-gradient(135deg, #a855f7, #7c3aed) !important;
}

.yith-wcaf-dashboard .yith-wcaf-dashboard-summary .affiliate-stats .stat-box .stat-item {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}

.yith-wcaf-dashboard .yith-wcaf-dashboard-summary .affiliate-stats .stat-box .stat-item .stat-label {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .7px !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.8) !important;
  margin-bottom: 6px !important;
}

.yith-wcaf-dashboard .yith-wcaf-dashboard-summary .affiliate-stats .stat-box .stat-item .stat-value {
  font-size: 22px !important;
  font-weight: 500 !important;
  color: #fff !important;
  line-height: 1.2 !important;
}

.yith-wcaf-dashboard .yith-wcaf-dashboard-summary .affiliate-stats .stat-box .stat-item.large .stat-value {
  font-size: 26px !important;
}

/* ══════════════════════════════════════════════
   TÍTULOS DE SECCIONES
   ══════════════════════════════════════════════ */

.yith-wcaf-dashboard .dashboard-title {
  border-bottom: 1px solid #1e2535 !important;
  padding-bottom: 10px !important;
  margin-bottom: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.yith-wcaf-dashboard .dashboard-title h3 {
  color: #f1f5f9 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

.yith-wcaf-dashboard .dashboard-title span.view-all,
.yith-wcaf-dashboard .dashboard-title a {
  font-size: 12px !important;
  color: #E85D04 !important;
  text-decoration: none !important;
}

/* ══════════════════════════════════════════════
   TABLAS
   ══════════════════════════════════════════════ */

.yith-wcaf-dashboard table.yith-wcaf-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #0f1117 !important;
  border: 1px solid #1e2535 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  margin-bottom: 1.5rem !important;
}

.yith-wcaf-dashboard table.yith-wcaf-table thead th {
  background: #0f1117 !important;
  color: #475569 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid #1e2535 !important;
}

.yith-wcaf-dashboard table.yith-wcaf-table tbody tr td {
  padding: 10px 14px !important;
  border-bottom: 1px solid #1e2535 !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  background: transparent !important;
}

.yith-wcaf-dashboard table.yith-wcaf-table tbody tr:last-child td {
  border-bottom: none !important;
}

.yith-wcaf-dashboard table.yith-wcaf-table tbody tr:hover td {
  background: #1a2035 !important;
}

.yith-wcaf-dashboard table.yith-wcaf-table tbody tr td a {
  color: #93c5fd !important;
  text-decoration: none !important;
}

/* ══════════════════════════════════════════════
   BADGES DE ESTADO
   ══════════════════════════════════════════════ */

.yith-wcaf-dashboard table.yith-wcaf-table tr .column-status mark.status-badge {
  border-radius: 8px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 3px 10px !important;
  border: none !important;
  display: inline-block !important;
}

.yith-wcaf-dashboard table.yith-wcaf-table tr .column-status mark.status-badge.pending {
  background: #2d1b00 !important;
  color: #f97316 !important;
}

.yith-wcaf-dashboard table.yith-wcaf-table tr .column-status mark.status-badge.paid {
  background: #14532d !important;
  color: #4ade80 !important;
}

.yith-wcaf-dashboard table.yith-wcaf-table tr .column-status mark.status-badge.cancelled,
.yith-wcaf-dashboard table.yith-wcaf-table tr .column-status mark.status-badge.banned {
  background: #3b0000 !important;
  color: #f87171 !important;
}

.yith-wcaf-dashboard table.yith-wcaf-table tr .column-status mark.status-badge.refunded {
  background: #1e1b4b !important;
  color: #a5b4fc !important;
}

/* ══════════════════════════════════════════════
   FILTROS
   ══════════════════════════════════════════════ */

.yith-wcaf-dashboard .yith-wcaf-table-top-bar {
  background: #0f1117 !important;
  border: 1px solid #1e2535 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  margin-bottom: 1rem !important;
}

.yith-wcaf-dashboard .yith-wcaf-table-top-bar input,
.yith-wcaf-dashboard .yith-wcaf-table-top-bar select {
  background: #161b27 !important;
  border: 1px solid #1e2535 !important;
  color: #cbd5e1 !important;
  border-radius: 7px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
}

.yith-wcaf-dashboard .yith-wcaf-table-top-bar .apply-filters {
  background: #E85D04 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 7px !important;
  padding: 6px 16px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

.yith-wcaf-dashboard .yith-wcaf-table-top-bar .reset-filters {
  background: #1e2535 !important;
  color: #64748b !important;
  border: 1px solid #2d3748 !important;
  border-radius: 7px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
}

/* ══════════════════════════════════════════════
   GENERADOR DE LINKS
   ══════════════════════════════════════════════ */

.yith-wcaf-link-generator .link-generator-box {
  background: #0f1117 !important;
  border: 1px solid #1e2535 !important;
  border-radius: 10px !important;
  padding: 1.25rem !important;
}

.yith-wcaf-link-generator .link-generator-box .bold-text { color: #f1f5f9 !important; }
.yith-wcaf-link-generator .link-generator-box .regular-text { color: #64748b !important; }

.yith-wcaf-link-generator .link-generator-box p .copy-field-wrapper input.copy-target {
  background: #161b27 !important;
  border: 1px solid #1e2535 !important;
  color: #93c5fd !important;
  border-radius: 7px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
}

.yith-wcaf-link-generator .link-generator-box p .copy-field-wrapper .copy-trigger {
  background: #E85D04 !important;
  color: #fff !important;
  border-radius: 7px !important;
  border: none !important;
}

/* ══════════════════════════════════════════════
   BOTÓN WITHDRAW
   ══════════════════════════════════════════════ */

#withdraw_modal_opener {
  background: #E85D04 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 20px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

/* ══════════════════════════════════════════════
   BLOQUE DE BONOS — mismo ancho y estilo
   ══════════════════════════════════════════════ */

.asb-dashboard {
  border: 1px solid #1e2535 !important;
}

.asb-main-title { color: #f1f5f9 !important; font-size: 15px !important; font-weight: 500 !important; }

.asb-period-badge {
  background: #0f1117 !important;
  border: 1px solid #1e2535 !important;
  color: #64748b !important;
  border-radius: 20px !important;
  font-size: 12px !important;
}

.asb-metric {
  background: #0f1117 !important;
  border: 1px solid #1e2535 !important;
  border-radius: 10px !important;
}

.asb-metric--bonus.asb-metric--active {
  background: #0f1f13 !important;
  border-color: #166534 !important;
}

.asb-metric--max {
  background: #1a1500 !important;
  border-color: #854f0b !important;
}

.asb-metric__value { color: #f1f5f9 !important; font-size: 22px !important; }
.asb-metric--bonus.asb-metric--active .asb-metric__value { color: #4ade80 !important; }
.asb-metric__label { color: #475569 !important; font-size: 10px !important; }
.asb-metric__sublabel { color: #22c55e !important; }

.asb-progress-bar { background: #0f1117 !important; }
.asb-progress-fill { background: linear-gradient(90deg, #E85D04, #fbbf24) !important; }
.asb-progress-header { color: #64748b !important; font-size: 12px !important; }
.asb-progress-pct { color: #E85D04 !important; }
.asb-progress-labels { color: #334155 !important; }

.asb-milestone { border-color: #2d3748 !important; background: #161b27 !important; }
.asb-milestone--reached { background: #4ade80 !important; border-color: #22c55e !important; }

/* Sección tabla de tiers */
.asb-tiers-section h4,
.asb-history-section h4 {
  color: #475569 !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
}

.asb-tiers-frontend,
.asb-history-table {
  background: transparent !important;
}

.asb-tiers-frontend th,
.asb-history-table th {
  background: #0f1117 !important;
  color: #475569 !important;
  border-bottom: 1px solid #1e2535 !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  padding: 8px 12px !important;
}

.asb-tiers-frontend td,
.asb-history-table td {
  color: #64748b !important;
  border-bottom: 1px solid #1e2535 !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
}

.asb-tier--reached td { background: #0f1f13 !important; color: #cbd5e1 !important; }
.asb-tier--next td   { background: #0f172a !important; color: #cbd5e1 !important; font-weight: 500 !important; }

.asb-status--reached {
  background: #14532d !important; color: #4ade80 !important;
  border-radius: 8px !important; padding: 2px 8px !important; font-size: 10px !important;
}
.asb-status--next {
  background: #1e3a5f !important; color: #60a5fa !important;
  border-radius: 8px !important; padding: 2px 8px !important; font-size: 10px !important;
}
.asb-status--locked { color: #334155 !important; }

.asb-history-table td { color: #94a3b8 !important; }

.asb-reset-note {
  color: #334155 !important;
  border-top: 1px solid #1e2535 !important;
  font-size: 12px !important;
}

.asb-notice {
  background: #1e2535 !important;
  border: 1px solid #1e2535 !important;
  color: #94a3b8 !important;
  border-radius: 8px !important;
}

/* ══════════════════════════════════════════════
   PAGINACIÓN
   ══════════════════════════════════════════════ */

.yith-wcaf-dashboard .yith-wcaf-table-pagination a,
.yith-wcaf-dashboard .yith-wcaf-table-pagination span {
  background: #161b27 !important;
  border: 1px solid #1e2535 !important;
  color: #64748b !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
}

.yith-wcaf-dashboard .yith-wcaf-table-pagination a:hover {
  background: #1e2535 !important;
  color: #E85D04 !important;
}

.yith-wcaf-dashboard .yith-wcaf-table-pagination span.current {
  background: #E85D04 !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ══════════════════════════════════════════════

/* ══════════════════════════════════════════════
   FORMULARIO DE REGISTRO / LOGIN DE AFILIADOS
   ══════════════════════════════════════════════ */

/* ── Variables de color usadas en YITH — sobreescribir todas ── */
.yith-wcaf-registration-form {
  --yith-wcaf-background-color: #0f1117 !important;
  --yith-wcaf-border--color: #1e2535 !important;
  --yith-wcaf-dashboard--border-color: #1e2535 !important;
  --yith-wcaf-dashboard--border-radius: 14px !important;
  --yith-wcaf-dashboard--accent-color: #E85D04 !important;
  --yith-wcaf-text-color: #e2e8f0 !important;
  --yith-wcaf-text-color--light: #64748b !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* ── LAYOUT: login + registro LADO A LADO ── */
/* Destruir el float-based layout de WooCommerce */
.yith-wcaf-registration-form .forms-container {
  display: flex !important;
  flex-direction: row !important;
  gap: 24px !important;
  align-items: stretch !important;
  float: none !important;
  width: 100% !important;
}

.yith-wcaf-registration-form .forms-container.col2-set {
  display: flex !important;
  flex-direction: row !important;
}

/* Columnas iguales */
.yith-wcaf-registration-form .forms-container .u-column1,
.yith-wcaf-registration-form .forms-container .u-column2,
.yith-wcaf-registration-form .forms-container .col-1,
.yith-wcaf-registration-form .forms-container .col-2 {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 680px) {
  .yith-wcaf-registration-form .forms-container {
    flex-direction: column !important;
  }
}

/* ── CAJA DEL FORMULARIO — destruir fondo blanco y borde claro ── */
.yith-wcaf-registration-form .login-form,
.yith-wcaf-registration-form .register-form {
  background: #161b27 !important;
  border: 1px solid #1e2535 !important;
  border-radius: 14px !important;
  padding: 28px 28px 24px !important;
  box-shadow: none !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

/* Quitar el borde claro específico del login */
.yith-wcaf-registration-form .login-form {
  border: 1px solid #1e2535 !important;
  background: #161b27 !important;
}

/* Quitar fondo gris del register */
.yith-wcaf-registration-form .register-form {
  background-color: #161b27 !important;
  background: #161b27 !important;
}

/* ── TÍTULOS ── */
.yith-wcaf-registration-form .login-title,
.yith-wcaf-registration-form .register-title,
.yith-wcaf-registration-form h2 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  margin: 0 0 20px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #1e2535 !important;
}

/* ── LABELS ── */
.yith-wcaf-registration-form label,
.yith-wcaf-registration-form .login-form label,
.yith-wcaf-registration-form .register-form label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  color: #64748b !important;
  margin-bottom: 6px !important;
}

.yith-wcaf-registration-form label .required { color: #f97316 !important; }

/* ── INPUTS ── */
.yith-wcaf-registration-form input[type="text"],
.yith-wcaf-registration-form input[type="email"],
.yith-wcaf-registration-form input[type="password"],
.yith-wcaf-registration-form .woocommerce-Input,
.yith-wcaf-registration-form .input-text {
  width: 100% !important;
  background: #0f1117 !important;
  border: 1px solid #2d3748 !important;
  border-radius: 9px !important;
  color: #e2e8f0 !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color .15s !important;
}

.yith-wcaf-registration-form input[type="text"]:focus,
.yith-wcaf-registration-form input[type="email"]:focus,
.yith-wcaf-registration-form input[type="password"]:focus {
  border-color: #E85D04 !important;
  box-shadow: 0 0 0 3px rgba(232,93,4,.15) !important;
}

/* Ícono de ojo (toggle password) */
.yith-wcaf-registration-form .password-wrapper .toggle-button svg path {
  fill: #475569 !important;
}

/* ── FILAS ── */
.yith-wcaf-registration-form .login-form p.form-row,
.yith-wcaf-registration-form .register-form p.form-row,
.yith-wcaf-registration-form .woocommerce-form-row {
  margin-bottom: 16px !important;
}

/* ── BOTÓN SUBMIT ── */
.yith-wcaf-registration-form input[type="submit"],
.yith-wcaf-registration-form button[name="login"],
.yith-wcaf-registration-form button[name="register"],
.yith-wcaf-registration-form .woocommerce-Button,
.yith-wcaf-registration-form .button:not(.google-login-button):not([data-provider]) {
  background: #E85D04 !important;
  background-color: #E85D04 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  width: 100% !important;
  letter-spacing: .03em !important;
  transition: opacity .15s !important;
  box-shadow: 0 0 20px rgba(232,93,4,.25) !important;
}

.yith-wcaf-registration-form input[type="submit"]:hover,
.yith-wcaf-registration-form .woocommerce-Button:hover {
  opacity: .88 !important;
}

/* ── BOTÓN GOOGLE / SOCIAL ── */
.yith-wcaf-registration-form a.button,
.yith-wcaf-registration-form .google-login-button,
.yith-wcaf-registration-form button[data-provider],
.woocommerce-social-login-button,
[class*="google-login"] {
  background: #1e2535 !important;
  background-color: #1e2535 !important;
  border: 1px solid #2d3748 !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
  margin-bottom: 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 10px 16px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
}

/* ── REMEMBER ME ── */
.yith-wcaf-registration-form .woocommerce-form__label-for-checkbox {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 12px !important;
  font-size: 12px !important;
  color: #64748b !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
}

.yith-wcaf-registration-form .woocommerce-form__input-checkbox {
  width: 15px !important;
  height: 15px !important;
  accent-color: #E85D04 !important;
  flex-shrink: 0 !important;
}

/* ── LOST PASSWORD ── */
.yith-wcaf-registration-form .woocommerce-LostPassword,
.yith-wcaf-registration-form .lost_password {
  margin-top: 14px !important;
  text-align: center !important;
}

.yith-wcaf-registration-form .woocommerce-LostPassword a,
.yith-wcaf-registration-form .lost_password a {
  font-size: 12px !important;
  color: #E85D04 !important;
  text-decoration: none !important;
}

/* ── TEXTOS DE POLÍTICA / PRIVACIDAD ── */
.yith-wcaf-registration-form .woocommerce-privacy-policy-text,
.yith-wcaf-registration-form .terms-label {
  font-size: 11px !important;
  color: #475569 !important;
  line-height: 1.6 !important;
}

.yith-wcaf-registration-form .woocommerce-privacy-policy-text a,
.yith-wcaf-registration-form .terms-label a {
  color: #E85D04 !important;
}

/* ── ESTADOS: already affiliate / pending / rejected ── */
.yith-wcaf-registration-form .already-an-affiliate-wrapper,
.yith-wcaf-registration-form .pending-request-wrapper,
.yith-wcaf-registration-form .rejected-request-wrapper,
.yith-wcaf-registration-form .become-an-affiliate-form {
  background: #161b27 !important;
  background-color: #161b27 !important;
  border: 1px solid #1e2535 !important;
  border-radius: 14px !important;
  padding: 36px 32px !important;
  text-align: center !important;
  max-width: 500px !important;
}

.yith-wcaf-registration-form .pending-request-wrapper {
  border-color: #854f0b !important;
  background-color: #1a1500 !important;
}

.yith-wcaf-registration-form .rejected-request-wrapper {
  border-color: #7f1d1d !important;
  background-color: #1a0a0a !important;
}

.yith-wcaf-registration-form h3.thank-you,
.yith-wcaf-registration-form h3.we-are-sorry {
  color: #f1f5f9 !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  margin-bottom: 16px !important;
}

.yith-wcaf-registration-form .pending-request-wrapper h3.thank-you { color: #fbbf24 !important; }
.yith-wcaf-registration-form .rejected-request-wrapper h3.we-are-sorry { color: #f87171 !important; }

.yith-wcaf-registration-form .already-an-affiliate,
.yith-wcaf-registration-form .pending-request,
.yith-wcaf-registration-form .rejected-request {
  font-size: 14px !important;
  color: #94a3b8 !important;
  line-height: 1.75 !important;
  margin-bottom: 24px !important;
}

.yith-wcaf-registration-form .go-to-dashboard {
  display: inline-block !important;
  width: auto !important;
  padding: 11px 28px !important;
  margin-top: 0 !important;
}

/* ── WC NOTICES ── */
.yith-wcaf-registration-form .woocommerce-error,
.yith-wcaf-registration-form .woocommerce-message,
.yith-wcaf-registration-form .woocommerce-info {
  border-radius: 10px !important;
  font-size: 13px !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
  border-top: none !important;
  list-style: none !important;
}

.yith-wcaf-registration-form .woocommerce-error {
  background: #1a0a0a !important;
  border-left: 4px solid #f87171 !important;
  color: #fca5a5 !important;
}

.yith-wcaf-registration-form .woocommerce-message {
  background: #0f1f13 !important;
  border-left: 4px solid #4ade80 !important;
  color: #86efac !important;
}

.yith-wcaf-registration-form .woocommerce-info {
  background: #0f1a2e !important;
  border-left: 4px solid #60a5fa !important;
  color: #93c5fd !important;
}

/* ── SEPARADOR "o" entre Google y campos ── */
.yith-wcaf-registration-form .woocommerce-form-login .social-login-sep,
.yith-wcaf-registration-form hr {
  border-color: #1e2535 !important;
  margin: 14px 0 !important;
}


/* ══════════════════════════════════════════════
   FIX CRÍTICO: resetear background/border del tema
   El div raíz tiene .woocommerce que el tema pinta blanco
   ══════════════════════════════════════════════ */

/* Resetear el fondo blanco que el tema aplica a .woocommerce */
div.yith-wcaf-registration-form,
div.yith-wcaf-registration-form.woocommerce,
.yith-wcaf.yith-wcaf-registration-form,
.yith-wcaf.yith-wcaf-registration-form.woocommerce {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Cualquier wrapper .woocommerce DENTRO del contenedor de la página
   que tenga background blanco */
body .yith-wcaf-registration-form,
body .yith-wcaf-registration-form * {
  box-sizing: border-box !important;
}

/* El contenedor interno con fondo blanco + borde que se ve en la screenshot
   Es la caja del login (.login-form) que hereda background:white del tema */
body .yith-wcaf-registration-form .login-form {
  background: #161b27 !important;
  background-color: #161b27 !important;
  border: 1px solid #1e2535 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  padding: 28px !important;
}

body .yith-wcaf-registration-form .register-form {
  background: #161b27 !important;
  background-color: #161b27 !important;
  border: 1px solid #1e2535 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  padding: 28px !important;
}

/* Forzar layout flex con body para máxima especificidad */
body .yith-wcaf-registration-form .forms-container {
  display: flex !important;
  flex-direction: row !important;
  gap: 24px !important;
  float: none !important;
  width: 100% !important;
  clear: both !important;
}

body .yith-wcaf-registration-form .forms-container::after {
  display: none !important;
}

body .yith-wcaf-registration-form .forms-container .u-column1,
body .yith-wcaf-registration-form .forms-container .u-column2,
body .yith-wcaf-registration-form .forms-container .col-1,
body .yith-wcaf-registration-form .forms-container .col-2 {
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Resetear el border blanco del woocommerce wrapper del tema Proteo / Storefront */
.woocommerce-page .yith-wcaf-registration-form,
.woocommerce .yith-wcaf-registration-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Forzar inputs oscuros con especificidad máxima */
body .yith-wcaf-registration-form input[type="text"],
body .yith-wcaf-registration-form input[type="email"],
body .yith-wcaf-registration-form input[type="password"] {
  background: #0f1117 !important;
  background-color: #0f1117 !important;
  color: #e2e8f0 !important;
  border: 1px solid #2d3748 !important;
  border-radius: 9px !important;
  padding: 10px 14px !important;
  width: 100% !important;
}

/* Forzar botón naranja */
body .yith-wcaf-registration-form input[type="submit"],
body .yith-wcaf-registration-form button.woocommerce-Button,
body .yith-wcaf-registration-form .woocommerce-Button {
  background: #E85D04 !important;
  background-color: #E85D04 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 24px !important;
  width: 100% !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  box-shadow: 0 0 20px rgba(232,93,4,.25) !important;
}

/* Input password con fondo naranja — el tema pinta el background del input */
body .yith-wcaf-registration-form .password-wrapper input[type="password"],
body .yith-wcaf-registration-form input[type="password"].woocommerce-Input {
  background: #0f1117 !important;
  background-color: #0f1117 !important;
  color: #e2e8f0 !important;
  border-color: #2d3748 !important;
}

