/* Trascriviamo – carrello e checkout (blocchi WooCommerce) */

/* niente immagini prodotto: via i segnaposto e la colonna vuota
 * (l'intestazione "Prodotto" sta nella colonna immagine: resta lei, sparisce quella vuota "Dettagli") */
.wc-block-cart-item__image,
.wc-block-cart-items__header-product,
.wc-block-components-order-summary-item__image { display: none !important; }
.wc-block-cart-items__header-image { display: table-cell !important; width: auto !important; text-align: left; }
.wc-block-components-order-summary-item__description { padding-left: 0 !important; }
.wc-block-cart-items .wc-block-cart-item__product { padding-left: 0 !important; }

/* niente descrizione del prodotto nella riga (restano nome, opzioni e file) */
.wc-block-components-product-metadata__description { display: none; }

/* totali: le righe standard "Subtotale" e "IVA" sono sostituite dalle nostre (cart.js) */
.wp-block-woocommerce-cart-order-summary-subtotal-block,
.wp-block-woocommerce-checkout-order-summary-subtotal-block,
.wp-block-woocommerce-cart-order-summary-taxes-block,
.wp-block-woocommerce-checkout-order-summary-taxes-block,
.wc-block-components-totals-taxes { display: none !important; }
.tr-cart-rows { padding: 4px 0 6px; }
.tr-cart-rows .wc-block-components-totals-item { padding-top: 6px; padding-bottom: 6px; }
.tr-cart-rows .wc-block-components-totals-item__label { font-weight: 400; }

/* rassicurazione sotto il pulsante (stesso box della scheda prodotto) */
.tr-cart-reassurance { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 14px 0 0; }
.tr-cart-reassurance__item { background: #f3f4f6; border-radius: 10px; padding: 12px 14px; font-size: .8rem; line-height: 1.35; color: #6b7280; }
.tr-cart-reassurance__item strong { display: block; color: #1b2430; font-size: .84rem; margin-bottom: 2px; }

/* ---------- gerarchia tipografica: righe prodotto ---------- */
.wc-block-cart-items__header th,
.wc-block-cart-items__header .wc-block-cart-items__header-image,
.wc-block-cart-items__header .wc-block-cart-items__header-total { font-size: .78rem !important; font-weight: 600 !important; letter-spacing: .06em; color: #6b7280; }
.wc-block-cart-items .wc-block-components-product-name,
.wc-block-components-order-summary-item__description .wc-block-components-product-name { font-size: 1.06rem !important; font-weight: 600 !important; color: #1b2430 !important; line-height: 1.3; }
.wc-block-cart-item__product .wc-block-components-product-details__edit-link,
.wc-block-cart-item__product .wc-block-components-product-name + a { font-size: .88rem; font-weight: 400; }
/* prezzo unitario sotto il nome: la quantità è sempre 1, il totale di riga basta */
.wc-block-cart-item__prices { display: none !important; }
.wc-block-cart-item__total .wc-block-components-product-price,
.wc-block-cart-item__total .wc-block-formatted-money-amount { font-size: 1.06rem !important; font-weight: 600 !important; color: #1b2430; }
.wc-block-components-product-metadata,
.wc-block-components-product-details { font-size: .9rem !important; line-height: 1.55; color: #4b5563 !important; }
.wc-block-components-product-details__name { font-weight: 500 !important; color: #1b2430; }
.wc-block-components-product-details__value { font-weight: 400; }
.wc-block-cart-item__remove-link, .wc-block-cart-item__remove-icon { color: #6b7280; }

/* ---------- gerarchia tipografica: totali ---------- */
.wc-block-cart__totals-title { font-size: .78rem !important; font-weight: 600 !important; letter-spacing: .06em; color: #6b7280; }
.wc-block-components-totals-coupon .wc-block-components-panel__button { font-size: .95rem; font-weight: 500; color: #4b5563; }
.tr-cart-rows .wc-block-components-totals-item__label { font-size: .98rem !important; font-weight: 400 !important; color: #1b2430; }
.tr-cart-rows .wc-block-components-totals-item__value { font-size: .98rem !important; font-weight: 600 !important; color: #1b2430; }
.wc-block-components-totals-footer-item { padding-top: 12px; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 1.25rem !important; font-weight: 700 !important; color: #1d5fa8 !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 1.45rem !important; font-weight: 700 !important; color: #1d5fa8 !important; }
.tr-cart-reassurance__item { font-size: .84rem; }
.tr-cart-reassurance__item strong { font-size: .9rem; font-weight: 600; }
.tr-posticipato__desc { margin: 0; font-size: .92rem; line-height: 1.5; color: #4b5563; }

/* ---------- badge Feedaty ---------- */
.tr-feedaty { margin: 18px 0 0; display: flex; justify-content: center; }
.tr-feedaty .feedaty_widget { max-width: 220px; }

/* carrello: box di rassicurazione + badge Feedaty sulla stessa riga */
.tr-cart-under { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 14px 0 0; }
.tr-cart-under .tr-cart-reassurance { flex: 1 1 150px; min-width: 0; margin: 0; display: block; }
.tr-cart-under .tr-cart-reassurance__item { height: 100%; box-sizing: border-box; }
.tr-cart-under .tr-feedaty { flex: 0 0 auto; min-width: 136px; margin: 0; display: flex; align-items: center; justify-content: center; padding: 6px 8px; background: #f3f4f6; border-radius: 10px; overflow: visible; }
.tr-cart-under .tr-feedaty .feedaty_widget, .tr-cart-under .tr-feedaty .feedaty_widget > div { max-width: none; overflow: visible; }
