/*
Theme Name: MeVoy Child
Theme URI: https://mevoy.qodeinteractive.com
Description: Child theme di MeVoy per il sito di Massimiliano Perazzetti
Author: S4 Studio
Author URI: https://s4.studio
Template: mevoy
Text Domain: mevoy-child
Version: 1.0.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Carrello a blocchi: il tema disegna un bordo scuro su ogni riga di tabella (table tr, main.min.css).
   Qui solo linee orizzontali chiare come nel riquadro del totale, intestazioni come le etichette del
   configuratore (Montserrat maiuscolo) e quantità leggibile. */
.wc-block-cart table.wc-block-cart-items tr { border: 0; }
.wc-block-cart table.wc-block-cart-items th,
.wc-block-cart table.wc-block-cart-items td { border-right: 0; }
.wc-block-cart table.wc-block-cart-items { border-bottom: 1px solid #e3dfd7; }
.wc-block-cart table.wc-block-cart-items thead th { border-bottom: 1px solid #e3dfd7; font-family: Montserrat, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: #9a9384; }
.wc-block-cart table.wc-block-cart-items tbody td { border-top: 1px solid #e3dfd7; }
.wc-block-cart table.wc-block-cart-items tbody tr:first-child td { border-top: 0; }
.wc-block-cart .wc-block-cart__totals-title { font-family: Montserrat, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: #9a9384; }
.wc-block-cart .wc-block-components-quantity-selector input { font-family: "Source Serif Pro", serif; font-size: 15px; color: #534c40; }

/* Testi del carrello a blocchi: WooCommerce usa le misure "small" di WordPress (13px, 11,4px per i dettagli),
   più piccole del testo del sito (16px). Nome, prezzi e totale di riga come i paragrafi; dettagli e riepilogo
   poco sotto. Intestazioni e "Totale stimato" restano come sono. */
.wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name,
.wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices,
.wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total { font-size: 16px; }
.wc-block-cart table.wc-block-cart-items .wc-block-components-product-metadata,
.wc-block-cart table.wc-block-cart-items .wc-block-components-product-metadata .wc-block-components-product-metadata__description > p,
.wc-block-cart table.wc-block-cart-items .wc-block-components-product-details.wc-block-components-product-details { font-size: 14px; line-height: 1.5; }
.wc-block-cart .wp-block-woocommerce-cart-order-summary-block { font-size: 15px; }

/* Testi del checkout a blocchi: stessa scala del carrello al posto dei 13 e 11,4px di WooCommerce.
   Riepilogo: nome e prezzi 16px, dettagli 14px, codici promozionali e subtotale 15px; note sotto i campi 15px;
   "Totale", titoli e campi restano come sono (il pulsante finale è più sotto). */
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item,
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item .wc-block-components-product-name,
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__individual-prices,
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price { font-size: 16px; }
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-product-metadata,
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-product-metadata .wc-block-components-product-metadata__description > p,
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-product-details.wc-block-components-product-details { font-size: 14px; line-height: 1.5; }
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity { font-size: 12px; }
/* Il riepilogo sta nella colonna laterale su computer e sotto il modulo su telefono: il blocco è lo stesso. */
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-panel__button,
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item:not(.wc-block-components-totals-footer-item) { font-size: 15px; }
.wc-block-checkout .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-price { font-size: 16px; }
.wc-block-checkout .wc-block-checkout__guest-checkout-notice,
.wc-block-checkout .wc-block-components-address-form__address_2-toggle,
.wc-block-checkout .wc-block-components-address-card,
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__label,
.wc-block-checkout .wc-block-checkout__terms { font-size: 15px; }

/* Campo nascosto "Appartamento, suite, ecc." del checkout: WooCommerce lo sposta fuori dalla pagina
   (position: absolute; left: -20000px), ma la regola di MeVoy per i campi di testo lo rimette in posizione
   relativa con il suo margine, lasciando un vuoto di circa 75px sopra CAP e Città. */
.wc-block-checkout input.wc-block-components-address-form__address_2-hidden-input { position: absolute; left: -20000px; margin: 0; }

/* "Paga l'ordine" (template classico): la lista dei metodi di pagamento mostrava il punto elenco del tema,
   su una riga a sé sopra il nome del metodo. Tolto quello, serve un po' di spazio sotto la tabella. */
#payment ul.wc_payment_methods,
#payment ul.wc_payment_methods > li { list-style: none; }
#payment ul.wc_payment_methods { margin-top: 24px; }

/* Un solo stile di pulsante nel percorso d'acquisto: carrello e checkout a blocchi usavano il pulsante di
   WordPress (grigio-blu, Source Serif); qui lo stile del tema, lo stesso di "Paga per l'ordine", della pagina
   di approvazione e del configuratore. */
.wc-block-cart .wc-block-cart__submit-button,
.wc-block-checkout .wc-block-components-checkout-place-order-button {
	min-height: 54px; padding: 15px 30px; border: 1px solid transparent; border-radius: 0;
	background-color: #3e3930; color: #fff;
	font-family: Montserrat, sans-serif; font-size: 11px; font-weight: 600; line-height: 22px; letter-spacing: 3.3px; text-transform: uppercase;
	transition: color .2s ease-out, background-color .2s ease-out, border-color .2s ease-out;
}
.wc-block-cart .wc-block-cart__submit-button .wc-block-components-button__text,
.wc-block-checkout .wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text { font-size: 11px; }
.wc-block-cart .wc-block-cart__submit-button:hover,
.wc-block-checkout .wc-block-components-checkout-place-order-button:hover { background-color: #111; color: #fff; }

/* Righe chiare anche in "Paga l'ordine" e "Ordine ricevuto" (template classici), come in carrello e checkout:
   il tema le disegna in #707070. */
.woocommerce table.shop_table tr,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce-order-received .woocommerce-order ul.woocommerce-order-overview li { border-color: #e3dfd7; }

/* Griglie delle opere (negozio, categorie, opere correlate): la categoria stava attaccata al titolo
   (margine negativo del tema). Qui un po' d'aria tra le due righe. */
.qodef-woo-product-content .qodef-woo-product-categories { margin-bottom: 6px; }

/* Pagina del negozio (archivio delle opere): niente spazio sopra il contenuto. */
.post-type-archive-product #qodef-page-inner {
	padding-top: 0;
}
