.elementor-5987 .elementor-element.elementor-element-2946ee41{--display:flex;--padding-top:3em;--padding-bottom:2em;--padding-left:0em;--padding-right:0em;}@media(max-width:767px){.elementor-5987 .elementor-element.elementor-element-76200466{padding:0px 10px 0px 10px;}}/* Start custom CSS *//* =====================================================
   FARWAY WISHLIST — Custom styling YITH WooCommerce
   Da incollare in: Personalizza > CSS aggiuntivo
   oppure in un PHP snippet tramite wp_head / wp_enqueue_style
   ===================================================== */

/* Override variabili colore del plugin */
.yith-wcwl-main,
.yith-wcwl-form {
  --color-wishlist-table-background: #ffffff;
  --color-wishlist-table-text: #1a1a1a;
  --color-wishlist-table-border: #e4e4e0;
  --color-headers-background: #0b5066;
}

/* Font base */
.yith-wcwl-main,
.yith-wcwl-form {
  font-family: 'Open Sans', sans-serif;
  color: #1a1a1a;
}

/* ---- TABELLA ---- */
.wishlist_table,
.yith-wcwl-wishlist-table,
.woocommerce-wishlist-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e4e4e0;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  font-size: 14px;
}

/* ---- INTESTAZIONE ---- */
.wishlist_table thead,
.yith-wcwl-wishlist-table thead,
.woocommerce-wishlist-table thead {
  background: #0b5066;
}

.wishlist_table thead th,
.yith-wcwl-wishlist-table thead th,
.woocommerce-wishlist-table thead th {
  padding: 14px 16px;
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none !important;
  text-align: left;
  white-space: nowrap;
}

/* Colonne senza testo: aggiungo etichetta via ::before */
.wishlist_table th.product-remove::before,
.yith-wcwl-wishlist-table th.product-remove::before {
  content: "Rimuovi";
}

.wishlist_table th.product-thumbnail::before,
.yith-wcwl-wishlist-table th.product-thumbnail::before {
  content: "Prodotto";
}

.wishlist_table th.product-add-to-cart::before,
.yith-wcwl-wishlist-table th.product-add-to-cart::before {
  content: "Acquista";
}

/* ---- RIGHE CORPO ---- */
.wishlist_table tbody tr,
.yith-wcwl-wishlist-table tbody tr {
  transition: background 0.15s ease;
}

.wishlist_table tbody tr:hover,
.yith-wcwl-wishlist-table tbody tr:hover {
  background: #f6f6f4;
}

.wishlist_table tbody td,
.yith-wcwl-wishlist-table tbody td {
  padding: 16px;
  vertical-align: middle;
  border: none !important;
  border-bottom: 1px solid #e4e4e0 !important;
}

.wishlist_table tbody tr:last-child td,
.yith-wcwl-wishlist-table tbody tr:last-child td {
  border-bottom: none !important;
}

/* ---- IMMAGINE PRODOTTO ---- */
.wishlist_table .product-thumbnail,
.yith-wcwl-wishlist-table .product-thumbnail {
  width: 90px;
}

.wishlist_table .product-thumbnail img,
.yith-wcwl-wishlist-table .product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e4e4e0;
  display: block;
}

/* ---- NOME PRODOTTO ---- */
.wishlist_table .product-name a,
.yith-wcwl-wishlist-table .product-name a {
  color: #1a1a1a;
  text-decoration: none;
  font-family: 'Cardo', serif;
  font-size: 17px;
  line-height: 1.3;
}

.wishlist_table .product-name a:hover,
.yith-wcwl-wishlist-table .product-name a:hover {
  color: #0b5066;
}

/* ---- PREZZO ---- */
.wishlist_table .product-price,
.yith-wcwl-wishlist-table .product-price {
  color: #0b5066;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.wishlist_table .product-price .amount,
.yith-wcwl-wishlist-table .product-price .amount {
  color: #0b5066;
}

/* ---- DISPONIBILITÀ ---- */
.wishlist_table .wishlist-in-stock,
.yith-wcwl-wishlist-table .wishlist-in-stock {
  color: #39666D;
  font-size: 13px;
  font-weight: 500;
}

.wishlist_table .wishlist-out-of-stock,
.yith-wcwl-wishlist-table .wishlist-out-of-stock {
  color: #c9a4a0;
  font-size: 13px;
}

/* ---- PULSANTE AGGIUNGI AL CARRELLO ---- */
.wishlist_table .product-add-to-cart .button,
.yith-wcwl-wishlist-table .product-add-to-cart .button,
.wishlist_table .add_to_cart_button,
.yith-wcwl-wishlist-table .add_to_cart_button {
  background: #0b5066 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 10px 18px !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  border-radius: 4px !important;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.wishlist_table .product-add-to-cart .button:hover,
.yith-wcwl-wishlist-table .product-add-to-cart .button:hover,
.wishlist_table .add_to_cart_button:hover,
.yith-wcwl-wishlist-table .add_to_cart_button:hover {
  background: #39666D !important;
  color: #ffffff !important;
}

/* ---- PULSANTE RIMUOVI ---- */
.wishlist_table .product-remove,
.yith-wcwl-wishlist-table .product-remove {
  text-align: center;
  width: 52px;
}

.wishlist_table .remove_from_wishlist,
.yith-wcwl-wishlist-table .remove_from_wishlist {
  color: #6b6d70 !important;
  font-size: 16px;
  text-decoration: none !important;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e4e4e0 !important;
  background: transparent !important;
}

.wishlist_table .remove_from_wishlist:hover,
.yith-wcwl-wishlist-table .remove_from_wishlist:hover {
  color: #c9a4a0 !important;
  border-color: #c9a4a0 !important;
}

/* ---- STATO WISHLIST VUOTA ---- */
.wishlist_table .wishlist-empty td,
.yith-wcwl-wishlist-table .wishlist-empty td,
.yith-wcwl-wishlist-empty {
  text-align: center !important;
  padding: 48px 24px !important;
  color: #6b6d70;
  font-size: 14px;
  font-style: italic;
  border: none !important;
}

/* ---- SEZIONE CONDIVISIONE ---- */
.yith-wcwl-share {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e4e4e0;
  font-size: 13px;
  color: #6b6d70;
}

/* ---- MOBILE ----
   WooCommerce shop_table_responsive converte automaticamente le colonne
   in righe con label da data-title. Lavoriamo con questo meccanismo.
   -------------------------------------------------------------------- */
@media (max-width: 768px) {

  /* Evita overflow orizzontale */
  .yith-wcwl-main,
  .yith-wcwl-form {
    overflow-x: hidden;
  }

  /* Tabella → block per rompere il layout table nativo */
  .wishlist_table,
  .yith-wcwl-wishlist-table {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
  }

  .wishlist_table tbody,
  .yith-wcwl-wishlist-table tbody {
    display: block;
    width: 100%;
  }

  /* Nascondo intestazione (le label vengono da data-title via ::before) */
  .wishlist_table thead,
  .yith-wcwl-wishlist-table thead {
    display: none;
  }

  /* Ogni riga diventa una card */
  .wishlist_table tbody tr,
  .yith-wcwl-wishlist-table tbody tr {
    display: block;
    background: #ffffff;
    border: 1px solid #e4e4e0 !important;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
  }

  /* Celle: layout label + valore affiancati */
  .wishlist_table tbody td,
  .yith-wcwl-wishlist-table tbody td {
    display: flex;
    align-items: center;
    border-bottom: none !important;
    padding: 5px 0;
    font-size: 14px;
  }

  /* Label generata da WooCommerce tramite data-title */
  .wishlist_table tbody td::before,
  .yith-wcwl-wishlist-table tbody td::before {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b6d70;
    min-width: 110px;
    flex-shrink: 0;
  }

  /* ---- Pulsante RIMUOVI — angolo in alto a destra ---- */
  .wishlist_table tbody td.product-remove,
  .yith-wcwl-wishlist-table tbody td.product-remove {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 0;
    width: auto;
    border: none;
    text-align: right;
  }

  .wishlist_table tbody td.product-remove::before,
  .yith-wcwl-wishlist-table tbody td.product-remove::before {
    display: none;
  }

  /* ---- Immagine — senza label, a tutta larghezza ---- */
  .wishlist_table tbody td.product-thumbnail,
  .yith-wcwl-wishlist-table tbody td.product-thumbnail {
    justify-content: flex-start;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid #e4e4e0 !important;
  }

  .wishlist_table tbody td.product-thumbnail::before,
  .yith-wcwl-wishlist-table tbody td.product-thumbnail::before {
    display: none;
  }

  .wishlist_table tbody td.product-thumbnail img,
  .yith-wcwl-wishlist-table tbody td.product-thumbnail img {
    width: 80px;
    height: 80px;
  }

  /* ---- Nome prodotto — grande, senza label ---- */
  .wishlist_table tbody td.product-name,
  .yith-wcwl-wishlist-table tbody td.product-name {
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e4e4e0 !important;
  }

  .wishlist_table tbody td.product-name::before,
  .yith-wcwl-wishlist-table tbody td.product-name::before {
    display: none;
  }

  .wishlist_table tbody td.product-name a,
  .yith-wcwl-wishlist-table tbody td.product-name a {
    font-size: 16px;
    padding-right: 36px; /* spazio per il bottone rimuovi */
  }

  /* ---- Aggiungi al carrello — full width, ultimo ---- */
  .wishlist_table tbody td.product-add-to-cart,
  .yith-wcwl-wishlist-table tbody td.product-add-to-cart {
    display: block;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #e4e4e0 !important;
  }

  .wishlist_table tbody td.product-add-to-cart::before,
  .yith-wcwl-wishlist-table tbody td.product-add-to-cart::before {
    display: none;
  }

  .wishlist_table tbody td.product-add-to-cart .button,
  .yith-wcwl-wishlist-table tbody td.product-add-to-cart .button {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    padding: 13px !important;
  }
}/* End custom CSS */