body.dl-cart-page{
--dl-yellow:#ffb800;--dl-yellow-dark:#e5a500;--dl-text:#171a1f;--dl-muted:#6f7782;
--dl-border:#e2e6ea;--dl-green:#2f8a46;--dl-green-bg:#eff8f1
}
body.dl-cart-page .entry-title,body.dl-cart-page .page-title{display:none!important}
body.dl-cart-page .dl-cart-intro{width:min(1180px,calc(100vw - 48px));margin:30px auto 20px}
body.dl-cart-page .dl-cart-intro h1{margin:0 0 7px;color:var(--dl-text);font-size:clamp(28px,3vw,38px);line-height:1.12;font-weight:750;letter-spacing:-.025em}
body.dl-cart-page .dl-cart-intro p{margin:0;color:var(--dl-muted);font-size:14px;line-height:1.5}
body.dl-cart-page .dl-cart-grid{width:min(1180px,calc(100vw - 48px));margin:0 auto 44px;display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:28px;align-items:start}
body.dl-cart-page .dl-cart-items-panel,body.dl-cart-page .dl-cart-summary-panel{min-width:0}
body.dl-cart-page table.shop_table.cart{width:100%!important;border:0!important;border-collapse:separate!important;border-spacing:0!important;margin:0!important;background:transparent!important}
body.dl-cart-page table.shop_table.cart>thead{display:none!important}
body.dl-cart-page table.shop_table.cart>tbody{display:flex!important;flex-direction:column!important;gap:14px!important}
body.dl-cart-page tr.cart_item{position:relative;display:grid!important;grid-template-columns:84px minmax(0,1fr) auto;grid-template-areas:"thumb name subtotal" "thumb price subtotal" "thumb qty remove";column-gap:18px;row-gap:6px;width:100%;min-height:142px;padding:18px 20px;border:1px solid var(--dl-border)!important;border-radius:12px;background:#fff;box-shadow:0 4px 18px rgba(22,30,42,.03);box-sizing:border-box}
body.dl-cart-page tr.cart_item>td{display:block!important;width:auto!important;padding:0!important;border:0!important;background:transparent!important;text-align:left!important}
body.dl-cart-page .product-thumbnail{grid-area:thumb;width:84px!important;height:108px;align-self:center}
body.dl-cart-page .product-thumbnail a{display:block;width:100%;height:100%}
body.dl-cart-page .product-thumbnail img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:9px!important;margin:0!important}
body.dl-cart-page .dl-cart-thumb-fallback{display:flex!important;flex-direction:column;align-items:center;justify-content:center;border-radius:9px;background:linear-gradient(145deg,#ffc21a,#efa600);color:#111;text-align:center!important}
body.dl-cart-page .dl-cart-thumb-fallback span{font-size:27px;font-weight:800;line-height:1}
body.dl-cart-page .dl-cart-thumb-fallback small{margin-top:6px;font-size:8px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}
body.dl-cart-page .product-name{grid-area:name;align-self:end;color:var(--dl-text)!important;font-size:17px;font-weight:730;line-height:1.25}
body.dl-cart-page .product-name a{color:inherit!important;text-decoration:none!important}
body.dl-cart-page .dl-cart-course-note{display:block;margin-top:5px;color:#7f8790;font-size:10px;font-weight:500;line-height:1.35}
body.dl-cart-page .product-price{grid-area:price;color:var(--dl-muted)!important;font-size:12px;line-height:1.3}
body.dl-cart-page .product-price:before{content:"Prezzo ";font-size:10px;color:#9aa1a9}
body.dl-cart-page .product-subtotal{grid-area:subtotal;justify-self:end;align-self:center;color:var(--dl-text)!important;font-size:18px;font-weight:760;white-space:nowrap}
body.dl-cart-page .product-remove{grid-area:remove;justify-self:end;align-self:end}
body.dl-cart-page .product-remove a.remove{display:inline-flex!important;width:auto!important;height:auto!important;align-items:center;gap:5px;padding:5px 7px!important;border-radius:6px!important;color:#777f88!important;background:transparent!important;font-size:0!important;text-decoration:none!important}
body.dl-cart-page .product-remove a.remove:before{content:"×";font-size:18px}
body.dl-cart-page .product-remove a.remove:after{content:"Rimuovi";font-size:11px}
body.dl-cart-page .product-remove a.remove:hover{color:#b42318!important;background:#fff2f0!important}
body.dl-cart-page .product-quantity{grid-area:qty;align-self:end}
body.dl-cart-page .dl-cart-qty-control{display:inline-grid;grid-template-columns:32px 42px 32px;align-items:center;height:36px;border:1px solid #d8dde2;border-radius:7px;background:#fff;overflow:hidden}
body.dl-cart-page .dl-cart-qty-control .dl-cart-qty-btn{display:flex!important;align-items:center;justify-content:center;width:32px!important;height:34px!important;padding:0!important;margin:0!important;border:0!important;background:#fff!important;color:#4d5560!important;font-size:16px!important;line-height:1!important;box-shadow:none!important}
body.dl-cart-page .dl-cart-qty-control .dl-cart-qty-btn:hover{background:#f7f8f9!important}
body.dl-cart-page .dl-cart-qty-control input.qty{width:42px!important;min-width:42px!important;height:34px!important;padding:0!important;margin:0!important;border:0!important;border-left:1px solid #edf0f2!important;border-right:1px solid #edf0f2!important;background:#fff!important;box-shadow:none!important;text-align:center!important;color:var(--dl-text)!important;font-size:12px!important;font-weight:650!important;-moz-appearance:textfield}
body.dl-cart-page .dl-cart-qty-control input.qty::-webkit-outer-spin-button,body.dl-cart-page .dl-cart-qty-control input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
body.dl-cart-page .dl-cart-fixed-qty{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:34px;padding:0 10px;border:1px solid #d8dde2;border-radius:7px;background:#fff;color:var(--dl-text);font-size:12px;font-weight:650}
body.dl-cart-page tr:has(>td.actions){display:none!important}
body.dl-cart-page .dl-cart-native-update{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;opacity:0!important;pointer-events:none!important}
body.dl-cart-page .dl-cart-coupon-card{display:grid;grid-template-columns:minmax(210px,.85fr) minmax(280px,1.35fr);gap:18px;align-items:center;margin-top:14px;padding:15px 18px;border:1px solid var(--dl-border);border-radius:11px;background:#fff;box-shadow:0 4px 18px rgba(22,30,42,.025)}
body.dl-cart-page .dl-cart-coupon-copy{display:flex;align-items:center;gap:10px}
body.dl-cart-page .dl-cart-coupon-icon{width:32px;height:32px;flex:0 0 32px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#fff5d9;color:#ad7900;font-size:14px}
body.dl-cart-page .dl-cart-coupon-copy>div{display:flex;flex-direction:column;gap:1px}
body.dl-cart-page .dl-cart-coupon-copy strong{color:var(--dl-text);font-size:12px}
body.dl-cart-page .dl-cart-coupon-copy small{color:var(--dl-muted);font-size:10px}
body.dl-cart-page .dl-cart-coupon-slot .coupon{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px;width:100%;float:none!important}
body.dl-cart-page .dl-cart-coupon-slot .coupon label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}
body.dl-cart-page .dl-cart-coupon-slot input[name=coupon_code]{width:100%!important;height:40px!important;margin:0!important;padding:0 12px!important;border:1px solid #d9dee3!important;border-radius:7px!important;background:#fff!important;box-sizing:border-box!important;font-size:12px!important}
body.dl-cart-page .dl-cart-coupon-slot button[name=apply_coupon]{min-height:40px!important;margin:0!important;padding:0 16px!important;border:1px solid #d9dee3!important;border-radius:7px!important;background:#fff!important;color:var(--dl-text)!important;font-size:12px!important;font-weight:680!important;box-shadow:none!important}
body.dl-cart-page .dl-cart-left-trust{margin-top:14px;padding:16px 18px;border:1px solid var(--dl-border);border-radius:11px;background:#fff}
body.dl-cart-page .dl-cart-trust-inline{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0!important;padding:0!important}
body.dl-cart-page .dl-cart-trust-inline .dl-cart-trust-item{padding:0 16px}
body.dl-cart-page .dl-cart-trust-inline .dl-cart-trust-item:first-child{padding-left:0}
body.dl-cart-page .dl-cart-trust-inline .dl-cart-trust-item:last-child{padding-right:0}
body.dl-cart-page .dl-cart-trust-inline .dl-cart-trust-item+.dl-cart-trust-item{border-left:1px solid #eceef0}
body.dl-cart-page .cart-collaterals,body.dl-cart-page .cart-collaterals .cart_totals{width:100%!important;float:none!important;margin:0!important}
body.dl-cart-page .dl-cart-summary-panel{position:sticky;top:24px}
body.dl-cart-page .dl-cart-summary-card{padding:22px!important;border:1px solid var(--dl-border)!important;border-radius:12px!important;background:#fff!important;box-shadow:0 4px 18px rgba(22,30,42,.035)!important;box-sizing:border-box}
body.dl-cart-page .dl-cart-summary-head{display:flex;align-items:center;gap:10px;padding-bottom:16px;margin-bottom:8px;border-bottom:1px solid #eceef0}
body.dl-cart-page .dl-cart-summary-badge{width:34px;height:34px;flex:0 0 34px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--dl-yellow);color:#111;font-size:14px}
body.dl-cart-page .dl-cart-summary-head>div{display:flex;flex-direction:column;gap:1px}
body.dl-cart-page .dl-cart-summary-head strong{color:var(--dl-text);font-size:16px;line-height:1.2}
body.dl-cart-page .dl-cart-summary-head small{color:var(--dl-muted);font-size:10px}
body.dl-cart-page .dl-cart-summary-card table.shop_table{width:100%!important;margin:0!important;border:0!important;border-collapse:collapse!important}
body.dl-cart-page .dl-cart-summary-card table.shop_table th,body.dl-cart-page .dl-cart-summary-card table.shop_table td{padding:13px 0!important;border:0!important;border-bottom:1px solid #eceef0!important;background:transparent!important;color:var(--dl-text)!important;font-size:12px!important}
body.dl-cart-page .dl-cart-summary-card table.shop_table th{text-align:left!important;font-weight:650!important}
body.dl-cart-page .dl-cart-summary-card table.shop_table td{text-align:right!important}
body.dl-cart-page .dl-cart-summary-card .order-total th{font-size:13px!important}
body.dl-cart-page .dl-cart-summary-card .order-total td,body.dl-cart-page .dl-cart-summary-card .order-total .woocommerce-Price-amount{font-size:22px!important;font-weight:790!important;color:var(--dl-text)!important}
body.dl-cart-page .dl-cart-trust-list{display:flex;flex-direction:column;gap:17px;padding:18px 0}
body.dl-cart-page .dl-cart-trust-item{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;align-items:start}
body.dl-cart-page .dl-cart-trust-icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--dl-green-bg);color:var(--dl-green);font-size:10px;font-weight:800}
body.dl-cart-page .dl-cart-trust-item>div{display:flex;flex-direction:column;gap:2px}
body.dl-cart-page .dl-cart-trust-item strong{color:var(--dl-text);font-size:11px;line-height:1.3}
body.dl-cart-page .dl-cart-trust-item small{color:var(--dl-muted);font-size:10px;line-height:1.35}
body.dl-cart-page .wc-proceed-to-checkout{padding:0!important;margin:0!important}
body.dl-cart-page .wc-proceed-to-checkout .checkout-button{display:flex!important;align-items:center;justify-content:center;width:100%!important;min-height:50px!important;margin:0!important;padding:0 18px!important;border:0!important;border-radius:7px!important;background:var(--dl-yellow)!important;color:#111!important;box-shadow:none!important;font-size:14px!important;font-weight:760!important;text-decoration:none!important;text-transform:none!important}
body.dl-cart-page .wc-proceed-to-checkout .checkout-button:hover{background:var(--dl-yellow-dark)!important}
body.dl-cart-page .wc-proceed-to-checkout .checkout-button:before,body.dl-cart-page .wc-proceed-to-checkout .checkout-button:after{display:none!important;content:none!important}
body.dl-cart-page .dl-cart-secure-note{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:10px;color:#858b93;font-size:10px}
body.dl-cart-page .dl-cart-payment-card,body.dl-cart-page .dl-cart-bottom-trust{display:none!important}
body.dl-cart-express-blocked #wc-stripe-express-checkout-element,body.dl-cart-express-blocked .wc-stripe-express-checkout-wrapper,body.dl-cart-express-blocked #wc-stripe-payment-request-wrapper,body.dl-cart-express-blocked .wc-stripe-payment-request-wrapper,body.dl-cart-express-blocked .wcpay-express-checkout-wrapper,body.dl-cart-express-blocked .wcpay-express-checkout-button-container,body.dl-cart-express-blocked #wcpay-express-checkout-button,body.dl-cart-express-blocked .woocommerce-express-checkout,body.dl-cart-express-blocked .wc-express-checkout,body.dl-cart-express-blocked .express-checkout-wrapper,body.dl-cart-express-blocked .express-payment-methods,body.dl-cart-express-blocked .wc-block-components-express-payment{display:none!important}
@media(max-width:1120px) and (min-width:821px){
body.dl-cart-page .dl-cart-grid{grid-template-columns:minmax(0,1fr) 320px;gap:20px}
body.dl-cart-page .dl-cart-coupon-card{grid-template-columns:1fr;gap:12px}
body.dl-cart-page .dl-cart-trust-inline{grid-template-columns:1fr!important}
body.dl-cart-page .dl-cart-trust-inline .dl-cart-trust-item{padding:10px 0!important}
body.dl-cart-page .dl-cart-trust-inline .dl-cart-trust-item+.dl-cart-trust-item{border-left:0;border-top:1px solid #eceef0}
}
@media(max-width:820px){
body.dl-cart-page .dl-cart-intro,body.dl-cart-page .dl-cart-grid{width:min(calc(100% - 28px),620px)}
body.dl-cart-page .dl-cart-intro{margin-top:20px;margin-bottom:16px}
body.dl-cart-page .dl-cart-intro h1{font-size:26px}
body.dl-cart-page .dl-cart-grid{grid-template-columns:1fr;gap:16px;margin-bottom:28px}
body.dl-cart-page .dl-cart-summary-panel{position:static}
body.dl-cart-page tr.cart_item{grid-template-columns:76px minmax(0,1fr) auto;grid-template-areas:"thumb name subtotal" "thumb price subtotal" "thumb qty remove";min-height:130px;padding:15px;column-gap:13px}
body.dl-cart-page .product-thumbnail{width:76px!important;height:98px}
body.dl-cart-page .product-name{font-size:15px}
body.dl-cart-page .product-subtotal{font-size:15px}
body.dl-cart-page .product-remove a.remove:after{display:none}
body.dl-cart-page .dl-cart-coupon-card{grid-template-columns:1fr;gap:12px;padding:15px}
body.dl-cart-page .dl-cart-summary-card{padding:16px!important}
body.dl-cart-page .dl-cart-trust-inline{grid-template-columns:1fr!important}
body.dl-cart-page .dl-cart-trust-inline .dl-cart-trust-item{padding:10px 0!important}
body.dl-cart-page .dl-cart-trust-inline .dl-cart-trust-item+.dl-cart-trust-item{border-left:0;border-top:1px solid #eceef0}
}
@media(max-width:520px){
body.dl-cart-page tr.cart_item{grid-template-columns:68px minmax(0,1fr);grid-template-areas:"thumb name" "thumb price" "thumb subtotal" "qty qty" "remove remove";min-height:0}
body.dl-cart-page .product-thumbnail{width:68px!important;height:88px;align-self:start}
body.dl-cart-page .product-subtotal{justify-self:start;align-self:start;font-size:17px}
body.dl-cart-page .product-subtotal:before{content:"Totale: ";color:#8f969e;font-size:10px;font-weight:500}
body.dl-cart-page .product-quantity{margin-top:8px}
body.dl-cart-page .product-remove{justify-self:start}
body.dl-cart-page .product-remove a.remove:after{display:inline}
body.dl-cart-page .dl-cart-coupon-slot .coupon{grid-template-columns:1fr}
body.dl-cart-page .dl-cart-coupon-slot button[name=apply_coupon]{width:100%!important}
}


/* =========================================================
   V0.9.2 - PRODUCT CARD REBALANCE + THUMB FALLBACK + NO DUP TRUST
   ========================================================= */

/* Evita che il footer salga troppo presto nelle pagine con un solo corso. */
body.dl-cart-page main,
body.dl-cart-page #main,
body.dl-cart-page .site-main {
    min-height: calc(100vh - 220px);
}

/* Trust bar duplicata: resta solo quella nel riepilogo ordine. */
body.dl-cart-page .dl-cart-left-trust,
body.dl-cart-page .dl-cart-trust-inline {
    display: none !important;
}

/* Card prodotto più piena e più vicina al mockup. */
@media (min-width: 821px) {
    body.dl-cart-page tr.cart_item {
        grid-template-columns: 104px minmax(0, 1fr) 130px;
        grid-template-areas:
            "thumb name subtotal"
            "thumb price subtotal"
            "thumb qty remove";
        min-height: 156px;
        padding: 20px 22px !important;
        column-gap: 20px !important;
        row-gap: 8px !important;
    }

    body.dl-cart-page .product-thumbnail {
        width: 104px !important;
        height: 116px !important;
        align-self: center !important;
    }

    body.dl-cart-page .product-name {
        align-self: end !important;
        font-size: 18px !important;
        line-height: 1.25 !important;
        padding-top: 2px !important;
    }

    body.dl-cart-page .dl-cart-course-note {
        margin-top: 6px !important;
        max-width: 420px;
        font-size: 10px !important;
        line-height: 1.4 !important;
    }

    body.dl-cart-page .product-price {
        align-self: start !important;
        font-size: 12px !important;
    }

    body.dl-cart-page .product-quantity {
        align-self: end !important;
        padding-top: 4px;
    }

    body.dl-cart-page .product-subtotal {
        align-self: start !important;
        justify-self: end !important;
        margin-top: 13px;
        font-size: 17px !important;
    }

    body.dl-cart-page .product-remove {
        align-self: end !important;
        justify-self: end !important;
        margin-bottom: 2px;
    }
}

/* Fallback DeutschLab sempre pulito e visivamente forte. */
body.dl-cart-page .product-thumbnail.dl-cart-thumb-fallback {
    overflow: hidden !important;
    border: 1px solid rgba(160, 112, 0, .12);
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
        linear-gradient(145deg, #ffc421, #efa800) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}

body.dl-cart-page .dl-cart-thumb-fallback span {
    font-size: 31px !important;
    letter-spacing: -.04em;
}

body.dl-cart-page .dl-cart-thumb-fallback small {
    margin-top: 8px !important;
    font-size: 8px !important;
    letter-spacing: .07em !important;
}

/* Coupon ancora più leggero: deve essere secondario rispetto al prodotto. */
body.dl-cart-page .dl-cart-coupon-card {
    margin-top: 12px !important;
    padding: 13px 16px !important;
    min-height: 66px;
}

body.dl-cart-page .dl-cart-coupon-icon {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
}

body.dl-cart-page .dl-cart-coupon-slot input[name="coupon_code"],
body.dl-cart-page .dl-cart-coupon-slot button[name="apply_coupon"] {
    height: 38px !important;
    min-height: 38px !important;
}

/* Riepilogo leggermente più autorevole. */
body.dl-cart-page .dl-cart-summary-card {
    padding: 24px !important;
}

body.dl-cart-page .dl-cart-summary-head {
    padding-bottom: 17px !important;
    margin-bottom: 10px !important;
}

body.dl-cart-page .dl-cart-summary-head strong {
    font-size: 17px !important;
}

body.dl-cart-page .dl-cart-summary-card .order-total td,
body.dl-cart-page .dl-cart-summary-card .order-total .woocommerce-Price-amount {
    font-size: 24px !important;
}

body.dl-cart-page .dl-cart-trust-list {
    gap: 18px !important;
    padding: 20px 0 !important;
}

body.dl-cart-page .dl-cart-trust-item strong {
    font-size: 11.5px !important;
}

body.dl-cart-page .dl-cart-trust-item small {
    font-size: 10.5px !important;
}

body.dl-cart-page .wc-proceed-to-checkout .checkout-button {
    min-height: 52px !important;
    font-size: 14.5px !important;
}

/* Più respiro sotto il carrello prima del footer. */
body.dl-cart-page .dl-cart-grid {
    margin-bottom: 72px !important;
}

/* Mobile: card prodotto ancora compatta, ma senza trust duplicato. */
@media (max-width: 820px) {
    body.dl-cart-page tr.cart_item {
        min-height: 136px !important;
    }

    body.dl-cart-page .dl-cart-coupon-card {
        min-height: 0 !important;
    }

    body.dl-cart-page .dl-cart-grid {
        margin-bottom: 34px !important;
    }
}

@media (max-width: 520px) {
    body.dl-cart-page .product-thumbnail {
        width: 72px !important;
        height: 92px !important;
    }

    body.dl-cart-page .product-subtotal {
        margin-top: 0 !important;
    }
}


/* V0.9.5 - cart anti-FOUC + transition skeleton */
body.dl-cart-preboot .woocommerce-cart-form,
body.dl-cart-preboot .cart-collaterals,
body.dl-cart-preboot .dl-cart-intro {
    visibility: hidden !important;
    opacity: 0 !important;
}

body.dl-cart-ready .woocommerce-cart-form,
body.dl-cart-ready .cart-collaterals,
body.dl-cart-ready .dl-cart-intro {
    visibility: visible !important;
    opacity: 1 !important;
}

body.dl-page-leaving {
    overflow: hidden !important;
}

body.dl-page-leaving .dl-page-skeleton {
    display: block !important;
}


/* =========================================================
   V0.9.6 - SKELETON SOLO AREA CONTENUTO
   ========================================================= */

body.dl-cart-preboot .dl-page-skeleton,
body.dl-page-leaving .dl-page-skeleton {
    background: transparent !important;
    pointer-events: none !important;
    z-index: 80 !important;
}

body.dl-cart-preboot header,
body.dl-page-leaving header,
body.dl-cart-preboot footer,
body.dl-page-leaving footer,
body.dl-cart-preboot #masthead,
body.dl-page-leaving #masthead,
body.dl-cart-preboot #colophon,
body.dl-page-leaving #colophon {
    position: relative !important;
    z-index: 100 !important;
}

body.dl-cart-preboot .dl-page-skeleton__inner,
body.dl-page-leaving .dl-page-skeleton__inner {
    pointer-events: none !important;
}


/* =========================================================
   V0.9.7 - SKELETON CONFINATO AL CAMPO CARRELLO
   ========================================================= */

body.dl-cart-page .dl-page-skeleton {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    pointer-events: none !important;
}

body.dl-cart-page .dl-page-skeleton__inner {
    width: min(1180px, 100%) !important;
    margin: 18px auto 34px !important;
    padding: 0 !important;
}

body.dl-cart-preboot header,
body.dl-page-leaving header,
body.dl-cart-preboot footer,
body.dl-page-leaving footer,
body.dl-cart-preboot #masthead,
body.dl-page-leaving #masthead,
body.dl-cart-preboot #colophon,
body.dl-page-leaving #colophon {
    z-index: auto !important;
}

body.dl-page-leaving.dl-cart-page .dl-page-skeleton {
    display: block !important;
}

@media (max-width: 820px) {
    body.dl-cart-page .dl-page-skeleton__inner {
        width: 100% !important;
        margin: 12px auto 24px !important;
    }
}


/* =========================================================
   V0.9.8 - SKELETON SOSTITUISCE IL CARRELLO DURANTE IL PASSAGGIO
   ========================================================= */

/*
 * Quando clicco "Vai al checkout", il vecchio carrello sparisce nello
 * stesso momento in cui compare lo skeleton.
 */
body.dl-page-leaving.dl-cart-page .dl-cart-intro,
body.dl-page-leaving.dl-cart-page .dl-cart-grid,
body.dl-page-leaving.dl-cart-page .woocommerce-cart-form,
body.dl-page-leaving.dl-cart-page .cart-collaterals {
    display: none !important;
}

body.dl-page-leaving.dl-cart-page .dl-page-skeleton {
    display: block !important;
    margin: 0 !important;
}

/*
 * All'arrivo nel carrello il contenuto vero resta nascosto finché cart.js
 * non ha ricostruito il layout DeutschLab.
 */
body.dl-cart-preboot .dl-cart-intro,
body.dl-cart-preboot .dl-cart-grid,
body.dl-cart-preboot .woocommerce-cart-form,
body.dl-cart-preboot .cart-collaterals {
    visibility: hidden !important;
    opacity: 0 !important;
}


/* =========================================================
   V0.9.9 - CARD UNICA A SINISTRA
   ========================================================= */

body.dl-cart-page .dl-cart-unified-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--dl-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(22,30,42,.03);
    box-sizing: border-box;
}

/*
 * Il prodotto non è più una card autonoma: diventa il primo blocco
 * della card unificata.
 */
body.dl-cart-page .dl-cart-unified-card tr.cart_item {
    margin: 0 !important;
    min-height: 156px;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/*
 * Coupon dentro la stessa card, separato solo da un divider.
 */
body.dl-cart-page .dl-cart-unified-card .dl-cart-coupon-card {
    position: relative;
    margin: 0 !important;
    min-height: 72px;
    padding: 16px 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.dl-cart-page .dl-cart-unified-card .dl-cart-coupon-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: #eceef0;
}

/* Tabella completamente neutra dentro la card unificata */
body.dl-cart-page .dl-cart-unified-card table.shop_table.cart {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Evita gap tra tbody e coupon */
body.dl-cart-page .dl-cart-unified-card table.shop_table.cart > tbody {
    gap: 0 !important;
}

/* Coupon leggermente più presente dentro una card unica */
body.dl-cart-page .dl-cart-unified-card .dl-cart-coupon-copy strong {
    font-size: 12.5px !important;
}

body.dl-cart-page .dl-cart-unified-card .dl-cart-coupon-copy small {
    font-size: 10.5px !important;
}

/* Il form stesso non deve aggiungere margini strani tra card e summary */
body.dl-cart-page .dl-cart-items-panel {
    display: block;
}

/* Mobile: stessa logica, una sola card con divider interno */
@media (max-width: 820px) {
    body.dl-cart-page .dl-cart-unified-card {
        border-radius: 11px;
    }

    body.dl-cart-page .dl-cart-unified-card tr.cart_item {
        min-height: 136px !important;
        padding: 15px !important;
    }

    body.dl-cart-page .dl-cart-unified-card .dl-cart-coupon-card {
        padding: 15px !important;
    }

    body.dl-cart-page .dl-cart-unified-card .dl-cart-coupon-card::before {
        left: 15px;
        right: 15px;
    }
}

@media (max-width: 520px) {
    body.dl-cart-page .dl-cart-unified-card tr.cart_item {
        min-height: 0 !important;
    }
}


/* =========================================================
   V0.10.0 - EXPRESS CHECKOUT NEL CARRELLO SOLO LOGGATI
   ========================================================= */

body.dl-cart-express-allowed .dl-cart-express-card {
    margin: 2px 0 16px;
    padding: 16px 0 18px;
    border-top: 1px solid #eceef0;
    border-bottom: 1px solid #eceef0;
}

body.dl-cart-express-allowed .dl-cart-express-card[hidden] {
    display: none !important;
}

body.dl-cart-express-allowed .dl-cart-express-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

body.dl-cart-express-allowed .dl-cart-express-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff4cc;
    color: #a16d00;
    font-size: 13px;
}

body.dl-cart-express-allowed .dl-cart-express-head > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.dl-cart-express-allowed .dl-cart-express-head strong {
    color: var(--dl-text);
    font-size: 11.5px;
    line-height: 1.25;
}

body.dl-cart-express-allowed .dl-cart-express-head small {
    color: var(--dl-muted);
    font-size: 9.5px;
    line-height: 1.3;
}

body.dl-cart-express-allowed .dl-cart-express-slot {
    width: 100%;
    min-width: 0;
}

body.dl-cart-express-allowed .dl-cart-express-slot > * {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.dl-cart-express-allowed .dl-cart-express-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

body.dl-cart-express-allowed .dl-cart-express-divider span {
    height: 1px;
    background: #eceef0;
}

body.dl-cart-express-allowed .dl-cart-express-divider small {
    color: #9aa0a6;
    font-size: 9px;
    text-transform: lowercase;
}

/* Guest: resta bloccato come prima. */
body.dl-cart-express-blocked #wc-stripe-express-checkout-element,
body.dl-cart-express-blocked .wc-stripe-express-checkout-wrapper,
body.dl-cart-express-blocked #wc-stripe-payment-request-wrapper,
body.dl-cart-express-blocked .wc-stripe-payment-request-wrapper,
body.dl-cart-express-blocked .wcpay-express-checkout-wrapper,
body.dl-cart-express-blocked .wcpay-express-checkout-button-container,
body.dl-cart-express-blocked #wcpay-express-checkout-button,
body.dl-cart-express-blocked #wcpay-express-checkout-element,
body.dl-cart-express-blocked .wcpay-express-checkout-element,
body.dl-cart-express-blocked #wcpay-payment-request-wrapper,
body.dl-cart-express-blocked .wcpay-payment-request-wrapper,
body.dl-cart-express-blocked .woocommerce-express-checkout,
body.dl-cart-express-blocked .wc-express-checkout,
body.dl-cart-express-blocked .express-checkout-wrapper,
body.dl-cart-express-blocked .express-payment-methods,
body.dl-cart-express-blocked .wc-block-components-express-payment {
    display: none !important;
}

@media (max-width: 820px) {
    body.dl-cart-express-allowed .dl-cart-express-card {
        padding: 15px 0 16px;
        margin-bottom: 14px;
    }
}


/* =========================================================
   V0.10.1 - CART SKELETON 1:1
   ========================================================= */
body.dl-cart-page .dl-page-skeleton--checkout {
    display: none !important;
}

body.dl-cart-page .dl-page-skeleton--cart {
    position: static !important;
    width: 100% !important;
    pointer-events: none !important;
}

body.dl-cart-preboot .dl-page-skeleton--cart,
body.dl-page-leaving.dl-cart-page .dl-page-skeleton--cart {
    display: block !important;
}


/* =========================================================
   V0.10.2 - CARD SINISTRA = ALTEZZA RIEPILOGO
              + COUPON IN BASSO
              + FAST PAYMENT CHIARO
   ========================================================= */

/*
 * Desktop: la riga della grid prende l'altezza del blocco più alto
 * (normalmente il riepilogo a destra). Il form di sinistra e la card
 * unificata riempiono quindi esattamente la stessa altezza.
 */
@media (min-width: 821px) {
    body.dl-cart-page .dl-cart-grid {
        align-items: stretch !important;
    }

    body.dl-cart-page .dl-cart-items-panel {
        display: flex !important;
        flex-direction: column !important;
        align-self: stretch !important;
        height: 100% !important;
        min-height: 100% !important;
    }

    body.dl-cart-page .dl-cart-unified-card {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: 100% !important;
    }

    body.dl-cart-page .dl-cart-unified-card table.shop_table.cart {
        flex: 0 0 auto !important;
    }

    /*
     * È questo che porta il coupon sul fondo:
     * tutto lo spazio libero resta fra prodotto e divider coupon.
     */
    body.dl-cart-page .dl-cart-unified-card .dl-cart-coupon-card {
        margin-top: auto !important;
        flex: 0 0 auto !important;
    }

    body.dl-cart-page .dl-cart-summary-panel {
        align-self: stretch !important;
    }
}

/*
 * Il checkout principale rimane l'azione primaria.
 * Immediatamente sotto spieghiamo che esiste un secondo percorso express.
 */
body.dl-cart-express-allowed .dl-cart-express-card {
    margin: 12px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.dl-cart-express-allowed .dl-cart-express-card[hidden] {
    display: none !important;
}

/* vecchia intestazione non più usata */
body.dl-cart-express-allowed .dl-cart-express-head,
body.dl-cart-express-allowed .dl-cart-express-icon {
    display: none !important;
}

body.dl-cart-express-allowed .dl-cart-express-divider {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    gap: 9px !important;
    align-items: center !important;
    margin: 0 0 6px !important;
}

body.dl-cart-express-allowed .dl-cart-express-divider span {
    height: 1px !important;
    background: #e6e9ec !important;
}

body.dl-cart-express-allowed .dl-cart-express-divider strong {
    color: #666e77 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

body.dl-cart-express-allowed .dl-cart-express-copy {
    margin: 0 0 10px !important;
    color: #8a9199 !important;
    font-size: 9.5px !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

body.dl-cart-express-allowed .dl-cart-express-slot {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.dl-cart-express-allowed .dl-cart-express-slot > * {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Dopo i wallet, la nota di sicurezza chiude il riepilogo. */
body.dl-cart-has-express .dl-cart-secure-note {
    margin-top: 12px !important;
}

/*
 * Se il gateway non rende alcun wallet, la card express resta hidden
 * e la nota di sicurezza rimane semplicemente sotto il checkout.
 */

/* Skeleton carrello aggiornato alla stessa geometria */
@media (min-width: 821px) {
    body.dl-cart-page .dl-page-skeleton--cart .dl-sk-grid {
        align-items: stretch !important;
    }

    body.dl-cart-page .dl-page-skeleton--cart .dl-sk-cart-left {
        display: flex !important;
        flex-direction: column !important;
        min-height: 430px !important;
    }

    body.logged-in.dl-cart-page .dl-page-skeleton--cart .dl-sk-cart-left,
    body.logged-in.dl-cart-page .dl-page-skeleton--cart .dl-sk-summary-card {
        min-height: 500px !important;
    }

    body.dl-cart-page .dl-page-skeleton--cart .dl-sk-cart-coupon {
        margin-top: auto !important;
    }

    body.dl-cart-page .dl-page-skeleton--cart .dl-sk-summary-card {
        min-height: 430px !important;
    }
}

@media (max-width: 820px) {
    /* Su mobile le card tornano ad altezza naturale. */
    body.dl-cart-page .dl-cart-items-panel,
    body.dl-cart-page .dl-cart-unified-card {
        height: auto !important;
        min-height: 0 !important;
    }

    body.dl-cart-page .dl-cart-unified-card .dl-cart-coupon-card {
        margin-top: 0 !important;
    }

    body.dl-cart-express-allowed .dl-cart-express-card {
        margin-top: 12px !important;
    }
}


/* =========================================================
   V0.10.3 - UN SOLO SKELETON PER NAVIGAZIONE
   ========================================================= */

body.dl-cart-page .dl-navigation-loading {
    position: relative !important;
    pointer-events: none !important;
    cursor: wait !important;
    opacity: .82 !important;
}

body.dl-cart-page .dl-navigation-loading::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 16px !important;
    height: 16px !important;
    margin: -8px 0 0 -8px !important;
    border: 2px solid #111 !important;
    border-right-color: transparent !important;
    border-radius: 50% !important;
    animation: dlNavSpinCart .55s linear infinite !important;
}

body.dl-cart-page .dl-navigation-loading {
    color: transparent !important;
}

@keyframes dlNavSpinCart {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    body.dl-cart-page .dl-navigation-loading::after {
        animation: none !important;
    }
}


/* =========================================================
   V0.10.6 - CARRELLO PIÙ COMPATTO / TRUST CUES RIMOSSI
   ========================================================= */

/* Nel carrello non mostriamo più i tre trust cues sotto il totale. */
body.dl-cart-page .dl-cart-summary-card .dl-cart-trust-list,
body.dl-cart-page .dl-cart-summary-card .dl-cart-trust-item {
    display: none !important;
}

/* Riepilogo più compatto */
body.dl-cart-page .dl-cart-summary-card {
    padding: 22px !important;
}

body.dl-cart-page .dl-cart-summary-head {
    padding-bottom: 14px !important;
    margin-bottom: 8px !important;
}

body.dl-cart-page .dl-cart-summary-card table.shop_table th,
body.dl-cart-page .dl-cart-summary-card table.shop_table td {
    padding: 11px 0 !important;
}

body.dl-cart-page .dl-cart-summary-card .order-total td,
body.dl-cart-page .dl-cart-summary-card .order-total .woocommerce-Price-amount {
    font-size: 23px !important;
}

/* CTA più vicina al totale */
body.dl-cart-page .wc-proceed-to-checkout {
    margin-top: 16px !important;
}

body.dl-cart-page .dl-cart-secure-note {
    margin-top: 9px !important;
}

/*
 * Card sinistra continua a pareggiare quella destra,
 * ma ora la riga è sensibilmente più bassa.
 */
@media (min-width: 821px) {
    body.dl-cart-page .dl-cart-unified-card,
    body.dl-cart-page .dl-cart-items-panel,
    body.dl-cart-page .dl-cart-summary-panel {
        min-height: 0 !important;
    }
}

/* Skeleton cart aggiornato alla nuova altezza senza trust cues */
body.dl-cart-page .dl-page-skeleton--cart .dl-sk-trust {
    display: none !important;
}

@media (min-width: 821px) {
    body.dl-cart-page .dl-page-skeleton--cart .dl-sk-cart-left,
    body.dl-cart-page .dl-page-skeleton--cart .dl-sk-summary-card {
        min-height: 340px !important;
    }

    body.logged-in.dl-cart-page .dl-page-skeleton--cart .dl-sk-cart-left,
    body.logged-in.dl-cart-page .dl-page-skeleton--cart .dl-sk-summary-card {
        min-height: 420px !important;
    }
}


/* =========================================================
   V0.11.6 - MOBILE QUANTITÀ PIÙ PULITA
   ========================================================= */

@media (max-width: 520px) {
    /*
     * WooCommerce / alcuni temi stampano il data-title "Quantità:"
     * come pseudo-elemento molto evidente.
     * Lo sostituiamo con una label piccola e controllata.
     */
    body.dl-cart-page td.product-quantity {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: auto !important;
        min-width: 0 !important;
        margin-top: 9px !important;
        padding: 0 !important;
        text-align: left !important;
    }

    body.dl-cart-page td.product-quantity::before,
    body.dl-cart-page td.product-quantity:before {
        content: "Quantità" !important;
        display: inline-flex !important;
        align-items: center !important;
        float: none !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #737b84 !important;
        font-size: 10.5px !important;
        line-height: 1 !important;
        font-weight: 650 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }

    /*
     * Corso acquistabile una sola volta:
     * il valore "1" diventa un piccolo chip, non un input enorme.
     */
    body.dl-cart-page td.product-quantity.dl-cart-qty-fixed
    .dl-cart-fixed-qty {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 34px !important;
        width: 34px !important;
        height: 30px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid #dfe3e7 !important;
        border-radius: 7px !important;
        background: #fff !important;
        color: #20242a !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        box-shadow: none !important;
    }

    /*
     * Se in futuro un prodotto permette quantità > 1,
     * anche il vero stepper resta compatto sulla stessa riga.
     */
    body.dl-cart-page td.product-quantity .dl-cart-qty-control {
        grid-template-columns: 28px 34px 28px !important;
        width: 90px !important;
        height: 32px !important;
        border-radius: 7px !important;
    }

    body.dl-cart-page td.product-quantity
    .dl-cart-qty-control .dl-cart-qty-btn {
        width: 28px !important;
        height: 30px !important;
        font-size: 14px !important;
    }

    body.dl-cart-page td.product-quantity
    .dl-cart-qty-control input.qty {
        width: 34px !important;
        min-width: 34px !important;
        height: 30px !important;
        font-size: 11px !important;
    }
}


/* =========================================================
   V0.14.3 - NO FRECCE DECORATIVE DEL TEMA SUI CTA CARRELLO
   ========================================================= */

/*
 * Neutralizziamo esclusivamente gli pseudo-elementi dei controlli del
 * carrello DeutschLab/WooCommerce che abbiamo stilizzato noi.
 * Non tocchiamo i pulsanti Express Checkout dei gateway.
 */
body.dl-cart-page .wc-proceed-to-checkout .checkout-button::before,
body.dl-cart-page .wc-proceed-to-checkout .checkout-button::after,
body.dl-cart-page .wc-proceed-to-checkout .checkout-button:hover::before,
body.dl-cart-page .wc-proceed-to-checkout .checkout-button:hover::after,
body.dl-cart-page .wc-proceed-to-checkout .checkout-button:focus::before,
body.dl-cart-page .wc-proceed-to-checkout .checkout-button:focus::after,
body.dl-cart-page .coupon button.button::before,
body.dl-cart-page .coupon button.button::after,
body.dl-cart-page .coupon button.button:hover::before,
body.dl-cart-page .coupon button.button:hover::after,
body.dl-cart-page .coupon button.button:focus::before,
body.dl-cart-page .coupon button.button:focus::after,
body.dl-cart-page button[name="update_cart"]::before,
body.dl-cart-page button[name="update_cart"]::after,
body.dl-cart-page button[name="update_cart"]:hover::before,
body.dl-cart-page button[name="update_cart"]:hover::after,
body.dl-cart-page .dl-cart-qty-btn::before,
body.dl-cart-page .dl-cart-qty-btn::after,
body.dl-cart-page .dl-cart-qty-btn:hover::before,
body.dl-cart-page .dl-cart-qty-btn:hover::after,
body.dl-cart-page .dl-cart-qty-btn:focus::before,
body.dl-cart-page .dl-cart-qty-btn:focus::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    transform: none !important;
}


/* =========================================================
   V0.14.4 - CARRELLO TABLET SAFE (<= 1024px)
   ========================================================= */

@media (max-width: 1024px) {
    body.dl-cart-page .dl-cart-intro,
    body.dl-cart-page .dl-cart-grid {
        width: min(calc(100vw - 32px), 860px) !important;
    }

    body.dl-cart-page .dl-cart-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
        align-items: start !important;
    }

    body.dl-cart-page .dl-cart-items-panel,
    body.dl-cart-page .dl-cart-summary-panel {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.dl-cart-page .dl-cart-summary-panel {
        position: static !important;
        top: auto !important;
    }
}

@media (max-width: 820px) {
    body.dl-cart-page .dl-cart-intro,
    body.dl-cart-page .dl-cart-grid {
        width: min(calc(100% - 28px), 620px) !important;
    }
}
