
.woocommerce-checkout .woocommerce-cart-form table.shop_table th,
.woocommerce-checkout .woocommerce-cart-form table.shop_table td{
    text-align: center;
}


.woocommerce-checkout .woocommerce-cart-form table.shop_table th.product-name,
.woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-name{
    text-align: left;
}


.woocommerce-checkout .woocommerce-cart-form table.shop_table th.product-subtotal,
.woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-subtotal {
    text-align: right;
}
    

.woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-cart-total,
.woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-cart-total .woocommerce-Price-amount.amount{
    font-weight: bold !important;
}
    

.woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-cart-total .woocommerce-Price-amount.amount{
    margin-left: 20px;
}

.woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-cart-total {
    padding-top: 40px;
    padding-bottom: 0px;
    padding-right: 10px;
}



.woocommerce-checkout .woocommerce-cart-form table.shop_table tr .product-quantity:has(input[type="hidden"]) {
    position: relative;
}

.woocommerce-checkout .woocommerce-cart-form table.shop_table tr .product-quantity:has(input[type="hidden"])::before {
    content: "1";
    display: block;
    text-align: center;
}

/* Nascondi il div quantity con l'input hidden */
.woocommerce-checkout .woocommerce-cart-form table.shop_table tr .product-quantity:has(input[type="hidden"]) .quantity {
    display: none;
}





/* Per assicurarci che l'icona X sia centrata */
.woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-remove a {
    color: #9ca3af;
    font-size: 1.25rem;         
    text-decoration: none;      
    display: flex;              /* Aiuta con il centraggio */
    align-items: center;        /* Centra verticalmente il contenuto */
    height: 100%;              
}

    

/* Rimuovi il cerchio intorno alla X */
.woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-remove a.remove {
    border: none !important;           /* Rimuove il bordo */
    background: none !important;       /* Rimuove lo sfondo */
    width: auto !important;           /* Rimuove la larghezza fissa */
    height: auto !important;          /* Rimuove l'altezza fissa */
    line-height: 1 !important;        /* Resetta line-height */
    border-radius: 0 !important;      /* Rimuove il border-radius */
}
    
    
.woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-remove a.remove .ahfb-svg-iconset {
    transform: scale(1);
}
    
    

 /* Rimuovi il cerchio intorno alla X */
.woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-remove a.remove:before {
     border: none !important;
}

/* Rimuovi hover effects */
.woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-remove a.remove:hover {
     background: none !important;
     color: #4a5568 !important;        /* Colore più scuro per hover */
}
    
.woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-remove a {
    color: #9ca3af;
 }
    




/* PERSONALIZZO CHECKOUT*/

/* Nascondo campi per personalizzazione Checkout */
.woocommerce .event-custom-price {
    display: none;
}


/* Nascondo Informazioni aggiuntive prodotti*/
dl.variation {
    display: none !important;
}





/*Bottoni */
.woocommerce .button {
    margin-left: 0px !important;
}



.woocommerce input[name="coupon_code"] {
    padding: 24px !important;
    border: 1px solid #dddddd !important;
    font-size: 25px !important;
    text-transform: none !important;
    max-height: none !important;
    margin-right: 10px !important;
    background-color: #fff !important;
    float: none !important;
}


 .woocommerce input[name="coupon_code"]::placeholder {
    opacity: 0.7 !important;
}



.woocommerce button[name="apply_coupon"] {
    float: none !important;
}


.woocommerce .cart td.actions {
    text-align: center !important;
}

.woocommerce .cart td.actions .coupon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    float: none !important;
    margin: 0 auto !important;
}



@media screen and (max-width: 921px) {
   .woocommerce .cart td.actions .coupon {
       flex-direction: column !important;
   }

   .woocommerce input[name="coupon_code"] {
    margin-right: 0 !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    text-align: center !important;
   }

   .woocommerce button[name="apply_coupon"] {
       width: 100% !important;
   }
    
    .woocommerce input[name="coupon_code"]::placeholder {
       text-align: center !important;
   }
}


/* Gestione pagamenti Apple Google */

#wc-stripe-payment-request-wrapper {
    width: 50% !important;
    margin: auto !important;
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}



/* GESTIONE CAMPI FATTURAZIONE */

.woocommerce-billing-fields__field-wrapper input,
.select2-selection.select2-selection--single {
        margin: 10px 0 !important;
    
}


/* Posizionamento relativo per il contenitore del campo */
.woocommerce-billing-fields__field-wrapper .form-row {
    position: relative;

}

/* Stile base per i campi input e select */
.woocommerce-billing-fields__field-wrapper input,
.woocommerce-billing-fields__field-wrapper select {
    padding-right: 30px !important; /* Spazio per l'asterisco */
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Asterisco per i campi obbligatori */
.field-required::after {
    content: '*' !important;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #8C3730;
    font-size: 30px;
    font-weight: bold;
    pointer-events: none; /* L'asterisco non interferisce con l'input */
    z-index: 1;
}

/* Placeholder */
.woocommerce-billing-fields__field-wrapper input::placeholder {
      opacity: 0.7;

}


/* Modifico checkbox per optin in checkout */
.woocommerce-form__input-checkbox {
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
}

.woocommerce-form__label-for-checkbox {
    margin: 30px 0 !important;
    display: block !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 28px !important;
}





.woocommerce-additional-fields h3 {
    border: 0 !important;
    padding: 0 !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}


label[for="order_comments"] {
  display: none !important;
}


textarea#order_comments {
    height: 150px !important;
    min-height: 150px !important;
}




/*Gestione Tabella Zahlungsoptionen*/
.woocommerce .moduleBannerAZZ {
    color: #6F7A8A !important;
}

.woocommerce h2.moduleBannerAZZ {
    margin-bottom: 0px !important;
    padding-left: 40px !important;
    padding-top: 40px !important;
}


@media (max-width: 921px) {
    .woocommerce h2.moduleBannerAZZ {
        text-align: center !important;
    }
    
    .woocommerce-billing-fields h2 {
        padding-right: 10px !important;
        padding-left: 10px !important;
        text-align: center !important;
    }
}



.woocommerce-checkout-review-order {
    padding-bottom: 40px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-bottom: 100px !important;
}

.woocommerce-checkout-review-order .cart_item {
    display: none !important;
}

.woocommerce-checkout-review-order-table thead {
    display: none !important;
}

.site-content .woocommerce ul {
    margin:0px !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}






/* MODIFICO METODI DI PAGAMENTO */
.woocommerce fieldset {
    border: 0 !important;
    padding: 0 !important;
}


 .woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}


.woocommerce-checkout #payment div.payment_box {
    margin: 0 !important;
}


.woocommerce-page.woocommerce-checkout #payment div.payment_box {
    background-color:  #ffffff  !important;
    border: 0 !important;
}







/* Stile per il contenitore del metodo di pagamento - stato non selezionato */

.wc_payment_method {
    position: relative;
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Imposta opacità 50% per i metodi non selezionati */
.wc_payment_method > label {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 20px 20px 70px;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    background-color: rgba(255, 255, 255, 0.5);
}

/* Nascondi il radio button originale */
.wc_payment_method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* Stile per il toggle switch */
.wc_payment_method > label::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Pallino dello switch */
.wc_payment_method > label::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Stile per lo switch quando selezionato */
.wc_payment_method input[type="radio"]:checked + label::before {
    background-color: #4A90E2;
}

.wc_payment_method input[type="radio"]:checked + label::after {
    transform: translate(20px, -50%);
}

/* Stile quando selezionato - background bianco pieno */
.wc_payment_method input[type="radio"]:checked + label {
    background-color: #FFFFFF !important;
}

/* Box del contenuto del pagamento */
.payment_box {
    padding: 20px;
    background-color: #FFFFFF;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

/* Stile per le icone dei metodi di pagamento */
.payment_method_paypal img,
.payment_method_klarna img {
    max-height: 30px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Effetto hover */
.wc_payment_method:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Assicurati che la checkbox per salvare le informazioni mantenga il suo stile originale */
input[type="checkbox"] + label::before,
input[type="checkbox"] + label::after {
    display: none;
}









/*Bottone CHECKOUT */
.woocommerce .checkout .button[name="woocommerce_checkout_place_order"] {
    background-color: #8C3730;
    color: #FBFBFB;
    border-width: 0px !important;
    margin-top: 50px;
}

.woocommerce .checkout .button[name="woocommerce_checkout_place_order"]:hover {
    background-color: #8C3730;
}









/* Rimuove i bordi dalla tabella del carrello */
table.shop_table {
    border-collapse: collapse; /* Assicura che i bordi siano uniti */
    border: none !important; /* Rimuove i bordi dalle celle della tabella */
}

.shop_table th,
.shop_table td {
    border: none; /* Rimuove i bordi dalle celle della tabella */
    padding-left: 0px !important;
}

.woocommerce-cart-form__contents {
    border: none; /* Rimuove i bordi dalla tabella del contenuto del carrello */
}

.woocommerce-cart-form__items {
    border: none; /* Rimuove i bordi dalla sezione degli articoli del carrello */
}




/*Gestione messaggi di errore e avvisi*/

.site-content .woocommerce ul.woocommerce-error {
    background-color: #9E1A1F !important;
    border: 0 !important;
    color: #fbfbfb !important;
    padding: 20px !important;
    margin-bottom: 40px !important;
    text-align: center;
}



.site-content .woocommerce .woocommerce-message {
    background-color: #f2f2f2 !important;
    border: 0 !important;
    padding: 20px !important;
    text-align: center;
}


.site-content .woocommerce .woocommerce-message a{
   display: none;
}


.site-content .woocommerce ul.woocommerce-error::before,
.site-content .woocommerce .woocommerce-message::before{
    content: none;
}


/* PERSONALIZZO POST-CHECKOUT*/


h2.woocommerce-order-details__title,
.woocommerce-customer-details h2.woocommerce-column__title,
.woocommerce-customer-details address {
    padding: 0 !important;
    border: 0 !important;
}


h2.woocommerce-order-details__title{
    display: none;
}

.site-content .woocommerce ul.woocommerce-order-overview{
    margin: 50px 0 !important;
}


.site-content .woocommerce .woocommerce-table--order-details{
    margin: 0 !important;
}


.site-content .woocommerce .order-again{
    display: none;
}



 .woocommerce-order-overview li {
        border-right: 1px solid #dddddd !important; 
}


 .woocommerce-order-overview li:last-child  {
        border-right: 0 !important; 
}



/** VERSIONE MOBILE **/


@media screen and (max-width: 921px) { 
   
    
    
    /* Nascondi gli header della tabella su mobile/tablet */
    .woocommerce-checkout .woocommerce-cart-form table.shop_table thead {
        display: none;
    }
    
    

    .woocommerce table.shop_table_responsive tr td::before, .woocommerce-page table.shop_table_responsive tr td::before {
        content: attr(data-title);
    }


    /* Converti le righe della tabella in card */
    .woocommerce-checkout .woocommerce-cart-form table.shop_table tr {
        display: block;
        position: relative;   
        margin-bottom: 30px; 
        padding-bottom: 20px;        
        border-bottom: 1px solid #dddddd; 
    }
    
    /* Rimuovi margin e padding per tr che contiene product-cart-total */
    .woocommerce-checkout .woocommerce-cart-form table.shop_table tr:has(.product-cart-total) {
    margin-bottom: 0;
    padding-bottom: 0;
}
    

        .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-cart-buchungscode {
        margin-top: -50px; 
    }
    

    /* Resetta le celle della tabella */
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td {
        display: block;
        width: auto;
        border: none;
        text-align: left !important;
        font-size: 18px;
    }
    
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td::before {
        display: none;
    }

    
    
    /* Layout prodotto con immagine e dettagli */
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-thumbnail {
        width: 80px;
        float: left;
        padding-right: 1em;
    }

    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-thumbnail img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        max-width: 80px !important;
    }

    /* Stile nome prodotto */
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-name {
        margin-left: 90px;
        padding-bottom: 0.25em;
        font-weight: 400;
        line-height: 1.2em;
        width: 50%;
    }

    /* Stile prezzo */
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-price {
        font-weight: bold;
    }
    
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-price .woocommerce-Price-amount.amount {
        font-weight: bold;
    }
    
    
    

    /* Nascondi label dei prezzi */
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-price::before,
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-subtotal::before {
        display: none;
    }

    /* Stile quantità */
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-price,
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-quantity,
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-subtotal {
        margin-left: 90px;
        padding: 0px;
        padding-bottom: 10px;
        min-height: auto !important;
    }
    
        
    /* Aggiunge Anzahl prima della quantity*/
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-quantity::before {
        content: attr(data-title) ": ";     /* Prende il valore di data-title */
        display: block;               /* Per metterlo su una nuova riga */
        font-weight: 400;            /* Opzionale: per dare enfasi */
    }
    
    
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-quantity {

    }
    
    
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-subtotal .woocommerce-Price-amount.amount {
        font-size: 15px;
        margin-left: 10px;
    }
    
    
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-quantity input {
        margin-left: 10px;
    }
    
    
    /* Aggiunge Zwischensumme prima del totale parziale */
     .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-subtotal::before {
        content: attr(data-title) ": ";      /* Prende il valore di data-title */
        display: block;               /* Per metterlo su una nuova riga */
        font-weight: 400;            /* Opzionale: per dare enfasi */
        font-size: 15px;           /* Dimensione del testo */
    }
    
    
    /* Nascondi quantity e subtotal basandoci sulla presenza di input hidden */
    .woocommerce-checkout .woocommerce-cart-form table.shop_table tr:has(.product-quantity input[type="hidden"]) .product-quantity,
    .woocommerce-checkout .woocommerce-cart-form table.shop_table tr:has(.product-quantity input[type="hidden"]) .product-subtotal {
        display: none !important;
    }


    

    /* Stile rimuovi prodotto */
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-remove {
        margin-right: 270px;
        padding: 0.5em 0;
    }
    
    
     /* Modifica stile rimuovi prodotto */
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-remove {
        position: absolute;          
        top: 50%;                   /* Posiziona a metà dell'altezza del contenitore */
        transform: translateY(-50%); /* Centra verticalmente l'elemento */
        right: 1em;                 
        width: auto;
        padding: 0;
        margin: 0;                  
    }

    
    
    
    .woocommerce-checkout .woocommerce-cart-form table.shop_table td.product-cart-total {
        padding-bottom:0;
    }

    .woocommerce-checkout .woocommerce-cart-form table.shop_table button.buttonNormText {
        width: auto !important;
    }

    
    

    /* Clear float dopo ogni prodotto */
    .woocommerce-checkout .woocommerce-cart-form table.shop_table tr::after {
        content: "";
        display: table;
        clear: both;
    }

    /* Stile totali carrello */
    .woocommerce-checkout .cart_totals table.shop_table {
        margin-top: 2em;
    }

    .woocommerce-checkout .cart_totals table.shop_table tr {
        display: flex;
        justify-content: space-between;
        padding: 0.75em 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .woocommerce-checkout .cart_totals table.shop_table th,
    .woocommerce-checkout .cart_totals table.shop_table td {
        display: block;
        width: auto;
        border: 1px solid;
        padding: 0;
    }

    /* Stile bottone checkout */
    .woocommerce-checkout .wc-proceed-to-checkout .checkout-button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 1.5em;
        padding: 1em !important;
        background-color: #2563eb !important;
        color: white !important;
        font-weight: 500;
        border-radius: 0.5rem;
        text-align: center;
    }
    
    
    
    .woocommerce-checkout-review-order {

    padding-left: 10px !important;
    padding-right: 10px !important;

}
    
    
    
    
    .woocommerce h2.moduleBannerAZZ {
    padding: 40px 0 !important;
}
    
    
    
    /* PERSONALIZZO POST-CHECKOUT*/
    
     .woocommerce-order-overview li {
        float: none !important; 
        width: 100% !important; 
        border-right: none !important; 
        margin-bottom: 1em !important; 
        padding-right: 0 !important; 
}
    
    
    
    
}