/*
File Name: style.css
Theme Name:  NaturaLife - Child Theme
Author: RT-Themes
Version: 1.0
Author URI: http://themeforest.net/user/stmcan
Theme URI: http://themeforest.net/user/stmcan
Description: Designed and developed by RT-Themes - <a href="http://themeforest.net/user/stmcan">stmcan</a>
License: GNU General Public License
License URI: /Licensing/gpl.txt
Text Domain: naturalife
Template: naturalife
*/

body.free-shipping label[for="shipping_method_0_flat_rate2"]{
    display:none!important
}

/* Stile messaggio Punto di Ritiro */
.shipping-pickup-store .message {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 12px 16px;
    color: #2e7d32;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* Nascondi la seconda tr.shipping-pickup-store nel carrello */
tr.shipping-pickup-store ~ tr.shipping-pickup-store {
    display: none;
}

/* Placeholder grigio chiaro */
::placeholder {
    color: #c0c0c0 !important;
    opacity: 1;
}
::-webkit-input-placeholder {
    color: #c0c0c0 !important;
}
::-moz-placeholder {
    color: #c0c0c0 !important;
}
:-ms-input-placeholder {
    color: #c0c0c0 !important;
}

/* ========================================
   Pagina conferma ordine (Thank You Page)
   ======================================== */

/* Messaggio di ringraziamento principale */
.woocommerce-order-received .woocommerce-thankyou-order-received {
    font-size: 28px;
    font-weight: 600;
    color: #2e7d32;
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    border: 1px solid #a5d6a7;
}

/* Barra riepilogo ordine */
.woocommerce-order-received .woocommerce-order-overview {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

/* Nascondi sezioni indirizzo fatturazione e spedizione */
.woocommerce-order-received .woocommerce-customer-details {
    display: none;
}

.woocommerce-order-received .woocommerce-order-details {
    display: none;
}
/* Stile tabella dettagli ordine */
.woocommerce-order-received .woocommerce-table--order-details {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    display: none;
}

.woocommerce-order-received .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-table--order-details td {
    padding: 12px 16px;
}

.ibp-form-group .password-toggle {
    transform: translateY(0);
}
/* ========================================
   Carrello Mobile - Layout a Card
   ======================================== */
@media screen and (max-width: 768px) {
    /* Nascondi header tabella su mobile */
    .woocommerce-cart-form table.shop_table thead {
        display: none;
    }

    /* Ogni riga diventa una card */
    .woocommerce-cart-form table.shop_table,
    .woocommerce-cart-form table.shop_table tbody {
        display: block;
        width: 100%;
    }

    .woocommerce-cart-form table.shop_table tr.woocommerce-cart-form__cart-item {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 15px;
        margin-bottom: 15px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        position: relative;
    }

    /* Immagine prodotto */
    .woocommerce-cart-form table.shop_table td.product-thumbnail {
        display: block;
        width: 80px;
        padding: 0;
        margin-right: 15px;
    }

    .woocommerce-cart-form table.shop_table td.product-thumbnail img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
    }

    /* Nome prodotto */
    .woocommerce-cart-form table.shop_table td.product-name {
        display: block;
        flex: 1;
        padding: 0;
        font-weight: 600;
        font-size: 15px;
        min-width: 0;
    }

    /* Pulsante rimuovi - posizionato in alto a destra */
    .woocommerce-cart-form table.shop_table td.product-remove {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 0;
        width: auto;
    }

    .woocommerce-cart-form table.shop_table td.product-remove a {
        font-size: 18px;
        color: #999;
        text-decoration: none;
    }

    /* Riga inferiore: prezzo, quantità, totale */
    .woocommerce-cart-form table.shop_table td.product-price,
    .woocommerce-cart-form table.shop_table td.product-quantity,
    .woocommerce-cart-form table.shop_table td.product-subtotal {
        display: flex;
        align-items: center;
        padding: 8px 0 0 0;
        width: auto;
    }

    /* Labels per mobile */
    .woocommerce-cart-form table.shop_table td.product-price::before {
        content: "Prezzo: ";
        font-weight: 500;
        color: #666;
        margin-right: 5px;
        font-size: 13px;
    }

    .woocommerce-cart-form table.shop_table td.product-quantity::before {
        content: "Qtà: ";
        font-weight: 500;
        color: #666;
        margin-right: 5px;
        font-size: 13px;
    }

    .woocommerce-cart-form table.shop_table td.product-subtotal::before {
        content: "Totale: ";
        font-weight: 500;
        color: #666;
        margin-right: 5px;
        font-size: 13px;
    }

    .woocommerce-cart-form table.shop_table td.product-subtotal {
        font-weight: 700;
        color: #2e7d32;
    }

    /* Spazio tra prezzo/qty/totale */
    .woocommerce-cart-form table.shop_table td.product-price,
    .woocommerce-cart-form table.shop_table td.product-quantity {
        margin-right: 15px;
    }

    /* Contenitore riga inferiore */
    .woocommerce-cart-form table.shop_table tr.woocommerce-cart-form__cart-item td.product-price,
    .woocommerce-cart-form table.shop_table tr.woocommerce-cart-form__cart-item td.product-quantity,
    .woocommerce-cart-form table.shop_table tr.woocommerce-cart-form__cart-item td.product-subtotal {
        width: 100%;
        justify-content: flex-start;
        border-top: 1px solid #f0f0f0;
        margin-top: 10px;
        padding-top: 10px;
    }

    /* Input quantità più compatto */
    .woocommerce-cart-form table.shop_table .quantity input {
        width: 50px;
        padding: 5px;
        text-align: center;
    }

    /* Riga coupon e aggiorna */
    .woocommerce-cart-form table.shop_table tr td.actions {
        display: block;
        width: 100%;
        padding: 15px 0;
    }

    .woocommerce-cart-form table.shop_table .coupon {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
    }

    .woocommerce-cart-form table.shop_table .coupon input {
        flex: 1;
        min-width: 150px;
    }

    .woocommerce-cart-form table.shop_table .coupon button {
        white-space: nowrap;
    }

    .woocommerce-cart-form table.shop_table button[name="update_cart"] {
        width: 100%;
        margin-top: 10px;
    }
}
