/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

/* --------- menu header */
.loginAccountMenu span.elementor-button-icon > svg {
	height: 1.5em;
}

/* --------- pagina ordina ora */

div.quantity > input.wqpmb_input_text.qty {
	font-size: 15px !important;
	padding: 5px !important;
}

a.added_to_cart.wc-forward {
	display: none;
}

button.minus.qib-button {
	margin-right: var(--button-spacing,10px);
}

div.qib-button-wrapper {
	margin: 0px;
}

button.single_add_to_cart_button.elementor-button.button.alt {
	background-color: #e30613;
}

.e-loop-item.prodotto-nascosto {
    display: none !important;
}

/* --------- pulsante per aggiunta al carrello menu alla carta */
.aggiungiCarrelloMenu a.add_to_cart_button {
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 50% !important;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.aggiungiCarrelloMenu a.add_to_cart_button::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f07a"; 
    font-size: 16px;
    color: white; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-indent: 0;
    transition: all 0.3s ease;
}

.aggiungiCarrelloMenu a.add_to_cart_button.added.success::before {
    content: "\f00c";
    font-size: 18px;
}

.aggiungiCarrelloMenu a.add_to_cart_button.loading::before {
    content: "\f110";
    animation: fa-spin 2s infinite linear;
}

.aggiungiCarrelloMenu .added_to_cart {
    display: none !important;
}

/* --------- template menu fisso */
div.prezzoMenuFisso.elementor-widget-woocommerce-product-price,
div.prezzoMenuFisso.elementor-widget-woocommerce-product-price > p.price {
	margin-bottom: 0px !important;
}

div.prezzoMenuFisso.elementor-widget-woocommerce-product-price > p.price > del,
div.wooco_component_product_selection_list_item_desc > span > del,
div.wooco_summary > div.wooco_total > del  {
	display: none;
}

div.wooco_component_product_selection_list_item_image {
	display: none;
}

body.single-product button.qib-button {
	padding: 0 !important;
}

body.single-product button.qib-button.minus {
	margin-left: 0px !important;
}

body.single-product div.wooco_total {
	font-size: 21px;
    font-weight: 500;
}

/* --------- template insalate */
.product_cat-insalate-speciali .wooco_component_product_selection_list_item_qty,
.product_cat-insalate-speciali div.wooco_count {
	display: none !important;
}

/* --------- carrello */
.woocommerce-cart-form__cart-item th.product-name {
	padding: 0 !important;
}

.wooco-item-child {
	pointer-events: none;
}

.wooco-item-child > th.product-name > a {
	color: #0b0a07 !important;
}

.wooco-item-child > .product-thumbnail > a {
	display: none;
}

.elementor-menu-cart__product:not(.wooco-cart-parent) > .product-thumbnail,
.woocommerce-cart-form__cart-item:not(.wooco-item-parent) > .product-thumbnail > a {
	display: none;
}

.woocommerce table.shop_table {
	border-collapse: collapse !important;
}

table.shop_table > tbody > tr {
	border-bottom: 1px solid #ece0d5 !important;
}

table.shop_table > tbody > tr:last-child {
	border-bottom: none !important;
}

body.woocommerce-cart button.plus.qib-button {
	margin-left: 10px;
}

.elementor-widget-woocommerce-cart .woocommerce .input-text.qty {
	min-height: 40px;
	max-height: 40px;
}

.woocommerce-cart .shipping-calculator-form,
.woocommerce-cart .woocommerce-shipping-totals {
    display: none !important;
}

/* --------- pagamento */
table.woocommerce-checkout-review-order-table tr.wooco-cart-child > td.product-name {
	padding-left: 16px;
}

#jckwds-fields.wds-fieldbox {
    background: none !important;
    border: none !important;
    padding: 0 !important; /* Rimuoviamo anche il padding per un aspetto più pulito */
}

#jckwds-fields .wds-fieldbox-header {
    border: none !important;
    padding: 0;
    margin-top: 3em;
    margin-bottom: 1.5em;
    background-color: transparent;
}

.wds-fieldbox-sub-field,
div#jckwds-delivery-time-wrapper .wds-fieldbox-sub-field {
    padding: 0;
}

#jckwds-fields .wds-fieldbox-header__title {
    font-family: var(--e-global-typography-c973ae0-font-family), Sans-serif;
    font-size: var(--e-global-typography-c973ae0-font-size);
    font-weight: 400 !important;
    line-height: var(--e-global-typography-c973ae0-line-height);
    color: var(--sections-title-color, #000);
}

#jckwds-fields label,
#jckwds-fields input,
#jckwds-fields select,
#jckwds-fields .select2-selection__rendered {
    color: #0b0a07 !important;
}


#jckwds-fields .form-row {
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

p.wooccm-field-wooccm5 > label {
    margin-bottom:8px;
}

/* --------- rendi verticale la sezione per la scelta di dove effettuare il pranzo (stile per override template woocommerce) */
.woocommerce-checkout-review-order-table h3.shipping-section-title {
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-size: var(--e-global-typography-accent-font-size);
    font-weight: var(--e-global-typography-accent-font-weight);
    text-transform: var(--e-global-typography-accent-text-transform);
    letter-spacing: var(--e-global-typography-accent-letter-spacing);
    line-height: var(--e-global-typography-accent-line-height);
    color: var(--sections-title-color, #E30613);
    margin-top: 0;
    margin-bottom: 1em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(0,0,0,0.1);
}

tr.woocommerce-shipping-totals {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

tr.woocommerce-shipping-totals ul {
    list-style: none;
    padding: 0 0 1.5em 0;
    margin: 0;
}

tr.woocommerce-shipping-totals ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
}

tr.woocommerce-shipping-totals ul li input {
    margin-right: 10px;
}

/* --------- descrizioni sotto a metodi di spedizione in checkout */
.woocommerce ul#shipping_method li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 4px;
}

.woocommerce ul#shipping_method li .shipping-method-description {
    width: 100%;
    text-transform: none;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight, 400);
    line-height: var(--e-global-typography-text-line-height);
    color: var(--e-global-color-text, #333);
    display: block;
}

.woocommerce ul#shipping_method li label {
    flex: 1; 
}

/* --------- account e login */
div.elementor-element-180d273 {
	width: 100%;
}

.woocommerce-MyAccount-navigation-link--downloads,
div.woocommerce-MyAccount-content > div.woocommerce-MyAccount-content-wrapper > table.order_details,
h2.woocommerce-order-details__title  {
	display: none !important;
}

/* --------- TY page */
.woocommerce-order-details__title,
div.woocommerce-order > table.order_details,
div.wds-edit-slot {
    display: none !important;
}

.woocommerce-table--order-details tbody td:not(.product-total) {
    padding-left: 12px !important;
}

.woocommerce-table--order-details thead th:not(.product-total),
.woocommerce-table--order-details tfoot th {
    padding-left: 9px !important;
}

.woocommerce-table--order-details thead th {
    padding-top: 9px !important;
}


.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    padding-bottom: 9px !important;
}

table.woocommerce-table--order-details tbody > tr.wooco-item-child > td.woocommerce-table__product-name {
    padding-left: 21px !important;
}

.woocommerce .woocommerce-customer-details .woocommerce-customer-details--email,
.woocommerce .woocommerce-customer-details .woocommerce-customer-details--phone {
    margin-bottom: 3px;
}

/* ------------------------------ */
/* --------- responsive --------- */
/* ------------------------------ */

@media (max-width: 768px) {
    /* --------- footer */
    .elementor-element-9a12d76.elementor-hidden-phone {
        display: block !important;
    }

    /* --------- pagina menu fissi e insalatone */
    body.single-product div.wooco_summary {
        text-align: center;
    }

    body.single-product form.cart {
        flex-direction: column;
    }

    body.single-product form.cart div.qib-button-wrapper {
       margin-bottom: 1.5em; 
    }

    body.single-product form.cart button.single_add_to_cart_button {
        margin: 0 !important;
    }

    /* --------- carrello */
    tr.woocommerce-cart-form__cart-item td.product-quantity {
        display: flex !important;
        justify-content: space-between !important;
    }
}