/* =====================================================================
   CARRELLO E PAGAMENTO (pacchetto 2) — vedi inc/cassa.php
   Stessa grammatica del resto del sito: nero, bianco, grigi, giallo per le targhette, angoli vivi,
   Poppins; cifre allineate (tabular-nums). Il prefisso ".page-content" serve a vincere sulle regole
   dei titoli delle pagine di testo (style.css), che facevano enormi i nomi dei prodotti.
   ===================================================================== */

/* ---------------------------------------------------------------- impaginazione */
/* prima: margini fissi di 180 px per lato (a 1366 px il modulo era largo 551 px e il riepilogo 360) */
body.woocommerce-cart main.page-wrapper,
body.woocommerce-checkout main.page-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    box-sizing: border-box;
}
@media (max-width: 767px) {
    body.woocommerce-cart main.page-wrapper,
    body.woocommerce-checkout main.page-wrapper { padding: 20px 16px 56px; }
}
body.woocommerce-cart h1.entry-title,
body.woocommerce-checkout h1.entry-title {
    margin: 0 0 32px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
    color: #000;
}
@media (max-width: 767px) {
    body.woocommerce-cart h1.entry-title,
    body.woocommerce-checkout h1.entry-title { margin-bottom: 20px; font-size: 22px; }
}

/* cifre allineate in colonna ovunque ci siano prezzi */
.wc-block-cart .wc-block-components-formatted-money-amount,
.wc-block-checkout .wc-block-components-formatted-money-amount,
.wc-block-components-totals-item__value { font-variant-numeric: tabular-nums; }

/* angoli vivi per campi e pulsanti (WooCommerce usa 4 px) */
.wc-block-cart .wc-block-components-quantity-selector,
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-blocks-components-select__select,
.wc-block-checkout .wc-blocks-components-select__container,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control input,
.wc-block-checkout .wc-block-components-textarea,
.wc-block-components-totals-coupon .wc-block-components-text-input input,
.wc-block-components-button:not(.is-link) { border-radius: 0 !important; }
/* scelte (spedizione, pagamento) come caselle squadrate: WooCommerce arrotonda la prima e l'ultima di 4 px */
.wc-block-checkout .wc-block-components-radio-control__option,
.wc-block-checkout .wc-block-components-radio-control--highlight-checked,
.wc-block-checkout .wc-block-components-radio-control--highlight-checked::after,
.wc-block-checkout .wc-block-components-radio-control-accordion-option { border-radius: 0 !important; }
/* "Svuota il carrello" nella pagina del carrello: WooCommerce dà 4 px ai pulsanti del blocco */
.page-content .sf-svuota button { border-radius: 0; }

/* ---------------------------------------------------------------- pulsante principale (carrello e pagamento) */
/* pieno e nero a riposo, bianco con contorno al passaggio: come "Aggiungi al carrello" */
.wc-block-cart .wc-block-cart__submit-container { padding: 0; background: none; }
.wc-block-cart__submit-container.wc-block-cart__submit-container--sticky { background-color: #fff !important; padding: 12px 16px; }
.page-content a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained,
.page-content .wc-block-components-checkout-place-order-button {
    min-height: 56px;
    border: 0;
    border-radius: 0;
    background-color: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.page-content a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained .wc-block-components-button__text,
.page-content .wc-block-components-checkout-place-order-button .wc-block-components-button__text { color: inherit !important; }
.page-content a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover,
.page-content .wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-container:hover .wc-block-cart__submit-button {
    background-color: #fff;
    color: #000 !important;
    box-shadow: inset 0 0 0 1px #000;
}

/* ---------------------------------------------------------------- carrello: titoli */
.page-content h2.wc-block-cart__totals-title,
.page-content .wc-block-cart .wc-block-cart-items__header {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
}
.page-content h2.wc-block-cart__totals-title { margin: 0 0 8px; padding: 0; text-align: left; }

/* ---------------------------------------------------------------- carrello: righe dei prodotti */
.page-content .wc-block-cart-items .wc-block-components-product-name {
    color: #000;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}
.page-content .wc-block-cart-items a.wc-block-components-product-name:hover { color: #000; opacity: .7; }
/* la descrizione breve ripeteva il testo della scheda: qui conta cosa si compra, taglia e prezzo */
.wc-block-cart .wc-block-components-product-metadata__description,
.wc-block-checkout .wc-block-components-product-metadata__description { display: none; }
.wc-block-cart .wc-block-components-product-details { margin: 4px 0 0; color: #7a7a7a; font-size: 13px; }
.wc-block-cart .wc-block-cart-item__image img { border: 1px solid #ececec; background: #fff; }
/* − + e cestino come nel riepilogo del pagamento: bordo e testo neri, fondo bianco, al passaggio fondo nero.
   Il cestino ha il selettore lungo di WooCommerce ("table.wc-block-cart-items … __remove-link"), più forte di uno breve. */
.wc-block-cart .wc-block-components-quantity-selector { border-color: #000; }
/* Angoli vivi anche dentro: WooCommerce dà 4 px di arrotondamento al riquadro e i pulsanti − e + lo ereditano, così
   al passaggio il "+" nero aveva gli angoli tondi dentro un riquadro squadrato (pacchetto 2). */
.page-content .wc-block-cart .wc-block-components-quantity-selector,
.page-content .wc-block-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { border-radius: 0; }
.wc-block-cart .wc-block-components-quantity-selector::after { border-color: #000; border-radius: 0; }
.page-content .wc-block-cart .wc-block-components-quantity-selector__button { color: #000; opacity: 1; transition: background-color .2s ease, color .2s ease; }
.page-content .wc-block-cart .wc-block-components-quantity-selector__button:hover:not(:disabled) { background: #000; color: #fff; }
.page-content .wc-block-cart .wc-block-components-quantity-selector__button:disabled { opacity: 1; color: #c4c4c4; }
.page-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: 8px;
    padding: 0;
    border: 1px solid #000;
    border-radius: 0;
    background: #fff;
    color: #000;
    vertical-align: middle;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .2s ease, color .2s ease;
}
.page-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link svg { width: 18px; height: 18px; fill: currentColor; }
.page-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:hover,
.page-content .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link:focus-visible { background: #000; color: #fff; }

/* Scelte di spedizione e pagamento (22/11): il nome del metodo con i loghi (PayPal, carte) va su due righe e il pallino,
   centrato in altezza, finiva sotto il nome. Ora sta sulla prima riga, come nelle scelte a una riga. */
.wc-block-checkout .wc-block-components-radio-control__option .wc-block-components-radio-control__input {
    top: 28px;
    transform: translateY(-50%);
}

/* Metodi di pagamento (22/11 sera). Prima: il pallino stava una riga sopra il nome del metodo, il nome era piccolo (13 px)
   e grigio, i loghi di PayPal andavano su una riga a parte, ogni scelta era alta più di 100 px con spazi vuoti.
   Ora una scelta = una riga alta 64 px: pallino, nome (15 px, nero) e loghi a destra, tutto centrato in altezza.
   Sul telefono i loghi delle carte vanno sotto il nome (accanto non ci stanno) e il pallino resta all'altezza del nome.
   Il contenuto del metodo scelto (campi della carta, pulsanti di PayPal) ha lo stesso margine sinistro del nome sul computer
   e usa tutta la larghezza sul telefono. Solo aspetto: nessun cambiamento a come funziona il pagamento. */
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option {
    display: flex !important;
    align-items: center;
    min-height: 64px;
    margin: 0 !important;
    padding: 20px 20px 20px 56px !important;
    box-sizing: border-box;
}
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option .wc-block-components-radio-control__input {
    left: 20px;
    top: 32px; /* metà della riga: 20 px di margine + metà dei 24 px del nome */
    transform: translateY(-50%);
}
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option-layout,
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label-group,
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label { flex: 1 1 auto; width: 100%; min-width: 0; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label > span {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px 16px !important;
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    color: #000;
}
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label > span > span { display: flex !important; align-items: center; gap: 6px !important; margin-left: auto; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label img {
    float: none !important;
    display: block !important;
    height: 24px !important;
    width: auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
}
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label > span > span img { margin: 0 !important; }
/* metodo scelto: contenuto sotto il nome, allineato al nome */
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content { padding: 0 20px 20px 56px !important; }
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content:empty { display: none; }
/* campi della carta (PayPal): etichette come quelle del resto del modulo */
.wc-block-checkout .wc-block-checkout__payment-method .wpg-paypal-cc-field label { font-size: 13px; font-weight: 500; color: #000; }
@media (max-width: 599px) {
    .wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option { padding: 18px 16px 18px 48px !important; }
    .wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option .wc-block-components-radio-control__input { left: 16px; top: 30px; }
    .wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label img { height: 20px !important; }
    /* loghi delle carte sempre sotto il nome, a sinistra (accanto non ci stanno su ogni telefono) */
    .wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label > span > span { flex-basis: 100%; margin-left: 0; }
    /* sul telefono i pulsanti di PayPal e i campi della carta usano tutta la larghezza della scelta */
    .wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content { padding: 0 16px 16px !important; }
}

/* Avviso dei termini (senza casella): i due collegamenti si devono vedere come collegamenti */
.wc-block-checkout .wc-block-checkout__terms a { color: #000; text-decoration: underline; text-underline-offset: 2px; }
.wc-block-checkout .wc-block-checkout__terms a:hover { opacity: .7; }

/* Carrello da telefono (22/11). La griglia di WooCommerce ha colonne fisse (foto 60 px + 132 px) e una colonna in più
   che cresce con − + e cestino: fino a 375 px il totale della riga e "Risparmia" uscivano dal bordo di 6–61 px ed erano
   tagliati. Ora: foto | dettagli (si adattano) | totale, con il totale sulla riga di − + (quantità × prezzo = totale,
   letto in un colpo d'occhio); − + e cestino alti 40 px, comodi da toccare; il nome va a capo invece di spingere. */
.page-content .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row,
.page-content .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: start;
}
.page-content .wc-block-cart.is-mobile .wc-block-cart-items__row .wc-block-cart-item__image,
.page-content .wc-block-cart.is-small .wc-block-cart-items__row .wc-block-cart-item__image { grid-column: 1; grid-row: 1; }
.page-content .wc-block-cart.is-mobile .wc-block-cart-items__row .wc-block-cart-item__product,
.page-content .wc-block-cart.is-small .wc-block-cart-items__row .wc-block-cart-item__product { grid-column: 2; grid-row: 1; min-width: 0; }
.page-content .wc-block-cart.is-mobile .wc-block-cart-items__row .wc-block-cart-item__total,
.page-content .wc-block-cart.is-small .wc-block-cart-items__row .wc-block-cart-item__total {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    min-width: 0;
    padding-bottom: 9px; /* sulla linea del numero dentro − + */
    text-align: right;
}
.page-content .wc-block-cart.is-mobile .wc-block-cart-item__total-price-and-sale-badge-wrapper,
.page-content .wc-block-cart.is-small .wc-block-cart-item__total-price-and-sale-badge-wrapper { align-items: flex-end; }
.page-content .wc-block-cart.is-mobile .wc-block-components-product-name,
.page-content .wc-block-cart.is-small .wc-block-components-product-name { overflow-wrap: anywhere; }
.page-content .wc-block-cart.is-mobile .wc-block-cart-item__quantity,
.page-content .wc-block-cart.is-small .wc-block-cart-item__quantity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-content .wc-block-cart.is-mobile .wc-block-components-quantity-selector,
.page-content .wc-block-cart.is-small .wc-block-components-quantity-selector { width: 112px; height: 40px; margin: 0; }
.page-content .wc-block-cart.is-mobile .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button,
.page-content .wc-block-cart.is-small .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { min-width: 38px; }
.page-content .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link,
.page-content .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link { width: 40px; height: 40px; margin-left: 0; }
/* la targhetta "Risparmia" va a capo sotto il totale invece di allargare la colonna */
.page-content .wc-block-cart.is-mobile .wc-block-cart-item__total .wc-block-components-sale-badge,
.page-content .wc-block-cart.is-small .wc-block-cart-item__total .wc-block-components-sale-badge { max-width: 76px; white-space: normal; text-align: right; }

/* "Risparmia …": la targhetta gialla del sito, in piccolo */
.wc-block-cart .wc-block-components-sale-badge,
.wc-block-checkout .wc-block-components-sale-badge {
    margin-top: 4px;
    padding: 2px 6px;
    border: 0;
    border-radius: 0;
    background: #ffda13;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- pagamento: titoli delle sezioni del modulo */
.page-content h2.wc-block-components-checkout-step__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    color: #000;
}
.wc-block-checkout .wc-block-components-checkout-step { margin-bottom: 32px; }

/* campi: bordo grigio, nero quando ci si scrive */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-blocks-components-select__select,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control input,
.wc-block-checkout .wc-block-components-textarea { border-color: #cfcfcf; }
.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-blocks-components-select__select:focus,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control input:focus,
.wc-block-checkout .wc-block-components-textarea:focus { border-color: #000; box-shadow: 0 0 0 1px #000; outline: 0; }

/* ---------------------------------------------------------------- pagamento: colonna del riepilogo */
/* colonna più larga: WooCommerce la fissa a 360 px, stretta per foto, nome, quantità e totale */
@media (min-width: 1000px) {
    .wc-block-checkout.is-large .wc-block-checkout__sidebar {
        flex: 0 0 40%;
        width: auto;
        max-width: 440px;
    }
}
@media (min-width: 768px) {
    .wc-block-checkout__sidebar.is-large {
        position: sticky;
        top: calc(var(--sf-testata-h, 0px) + 24px);
        align-self: flex-start;
    }
    .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
        border: 1px solid #ececec;
        border-radius: 0;
    }
}
.page-content .wc-block-components-checkout-order-summary__title-text {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
}

/* Riga compatta: foto | nome, taglia, quantità e cestino | totale.
   WooCommerce centra la foto in un contenitore alto quanto la riga e il tema aggiungeva 24 px sopra e sotto
   (regola delle immagini delle pagine di testo): righe da quasi 150 px per una foto da 72. Ora circa 90 px. */
.page-content .wc-block-components-order-summary .wc-block-components-order-summary-item {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.page-content .wc-block-components-order-summary .wc-block-components-order-summary-item:last-child { border-bottom: 0; }
.page-content .wc-block-components-order-summary .wc-block-components-order-summary-item__image {
    position: relative;
    display: block;
    width: 64px;
    height: 64px;
    margin: 0;
    padding: 0;
}
.page-content .wc-block-components-order-summary .wc-block-components-order-summary-item__image > img {
    display: block;
    width: 64px;
    max-width: none;
    height: 64px;
    margin: 0;
    object-fit: contain;
    border: 1px solid #ececec;
    background: #fff;
    box-sizing: border-box;
}
/* il pallino della quantità sulla foto: serve solo se mancano − e + (senza lo script del tema) */
.page-content .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
    position: absolute;
    top: -7px;
    right: -7px;
    left: auto;
    z-index: 1;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 10px;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
    transform: none;
}
.page-content .wc-block-components-order-summary.sf-riepilogo-attivo .wc-block-components-order-summary-item__quantity { display: none; }

.page-content .wc-block-components-order-summary .wc-block-components-order-summary-item__description {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.page-content .wc-block-components-order-summary-item .wc-block-components-product-name {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
/* il prezzo unitario ripeteva il totale a destra; se il prodotto è in saldo resta il prezzo pieno barrato,
   al posto della targhetta "Risparmia …" che qui rubava spazio al nome */
.page-content .wc-block-components-order-summary-item .wc-block-cart-item__prices { display: none; }
.page-content .wc-block-components-order-summary-item .wc-block-cart-item__prices:has(del) {
    display: block;
    margin: 1px 0 0;
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.4;
}
.page-content .wc-block-components-order-summary-item .wc-block-cart-item__prices:has(del) ins { display: none; }
.page-content .wc-block-components-order-summary-item .wc-block-components-sale-badge { display: none; }
.page-content .wc-block-components-order-summary-item .wc-block-components-product-metadata { margin: 1px 0 0; }
.page-content .wc-block-components-order-summary-item .wc-block-components-product-details {
    margin: 0;
    color: #7a7a7a;
    font-size: 12px;
    line-height: 1.4;
}
.page-content .wc-block-components-order-summary-item__total-price {
    margin: 0;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}
.page-content .wc-block-components-order-summary-item__total-price .wc-block-cart-item__total-price-and-sale-badge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* foto e nome portano al prodotto (js/cassa.js) */
.sf-riepilogo__foto {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.sf-riepilogo__foto:hover { transform: none; opacity: 1; }
.sf-riepilogo__foto:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.sf-riepilogo-attivo .wc-block-components-order-summary-item .wc-block-components-product-name { cursor: pointer; }
.sf-riepilogo-attivo .wc-block-components-order-summary-item .wc-block-components-product-name:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* − quantità + e cestino: stessa altezza, bordo e testo neri, fondo bianco; al passaggio fondo nero.
   ".sf-riepilogo__azioni" nel selettore: la vecchia regola dei pulsanti delle pagine (".page-content.prose button",
   senza bordo e con angoli arrotondati) altrimenti toglieva il bordo al cestino. */
.sf-riepilogo__azioni {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.sf-riepilogo__azioni[aria-busy="true"] { opacity: .45; pointer-events: none; }
/* durante la rimozione il cestino resta nitido: si anima (css/cestino.css) */
.sf-riepilogo__azioni[aria-busy="true"]:has(.is-via) { opacity: 1; }
.page-content .sf-riepilogo__quantita {
    display: inline-flex;
    align-items: center;
    height: 30px;
    border: 1px solid #000;
    background: #fff;
    box-sizing: border-box;
}
.page-content .sf-riepilogo__quantita button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #000;
    font: inherit;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.page-content .sf-riepilogo__quantita button:hover:not(:disabled) { background: #000; color: #fff; }
.page-content .sf-riepilogo__quantita button:disabled { color: #c4c4c4; cursor: default; }
.sf-riepilogo__numero {
    min-width: 24px;
    color: #000;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.page-content .sf-riepilogo__azioni .sf-riepilogo__rimuovi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid #000;
    border-radius: 0;
    background: #fff;
    color: #000;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .2s ease, color .2s ease;
}
.page-content .sf-riepilogo__azioni .sf-riepilogo__rimuovi svg { display: block; width: 18px; height: 18px; }
.page-content .sf-riepilogo__azioni .sf-riepilogo__rimuovi:hover,
.page-content .sf-riepilogo__azioni .sf-riepilogo__rimuovi:focus-visible { background: #000; color: #fff; }
.page-content .sf-riepilogo__quantita button:focus-visible,
.page-content .sf-riepilogo__azioni .sf-riepilogo__rimuovi:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
/* telefono: un poco più grandi per il dito */
@media (max-width: 767px) {
    .page-content .sf-riepilogo__quantita { height: 34px; }
    .page-content .sf-riepilogo__quantita button { width: 32px; height: 32px; }
    .page-content .sf-riepilogo__azioni .sf-riepilogo__rimuovi { width: 34px; height: 34px; }
}

/* totali: cifre allineate, il totale finale in evidenza */
.page-content .wc-block-components-totals-item { font-size: 14px; }
.page-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.page-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}
