/**
 * Estilos de plugins: WPLoyalty, Wholesale Quotes y WebToffee Wishlist.
 * Se encola desde functions.php después de los CSS de los plugins.
 *
 * Los tres pintan para fondo claro y meten colores en línea (ajustes del
 * plugin en style="" o en un <style> dentro de la página), por eso hay
 * bastante !important. Paleta del widget Mi cuenta de Elementor:
 *   secciones #181D24 · bordes #2A2E35 · campos #111419
 *   texto #F0F2F6 / #B8BBC0 / #85898F · etiquetas #A1BEFF
 *   acento #4888FF (hover #3473EA)
 */

/* ========================================
   WPLOYALTY - PUNTOS Y RECOMPENSAS
   Mi cuenta > Puntos y recompensas, shortcode [wlr_page_content]
   y ventana de canje del carrito (.wlr-page-cart dentro de alertify).
   ======================================== */

body .wlr-myaccount-page {
  gap: 48px;

  padding: 0;

  background: transparent !important;

  color: #B8BBC0;

  font-family: "Syne", sans-serif;

  & > * {
    width: 100%;
    margin: 0;
  }

  & p,
  & h4 {
    font-family: inherit;
  }

  /* Títulos de sección: "Mis puntos", "Mis recompensas"... */
  & .wlr-heading-container {
    max-width: none;
    justify-content: flex-start;
  }

  & .wlr-heading {
    margin: 0 0 24px 0;
    padding: 0;

    border: 0 !important;

    color: #F0F2F6 !important;

    font-family: "Unbounded", sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  /* Colores de los ajustes del plugin (llegan en un <style> en la página) */
  & .wlr-text-color {
    color: #F0F2F6;
  }

  & .wlr-border-color {
    border-color: #2A2E35 !important;
  }

  & .wlr-theme-color-apply {
    color: #4888FF !important;
  }

  & a {
    color: #4888FF;

    &:hover {
      color: #F0F2F6;
    }
  }

  /* --- Resumen de puntos --- */
  & #wlr-points {
    gap: 16px;
  }

  & #wlr-available-points,
  & #wlr-redeemed-points,
  & #wlr-used-rewards {
    position: relative;

    flex: 1 1 0;
    gap: 14px;

    width: auto;

    padding: 24px;

    background: #181D24;

    border: 1px solid #2A2E35;
    border-radius: 0;

    & i.wlr-icon,
    & .wlr-icon {
      font-size: 30px;
    }

    & .wlr-upload-img-icon {
      max-height: 32px;
    }
  }

  /* "Puntos disponibles": la etiqueta del plugin va en minúscula */
  & #wlr-available-points-heading,
  & #wlr-redeemed-points-heading,
  & #wlr-used-rewards-heading {
    display: block;

    margin-bottom: 8px;

    color: #A1BEFF !important;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  & #wlr-available-point-value,
  & #wlr-redeemed-point-value,
  & #wlr-used-reward-value-count {
    color: #F0F2F6 !important;

    font-family: "Unbounded", sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
  }

  & #wlr-available-points p,
  & #wlr-used-reward-value {
    margin: 6px 0 0 0 !important;

    color: #85898F !important;

    font-size: 12px;
    font-weight: 600;
  }

  /* Selector de moneda de "Recompensas usadas" */
  & #wlr-used-rewards select {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;

    /* Astra/WooCommerce dan width: 100% a los select */
    width: auto !important;
    min-width: 0;
    height: auto;
    min-height: 0;

    margin: 0;
    padding: 8px 32px 8px 12px;

    background: #111419 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='%23F0F2F6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 6px !important;

    border: 1px solid #2A2E35 !important;
    border-radius: 0;

    box-shadow: none;

    color: #F0F2F6 !important;

    font-family: "Geist Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;

    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;

    &:hover,
    &:focus {
      border-color: #4888FF !important;

      outline: 0;
    }

    & option {
      background: #111419;
      color: #F0F2F6;
    }
  }

  /* --- Niveles --- */
  & #wlr-levels {
    padding: 24px;

    background: #181D24;

    border: 1px solid #2A2E35;
    border-radius: 0;
  }

  & .wlr-points-name,
  & #wlr-level-name,
  & #wlr-next-level-name {
    color: #F0F2F6 !important;

    font-family: "Unbounded", sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
  }

  & .wlr-level-title-section p:not(.wlr-points-name) {
    color: #85898F !important;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  & .level-points {
    border: 0;
  }

  & .wlr-progress-content {
    color: #B8BBC0 !important;

    font-size: 13px;
    font-weight: 600;
  }

  & .wlr-progress-bar {
    height: 6px;

    background: #111419;

    border: 1px solid #2A2E35;
    border-radius: 0;

    & .wlr-progress-level {
      border-radius: 0;
      background-color: #4888FF !important;
    }
  }

  & .wlr-levels-bar-footer {
    color: #85898F;

    font-family: "Geist Mono", monospace;
    font-size: 12px;
  }

  /* --- Enlace de referido --- */
  & .wlr-referral-box {
    display: flex;

    border: 1px solid #2A2E35 !important;
    border-radius: 0;

    & .wlr_referral_url {
      flex: 1;

      min-height: 54px;
      padding: 0 17px;

      background: #111419 !important;

      border: 0;
      border-radius: 0;

      color: #F0F2F6 !important;

      font-family: "Geist Mono", monospace;
      font-size: 12px;
    }

    & .input-group-append,
    & .input-group-text {
      display: flex;
      align-items: center;
      gap: 8px;

      height: 100%;
      padding: 0 24px;

      background: #4888FF !important;

      border: 0;
      border-radius: 0;

      color: #F0F2F6 !important;

      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;

      cursor: pointer;

      transition: background 0.2s;

      &:hover {
        background: #3473EA !important;
      }
    }
  }

  & .wlr-social-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 16px;

    & .wlr-icon-list {
      display: inline-flex;
      align-items: center;
      gap: 8px;

      padding: 10px 14px;

      border: 1px solid #2A2E35;

      color: #F0F2F6;

      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1px;
      text-decoration: none;
      text-transform: uppercase;

      transition: border-color 0.2s;

      &:hover {
        border-color: #4888FF;
      }
    }

    & .wlr-social-text {
      color: inherit !important;
    }
  }

  /* --- Pestañas "Mis recompensas" --- */
  & .wlr-user-reward-titles {
    gap: 8px;

    margin-bottom: 24px;

    border-bottom: 1px solid #2A2E35 !important;
  }

  & .wlr-my-rewards-title {
    gap: 8px;

    margin-bottom: -1px;
    padding: 14px 16px;

    border-bottom: 2px solid transparent !important;

    color: #85898F;

    transition: color 0.2s;

    & h4 {
      color: inherit !important;

      font-size: 10.5px;
      font-weight: 700;
      line-height: 1.3;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    & i {
      color: inherit !important;

      font-size: 16px;
    }

    &:hover {
      color: #F0F2F6;
    }

    &.active {
      border-bottom-color: #4888FF !important;

      color: #F0F2F6;

      & i {
        color: #4888FF !important;
      }
    }
  }

  /* --- Tarjetas: recompensas, cupones y formas de ganar --- */
  & .wlr-customer-reward {
    gap: 16px;
  }

  & .wlr-reward-card,
  & .wlr-new-coupon-card,
  & .wlr-earning-options .wlr-card {
    padding: 0 20px 20px;

    background: #181D24;

    border: 1px solid #2A2E35 !important;
    border-radius: 0;

    box-shadow: none !important;

    transition: border-color 0.2s;

    &:hover {
      border-color: #4888FF !important;
    }
  }

  & .wlr-out-of-stock {
    background: #111419 !important;

    opacity: 0.6;
  }

  /* Etiqueta de esquina: "Descuento porcentual - 10 %" */
  & .wlr-reward-type-name {
    padding: 6px 10px;

    background: #111419;

    border: 1px solid #2A2E35 !important;
    border-radius: 0 !important;

    color: #A1BEFF !important;

    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  & .wlr-card-icon i,
  & .wlr-earning-options .wlr-card .wlr-icon {
    background: #111419;

    border: 1px solid #2A2E35;
    border-radius: 0;

    box-shadow: none;
  }

  & .wlr-name,
  & .wlr-name p {
    color: #F0F2F6 !important;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
  }

  & .wlr-description {
    color: #B8BBC0 !important;

    font-size: 13px;
    line-height: 1.5;
  }

  & .wlr-read-more-label,
  & .wlr-read-less-label {
    color: #4888FF !important;

    font-weight: 700;
  }

  & .wlr-discount-point {
    color: #4888FF !important;

    font-family: "Geist Mono", monospace;
    font-size: 13px !important;
  }

  & .wlr-campaign-level-batch img,
  & .wlr-campaign-level-batch span {
    border-color: #2A2E35 !important;

    color: #F0F2F6;
  }

  /* Botones "Canjear ahora" / "Aplicar cupón" (son <div>, no <button>) */
  & .wlr-button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 20px;

    background: #4888FF !important;

    border-radius: 0;

    transition: background 0.2s;

    &:hover {
      background: #3473EA !important;
    }

    & .wlr-action-text {
      color: #F0F2F6 !important;

      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
    }
  }

  & .wlr-spinner .spinner {
    border-top-color: #4888FF !important;
  }

  /* Canje de puntos por cupón */
  & .wlr-point-conversion-section {
    background: #181D24;

    border: 1px solid #2A2E35;
    border-radius: 0;

    & .wlr-input-point-conversion,
    & .wlr-point-label-content {
      border-color: #2A2E35 !important;
      border-radius: 0;
    }

    & input {
      background: #111419 !important;

      color: #F0F2F6 !important;

      font-family: "Geist Mono", monospace;
    }

    & .wlr-point-label-content {
      background: #111419;

      & p {
        color: #A1BEFF;
      }
    }

    & .wlrf-close {
      color: #85898F;
    }
  }

  /* Código de cupón */
  & .wlr-code {
    background: #111419 !important;

    border: 1px dashed #4888FF !important;
    border-radius: 0;

    color: #F0F2F6;

    & .wlr-coupon-code {
      background: transparent !important;

      border-radius: 0;

      & span {
        color: #F0F2F6 !important;

        font-family: "Geist Mono", monospace;
        letter-spacing: 1px;
      }
    }

    & .wlr-coupon-copy-icon {
      background: #4888FF !important;

      border-color: #4888FF !important;
      border-radius: 0;

      color: #F0F2F6;
    }
  }

  & .wlr-expired-card .wlr-code {
    border-color: #2A2E35 !important;

    & span {
      color: #85898F !important;
    }
  }

  & .wlr-expire-date {
    color: #85898F !important;

    font-size: 12px;
  }

  & .wlr-coupon-date-section i {
    color: #85898F;
  }

  /* Sin recompensas / cupones */
  & .wlr-norecords-container {
    gap: 8px;

    padding: 48px 24px;

    background: #181D24;

    border: 1px solid #2A2E35;

    & i {
      color: #4888FF;
    }

    & h4 {
      color: #F0F2F6 !important;

      font-family: "Unbounded", sans-serif !important;
      font-size: 15px !important;
      font-weight: 800 !important;
      text-transform: uppercase;
    }

    & p {
      color: #85898F;

      font-size: 13px;
    }
  }

  /* --- Actividad reciente --- */
  & table.wlr-table {
    width: 100%;

    margin: 0;

    border: 1px solid #2A2E35;
    border-collapse: collapse;

    & thead {
      outline: 0 !important;
    }

    & th {
      padding: 14px 16px;

      background: #181D24 !important;

      border-bottom: 1px solid #2A2E35;

      color: #85898F !important;

      font-family: "Syne", sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    & td {
      padding: 14px 16px;

      background: transparent !important;

      border-bottom: 1px solid #2A2E35;

      color: #F0F2F6 !important;

      font-family: "Geist Mono", monospace;
      font-size: 12px;
    }
  }

  /* Paginación (Anterior / Siguiente) */
  & #wlr-prev-button,
  & #wlr-next-button {
    display: inline-flex;
    align-items: center;

    margin-left: 8px;
    padding: 10px 14px;

    background: transparent;

    border: 1px solid #4888FF;
    border-radius: 0;

    color: #4888FF !important;

    font-family: "Syne", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;

    transition: background 0.2s, color 0.2s;

    &:hover {
      background: #4888FF;

      color: #F0F2F6 !important;
    }
  }

  /* Cumpleaños y notificaciones */
  & .wlr-date-editor-layer {
    background-color: rgba(11, 11, 11, 0.92) !important;

    border-radius: 0 !important;
  }

  & .wlr-date-container input {
    background: #111419;

    border: 1px solid #2A2E35;
    border-radius: 0;

    color: #F0F2F6;
  }

  & .wlr-date-action {
    background: #4888FF !important;

    border-radius: 0 !important;

    color: #F0F2F6 !important;

    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  & .wlr-sent-email {
    display: flex;
    align-items: center;
    gap: 10px;

    & input {
      accent-color: #4888FF;
    }

    & label {
      color: #B8BBC0 !important;

      font-size: 13px;
      font-weight: 600;
    }
  }

  & .wlr-today-expire-points-section {
    background: #181D24;

    border: 1px solid #2A2E35 !important;
    border-left: 3px solid #FF8E8E !important;
    border-radius: 0;

    color: #F0F2F6;
  }

  @media (max-width: 767px) {
    gap: 36px;

    & #wlr-points {
      flex-direction: column;
    }

    & .wlr-heading {
      font-size: 16px;
    }

    & .wlr-user-reward-titles {
      overflow-x: auto;
    }

    & .wlr-my-rewards-title {
      flex-shrink: 0;
    }

    & .wlr-referral-box {
      flex-direction: column;

      & .input-group-append,
      & .input-group-text {
        justify-content: center;

        min-height: 48px;
      }
    }

    & .wlr-earning-options .wlr-campaign-container {
      grid-template-columns: 1fr;
    }

    & #wlr-transaction-table {
      overflow-x: auto;
    }
  }
}

/* Mensajes de puntos en producto, carrito, checkout y pedido recibido
   (los colores llegan en línea desde cada campaña) */
body .wlr-product-message,
body .wlr-signup-message,
body .wlr-product-review-message,
body .wlr-birthday-message {
  margin: 0 0 16px 0;
  padding: 12px 16px !important;

  background: #181D24 !important;

  border: 1px solid #2A2E35 !important;
  border-left: 3px solid #4888FF !important;
  border-radius: 0 !important;

  color: #F0F2F6 !important;

  font-family: "Syne", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5 !important;
}

body .wlr-message-info {
  gap: 14px;

  margin: 0 0 20px 0 !important;
  padding: 14px 20px !important;

  background: #181D24 !important;

  border: 1px solid #2A2E35 !important;
  border-left: 3px solid #4888FF !important;
  border-radius: 0 !important;

  color: #F0F2F6 !important;

  font-family: "Syne", sans-serif;
  font-size: 13px !important;
  font-weight: 600 !important;

  & i.wlr {
    margin: 0 !important;

    color: #4888FF !important;

    font-size: 22px !important;
  }

  & a,
  & #wlr-reward-link {
    color: #4888FF;

    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;

    &:hover {
      color: #F0F2F6;
    }
  }
}

/* Producto gratis de recompensa en el carrito */
body .wlr-loyalty-label {
  border-radius: 0 !important;

  background-color: #4888FF !important;

  color: #F0F2F6 !important;

  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Ventanas de WPLoyalty (alertify): canje desde el carrito, confirmaciones */
.alertify {
  & .ajs-dimmer {
    background-color: rgba(0, 0, 0, 0.75);
  }

  & .ajs-dialog {
    padding: 0;

    background: #0B0B0B;

    border: 1px solid #2A2E35;
    border-radius: 0;

    box-shadow: none;
  }

  & .ajs-header {
    padding: 20px 24px;

    background: #181D24;

    border-bottom: 1px solid #2A2E35;

    color: #F0F2F6;

    font-family: "Unbounded", sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
  }

  & .ajs-body {
    padding: 24px;

    color: #B8BBC0;

    font-family: "Syne", sans-serif;

    & .ajs-content {
      padding: 0;
    }

    & .ajs-input {
      background: #111419;

      border: 1px solid #2A2E35;
      border-radius: 0;

      color: #F0F2F6;
    }
  }

  & .ajs-footer {
    padding: 16px 24px;

    background: #181D24;

    border-top: 1px solid #2A2E35;

    & .ajs-buttons .ajs-button {
      min-height: 44px;
      padding: 0 22px;

      border-radius: 0;

      font-family: "Syne", sans-serif;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    & .ajs-button.ajs-ok {
      background: #4888FF !important;

      border: 0 !important;

      color: #F0F2F6 !important;

      &:hover {
        background: #3473EA !important;
      }
    }

    & .ajs-button.ajs-cancel {
      background: transparent !important;

      border: 1px solid #2A2E35 !important;

      color: #F0F2F6 !important;

      &:hover {
        border-color: #4888FF !important;
      }
    }
  }

  & .ajs-commands button {
    filter: invert(1);
  }
}

.alertify-notifier .ajs-message {
  background: #181D24;

  border: 1px solid #2A2E35;
  border-left: 3px solid #4888FF;
  border-radius: 0;

  color: #F0F2F6;

  font-family: "Syne", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-shadow: none;

  &.ajs-error {
    border-left-color: #FF8E8E;
  }
}


/* ========================================
   WHOLESALE QUOTES - PRESUPUESTOS
   PHP: botones "Añadir al presupuesto", contador, panel lateral y avisos.
   Vue + Ant Design: página de presupuesto, Mis presupuestos, ver
   presupuesto, historial y mensajes. Las ventanas de Ant Design se
   montan en <body>, fuera de los contenedores del plugin.
   ======================================== */

/* --- Botón "Añadir al presupuesto" (cualquier estilo de los ajustes) --- */
body .wws-wq-quote-button-container {
  margin: 12px 0 0 0;
}

body .wws-wq-add-to-quote-button,
body button.wws-wq-add-to-quote-cart-button,
body button.wws-wq-add-to-quote-checkout-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 48px;
  padding: 0 28px !important;

  background: transparent !important;

  border: 1px solid #4888FF !important;
  border-radius: 0 !important;
  outline: 0 !important;

  color: #4888FF !important;

  font-family: "Syne", sans-serif;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 1px;
  text-decoration: none !important;
  text-transform: uppercase;

  cursor: pointer;

  transition: background 0.2s, color 0.2s;

  &:hover,
  &:focus-visible {
    background: #4888FF !important;

    color: #F0F2F6 !important;
  }

  /* Ya está en el presupuesto */
  &.wws-wq-in-quote,
  &.wws-wq-active {
    background: #4888FF !important;

    border-color: #4888FF !important;

    color: #F0F2F6 !important;

    &:hover {
      background: #3473EA !important;
    }
  }

  &.wws-wq-adding,
  &.wws-wq-removing {
    opacity: 0.6;

    pointer-events: none;
  }

  & .wws-wq-icon-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  & .wws-wq-text-label {
    color: inherit !important;
  }

  /* Los iconos son SVG oscuros de fondo: se pintan con el color del texto */
  & .wws-wq-icon {
    width: 18px !important;
    height: 18px !important;

    margin: 0 !important;

    background: currentColor !important;

    -webkit-mask: url("../../../../plugins/woocommerce-wholesale-quotes/assets/images/quote.svg") center / contain no-repeat;
    mask: url("../../../../plugins/woocommerce-wholesale-quotes/assets/images/quote.svg") center / contain no-repeat;
  }
}

/* Ficha de producto: el botón ocupa la fila de "Añadir al carrito" */
.add-to-cart .wws-wq-quote-button-container .wws-wq-add-to-quote-button {
  width: 100%;
  max-width: 420px;
}

/* --- Contador del header --- */
body .wws-wq-quote-counter-widget {
  & .wws-wq-counter-link {
    color: #F0F2F6;
  }

  & .wws-wq-counter-icon svg {
    stroke: currentColor;
  }

  & .wws-wq-counter-badge {
    background: #4888FF;

    color: #F0F2F6;

    font-family: "Geist Mono", monospace;
    font-size: 10px;
  }
}

/* --- Panel lateral del presupuesto --- */
body .wws-wq-quote-dropdown-widget {
  & .wws-wq-dropdown-overlay {
    background: rgba(0, 0, 0, 0.7);
  }

  & .wws-wq-dropdown-content {
    background: #0B0B0B;

    border-left: 1px solid #2A2E35;

    box-shadow: none;

    color: #B8BBC0;

    font-family: "Syne", sans-serif;
  }

  & .wws-wq-dropdown-header {
    padding: 24px;

    background: #181D24;

    border-bottom: 1px solid #2A2E35;

    & h3 {
      margin: 0;

      color: #F0F2F6;

      font-family: "Unbounded", sans-serif;
      font-size: 16px;
      font-weight: 900;
      text-transform: uppercase;
    }
  }

  & .wws-wq-dropdown-close {
    background: transparent;

    border: 0;

    color: #F0F2F6;

    &:hover {
      color: #4888FF;
    }
  }

  & .wws-wq-dropdown-item {
    padding: 16px 24px;

    border-bottom: 1px solid #2A2E35;
  }

  & .wws-wq-dropdown-item-image {
    border-radius: 0;
  }

  & .wws-wq-dropdown-item-name {
    color: #F0F2F6;

    font-family: "Syne", sans-serif;
    font-size: 14px;
    font-weight: 700;
  }

  & .wws-wq-dropdown-item-description {
    color: #85898F;

    font-size: 12px;
  }

  & .wws-wq-dropdown-wholesale-price,
  & .wws-wq-item-total {
    color: #F0F2F6;

    font-family: "Geist Mono", monospace;
    font-size: 13px;
  }

  & .wws-wq-dropdown-retail-price {
    color: #85898F;

    font-family: "Geist Mono", monospace;
    font-size: 12px;
  }

  & .wws-wq-dropdown-quantity {
    border: 1px solid #2A2E35;
    border-radius: 0;
  }

  & .wws-wq-qty-btn {
    background: #181D24;

    border: 0;
    border-radius: 0;

    color: #F0F2F6;

    &:hover {
      background: #20262F;
    }
  }

  & .wws-wq-qty-input {
    background: #111419;

    border: 0;
    border-radius: 0;

    color: #F0F2F6;

    font-family: "Geist Mono", monospace;
  }

  & .wws-wq-dropdown-item-remove {
    background: transparent;

    color: #85898F;

    &:hover {
      color: #FF8E8E;
    }
  }

  & .wws-wq-dropdown-empty p {
    color: #85898F;
  }

  & .wws-wq-dropdown-totals {
    padding: 16px 24px;

    background: #181D24;

    border-top: 1px solid #2A2E35;
  }

  & .wws-wq-totals-label {
    color: #85898F;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  & .wws-wq-totals-value {
    color: #F0F2F6;

    font-family: "Geist Mono", monospace;
  }

  & .wws-wq-dropdown-footer {
    padding: 16px 24px 24px;

    background: #181D24;
  }
}

/* --- Botones propios del plugin (.wws-wq-btn) --- */
body .wws-wq-btn,
body .wws-wq-dropdown-footer .wws-wq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 48px;
  padding: 0 24px;

  background: transparent;

  border: 1px solid #2A2E35;
  border-radius: 0;

  box-shadow: none;

  color: #F0F2F6;

  font-family: "Syne", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;

  transition: background 0.2s, border-color 0.2s, color 0.2s;

  &:hover {
    border-color: #4888FF;

    color: #F0F2F6;
  }

  &.wws-wq-btn-primary {
    background: #4888FF;

    border-color: #4888FF;

    color: #F0F2F6;

    &:hover {
      background: #3473EA;

      border-color: #3473EA;
    }
  }

  &.wws-wq-btn-danger:hover {
    border-color: #FF8E8E;

    color: #FF8E8E;
  }

  &:disabled {
    opacity: 0.45;

    cursor: not-allowed;
  }
}

body .wws-wq-dropdown-footer .wws-wq-btn {
  width: 100%;
}

/* --- Avisos (toasts) --- */
body .wws-wq-toast-notification {
  background: #181D24;

  border: 1px solid #2A2E35;
  border-left: 3px solid #4888FF;
  border-radius: 0;

  box-shadow: none;

  color: #F0F2F6;

  font-family: "Syne", sans-serif;
  font-size: 13px;
  font-weight: 600;

  &.wws-wq-toast-error {
    border-left-color: #FF8E8E;
  }

  &.wws-wq-toast-warning {
    border-left-color: #FFC46B;
  }

  & .wws-wq-toast-message {
    margin: 0;

    color: inherit;
  }

  & .wws-wq-toast-close {
    background: transparent;

    color: #85898F;
  }
}

/* --- Sin acceso / error / iniciar sesión --- */
body .wws-wq-access-denied,
body .wws-wq-login-required,
body .wws-wq-error,
body .wws-wq-empty-quote,
body .wws-wq-empty-state-card {
  padding: 48px 36px;

  background: #181D24;

  border: 1px solid #2A2E35;
  border-radius: 0;

  color: #B8BBC0;

  font-family: "Syne", sans-serif;
  text-align: center;

  & h2,
  & h3 {
    margin: 0 0 12px 0;

    color: #F0F2F6;

    font-family: "Unbounded", sans-serif;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
  }

  & p {
    margin: 0 0 24px 0;

    color: #85898F;

    font-size: 14px;
  }
}

body .wws-wq-access-denied-actions,
body .wws-wq-empty-quote-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;

  & .button {
    min-height: 48px;
    padding: 0 28px;

    background: #4888FF;

    border: 1px solid #4888FF;
    border-radius: 0;

    color: #F0F2F6;

    font-family: "Syne", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 46px;
    letter-spacing: 1px;
    text-transform: uppercase;

    &:hover {
      background: #3473EA;

      border-color: #3473EA;

      color: #F0F2F6;
    }

    & + .button {
      background: transparent;

      border-color: #2A2E35;

      &:hover {
        background: transparent;

        border-color: #4888FF;
      }
    }
  }
}

/* --- Apps de presupuestos: tipografía y colores base --- */
.wws-wq-quote-page,
.wws-wq-view-quote-page,
.wws-wq-my-quotes-page,
.wws-wq-quotes-history-page {
  color: #B8BBC0;

  font-family: "Syne", sans-serif;

  & h1.wws-wq-quote-title,
  & h1.wws-wq-quotes-history-title {
    margin: 0 0 32px 0;

    color: #F0F2F6;

    font-family: "Unbounded", sans-serif;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
  }

  & h2,
  & h3,
  & h4 {
    color: #F0F2F6;

    font-family: "Unbounded", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
  }

  & h3 {
    margin: 0 0 20px 0;

    font-size: 16px;
  }

  & h4 {
    font-size: 13px;
  }

  & a {
    color: #4888FF;

    &:hover {
      color: #F0F2F6;
    }
  }

  /* Precios */
  & .wws-wq-price-wholesale,
  & .wws-wq-wholesale-price,
  & .wws-wq-line-total,
  & .wholesale-price {
    color: #F0F2F6 !important;

    font-family: "Geist Mono", monospace;
  }

  & .wws-wq-price-retail,
  & .wws-wq-retail-price,
  & .retail-price {
    color: #85898F !important;

    font-family: "Geist Mono", monospace;
  }

  & .product-sku,
  & .wws-wq-product-sku,
  & .wws-wq-item-sku {
    color: #85898F;

    font-family: "Geist Mono", monospace;
    font-size: 11px;
  }

  /* Campos de formulario */
  & input[type="text"],
  & input[type="email"],
  & input[type="tel"],
  & input[type="number"],
  & select,
  & textarea,
  & .wws-wq-input,
  & .ant-input,
  & .ant-input-number,
  & .ant-input-affix-wrapper,
  & .ant-select-selector {
    background: #111419 !important;

    border: 1px solid #2A2E35 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    color: #F0F2F6 !important;

    font-family: "Syne", sans-serif;
    font-size: 13px;
    font-weight: 600;

    &:focus,
    &:focus-within {
      border-color: #4888FF !important;
    }
  }

  & .ant-input-number-input {
    color: #F0F2F6;
  }

  /* El input va dentro del wrapper con borde: sin borde propio */
  & .ant-input-affix-wrapper .ant-input,
  & .ant-input-number .ant-input-number-input {
    min-height: 0;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
  }

  & .ant-input-affix-wrapper {
    padding: 0 17px !important;

    & .ant-input {
      height: 48px;
    }
  }

  & .ant-input-clear-icon {
    color: #85898F;

    &:hover {
      color: #F0F2F6;
    }
  }

  /* Buscador (a-input-search): campo + botón lupa pegados */
  & .ant-input-search {
    display: block;

    width: 100%;
    max-width: 420px !important;

    margin: 0 0 20px 0 !important;

    & .ant-input-wrapper {
      display: flex;
    }

    & .ant-input-affix-wrapper {
      flex: 1;

      border-right: 0 !important;
    }

    & .ant-input-group-addon {
      display: block;

      width: auto;

      padding: 0;

      background: transparent;

      border: 0;
    }

    & .ant-input-search-button {
      display: flex;
      align-items: center;
      justify-content: center;

      width: 50px;
      height: 50px;
      min-height: 0;

      padding: 0;

      background: #4888FF;

      border: 1px solid #4888FF;
      border-radius: 0 !important;

      color: #F0F2F6;

      &:not(:disabled):hover {
        background: #3473EA;

        border-color: #3473EA;

        color: #F0F2F6;
      }

      & .anticon {
        color: inherit;

        font-size: 16px;
      }

      & svg {
        fill: currentColor;
      }
    }
  }

  & ::placeholder {
    color: #85898F !important;
  }

  & label,
  & .wws-wq-form-field label {
    color: #A1BEFF;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  & .wws-wq-checkbox-label {
    color: #B8BBC0;

    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
  }

  & input[type="checkbox"],
  & input[type="radio"] {
    accent-color: #4888FF;
  }
}

/* --- Página "Presupuesto" (carrito de presupuesto) --- */
.wws-wq-quote-page-app {
  & .wws-wq-spinner {
    border-color: #2A2E35;
    border-top-color: #4888FF;
  }

  & table.wws-wq-quote-items {
    width: 100%;

    margin: 0 0 32px 0;

    background: transparent;

    border: 1px solid #2A2E35;
    border-collapse: collapse;

    & th {
      padding: 14px 16px;

      background: #181D24;

      border-bottom: 1px solid #2A2E35;

      color: #85898F;

      font-size: 10px;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    & td {
      padding: 16px;

      background: transparent;

      border-bottom: 1px solid #2A2E35;

      color: #F0F2F6;

      vertical-align: middle;
    }

    & .product-name a {
      color: #F0F2F6;

      font-weight: 700;

      &:hover {
        color: #4888FF;
      }
    }

    & .product-thumbnail img {
      border-radius: 0;
    }
  }

  & .wws-wq-quantity-input {
    display: inline-flex;

    border: 1px solid #2A2E35;

    & input {
      width: 52px;

      border: 0 !important;

      font-family: "Geist Mono", monospace;
      text-align: center;
    }
  }

  & .wws-wq-quantity-btn {
    width: 36px;

    background: #181D24;

    border: 0;
    border-radius: 0;

    color: #F0F2F6;

    &:hover {
      background: #20262F;
    }
  }

  & .wws-wq-remove-item {
    background: transparent;

    border: 0;

    color: #85898F;

    &:hover {
      color: #FF8E8E;
    }
  }

  & .wws-wq-quote-summary,
  & .wws-wq-customer-form,
  & .wws-wq-address-section,
  & .wws-wq-shipping-methods-section {
    margin: 0 0 24px 0;
    padding: 36px;

    background: #181D24;

    border: 1px solid #2A2E35;
    border-radius: 0;

    box-shadow: none;
  }

  & .wws-wq-summary-row {
    padding: 12px 0;

    border-bottom: 1px solid #2A2E35;

    &:last-child {
      border-bottom: 0;
    }
  }

  & .wws-wq-summary-label {
    color: #85898F;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  & .wws-wq-summary-value {
    color: #F0F2F6;

    font-family: "Geist Mono", monospace;
  }

  & .wws-wq-address-header {
    color: #F0F2F6;
  }

  & .wws-wq-toggle-icon {
    color: #4888FF;
  }

  & .wws-wq-shipping-method {
    padding: 14px 16px;

    background: #111419;

    border: 1px solid #2A2E35;
    border-radius: 0;

    color: #F0F2F6;

    &:has(input:checked) {
      border-color: #4888FF;
    }
  }

  & .wws-wq-shipping-method-cost {
    color: #F0F2F6;

    font-family: "Geist Mono", monospace;
  }

  & .wws-wq-shipping-hint,
  & .wws-wq-shipping-empty,
  & .wws-wq-notes-preview {
    color: #85898F;
  }

  & .wws-wq-message {
    padding: 14px 20px;

    background: #181D24;

    border: 1px solid #2A2E35;
    border-left: 3px solid #4888FF;
    border-radius: 0;

    color: #F0F2F6;

    &.wws-wq-message-error {
      border-left-color: #FF8E8E;
    }
  }

  & .wws-wq-actions {
    gap: 12px;
  }

  @media (max-width: 767px) {
    & .wws-wq-quote-summary,
    & .wws-wq-customer-form,
    & .wws-wq-address-section,
    & .wws-wq-shipping-methods-section {
      padding: 24px 20px;
    }

    & .wws-wq-actions,
    & .wws-wq-actions-left,
    & .wws-wq-actions-right {
      flex-direction: column;
      align-items: stretch;
    }
  }
}

/* Ventana de notas de la página de presupuesto */
body .wws-wq-modal-overlay {
  background: rgba(0, 0, 0, 0.75) !important;

  & .wws-wq-modal {
    background: #0B0B0B !important;

    border: 1px solid #2A2E35;
    border-radius: 0 !important;

    color: #B8BBC0;
  }

  & .wws-wq-modal-header,
  & .wws-wq-modal-footer {
    background: #181D24;

    border-color: #2A2E35 !important;
  }

  & .wws-wq-modal-header h3 {
    color: #F0F2F6;

    font-family: "Unbounded", sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
  }

  & .wws-wq-modal-close {
    color: #F0F2F6;
  }
}

/* --- Ant Design (Mis presupuestos, ver presupuesto, historial, mensajes) --- */
.wws-wq-view-quote-page,
.wws-wq-my-quotes-page,
.wws-wq-quotes-history-page,
.wws-wq-quote-page,
.ant-modal-root {
  /* Tarjetas */
  & .ant-card {
    background: #181D24;

    border: 1px solid #2A2E35;
    border-radius: 0;

    color: #B8BBC0;
  }

  & .ant-card-head {
    border-bottom: 1px solid #2A2E35;

    color: #F0F2F6;

    & .ant-card-head-title {
      font-family: "Unbounded", sans-serif;
      font-size: 15px;
      font-weight: 800;
      text-transform: uppercase;
    }
  }

  /* Tablas */
  & .ant-table {
    background: transparent;

    border: 1px solid #2A2E35;
    border-radius: 0;

    color: #F0F2F6;

    font-family: "Syne", sans-serif;
  }

  & .ant-table-container,
  & .ant-table-content table {
    border-radius: 0 !important;
  }

  & .ant-table-thead > tr > th {
    padding: 14px 16px;

    background: #181D24 !important;

    border-bottom: 1px solid #2A2E35;
    border-radius: 0 !important;

    color: #85898F;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    &::before {
      display: none;
    }
  }

  & .ant-table-tbody > tr > td {
    padding: 16px;

    background: transparent !important;

    border-bottom: 1px solid #2A2E35;

    color: #F0F2F6;

    font-size: 13px;
  }

  & .ant-table-tbody > tr:hover > td {
    background: #20262F !important;
  }

  & .ant-table-placeholder td {
    background: transparent !important;
  }

  /* Ficha de datos (ant-descriptions) */
  & .ant-descriptions-view {
    border: 1px solid #2A2E35 !important;
    border-radius: 0 !important;
  }

  & .ant-descriptions-item-label {
    background: #181D24 !important;

    color: #A1BEFF !important;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  & .ant-descriptions-item-content {
    color: #F0F2F6 !important;
  }

  & .ant-descriptions-row,
  & .ant-descriptions-item-label,
  & .ant-descriptions-item-content {
    border-color: #2A2E35 !important;
  }

  /* Botones */
  & .ant-btn {
    height: auto;
    min-height: 44px;
    padding: 0 22px;

    background: transparent;

    border: 1px solid #2A2E35;
    border-radius: 0;

    box-shadow: none;

    color: #F0F2F6;

    font-family: "Syne", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    &:not(:disabled):hover {
      background: transparent;

      border-color: #4888FF;

      color: #F0F2F6;
    }
  }

  /* Los botones que son <a> heredan el color de enlace de Elementor */
  & a.ant-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #F0F2F6 !important;

    text-decoration: none;
  }

  & .ant-btn-primary,
  & .wws-wq-btn-primary.ant-btn,
  & .wws-wq-btn-place-order.ant-btn {
    background: #4888FF;

    border-color: #4888FF;

    color: #F0F2F6;

    &:not(:disabled):hover {
      background: #3473EA;

      border-color: #3473EA;
    }
  }

  & .ant-btn-dangerous:not(.ant-btn-primary) {
    color: #FF8E8E;

    &:not(:disabled):hover {
      border-color: #FF8E8E;

      color: #FF8E8E;
    }
  }

  & .ant-btn-link {
    min-height: 0;
    padding: 0;

    border: 0;

    color: #4888FF;
  }

  /* Etiquetas, filtros y estados */
  & .ant-tag {
    padding: 4px 10px;

    background: transparent;

    border: 1px solid #2A2E35;
    border-radius: 0;

    color: #B8BBC0;

    font-family: "Syne", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  & .wws-wq-filter-button {
    cursor: pointer;

    &:hover {
      border-color: #4888FF;

      color: #F0F2F6;
    }

    &.active {
      background: #4888FF;

      border-color: #4888FF;

      color: #F0F2F6;
    }
  }

  & .wws-wq-status-badge,
  & .wws-wq-status-tag {
    padding: 4px 10px;

    background: transparent !important;

    border: 1px solid currentColor !important;
    border-radius: 0 !important;

    color: #A1BEFF !important;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    &.status-approved,
    &.status-accepted,
    &.status-converted {
      color: #6FD39A !important;
    }

    &.status-declined,
    &.status-rejected,
    &.status-cancelled {
      color: #FF8E8E !important;
    }

    &.status-expired {
      color: #85898F !important;
    }

    &.status-pending {
      color: #FFC46B !important;
    }
  }

  /* Acciones de "Mis presupuestos" (ver / editar) */
  & .wws-wq-action-button.ant-btn {
    min-height: 34px;
    padding: 0 14px;

    border-color: #4888FF;

    color: #4888FF;

    font-size: 10px;

    &:not(:disabled):hover {
      background: #4888FF;

      color: #F0F2F6;
    }
  }

  /* Paginación */
  & .ant-pagination {
    & .ant-pagination-item,
    & .ant-pagination-prev .ant-pagination-item-link,
    & .ant-pagination-next .ant-pagination-item-link {
      background: transparent;

      border: 1px solid #2A2E35;
      border-radius: 0;

      color: #F0F2F6;
    }

    & .ant-pagination-item a {
      color: #F0F2F6;

      font-family: "Geist Mono", monospace;
    }

    & .ant-pagination-item-active {
      background: #4888FF;

      border-color: #4888FF;
    }
  }

  & .wws-wq-pagination-button {
    border-radius: 0;
  }

  /* Alertas */
  & .ant-alert {
    background: #181D24;

    border: 1px solid #2A2E35;
    border-left: 3px solid #4888FF;
    border-radius: 0;

    color: #F0F2F6;

    & .ant-alert-message {
      color: #F0F2F6;
    }

    & .ant-alert-description {
      color: #B8BBC0;
    }

    &.ant-alert-error {
      border-left-color: #FF8E8E;
    }

    &.ant-alert-warning {
      border-left-color: #FFC46B;
    }
  }

  & .ant-empty-description {
    color: #85898F;
  }

  /* "Aún no hay presupuestos": el a-empty entero es la tarjeta
     (icono y texto van en bloques hermanos) */
  & .ant-empty.wws-wq-empty-state {
    margin: 8px 0 0 0;
    padding: 48px 36px;

    background: #181D24;

    border: 1px solid #2A2E35;

    & .ant-empty-image {
      height: auto;
      margin: 0 0 20px 0;
    }

    & .ant-empty-description {
      margin: 0;
    }

    & .wws-wq-empty-state-card {
      padding: 0;

      background: transparent;

      border: 0;

      & p {
        margin: 0 0 28px 0;
      }
    }
  }

  /* Emoji 📋 sustituido por un icono de documento en el azul del tema */
  & .wws-wq-empty-state-icon {
    display: flex;
    justify-content: center;

    font-size: 0;

    &::before {
      content: "";

      display: block;

      width: 40px;
      height: 40px;

      background-color: #4888FF;

      -webkit-mask: url("../../../../plugins/woocommerce-wholesale-quotes/assets/images/quote.svg") center / contain no-repeat;
      mask: url("../../../../plugins/woocommerce-wholesale-quotes/assets/images/quote.svg") center / contain no-repeat;
    }
  }

  & .wws-wq-empty-state-button {
    min-height: 48px;
    padding: 0 28px;
  }

  & .wws-wq-quotes-filter {
    margin: 0 0 24px 0;
  }

  & .ant-divider {
    border-color: #2A2E35;
  }

  & .ant-spin-dot-item {
    background-color: #4888FF;
  }

  & .ant-badge-count {
    background: #4888FF;

    box-shadow: none;
  }

  /* Historial */
  & .ant-timeline-item-tail {
    border-color: #2A2E35;
  }

  & .ant-timeline-item-head {
    background: #0B0B0B;

    border-color: #4888FF;

    color: #4888FF;
  }

  & .wws-wq-history-date,
  & .wws-wq-history-meta {
    color: #85898F;

    font-family: "Geist Mono", monospace;
    font-size: 12px;
  }

  & .wws-wq-history-status {
    color: #F0F2F6;

    font-weight: 700;
  }

  & .wws-wq-history-notes {
    color: #B8BBC0;
  }

  /* Datos del presupuesto */
  & .wws-wq-meta-label {
    color: #A1BEFF;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  & .wws-wq-meta-value {
    color: #F0F2F6;
  }

  & .wws-wq-summary-row {
    border-color: #2A2E35;
  }

  & .wws-wq-summary-label {
    color: #85898F;
  }

  & .wws-wq-summary-value,
  & .wws-wq-summary-total .wws-wq-summary-value {
    color: #F0F2F6 !important;

    font-family: "Geist Mono", monospace;
  }

  & .wws-wq-address p,
  & .wws-wq-quote-notes {
    color: #B8BBC0;
  }

  & .wws-wq-product-name,
  & .wws-wq-item-name {
    color: #F0F2F6;

    font-weight: 700;
  }

  & .wws-wq-product-image,
  & .wws-wq-item-image {
    border-radius: 0;
  }
}

/* --- Mensajes del presupuesto --- */
.wws-wq-quote-messages {
  & .quote-messages {
    background: #181D24;

    border: 1px solid #2A2E35;
    border-radius: 0;
  }

  & .messages-header {
    border-bottom: 1px solid #2A2E35;
  }

  & .message-list {
    background: transparent;
  }

  & .message-item {
    background: #111419;

    border: 1px solid #2A2E35;
    border-radius: 0;

    &.own-message {
      background: rgba(72, 136, 255, 0.12);

      border-color: #4888FF;
    }
  }

  & .sender-name {
    color: #F0F2F6;

    font-weight: 700;
  }

  & .timestamp,
  & .character-count {
    color: #85898F;

    font-family: "Geist Mono", monospace;
    font-size: 11px;
  }

  & .character-count.over-limit {
    color: #FF8E8E;
  }

  & .unread-badge {
    background: #4888FF;
  }

  & .message-content {
    color: #F0F2F6;
  }

  & .empty-state {
    color: #85898F;
  }

  & .message-input {
    border-top: 1px solid #2A2E35;
  }
}

/* --- Ventanas de Ant Design (montadas en <body>) --- */
.ant-modal-root {
  & .ant-modal-mask {
    background: rgba(0, 0, 0, 0.75);
  }

  & .ant-modal-content {
    padding: 0;

    background: #0B0B0B;

    border: 1px solid #2A2E35;
    border-radius: 0;

    box-shadow: none;

    color: #B8BBC0;

    font-family: "Syne", sans-serif;
  }

  & .ant-modal-header {
    margin: 0;
    padding: 20px 24px;

    background: #181D24;

    border-bottom: 1px solid #2A2E35;
    border-radius: 0;
  }

  & .ant-modal-title,
  & .ant-modal-confirm-title {
    color: #F0F2F6 !important;

    font-family: "Unbounded", sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
  }

  & .ant-modal-body {
    padding: 24px;
  }

  & .ant-modal-confirm-body-wrapper {
    padding: 24px;
  }

  & .ant-modal-confirm-content {
    color: #B8BBC0 !important;
  }

  & .ant-modal-footer,
  & .ant-modal-confirm-btns {
    margin: 0;
    padding: 16px 24px;

    background: #181D24;

    border-top: 1px solid #2A2E35;
  }

  & .ant-modal-close {
    color: #F0F2F6;

    &:hover {
      background: transparent;

      color: #4888FF;
    }
  }

  /* Selector de productos */
  & .product-card {
    background: #111419;

    &:hover {
      border-color: #4888FF;
    }
  }

  & .product-name {
    color: #F0F2F6;
  }

  & .product-sku {
    color: #85898F;

    font-family: "Geist Mono", monospace;
  }
}

/* Subida de CSV */
.wws-wq-csv-upload {
  color: #B8BBC0;

  & .ant-upload-dragger,
  & .ant-upload.ant-upload-drag {
    background: #111419 !important;

    border: 1px dashed #2A2E35 !important;
    border-radius: 0 !important;

    &:hover {
      border-color: #4888FF !important;
    }
  }

  & .ant-upload-text {
    color: #F0F2F6 !important;
  }

  & .ant-upload-hint {
    color: #85898F !important;
  }
}


/* ========================================
   LISTA DE DESEOS (WebToffee Wishlist)
   Botón "Añadir a la lista de deseos" y tabla de Mi cuenta / [wt_mywishlist].
   Los iconos son <img> negros: se ocultan y se pinta un corazón con
   máscara para que tome el color del texto.
   ======================================== */

/* --- Botón en ficha y en listados --- */
body .single_product_div,
body .icon_after_add_to_cart {
  padding: 12px 0 0 0;

  & > a:has(.wt-wishlist-button) {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;

    color: #F0F2F6;

    font-family: "Syne", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;

    transition: color 0.2s;

    &::before {
      content: "";

      display: block;

      width: 18px;
      height: 18px;

      flex-shrink: 0;

      background-color: currentColor;

      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.3-9.4C1.4 7.6 3.6 4 7.2 4c2 0 3.6 1.1 4.8 2.8C13.2 5.1 14.8 4 16.8 4c3.6 0 5.8 3.6 4.5 7.1-1.8 4.8-9.3 9.4-9.3 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.3-9.4C1.4 7.6 3.6 4 7.2 4c2 0 3.6 1.1 4.8 2.8C13.2 5.1 14.8 4 16.8 4c3.6 0 5.8 3.6 4.5 7.1-1.8 4.8-9.3 9.4-9.3 9.4z'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    &:hover {
      color: #4888FF;
    }

    /* Ya está en la lista (el JS cambia data-action, no las clases) */
    &:has([data-action="remove"]) {
      color: #4888FF;

      &::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.3-9.4C1.4 7.6 3.6 4 7.2 4c2 0 3.6 1.1 4.8 2.8C13.2 5.1 14.8 4 16.8 4c3.6 0 5.8 3.6 4.5 7.1-1.8 4.8-9.3 9.4-9.3 9.4z'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.3-9.4C1.4 7.6 3.6 4 7.2 4c2 0 3.6 1.1 4.8 2.8C13.2 5.1 14.8 4 16.8 4c3.6 0 5.8 3.6 4.5 7.1-1.8 4.8-9.3 9.4-9.3 9.4z'/%3E%3C/svg%3E");
      }
    }

    /* Icono original del plugin (y su loader mientras guarda) */
    & img {
      display: none !important;
    }

    & .wt-wishlist-button {
      margin: 0;

      color: inherit;
    }
  }

  & .browse_wishlist a {
    color: #85898F;

    font-family: "Syne", sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;

    &:hover {
      color: #4888FF;
    }
  }

  & br {
    display: none;
  }
}

/* Modo "Botón normal" de los ajustes */
body button.wt-wishlist-button {
  min-height: 48px;
  padding: 0 24px;

  background: transparent !important;

  border: 1px solid #2A2E35 !important;
  border-radius: 0 !important;

  color: #F0F2F6 !important;

  font-family: "Syne", sans-serif;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;

  &:hover {
    border-color: #4888FF !important;
  }
}

/* Modo "Icono sobre la imagen" */
body .icon_above_image .wt-wishlist-button img {
  filter: invert(1);
}

/* --- Tabla de la lista de deseos --- */
body .wbte_wishlist_heading {
  margin: 0 0 24px 0;

  color: #F0F2F6;

  font-family: "Unbounded", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

body .bulk-add-wrapper {
  margin: 0 0 16px 0;

  & .bulk-add-btn {
    min-height: 44px;
    padding: 0 22px;

    background: #4888FF !important;

    border: 0;
    border-radius: 0 !important;

    color: #F0F2F6 !important;

    font-family: "Syne", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    &:hover {
      background: #3473EA !important;
    }
  }
}

body table.wt_frontend_wishlist_table {
  width: 100%;

  margin: 0;

  background: transparent;

  border: 1px solid #2A2E35;
  border-collapse: collapse;

  font-family: "Syne", sans-serif;

  & th {
    padding: 14px 16px;

    background: #181D24;

    border: 0;
    border-bottom: 1px solid #2A2E35;

    color: #85898F;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: left;
    text-transform: uppercase;
  }

  & td {
    padding: 16px;

    background: transparent;

    border: 0;
    border-bottom: 1px solid #2A2E35;

    color: #F0F2F6;

    vertical-align: middle;
  }

  & .col-image img {
    width: 72px;
    height: auto;

    border-radius: 0;
  }

  & .col-name {
    & a {
      color: #F0F2F6;

      font-size: 14px;
      font-weight: 700;
      text-decoration: none;

      &:hover {
        color: #4888FF;
      }
    }

    & dl.variation {
      margin: 6px 0 0 0;

      color: #85898F;

      font-size: 11px;
    }
  }

  & .col-price,
  & .col-date {
    font-family: "Geist Mono", monospace;
    font-size: 12px;

    & del {
      color: #85898F;
    }

    & ins {
      text-decoration: none;
    }
  }

  & .stock-badge {
    display: inline-block;

    padding: 4px 10px;

    background: transparent;

    border: 1px solid currentColor;
    border-radius: 0;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    &.in {
      color: #6FD39A;
    }

    &.out {
      color: #FF8E8E;
    }
  }

  /* Quitar: el icono es un PNG, se sustituye por una X */
  & .col-remove {
    width: 48px;

    & .remove-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;

      width: 32px;
      height: 32px;

      border: 1px solid #2A2E35;

      color: #85898F;

      transition: border-color 0.2s, color 0.2s;

      &::before {
        content: "";

        display: block;

        width: 12px;
        height: 12px;

        background-color: currentColor;

        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1l10 10M11 1L1 11'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1l10 10M11 1L1 11'/%3E%3C/svg%3E") center / contain no-repeat;
      }

      &:hover {
        border-color: #FF8E8E;

        color: #FF8E8E;
      }

      & i {
        position: absolute;
        inset: 0;

        opacity: 0;
      }

      & img {
        display: none;
      }
    }
  }

  & .remove-link {
    position: relative;
  }

  & .col-action {
    text-align: right;

    & .button {
      min-height: 40px;
      padding: 0 16px;

      background: transparent !important;

      border: 1px solid #4888FF !important;
      border-radius: 0 !important;

      color: #4888FF !important;

      font-family: "Syne", sans-serif;
      font-size: 10px !important;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
      white-space: nowrap;

      transition: background 0.2s, color 0.2s;

      &:hover {
        background: #4888FF !important;

        color: #F0F2F6 !important;
      }
    }
  }

  @media (max-width: 768px) {
    border: 0;

    & .wishlist-row {
      margin: 0 0 12px 0;
      padding: 16px;

      background: #181D24;

      border: 1px solid #2A2E35;
    }

    & td {
      padding: 6px 0;

      border: 0;
    }

    & .col-remove {
      top: 12px;
      right: 12px;
    }

    & .col-action {
      text-align: left;

      & .button {
        width: 100%;
      }
    }
  }
}

/* Lista vacía (el plugin solo pinta un <h3> centrado) */
.e-my-account-tab__webtoffee-wishlist .woocommerce-MyAccount-content > h3,
.woocommerce-MyAccount-content:has(> .wbte_wishlist_heading) > h3 {
  padding: 48px 24px;

  background: #181D24;

  border: 1px solid #2A2E35;

  color: #85898F !important;

  font-family: "Syne", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
}

/* Aviso "Producto(s) añadido(s) al carrito" */
body .eh_msg_div {
  padding: 14px 20px !important;

  background: #181D24 !important;

  border: 1px solid #2A2E35 !important;
  border-left: 3px solid #4888FF !important;
  border-radius: 0 !important;

  color: #F0F2F6 !important;

  font-family: "Syne", sans-serif;
  font-size: 13px;
  font-weight: 600;
}
