/*
 * Nuova Trauben, 09/2026: WooCommerce 11 con l'aspetto del vecchio sito (WooCommerce 2.3 + tema fitshop).
 * Valori presi dagli stili calcolati del sito del 15/09/2026 fatto girare in locale.
 * Caricato dopo i CSS di WooCommerce (vedi fitshop/framework/wc11-compat.php).
 */

/* Tabelle (carrello, cassa, account) */
.woocommerce table.shop_table,
.woocommerce table.shop_table td,
.woocommerce table.shop_table tbody th,
.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table tfoot td {
	border-color: rgba(0, 0, 0, 0.1);
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	line-height: inherit;
}
.woocommerce table.shop_table td {
	padding: 6px 12px;
}

/* Carrello */
.woocommerce-cart table.cart .product-thumbnail img {
	width: auto;
	height: 80px;
}
.woocommerce-cart table.cart td.actions .btn,
.woocommerce-cart table.cart td.actions input.btn {
	line-height: 13px;
}
.woocommerce-cart table.cart td.actions .coupon .input-text {
	line-height: 13px;
	border-color: #d3ced2;
	height: 28px;
}
.woocommerce-cart table.cart td.actions button.btn:disabled,
.woocommerce-cart table.cart td.actions button.btn[disabled] {
	opacity: 1;
	padding: 6px 12px;
	color: #fff;
}
.woocommerce .cart-collaterals .cart_totals table,
.woocommerce-page .cart-collaterals .cart_totals table {
	border: 0;
	border-radius: 0;
}
.woocommerce .cart-collaterals .cart_totals table th,
.woocommerce .cart-collaterals .cart_totals table td {
	padding: 6px 0;
}
.woocommerce .cart-collaterals .cart_totals tr.shipping td {
	border-top-color: #ebe9eb;
}
.woocommerce-cart .cart_totals #shipping_method li label {
	font-weight: 400;
}
.woocommerce .shipping-calculator-button {
	display: inline;
	margin-top: 0;
}
.woocommerce .shipping-calculator-button::after {
	display: none;
}
.woocommerce .cart_totals .shipping-calculator-form {
	width: 135px;
	margin: 0;
}
.woocommerce .shipping-calculator-form .form-row {
	padding: 0;
	margin: 0 0 6px;
}
.woocommerce .shipping-calculator-form #calc_shipping_postcode {
	color: #222;
	border: 1px solid #e4e5e7;
	padding: 8px 16px;
	line-height: 13px;
	height: 33px;
}
.woocommerce .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	font-size: 13px;
	line-height: 13px;
	padding: 10px 16px;
	margin-bottom: 13px;
}
.woocommerce ul#shipping_method .amount {
	font-weight: 400;
}

/* Avvisi: stile Bootstrap del tema, senza l'icona di WooCommerce 11 */
.woocommerce .alert.woocommerce-info::before,
.woocommerce .alert.woocommerce-message::before,
.woocommerce .alert.woocommerce-error::before {
	display: none;
	content: none;
}
.woocommerce .alert.woocommerce-info,
.woocommerce .alert.woocommerce-message,
.woocommerce .alert.woocommerce-error {
	padding: 15px;
	border-width: 1px;
	border-style: solid;
	border-radius: 4px;
	margin: 0 0 18px;
}
.woocommerce .alert.woocommerce-error {
	list-style: none;
}

/* Moduli (cassa, account, indirizzi) */
.woocommerce form .form-row .required {
	color: #f00;
	font-weight: 700;
	text-decoration: none;
	visibility: visible;
}
.woocommerce form .form-row label .optional {
	display: none;
}
.woocommerce form .form-row .input-text,
.woocommerce-page form .form-row .input-text {
	color: #222;
	border: 1px solid #e4e5e7;
	border-radius: 0;
	padding: 8px 16px;
	line-height: 13px;
	height: 33px;
}
.woocommerce form .form-row textarea.input-text,
.woocommerce-page form .form-row textarea.input-text {
	height: auto;
	min-height: 52px;
	line-height: 19.5px;
}
.woocommerce .select2-container .select2-selection--single {
	height: 28px;
	border: 1px solid #ccc;
	border-radius: 3px;
	margin: 0;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered,
.woocommerce form .form-row .select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 26px;
	padding: 0 20px 0 8px;
	height: 26px;
	color: #444;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
	height: 26px;
}
.woocommerce-checkout #ship-to-different-address label {
	display: inline;
	font-weight: 500;
	margin: 0;
}
.woocommerce-checkout #ship-to-different-address input.input-checkbox {
	display: inline-block;
	float: none;
	margin: 4px 0 0;
}

/* Pagamento */
.woocommerce-checkout #payment {
	background: #ebe9eb;
}
.woocommerce-checkout #payment ul.payment_methods {
	border-bottom-color: #d3ced2;
}
.woocommerce-checkout #payment div.payment_box {
	background-color: #dfdcde;
	color: #515151;
}
.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: #dfdcde;
}
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
	background: #ec5053;
	color: #fff;
	border: 0;
	border-radius: 0;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 700;
	line-height: 13px;
	height: 33px;
}

/* Accesso all'account */
.woocommerce form.login .form-row label.woocommerce-form-login__rememberme,
.woocommerce-page form.login .form-row label.woocommerce-form-login__rememberme {
	display: block !important;
	clear: both;
	margin: 6px 0 0;
}
.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
	display: none;
}
.woocommerce form .password-input input[type="password"] {
	padding-right: 16px;
}

/* Account: pagina unica a tutta larghezza */
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
}
.woocommerce-account .addresses .title .edit {
	float: right;
}

/* Dettaglio ordine: indirizzi senza il riquadro di WooCommerce 11 */
.woocommerce .woocommerce-customer-details address {
	border: 0;
	padding: 0;
	font-style: normal;
}
.woocommerce table.order_details tfoot td {
	font-weight: 400;
}

/* Pulsanti grigi generici (i <button> di WooCommerce 11 erano <input> nel 2.3): il grigio di allora, non quello violaceo.
   I link a.button restano allo stile del tema. */
.woocommerce button.button:not(.alt),
.woocommerce input.button:not(.alt) {
	background-color: #ebe9eb;
	color: #515151;
}
.woocommerce button.button:not(.alt):hover,
.woocommerce input.button:not(.alt):hover {
	background-color: #dad8da;
	color: #515151;
}

/* Widget "Visti di recente" e simili: il tema fissava 96x90 px (immagini quadrate) e deformava le copertine.
   Altezza fissa, larghezza secondo le proporzioni della copertina. */
.item-product-widget .images img {
	width: auto;
	height: 100px;
	max-width: 100%;
	object-fit: contain;
}
.item-product-widget div.images.pull-left {
	width: auto;
	margin-right: 15px;
	line-height: 0;
}
