/*
Theme Name: Baker Child
Theme URI: https://baker.qodeinteractive.com
Description: A child theme of Baker Theme
Author: Edge Themes
Author URI: http://themeforest.net/user/edge-themes
Version: 1.0.9
Text Domain: baker
Template: baker
*/


.woof_submit_search_form, .woof_reset_search_form, .woof_reset_button_2{
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    vertical-align: middle;
    width: auto;
    outline: 0;
    line-height: 21px;
    padding: 12px 32px;
    text-transform: uppercase;
}

.woof_submit_search_form:hover, .woof_submit_search_form:focus,
.woof_reset_search_form:hover, .woof_reset_search_form:focus,
.woof_reset_button_2:hover, .woof_reset_button_2:focus
{
    background-color: #333 ;
    border-color: #333;
    color: #fff;
    cursor: pointer;
}

#whatsapp_button_product.disabled{
    background-color: #7a7a7a;
    pointer-events: none;
    cursor: default;
}

dl.variation{
    margin-top: 10px;
}
dt.variation-Testopersonalizzato{
    margin-bottom : 0px;
}

dd.variation-Testopersonalizzato > p{
    margin: 0px;
    font-weight: 400;
}

.dsa-date{
    width:100%;
    max-width:480px;
}

.dsa-date-container{
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}

h2.consegne {
    display: block;
    font-size: 25px;
    margin: 50px 0 46px;
    text-align: center;
    text-transform: uppercase;
}

h3.consegne,
h3.fattura{
    font-size: 25px;
    text-transform: uppercase;
    margin: 53px 0 18px 0;
}

#chiedi-fatturazione{
    vertical-align: middle;
}

#consegna-selection{
    display: none;
}
#cap-container{
    display: flex;
    justify-content: center;
    align-items: center;
}
#cap-input{
    width: 65%;
    margin-bottom: 0px;
}

#cap-btn{
    width: 35%;
    background-color: #333;
    color: #fff;
    height: 48px;
    line-height: 48px;
    border: none;
    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
}

#cap-btn:hover{
    background-color: #e1be64;
}

#cap-result{
    margin-top: 5px;
    display: none;
}
#cap-result.success{
    color: green;
}
#cap-result.error{
    color : #C0392B
}

#cap-toggle{
    display: flex;
    align-items: center;
    justify-content: start;
    column-gap: 10px;
    margin-bottom: 5px;
}

#cap-toggle.cart{
    justify-content: center;
    margin-bottom: 20px;
}

#cap-toggle > span{
    text-transform: uppercase;
    font-weight: 600;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 4px;
    bottom: 5px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}


input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.custom-text-field{
    display: flex;
    flex-direction: column;
}

.cart_totals  .woocommerce-shipping-totals.shipping,
.cart_totals  .order-total{
    display: none;
}

.edgtf-woocommerce-page .woocommerce-info, .edgtf-woocommerce-page .woocommerce-message, .edgtf-woocommerce-page .woocommerce-error{
    color: #000 !important;
}

.edgtf-woocommerce-page .woocommerce-error {
    border-top: 4px solid #C0392B !important;
    background-color: #c0392b2b !important;
}

.edgtf-woocommerce-page .woocommerce-info, .edgtf-woocommerce-page .woocommerce-message{
    border-top: 4px solid #e1be64 !important;
    background-color: #e1be642b !important;
}

.error-red{
    color: #C0392B;
}

.edgtf-woocommerce-page .woocommerce-error a{
    float: unset !important;
}

.wc-item-meta p{
    display: inline-block;
    font-size: 15px;
}

.d-none{
    display: none;
}

.consegna-result{
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 26px;
    color: #666;
}
.consegna-result strong{
    color: #333;
    font-weight: 400;
}

.wc-tab *{
    font-size: 14px;
}

@media screen and (max-width: 578px){
    .edgtf-quantity-buttons.quantity{
        margin-bottom: 10px !important;
    }
}


/* titolo widget */
.sidebar-cats .title,
.widget_product_categories .widget-title{
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing:.2px;
}

/* lista categorie (match Woo markup) */
.sidebar-cats ul,
.widget_product_categories .product-categories{
    list-style: none;
    margin: 0;
    padding: 0;
}

/* livello 1 */
.product-categories > li,
.sidebar-cats > ul > li{
    border-top: 1px dashed #eee;
}

.product-categories > li:first-child,
.sidebar-cats > ul > li:first-child{ border-top: 0; }

/* link base */
.product-categories a,
.sidebar-cats a{
    display:flex;
    align-items:center;
    gap:8px;
    text-decoration: none;
    color: inherit;
    padding: 10px 8px;
    border-radius: 8px;
}

.product-categories li.cat-parent > a::before,
.sidebar-cats li.has-children > a::before{
    content: "▸";
    font-size:.85em;
    color: inherit;
}

/* stato attivo */
.product-categories .current-cat > a,
.product-categories .current-cat-parent > a{
    font-weight: 700;
}

/* mostra i figli quando:
   - il parent è attivo (Woo aggiunge .current-cat-parent)
   - il parent è la categoria corrente (.current-cat)
   - oppure al semplice hover da desktop */
.product-categories .children,
.sidebar-cats .children{
    display: block;
    margin: 6px 0 10px 14px;
    padding-left: 10px;
    border-left: 2px solid #f3f3f3;
}

.product-categories li.current-cat > .children,
.product-categories li.current-cat-parent > .children,
.product-categories li:hover > .children{
    /*display: block;*/
}


/* livelli interni */
.product-categories .children li a,
.sidebar-cats .children li a{
    padding: 8px 6px;
    color: inherit;
}


/* opzionale: sidebar sticky */
.sidebar-sticky{ position: sticky; top: 24px; }

.disabled-button{
    pointer-events: none;
    background-color: #7a7a7a !important;
}

.whatsapp-help{
    font-style: italic;
    font-size: 12px;
}