/*
 Theme Name:  Pescafish Child
 Theme URI:   https://pescafish.it
 Description: Child theme per personalizzazioni WooCommerce + Avada
 Author:      Pescafish
 Version:     1.0.0
 Template:    Avada
*/

/* === Generali === */
:root {}

/* === Checkout: nascondi toggle nativo "Spedisci a un indirizzo diverso?" === */
#ship-to-different-address { display: none !important; }

/* Checkbox "Usa dati di fatturazione" spacing */
#use_billing_for_shipping_field { margin: .5rem 0; }

/* === Carrello: usa solo il contenuto reale della cella Spedizione === */
.woocommerce-cart .cart_totals tr.shipping td::before,
.woocommerce-cart .fusion-woo-cart-totals tr.shipping td::before,
.woocommerce-cart .cart_totals table.shop_table tr.shipping td::before,
.woocommerce-cart .fusion-woo-cart-totals table.shop_table tr.shipping td::before {
  content: none !important;
  display: none !important;
}

.woocommerce-cart .cart_totals tr.shipping td > *,
.woocommerce-cart .fusion-woo-cart-totals tr.shipping td > * {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Allineamento a destra delle colonne importi */
.woocommerce-cart .cart_totals tr.cart-subtotal td,
.woocommerce-cart .cart_totals tr.shipping td,
.woocommerce-cart .cart_totals tr.order-total td {
  text-align: right;
}

/* CHECKOUT — Order Review: etichette a sinistra, importi a destra */
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th {
  text-align: left !important; /* Totale parziale, Spedizione, Totale */
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
  text-align: right !important; /* i relativi importi */
}

/* Allinea anche le righe prodotti: descrizione a sinistra, subtotale a destra */
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-name {
  text-align: left !important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-total {
  text-align: right !important;
}


/* CHECKOUT — nascondi SOLO l'header "Totale parziale" a destra */
.woocommerce-checkout .woocommerce-checkout-review-order-table thead th.product-total {
  visibility: hidden;   /* mantiene l'allineamento della colonna */
}

/* (copertura Avada, se usa una classe diversa sul table) */
.woocommerce-checkout .fusion-woo-order-review thead th.product-total {
  visibility: hidden;
}
