/* Allarga il contenitore del form */
    form.checkout_coupon,
    .woocommerce-form-coupon {
        width: 100% !important;
    }

    /* Imposta l'input e bottone uno sotto l'altro */
    form.checkout_coupon p.form-row,
    .woocommerce-form-coupon p.form-row {
        width: 100% !important;
        float: none !important;
        margin-bottom: 10px !important;
    }

    /* Input coupon full width */
    form.checkout_coupon input#coupon_code {
        width: 100% !important;
        padding: 10px !important;
        font-size: 16px !important;
    }

    /* Bottone Applica full width */
    form.checkout_coupon button.button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important;
        border-radius: 6px !important;
    }

/* Nasconde la label */
    form.checkout_coupon label[for="coupon_code"] {
        display: none !important;
    }


p.form-row.mailchimp-newsletter {
            display: none !important;
        }


p.form-row.create-account {
            display: none !important;
        }


.woocommerce-notices-wrapper {
                display: none !important;
            }


        /* Elimina completamente ogni stile nativo del tema o di WooCommerce */
        .woocommerce a.remove,
        .woocommerce a.remove:before,
        .woocommerce a.remove:after,
        .woocommerce-checkout-review-order-table a.remove-inline,
        .woocommerce-checkout-review-order-table a.remove-inline:before,
        .woocommerce-checkout-review-order-table a.remove-inline:after {
            content: none !important;
            background: none !important;
            background-image: none !important;
            border: none !important;
            box-shadow: none !important;
            outline: none !important;
            text-indent: 0 !important;
            width: auto !important;
            height: auto !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        /* Icona cestino pulita, centrata e fluida */
        .woocommerce-checkout-review-order-table a.remove-final {
            font-size: 13px !important;
            margin-left: 6px !important;
            color: #666 !important;
            text-decoration: none !important;
            background: transparent !important;
            line-height: 1 !important;
            vertical-align: middle !important;
            transition: color 0.15s ease-in-out, transform 0.15s ease-in-out !important;
        }

        /* Hover fluido e leggero */
        .woocommerce-checkout-review-order-table a.remove-final:hover {
            color: #222 !important;
            transform: scale(1.1);
        }

        /* Focus tastiera accessibile */
        .woocommerce-checkout-review-order-table a.remove-final:focus-visible {
            outline: 2px solid #9aa4b2 !important;
            outline-offset: 2px !important;
        }

        /* Riduzione dimensioni su schermi piccoli */
        @media (max-width: 480px) {
            .woocommerce-checkout-review-order-table a.remove-final {
                font-size: 11px !important;
                margin-left: 4px !important;
            }
        }


        /* Nessuno sfondo per la riga sconto */
        .woocommerce-checkout-review-order-table tfoot tr.fee {
            background-color: transparent !important;
        }

        /* Testo e importo verdi */
        .woocommerce-checkout-review-order-table tfoot tr.fee th,
        .woocommerce-checkout-review-order-table tfoot tr.fee td,
        .woocommerce-checkout-review-order-table tfoot tr.fee .woocommerce-Price-amount {
            color: #2e7d32 !important; /* verde scuro */
            font-weight: 700 !important;
        }


        .ltb-continue-shopping-wrap .ltb-continue-shopping{
            width: 100% !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 12px 18px !important;
            border-radius: 6px !important;
            margin-bottom: 35px !important;

            background: #BBE6B9 !important;          /* verde base */
            border: 1px solid #9CCF9F !important;
            color: #1f3b22 !important;

            font-weight: 700 !important;
            text-decoration: none !important;

            transition: 
                background-color 0.2s ease,
                box-shadow 0.2s ease,
                transform 0.15s ease;
        }

        /* Hover light, elegante */
        .ltb-continue-shopping-wrap .ltb-continue-shopping:hover{
            background: #eaf6ea !important;          /* bianco/verde chiarissimo */
            box-shadow: 0 0 0 2px rgba(255,255,255,0.6) inset;
            transform: translateY(-1px);
        }

        /* Focus tastiera (accessibilità) */
        .ltb-continue-shopping-wrap .ltb-continue-shopping:focus-visible{
            outline: none !important;
            box-shadow: 0 0 0 3px rgba(156,207,159,0.6);
        }


        /* --- BASE TABELLA: ritmo e allineamento --- */
        .woocommerce-checkout-review-order-table{
            border-collapse: collapse !important;
        }

        .woocommerce-checkout-review-order-table tbody tr.cart_item td{
            padding-top: 14px !important;
            padding-bottom: 14px !important;
            vertical-align: top !important;
        }

        /* line-height uniforme per evitare “balli” */
        .woocommerce-checkout-review-order-table tbody tr.cart_item td,
        .woocommerce-checkout-review-order-table tbody tr.cart_item td *{
            line-height: 1.35 !important;
        }

        /* --- CELLA PRODOTTO: nome a sinistra, quantità in colonna, tutto allineato --- */
        .woocommerce-checkout-review-order-table td.product-name{
            display: flex !important;
            align-items: flex-start !important;
            justify-content: space-between !important;
            gap: 12px !important;
        }

        /* Nome prodotto: più pulito, va a capo bene */
        .woocommerce-checkout-review-order-table td.product-name{
            padding-right: 10px !important;
        }

        .woocommerce-checkout-review-order-table td.product-name .product-quantity{
            flex: 0 0 34px !important; /* colonnina “x1” sempre uguale */
            text-align: right !important;
            white-space: nowrap !important;
            margin: 0 !important;
            opacity: 0.85;
        }

        /* Nome link più leggibile */
        .woocommerce-checkout-review-order-table td.product-name a{
            text-decoration: none !important;
        }

        /* --- COLONNA PREZZO: allineata, niente salti --- */
        .woocommerce-checkout-review-order-table td.product-total{
            text-align: right !important;
            white-space: nowrap !important;
            padding-left: 10px !important;
        }

        /* Importo: stessa larghezza minima così resta “in colonna” */
        .woocommerce-checkout-review-order-table td.product-total .woocommerce-Price-amount{
            display: inline-block !important;
            min-width: 72px !important;
            text-align: right !important;
        }

        /* --- FOOTER (subtotal, totale): respiro uguale --- */
        .woocommerce-checkout-review-order-table tfoot tr th,
        .woocommerce-checkout-review-order-table tfoot tr td{
            padding-top: 12px !important;
            padding-bottom: 12px !important;
            vertical-align: middle !important;
        }

        /* Linea di separazione soft tra prodotti e totali */
        .woocommerce-checkout-review-order-table tfoot tr:first-child th,
        .woocommerce-checkout-review-order-table tfoot tr:first-child td{
            border-top: 1px solid rgba(0,0,0,0.08) !important;
        }

        /* --- MOBILE: mantieni leggibilità senza schiacciare troppo --- */
        @media (max-width: 480px) {
            .woocommerce-checkout-review-order-table tbody tr.cart_item td{
                padding-top: 12px !important;
                padding-bottom: 12px !important;
            }
            .woocommerce-checkout-review-order-table td.product-name .product-quantity{
                flex-basis: 30px !important;
            }
            .woocommerce-checkout-review-order-table td.product-total .woocommerce-Price-amount{
                min-width: 62px !important;
            }
        }


    #termini_condizioni_vendita_field {
        display: flex;
        align-items: center;
    }
    #termini_condizioni_vendita_field .woocommerce-input-wrapper {
        display: flex;
        align-items: center;
    }
    #termini_condizioni_vendita_field .woocommerce-input-wrapper input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        vertical-align: middle;
        position: relative;
        top: 0px;
    }
    #termini_condizioni_vendita_field label {
        display: flex;
        align-items: center;
        line-height: 1.2;
    }


    .woocommerce-checkout-review-order {
        padding: 30px !important;
    }


    .woocommerce-info {
        background-color: #BBE6B9 !important;
        border-color: #9CCF9F !important;
        color: #333 !important;
    }
    .woocommerce-info::before {
        color: #4F8A56 !important;
    }


    .checkout-button.button.alt.wc-forward {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        padding: 12px 20px !important;
        line-height: 1.2 !important;
    }


            .woocommerce-cart .actions,
            .woocommerce-cart .cart-subtotal,
            .woocommerce-cart .ppc-button-wrapper,
            .woocommerce-cart .product-quantity,
            .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal {
                display: none !important;
            }


            .woocommerce-checkout-review-order-table tfoot tr.order-total th,
            .woocommerce-checkout-review-order-table tfoot tr.order-total td {
                font-weight: bold !important;
            }


/* === Password toggle: testo al posto dell'icona === */
.woocommerce .woocommerce-input-wrapper.password-input{
  position: relative !important;
}

.woocommerce .woocommerce-input-wrapper.password-input input{
  padding-right: 96px !important; /* spazio per bottone testo */
}

/* Bottone (al posto dell'occhio) */
.woocommerce .woocommerce-input-wrapper.password-input .show-password-input{
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  /* reset tema (quel rettangolo blu) */
  background: transparent !important;
  border: 1px solid rgba(0,0,0,0.18) !important;
  border-radius: 6px !important;
  padding: 0 10px !important;
  height: 32px !important;
  min-width: 78px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  cursor: pointer !important;
  z-index: 10 !important;
}

/* Testo */
.woocommerce .woocommerce-input-wrapper.password-input .show-password-input::before{
  content: "Mostra" !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #333 !important;
}

/* Quando la password è visibile (Woo aggiunge .display-password) */
.woocommerce .woocommerce-input-wrapper.password-input .show-password-input.display-password::before{
  content: "Nascondi" !important;
}

/* Hover leggero */
.woocommerce .woocommerce-input-wrapper.password-input .show-password-input:hover{
  background: rgba(0,0,0,0.04) !important;
}

}
