/* Carrello Dimavis nello stile del checkout Focused (tema child dimavis), caricato da inc/carrello.php solo con il layout
   Focused. Descrizione nel documento modifiche-checkout-dimavis-2026-09-26.md, parte T. Stesse misure del checkout:
   testo 14 px, titoli e totale 20 px, piccoli 12 px; principali #000, secondari #707070; verde #2d8185; angoli 12 px. */
body.dmv-carrello{-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto}
body.dmv-carrello .woocommerce-cart-form,body.dmv-carrello .cart-collaterals{color:#000;font-size:14px;line-height:1.35}

/* Titolo */
body.dmv-carrello .dmv-carrello-hd{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 20px}
body.dmv-carrello .dmv-carrello-hd h1{flex:1;width:auto;margin:0;font-size:20px;font-weight:700;line-height:1.2;color:#000;text-transform:none;letter-spacing:normal}
body.dmv-carrello .dmv-carrello-hd span{flex:none;font-size:14px;color:#707070;white-space:nowrap}

/* Righe: griglia miniatura | nome | prezzo, sotto quantità e "Rimuovi" */
body.dmv-carrello .cart-wrapper{overflow:visible}
body.dmv-carrello table.woocommerce-cart-form__contents{display:block;width:100%;margin:0;border:0}
body.dmv-carrello table.woocommerce-cart-form__contents thead{display:none}
body.dmv-carrello table.woocommerce-cart-form__contents tbody{display:block}
body.dmv-carrello table.woocommerce-cart-form__contents tr.cart_item{display:grid;grid-template-columns:64px auto minmax(0,1fr) auto;grid-template-areas:"img nome nome tot" "img qty rim rim";column-gap:15px;row-gap:12px;align-items:start;margin:0 0 20px;padding:0 0 20px;border-bottom:1px solid #dedede}
body.dmv-carrello table.woocommerce-cart-form__contents tr.cart_item>td{display:block;margin:0;padding:0!important;border:0;text-align:left;background:transparent;min-width:0}
body.dmv-carrello table.woocommerce-cart-form__contents tr.cart_item>td::before{display:none!important}
body.dmv-carrello tr.cart_item>td.product-thumbnail{grid-area:img;width:64px}
body.dmv-carrello tr.cart_item>td.product-name{grid-area:nome;display:flex!important;flex-direction:column}
body.dmv-carrello tr.cart_item>td.product-price{display:none!important}
body.dmv-carrello tr.cart_item>td.product-quantity{grid-area:qty;align-self:center}
body.dmv-carrello tr.cart_item>td.product-remove{grid-area:rim;align-self:center;width:auto}
body.dmv-carrello tr.cart_item>td.product-subtotal{grid-area:tot;text-align:right!important;white-space:nowrap;font-size:14px;font-weight:400;color:#000}
body.dmv-carrello tr.cart_item>td.product-subtotal .amount{font-weight:400;color:#000}

/* Miniatura come nel riepilogo del checkout */
body.dmv-carrello td.product-thumbnail a,body.dmv-carrello td.product-thumbnail>img{display:block;width:64px;height:64px;border-radius:16px;background:#ededed;box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 1px 3px rgba(0,0,0,.04),0 2px 8px rgba(0,0,0,.06)}
body.dmv-carrello td.product-thumbnail img{display:block;box-sizing:border-box;width:64px!important;max-width:none;height:64px;margin:0;border:2px solid #fff;border-radius:16px;background:#fff;object-fit:contain}

/* Nome, confezioni, dati della riga, prezzo barrato */
body.dmv-carrello td.product-name>a{font-size:14px;font-weight:700;line-height:1.35;color:#000;text-decoration:none}
body.dmv-carrello td.product-name>a:hover{color:#2d8185}
body.dmv-carrello td.product-name dl.variation,body.dmv-carrello td.product-name .mobile-product-price{display:none!important}
body.dmv-carrello .dmv-riga-sotto{display:flex;flex-direction:column}
body.dmv-carrello .dmv-riga-risp{display:inline-flex;align-items:center;gap:4px;margin-top:2px;font-size:12px;font-weight:400;color:#707070;text-transform:uppercase;white-space:nowrap}
body.dmv-carrello .dmv-riga-risp svg{flex:none}
body.dmv-carrello .dmv-riga-risp .amount,body.dmv-carrello .dmv-barrato .amount{font-weight:400;color:inherit}
body.dmv-carrello .dmv-riga-tag{display:block;margin-top:2px;font-size:12px;font-weight:400;line-height:1.4;color:#707070;white-space:normal}
body.dmv-carrello .dmv-riga-tag strong{font-weight:700;color:#2d8185}
body.dmv-carrello .dmv-barrato{display:block;font-size:12px;font-weight:400;color:#707070;text-decoration:line-through}

/* Quantità: - 2 + in un riquadro */
body.dmv-carrello td.product-quantity .ux-quantity{display:inline-flex;align-items:center;height:40px;margin:0;border:1px solid #dedede;border-radius:12px;background:#fff;overflow:hidden;vertical-align:middle}
body.dmv-carrello td.product-quantity .ux-quantity__button{text-shadow:none;width:40px;min-width:40px;height:38px;min-height:0;margin:0!important;padding:0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;color:#000!important;font-size:18px;font-weight:400;line-height:38px}
body.dmv-carrello td.product-quantity .ux-quantity__button:hover{background:#f5f5f5!important}
body.dmv-carrello td.product-quantity .ux-quantity__button:focus-visible{outline:0;box-shadow:inset 0 0 0 2px rgba(45,129,133,.5)!important}
body.dmv-carrello td.product-quantity input.qty{width:32px;min-width:0;height:38px;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:14px;font-weight:700;color:#000;text-align:center;-moz-appearance:textfield;appearance:textfield}
body.dmv-carrello td.product-quantity input.qty::-webkit-inner-spin-button,body.dmv-carrello td.product-quantity input.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* "Rimuovi" al posto della × tonda di Flatsome */
body.dmv-carrello td.product-remove a.remove{position:static!important;top:auto;display:inline-block;width:auto;height:auto;margin:0;padding:0;border:0!important;border-radius:0;background:transparent!important;font-size:14px!important;font-weight:400;line-height:1.35;color:#707070!important;text-decoration:underline;text-underline-offset:2px;opacity:1}
body.dmv-carrello td.product-remove a.remove:hover{color:#2d8185!important}

/* Confezione successiva */
body.dmv-carrello tr.dmv-conf-su-riga{display:block;margin:0 0 20px}
body.dmv-carrello tr.dmv-conf-su-riga>td{display:block;padding:0!important;border:0}
body.dmv-carrello .dmv-conf-su{text-align:left;display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #d5e2e3;border-radius:12px;background:#f0f8f9}
body.dmv-carrello .dmv-conf-su>svg{flex:none;color:#2d8185}
body.dmv-carrello .dmv-conf-su-txt{display:flex;flex-direction:column;flex:1;min-width:0;font-size:14px;line-height:1.35}
body.dmv-carrello .dmv-conf-su-txt strong{font-weight:700;color:#000}
body.dmv-carrello .dmv-conf-su-txt span{margin-top:2px;font-size:12px;color:#707070}
body.dmv-carrello a.dmv-conf-su-btn{flex:none;display:inline-flex;align-items:center;height:36px;padding:0 12px;border:1px solid #2d8185;border-radius:12px;background:#fff;color:#2d8185;font-size:14px;font-weight:700;line-height:1;text-transform:uppercase;letter-spacing:.03em;text-decoration:none;white-space:nowrap}
body.dmv-carrello a.dmv-conf-su-btn:hover{background:#2d8185;color:#fff}

/* Riga dei pulsanti: "Continua con gli acquisti" come link */
body.dmv-carrello table.woocommerce-cart-form__contents tr:not(.cart_item):not(.dmv-conf-su-riga){display:block}
body.dmv-carrello td.actions{display:block;padding:0!important;border:0}
body.dmv-carrello td.actions .continue-shopping{float:none!important;margin:0}
body.dmv-carrello td.actions .button-continue-shopping{min-height:0;margin:0;padding:0;border:0;background:transparent!important;box-shadow:none;font-size:14px;font-weight:400;line-height:1.35;color:#2d8185!important;text-transform:none;letter-spacing:normal;text-decoration:underline;text-underline-offset:2px}
body.dmv-carrello td.actions .button-continue-shopping:hover{color:#256b6e!important}

/* Riepilogo: codice sconto, totali, pulsante, rassicurazione, icone */
body.dmv-carrello .cart-collaterals .cart-sidebar{display:flex;flex-direction:column}
body.dmv-carrello .cart-sidebar>form.ux-cart-coupon{order:1;margin:0!important;padding:0 0 16px}
body.dmv-carrello .cart-sidebar>.cart_totals{order:2}
body.dmv-carrello .cart-sidebar>*:not(form.ux-cart-coupon):not(.cart_totals){order:3}
body.dmv-carrello .cart_totals>table:first-child,body.dmv-carrello .cart_totals>h2{display:none}
body.dmv-carrello .cart_totals table.shop_table{width:100%;margin:0;border:0}
body.dmv-carrello .cart_totals table.shop_table>tbody{display:block}
body.dmv-carrello .cart_totals table.shop_table>tbody>tr{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
body.dmv-carrello .cart_totals table.shop_table>tbody>tr>th,body.dmv-carrello .cart_totals table.shop_table>tbody>tr>td{display:block;padding:5px 0;border:0!important;background:transparent;font-size:14px;font-weight:400;line-height:1.35;color:#000;text-align:left;text-transform:none;letter-spacing:normal}
body.dmv-carrello .cart_totals table.shop_table>tbody>tr>td{text-align:right}
body.dmv-carrello .cart_totals table.shop_table>tbody>tr>td::before{display:none!important}
body.dmv-carrello .cart_totals table.shop_table .amount{font-weight:400;color:#000}
body.dmv-carrello .cart_totals tr.shipping{display:block!important}
body.dmv-carrello .cart_totals tr.shipping>td.shipping__inner{width:100%;padding:0!important}
body.dmv-carrello .cart_totals table.shipping__table{width:100%;margin:0;border:0}
body.dmv-carrello .cart_totals table.shipping__table>tbody>tr{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
body.dmv-carrello .cart_totals table.shipping__table th,body.dmv-carrello .cart_totals table.shipping__table td{display:block;padding:5px 0;border:0!important;font-size:14px;font-weight:400;line-height:1.35;color:#000;text-transform:none;letter-spacing:normal}
body.dmv-carrello .cart_totals table.shipping__table td{text-align:right}
body.dmv-carrello .cart_totals table.shipping__table td::before{display:none!important}
body.dmv-carrello .cart_totals ul#shipping_method{margin:0;padding:0;list-style:none}
body.dmv-carrello .cart_totals ul#shipping_method li{margin:0;padding:0;list-style:none;text-align:right}
body.dmv-carrello .cart_totals ul#shipping_method label{opacity:1;margin:0;font-size:14px;font-weight:400;color:#000}
body.dmv-carrello .dmv-gratis{font-weight:700;color:#2d8185}
body.dmv-carrello .cart_totals tr.order-total{margin-top:5px;padding-top:7px;border-top:1px solid #dedede}
body.dmv-carrello .cart_totals tr.order-total>th,body.dmv-carrello .cart_totals tr.order-total>td{font-size:20px!important;font-weight:700!important}
body.dmv-carrello .cart_totals tr.order-total .amount{font-weight:700}
body.dmv-carrello .cart_totals tr.order-total td strong::before{content:"EUR";margin-right:8px;font-size:12px;font-weight:400;color:#707070;vertical-align:1px}
body.dmv-carrello .cart_totals table.shop_table>tbody>tr.dmv-risparmio>th,body.dmv-carrello .cart_totals table.shop_table>tbody>tr.dmv-risparmio>td,body.dmv-carrello .cart_totals table.shop_table tr.dmv-risparmio .amount{padding-top:0;font-weight:700;color:#2d8185}
body.dmv-carrello .dmv-risp{display:inline-flex;align-items:center;gap:6px}
body.dmv-carrello .dmv-risp svg{flex:none}

/* Codice sconto come nel checkout: campo e "Applica" su una riga, cartellino del codice nel verde del checkout */
body.dmv-carrello form.ux-cart-coupon .coupon{display:flex;flex-wrap:nowrap;align-items:center;gap:8px}
body.dmv-carrello form.ux-cart-coupon .widget-title{display:none}
body.dmv-carrello form.ux-cart-coupon #coupon_code{flex:1;min-width:0;height:48px;margin:0!important;padding:0 13.2px;border:1px solid #dedede;border-radius:12px;background:#fff;box-shadow:none;font-size:14px;color:#000}
body.dmv-carrello form.ux-cart-coupon #coupon_code::placeholder{color:#707070;opacity:1;text-transform:none}
body.dmv-carrello form.ux-cart-coupon #coupon_code:focus{border-color:#2d8185;box-shadow:0 0 0 .5px #2d8185,0 0 0 4px rgba(45,129,133,.3);outline:0}
body.dmv-carrello form.ux-cart-coupon button[name="apply_coupon"]{flex:none;display:inline-flex;align-items:center;width:auto!important;height:48px;min-height:0;margin:0;padding:0 16px!important;border:0;text-shadow:none;white-space:nowrap;border-radius:12px;background:#ededed;box-shadow:none;color:#707070;font-size:14px;font-weight:700;line-height:1;text-transform:uppercase;letter-spacing:.03em}
body.dmv-carrello form.ux-cart-coupon .coupon:has(#coupon_code:not(:placeholder-shown)) button[name="apply_coupon"]{background:#2d8185;color:#fff}
body.dmv-carrello form.ux-cart-coupon .coupon:has(#coupon_code:not(:placeholder-shown)) button[name="apply_coupon"]:hover{background:#256b6e}
html body.dmv-carrello .etp-coupon-chip,html body.dmv-carrello tr.cart-discount,html body.dmv-carrello .etp-applying{--cc-accent:#2d8185;--cc-accent-dark:#256b6e;--cc-accent-rgb:45,129,133}

/* Pulsante come "Conferma ordine" del checkout, con il lucchetto */
body.dmv-carrello .wc-proceed-to-checkout{margin:0;padding:16px 0 0}
body.dmv-carrello .wc-proceed-to-checkout a.checkout-button{display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:100%;min-height:50px;margin:0;padding:10px 16px;border:0;border-radius:12px;background-color:#2d8185!important;box-shadow:0 3px 6px -4px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);color:#fff!important;font-size:20px;font-weight:700;line-height:24px;text-transform:uppercase;letter-spacing:.03em}
body.dmv-carrello .wc-proceed-to-checkout a.checkout-button:hover{background-color:#256b6e!important}
body.dmv-carrello .wc-proceed-to-checkout a.checkout-button::before{content:"";flex:none;width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat}
body.dmv-carrello .dmv-garanzie{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 18px;margin:12px 0 0;padding:0;list-style:none}
body.dmv-carrello .dmv-garanzie li{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:14px;line-height:1.35;color:#707070;list-style:none}
body.dmv-carrello .dmv-garanzie svg{flex:none;color:#2d8185}
body.dmv-carrello .cart-sidebar .payment-icons{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:16px 0 0}
body.dmv-carrello .cart-sidebar .payment-icons .payment-icon{margin:0}

/* Carrello vuoto (modello di Flatsome: .wc-empty-cart-message > .woocommerce-info > .message-container) */
body.dmv-carrello .wc-empty-cart-message .woocommerce-info{margin:0;padding:24px 0 8px;border:0;background:transparent}
body.dmv-carrello .wc-empty-cart-message .message-container{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:none;margin:0;padding:0;font-size:20px;font-weight:700;line-height:1.2;color:#000}
body.dmv-carrello .wc-empty-cart-message .message-container::before{content:"";position:static;display:block;width:48px;height:48px;margin:0;background:#2d8185;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 1.9-1.5L21 8H6.2'/%3E%3Ccircle cx='10' cy='20' r='1.3'/%3E%3Ccircle cx='17' cy='20' r='1.3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 1.9-1.5L21 8H6.2'/%3E%3Ccircle cx='10' cy='20' r='1.3'/%3E%3Ccircle cx='17' cy='20' r='1.3'/%3E%3C/svg%3E") center/contain no-repeat}
body.dmv-carrello .return-to-shop .button.wc-backward{display:inline-flex;align-items:center;justify-content:center;min-height:50px;margin:12px 0 0;padding:10px 24px;border:0;border-radius:12px;background-color:#2d8185!important;box-shadow:0 3px 6px -4px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23);color:#fff!important;font-size:20px;font-weight:700;line-height:24px;text-transform:uppercase;letter-spacing:.03em}
body.dmv-carrello .return-to-shop .button.wc-backward:hover{background-color:#256b6e!important}

@media (max-width:849px){
body.dmv-carrello .cart-collaterals{margin-top:4px}
body.dmv-carrello .cart-collaterals .cart-sidebar{padding:0!important}
}
@media (min-width:850px){
body.dmv-carrello .woocommerce.row.row-divided>.col+.col{border-left:0}
body.dmv-carrello .woocommerce.row>.col.large-7{padding-right:44px}
body.dmv-carrello .cart-collaterals .cart-sidebar{padding:24px!important;border-radius:12px;background:#f5f5f5}
}
/* Avvisi come nel checkout Focused: quelli di successo ("Carrello aggiornato.", "Codice promozionale applicato…",
   "…rimosso") solo per i lettori di schermo (la conferma la danno cartellino e totali); visibili "… rimosso. Annulla?"
   (serve ad annullare) ed errori. Lo scorrimento verso gli avvisi nascosti è tolto da inc/carrello.php. */
body.dmv-carrello .woocommerce-message:not(:has(.restore-item)){position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}
body.dmv-carrello .woocommerce-message:has(.restore-item),body.dmv-carrello ul.woocommerce-error{margin:0 0 16px;padding:12px 16px;border:1px solid #dedede;border-radius:12px;background:#fff;list-style:none}
body.dmv-carrello ul.woocommerce-error{border-color:#ff6465;background:#fff5f5}
body.dmv-carrello ul.woocommerce-error li{margin:0;padding:0;list-style:none}
body.dmv-carrello ul.woocommerce-error li+li{margin-top:6px}
body.dmv-carrello .woocommerce-message .message-container,body.dmv-carrello ul.woocommerce-error .message-container{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;max-width:none;margin:0;padding:0;font-size:14px;line-height:1.35;color:#000;text-align:left}
body.dmv-carrello .woocommerce-message .message-container>i,body.dmv-carrello .woocommerce-message .message-container>.icon-checkmark{margin:0;color:#2d8185}
body.dmv-carrello ul.woocommerce-error .message-icon{margin:0;color:#ff6465}
body.dmv-carrello .woocommerce-message a.restore-item{margin-left:auto;font-weight:700;color:#2d8185;text-decoration:underline;text-underline-offset:2px}
body.dmv-carrello .woocommerce-message:focus,body.dmv-carrello ul.woocommerce-error:focus,body.dmv-carrello .woocommerce-notices-wrapper:focus{outline:0}
/* Errore del codice sconto sotto il campo come nel checkout (12 px grassetto #ff6465 a 6 px dal campo): p.coupon-error-notice
   dentro .coupon, messo da checkout/carrello.js come fa WooCommerce, con .has-error sul campo */
body.dmv-carrello form.ux-cart-coupon .coupon{flex-wrap:wrap;gap:6px 8px}
body.dmv-carrello form.ux-cart-coupon #coupon_code{flex:1 1 0}
body.dmv-carrello form.ux-cart-coupon .coupon-error-notice{flex:0 0 100%;order:5;margin:0;font-size:12px;font-weight:700;line-height:1.4;color:#ff6465;text-align:left}
body.dmv-carrello form.ux-cart-coupon #coupon_code.has-error{border-color:#ff6465}
body.dmv-carrello form.ux-cart-coupon #coupon_code.has-error:focus{box-shadow:0 0 0 .5px #ff6465,0 0 0 4px rgba(255,100,101,.3)}
/* iPhone: campo del codice a 16 px, altrimenti Safari ingrandisce la pagina (ultima regola del file). */
@supports (-webkit-touch-callout:none){body.dmv-carrello form.ux-cart-coupon #coupon_code{font-size:16px}}
