/**
 * Framework: Super-Fast
 * File: cm-woocommerce.css
 * Aggiornato al 18-07-2024
 * Attualmente non incluso
 * Da https://freefrontend.com/css-tabs/
 * In questo caso si usano due soli tab anche se il codice ne prevede tre.
 */

/* Box messaggi (vedi anche sotto) */
.single-product .woocommerce-message::before, 
.woocommerce-cart .woocommerce-message::before, 
.woocommerce-cart .woocommerce-error::before, 
.woocommerce-cart .woocommerce-info::before, 
.tax-product_cat .woocommerce-info::before { color: var(--nero); }

.woocommerce-cart .woocommerce-message a { float: left !important; display: block; margin-bottom: 10px; } 

.woocommerce-account .woocommerce h2 { text-align: center; }

/************************************/
/* UNIFORMO CASELLE TESTO E TENDINE */
/************************************/

/* Carrello -> Codice sconto */
.woocommerce-cart .woocommerce-cart-form .coupon input#coupon_code.input-text { 
	background: var(--grigiochiarissimo); border: 1px var(--colbor) solid; padding: 5px; color: black; 
}
/* Prodotto -> tendina variazioni */
.single-product .product .variations select { 
	background: var(--grigiochiarissimo); border: 1px var(--colbor) solid; padding: 5px; color: black; 
}
.single-product .product .variations select option { 
	background: var(--grigiochiarissimo); border: 1px var(--colbor) solid; padding: 5px; color: black; 
}

/* Prodotto/Carrello -> Quantita */
.quantita-prodotto-carrello .qty { 
	background: var(--grigiochiarissimo); border: 1px var(--colbor) solid; padding: 5px; color: black; 
}

/* Campi utente */
.woocommerce-edit-address .woocommerce-address-fields #billing_country_field .select2-selection--single, 
.woocommerce-edit-address .woocommerce-address-fields #billing_state_field .select2-selection--single, 
.woocommerce-edit-address .woocommerce-address-fields #shipping_country_field .select2-selection--single, 
.woocommerce-edit-address .woocommerce-address-fields #shipping_state_field .select2-selection--single, 
.woocommerce-account .woocommerce-form-login input, 
.woocommerce-account .woocommerce-form-login select, 
.woocommerce-checkout .woocommerce-form-login input, 
.woocommerce-checkout .woocommerce-form-login select, 
.woocommerce-cart .woocommerce-shipping-calculator input, 
.woocommerce-cart .woocommerce-shipping-calculator .select2-selection, 
.woocommerce-checkout .woocommerce-billing-fields input, 
.woocommerce-checkout .woocommerce-billing-fields .select2-selection, 
.woocommerce-checkout .woocommerce-billing-fields .input-text, 
.woocommerce-checkout .woocommerce-shipping-fields input, 
.woocommerce-checkout .woocommerce-shipping-fields .select2-selection, 
.woocommerce-checkout .woocommerce-shipping-fields .input-text, 
.woocommerce-checkout .woocommerce-additional-fields textarea, 
.woocommerce-account input, 
.single-product #review_form input#author,
.single-product #review_form input#email,
.popup-cerca #searchform input#s, 
.woocommerce-checkout input.input-text { 
	background: var(--grigiochiarissimo); border: 1px var(--colbor) solid; padding: 8px !important; color: black; border-radius: 0px; 
    font-weight: normal; font-size: 16px; height: 40px; 
}
.woocommerce-checkout .woocommerce-billing-fields .select2-selection { padding: 0px; }

/* Checkout: correzione checkbox "Remember me e "Spedire a indirizzo differente" */
.woocommerce-form-login .woocommerce-form__input.woocommerce-form__input-checkbox, 
.woocommerce-checkout .woocommerce-form__input.woocommerce-form__input-checkbox { height: auto !important; }

/* Cart e checkout: select tendina centro verticale */
.woocommerce-cart .shipping-calculator-form span.selection span,

.woocommerce-edit-address span.selection span,
.woocommerce-checkout span.selection span { display: flex; align-items: center;
}


.woocommerce-edit-address span.selection span.select2-selection__arrow, 
.woocommerce-cart span.selection .select2-selection__arrow, 
.woocommerce-checkout span.selection .select2-selection__arrow { height: 100%;
}



/*************************/
/* UNIFORMO BOX MESSAGGI */
/*************************/

.woocommerce-cart .woocommerce-message, 
.woocommerce-checkout .woocommerce-message, 
.woocommerce-cart .woocommerce-error, 
.woocommerce-checkout .woocommerce-error, 
.woocommerce-cart .woocommerce-info, 
.woocommerce-checkout .woocommerce-info, 
.woocommerce-account .woocommerce-message, 
.tax-product_cat .woocommerce-info, 
.woocommerce-downloads .woocommerce-Message, 
.single-product .woocommerce-error,
.single-product .woocommerce-message, 
.tax-product_cat .woocommerce-error, 
.woocommerce-account .woocommerce-error {
	background: var(--grigiochiarissimo); border: 1px var(--colbor) solid; /* word-wrap: normal; */ color: black; font-weight: normal; 
}
.woocommerce-account .woocommerce-message::before, 
.woocommerce-cart .woocommerce-message a, 
.woocommerce-checkout .woocommerce-message a, 
.woocommerce-cart .woocommerce-error a, 
.woocommerce-checkout .woocommerce-error a, 
.woocommerce-cart .woocommerce-info a, 
.woocommerce-checkout .woocommerce-info a {
	color: var(--col1); 
}



/************/
/* CARRELLO */
/************/

/* Il tuo carrello è vuoto */
.woocommerce-cart .woocommerce .cart-empty strong code { font-weight: normal; }

/* Totali carrello */
.woocommerce-cart .cart_totals .shop_table * { font-weight: normal; color: black; }

/* Istruzioni di spedizione inserite tramite HOOK */
.cont-carrello-istruzioni-spedizione { text-align: center; margin-bottom: 30px; }
.carrello-istruzioni-spedizione { background: var(--grigiochiarissimo); padding: 5px 10px 5px 10px; display: inline-block; }

/* Avviso su metodo di spedizione mancante */
.woocommerce-cart .woocommerce-info { color: red !important; }
.woocommerce-cart .woocommerce-shipping-totals .woocommerce-info::before { content: '' !important; }
.woocommerce-cart .woocommerce-shipping-totals .woocommerce-info { padding: 10px !important; background: #eee; margin-bottom: 0 !important; }



/************/
/* CHECKOUT */
/************/

/* Il tuo ordine */
.woocommerce-checkout #order_review .shop_table tbody *, 
.woocommerce-checkout #order_review .shop_table tfoot * { font-weight: normal !important; }

/* Formatto etichette campi */
.woocommerce-checkout .woocommerce-billing-fields label, 
.woocommerce-checkout .woocommerce-shipping-fields label, 
.woocommerce-checkout .woocommerce-additional-fields label { font-weight: normal; }



/***********/
/* ACCOUNT */
/***********/

/* Link a sx */
.woocommerce .woocommerce-MyAccount-navigation { background: var(--grigiochiarissimo); padding: 30px; }
.woocommerce .woocommerce-MyAccount-navigation ul { margin: 0px; padding: 0px; }
.woocommerce .woocommerce-MyAccount-navigation ul li { border-bottom: 1px #999999 dashed; padding-top: 5px; padding-bottom: 5px; }

/* Indirizzi: tolgo italico */
.woocommerce .woocommerce-MyAccount-content address { font-style: normal; }

/* Dettagli ordine: tolgo grassetto */
.woocommerce .woocommerce-order-details table tfoot th, .woocommerce .woocommerce-order-details table tfoot td { font-weight: normal !important; }

/* Modifica password */
.woocommerce-edit-account fieldset { padding: 10px !important; margin-top: 30px; margin-bottom: 20px; }
.woocommerce-edit-account fieldset label { line-height: 1.2 !important; }

/* Trattamento dati */
.woocommerce-edit-account input[type="checkbox"] { height: auto !important; }

/* Link */
.woocommerce-edit-account nav.woocommerce-MyAccount-navigation { margin-bottom: 20px; }

/* Salva dettagli account */
.woocommerce-edit-account p#save-account-details-nonce { margin-bottom: 30px !important; }

/* Tolgo punti da elenco puntato */
nav.woocommerce-MyAccount-navigation ul li { list-style-type: none !important; }

/* Tolgo spazio sopra prima riga */
.woocommerce-MyAccount-content p { margin-top: 0px !important; }



/********/
/* HOOK */
/********/
.single-product .cont-hook, .tax-product_cat .woocommerce-error {}



/*
 * PRODUCT
 */

/* Recensioni: rimuovo titolo "Recensioni" */
.single-product .woocommerce-tabs .woocommerce-Tabs-panel.woocommerce-Tabs-panel--reviews h2.woocommerce-Reviews-title { display: none !important; }

/* Recensioni: formatto stelle */
.single-product .woocommerce-tabs .comment-form-rating { display: flex; align-items: center; margin-bottom: 10px; }
.single-product .woocommerce-tabs .comment-form-rating .stars { display: block; line-height: 1; margin: 0 0 0 10px !important; }
.single-product .woocommerce-tabs .comment-form-rating .stars span { display: block; margin: 0; padding: 0; }
.single-product .woocommerce-tabs .comment-form-rating .stars a { margin-right: 0; }

/* Recensioni prodotto: formatto stelle */
.star-rating span { font-family: star !important; color: #F6B900 !important; }
ul.products li.product .star-rating span, ul.products li.product .star-rating, ul.products li.product .star-rating::before { font-size: 14px !important; }
.single-product .star-rating span, .single-product .star-rating, .single-product  .star-rating::before { font-size: 17px; }
ul.products li.product .star-rating { margin: var(--boxbase-stars-margin) !important; }



.single-product #reviews #review_form #reply-title { font-size: var(--testobase-fontsize); margin-top: -10px; }

.single-product #review_form .form-submit { margin-top: 15px !important; }

/* Campo "Origine" prodotto */
.prodotto-origine { 
	font-weight: bold !important; background: var(--grigiochiarissimo); color: black; border-left: 10px var(--col1) solid; 
    padding: 5px 10px 5px 10px; 
}

/*
 * PRODUCT CATEGORY
 */
 /* Aggiusto l'overlapping tra titolo prodotto e sottotitolo */
.tax-product_cat ul.products li.product h2, .tax-product_cat ul.products li.product .prodotto-sottotitolo {
	display: block !important; padding-bottom: 0 !important;
}

/*
 * LOST PASSWORD
 */
.woocommerce-lost-password .woocommerce .woocommerce-ResetPassword { max-width: 600px; margin: 0 auto; }
.woocommerce-lost-password .woocommerce .woocommerce-form-row { display: block; text-align: center; width: 100%; margin-top: 20px; }
.woocommerce-lost-password .woocommerce .woocommerce-form-row input#user_login { text-align: center; background: var(--grigiochiarissimo) !important; }

/*
 * MINIATURE GALLERIA
 */
.single-product .woocommerce-product-gallery .flex-control-thumbs li { width: auto !important; clear: none !important; }

/*
 * PRODOTTO
 */
.single-product ol.flex-control-thumbs { margin-top: 10px !important; }
.single-product ol.flex-control-thumbs li { margin: 0px 10px 10px 0px !important; }
.single-product ol.flex-control-thumbs li img { border: 1px var(--colbor) solid; }

/*
 * DETTAGLI ORDINE
 */
.woocommerce-view-order .woocommerce-order-details input { height: auto; }

/**
 * LOGIN / REGISTER BOX
 */
.woocommerce-account form.woocommerce-form.woocommerce-form-login.login { margin-top: 15px !important; }
.woocommerce-account .woocommerce #customer_login h2 { font-size: var(--h3-fontsize); }
.woocommerce-account .woocommerce #customer_login :is(.woocommerce-form-login, .woocommerce-form-register) { width: 100% !important; margin: 20px auto 20px auto !important; }
.woocommerce-account .woocommerce #customer_login :is(label, span, p) { color: var(--testobase-color) !important; }

/* Nascondo titolo su login/register */
.woocommerce-account.logged-out #main h1 { display: none !important; }
.woocommerce-account.logged-out #main .woocommerce-products-header { margin-top:10px !important; }
