@charset "UTF-8";
/* Cascina Bonfiglio — SEZIONE: Carrello full-page (Figma 55:1463).
   Canvas 1728x1760. Header alto 219. Section padding-x 146.
   Layout: title + grid (main 834 / side 562, gap 40).
   Tutti i testi: Nunito Sans. */

.cb-carrello {
    padding: 65px 0 108px;
    background: #ffffff;
    color: #000;
    font-family: var(--cb-font-body);
}
.cb-carrello__inner {
    max-width: 1438px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* ---- Header (Figma 55:1478 y=284, 55:1480 y=331) ---- */
.cb-carrello__head { margin: 0 0 32px; }
.cb-carrello__title {
    margin: 0 0 2px;
    font-family: var(--cb-font-body);
    font-size: 38px;
    line-height: 47px;
    font-weight: 400;
    letter-spacing: 1.1743px;
    color: #000;
}
.cb-carrello__count {
    margin: 0;
    font-family: var(--cb-font-body);
    font-size: 18px;
    line-height: 25px;
    font-weight: 400;
    color: #000;
}

/* ---- Grid ---- */
.cb-carrello__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 562px;
    gap: 40px;
    align-items: stretch;
}

/* ---- Main column ---- */
.cb-carrello__main { display: flex; flex-direction: column; gap: 29px; }
.cb-carrello__free-mobile { display: none; }

/* Lista prodotti — 3 righe 834x139, gap 20 (Figma 55:3607) */
.cb-carrello__items {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cb-carrello-row {
    display: grid;
    grid-template-columns: 99px 1fr 102px;
    column-gap: 11.4px;
    align-items: center;
    min-height: 139px;
    padding: 20px;
    background: var(--cb-cream);
    border-radius: 11.4px;
    box-sizing: border-box;
}
.cb-carrello-row__media {
    width: 99px;
    height: 96px;
    border-radius: 11.4px;
    overflow: hidden;
    background: #f5efe6;
}
.cb-carrello-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-carrello-row__info { padding: 0; display: flex; flex-direction: column; justify-content: center; }
.cb-carrello-row__title {
    margin: 0;
    font-family: var(--cb-font-body);
    font-size: 20.5px;
    line-height: 1.3;
    font-weight: 700;
    color: #000;
}
.cb-carrello-row__unit {
    margin: 2px 0 10px;
    font-family: var(--cb-font-body);
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 1.24px;
    color: #000;
}

/* Stepper pill 93x35 (Figma 55:3614) — border #b2b2b2, icone 9x9 verde, num 10px bold */
.cb-carrello-row__qty {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 93px;
    height: 35px;
    padding: 5px 10px;
    border: 1px solid #b2b2b2;
    border-radius: 50.317px;
    background: #ffffff;
    box-sizing: border-box;
}
.cb-carrello-row__qty button {
    background: transparent;
    border: 0;
    width: 9px;
    height: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.cb-carrello-row__qty button svg { display: block; }
.cb-carrello-row__qty button:hover svg path { fill: var(--cb-green-dark); }
.cb-carrello-row__qty-val {
    -moz-appearance: textfield;
    appearance: textfield;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 0;
    font-family: var(--cb-font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.354px;
    text-transform: uppercase;
    color: #000;
    width: 24px;
    min-width: 24px;
    text-align: center;
}
.cb-carrello-row__qty-val::-webkit-outer-spin-button,
.cb-carrello-row__qty-val::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}

/* Price + rimuovi (Figma 55:3619) */
.cb-carrello-row__price {
    text-align: right;
    min-width: 102px;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: auto;
}
.cb-carrello-row__amount {
    margin: 0;
    font-family: var(--cb-font-body);
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}
.cb-carrello-row__amount .woocommerce-Price-amount,
.cb-carrello-row__amount bdi { font-weight: 700; color: #000; }
.cb-carrello-row__amount .woocommerce-Price-currencySymbol { font-weight: 700; }
.cb-carrello-row__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    padding: 0;
    color: #6f7268;
    text-decoration: none;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.18s ease, background 0.18s ease;
}
.cb-carrello-row__remove svg { display: block; }
.cb-carrello-row__remove-text { display: none; }
.cb-carrello-row__remove:hover,
.cb-carrello-row__remove:focus-visible { color: #b94a3a; background: rgba(185, 74, 58, 0.08); }

/* ---- Extras card (Figma 78:2054, white bg, border rgba(0,0,0,.15), radius 11.4) ---- */
.cb-carrello-extra {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 11.4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 144px;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 20px;
}
.cb-carrello-extra__row { cursor: pointer; transition: background .18s ease; border-radius: 8px; }
.cb-carrello-extra__row:hover { background: rgba(168, 199, 128, 0.06); }
.cb-carrello-extra__row.is-selected .cb-carrello-extra__price span {
    background: var(--cb-green);
    color: #fff;
}
.cb-cofanetto-pill { cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.cb-cofanetto-pill:hover { border-color: var(--cb-green); }
.cb-cofanetto-pill.is-selected { border-color: var(--cb-green); background: rgba(168, 199, 128, 0.08); }
.cb-cofanetto-pill.is-selected .cb-cofanetto-pill__dot { background: var(--cb-green); border-color: var(--cb-green); position: relative; }
.cb-cofanetto-pill.is-selected .cb-cofanetto-pill__dot::after {
    content: ""; position: absolute; inset: 5px;
    background: #fff; border-radius: 50%;
}
.cb-carrello-extra__row {
    display: grid;
    grid-template-columns: 33px 1fr auto;
    column-gap: 14px;
    align-items: center;
    min-height: 50px;
}
.cb-carrello-extra__icon {
    width: 33px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cb-carrello-extra__text strong {
    display: block;
    font-family: var(--cb-font-body);
    font-size: 20.5px;
    line-height: 1.25;
    font-weight: 700;
    color: #000;
}
.cb-carrello-extra__text span {
    display: block;
    font-family: var(--cb-font-body);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 400;
    color: #000;
}
.cb-carrello-extra__price span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    height: 35px;
    min-width: 105px;
    border-radius: 50px;
    background: rgba(168, 199, 128, 0.18);
    color: var(--cb-green);
    font-family: var(--cb-font-body);
    font-size: 20.5px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Cofanetti pills — fluido full-width: 4 colonne equi che riempiono il box */
.cb-carrello-extra__cofanetti {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    align-items: stretch;
    width: 100%;
}
.cb-cofanetto-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    min-height: 56px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background: #ffffff;
    color: #000;
    box-sizing: border-box;
    min-width: 0;
}
.cb-cofanetto-pill__text { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.cb-cofanetto-pill__label,
.cb-cofanetto-pill__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-cofanetto-pill__text { display: flex; flex-direction: column; line-height: 1.15; gap: 4px; }
.cb-cofanetto-pill__label {
    font-family: var(--cb-font-body);
    font-size: 14px;
    font-weight: 700;
    color: #000;
}
.cb-cofanetto-pill__sub {
    font-family: var(--cb-font-body);
    font-size: 11.5px;
    font-weight: 400;
    color: #000;
}
.cb-cofanetto-pill__price {
    font-family: var(--cb-font-body);
    font-size: 11.5px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}
.cb-cofanetto-pill__qty {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-width: 60px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 100px;
    background: #ffffff;
    box-sizing: border-box;
    flex-shrink: 0;
}
.cb-cofanetto-pill__qty button {
    background: transparent;
    border: 0;
    width: 10px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cb-green);
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}
.cb-cofanetto-pill__qty button:hover { color: var(--cb-green-dark); }
.cb-cofanetto-pill__qty > span {
    font-family: var(--cb-font-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #000;
    min-width: 16px;
    text-align: center;
}

/* Nessuno pill con radio */
.cb-cofanetto-pill--radio {
    justify-content: flex-start;
    gap: 9.6px;
    padding: 10px 14.7px;
}
.cb-cofanetto-pill__dot {
    width: 23.5px;
    height: 23.5px;
    border-radius: 50%;
    border: 0.736px solid rgba(0, 0, 0, 0.15);
    background: #ffffff;
    display: inline-block;
    flex-shrink: 0;
}

/* ---- Continua a fare acquisti (Figma 55:3453) ---- */
.cb-carrello__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--cb-font-body);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 400;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
    align-self: flex-start;
    margin-top: 20px;
}
.cb-carrello__back:hover { color: var(--cb-green-dark); }

/* ---- Sidebar (Figma 55:3555 x=1020 y=297 w=562) ---- */
.cb-carrello__side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Riepilogo: stretch per matchare l'altezza della colonna main */
.cb-carrello-sum {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1 1 auto;
    min-width: 0;
}
.cb-carrello__side { min-width: 0; }
.cb-carrello-sum__lines { min-width: 0; }
.cb-carrello-sum__line { min-width: 0; gap: 8px; }
.cb-carrello-sum__title {
    margin: 0;
    font-family: var(--cb-font-body);
    font-size: 26px;
    line-height: 36px;
    font-weight: 700;
    color: #000;
}

/* Free shipping row */
.cb-carrello-sum__free {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--cb-font-body);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 400;
    color: #000;
    margin-bottom: 0;
}
.cb-carrello-sum__free p { margin: 0; }
.cb-carrello-sum__free strong { font-weight: 700; }
.cb-carrello-sum__free-icon { display: inline-flex; flex-shrink: 0; }

.cb-carrello-sum__progress {
    height: 5px;
    background: #d9d9d9;
    border-radius: 999px;
    overflow: hidden;
    margin-top: -21px;
}
.cb-carrello-sum__progress span {
    display: block;
    height: 100%;
    background: var(--cb-green);
    border-radius: 999px;
}

/* Coupon (Figma 55:3576 y=179 h=54) */
.cb-carrello-sum__coupon {
    display: flex;
    gap: 11px;
    margin: 0;
}
.cb-carrello-sum__coupon input {
    flex: 1;
    height: 54px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 0 10px;
    font-family: var(--cb-font-body);
    font-size: 14px;
    background: #ffffff;
    color: #000;
    outline: none;
    box-sizing: border-box;
}
.cb-carrello-sum__coupon input::placeholder { color: rgba(0, 0, 0, 0.3); }
.cb-carrello-sum__coupon input:focus { border-color: var(--cb-green); }
.cb-carrello-sum__coupon button {
    border: 0;
    background: #000;
    padding: 0 20px;
    min-width: 142px;
    height: 54px;
    color: #fff;
    font-family: var(--cb-font-body);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.7px;
    cursor: pointer;
    border-radius: 10px;
}
.cb-carrello-sum__coupon button:hover { background: #222; }

/* Lines block (Figma 55:3582 y=263) */
.cb-carrello-sum__lines {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    margin: 0;
}
.cb-carrello-sum__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-family: var(--cb-font-body);
    font-size: 18px;
    line-height: 47px;
    font-weight: 400;
    letter-spacing: 1.1743px;
    color: #000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
/* L'attributo HTML [hidden] deve sempre battere display:flex (usato dal JS per nascondere
   la riga "Sacchetto brandizzato" quando la fee è 0). */
.cb-carrello-sum__line[hidden] { display: none !important; }
.cb-carrello-sum__line:last-child { border-bottom: 0; }
.cb-carrello-sum__line b { font-weight: 700; }
.cb-carrello-sum__line--total { font-size: 24px; }
.cb-carrello-sum__line--total .cb-carrello-sum__label { font-weight: 700; }

/* Discount line — codice sconto applicato */
.cb-carrello-sum__line--discount .cb-carrello-sum__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cb-carrello-sum__line--discount .cb-carrello-sum__value { color: #2e7d32; font-weight: 600; }
.cb-carrello-sum__coupon-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    background: transparent;
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cb-carrello-sum__coupon-remove:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* CTA verde 55px rounded (Figma 55:3595) */
.cb-carrello-sum__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 55px;
    background: var(--cb-green);
    color: #ffffff;
    border-radius: 100px;
    font-family: var(--cb-font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.7037px;
    text-decoration: none;
    transition: background .2s ease;
}
.cb-carrello-sum__cta:hover { background: var(--cb-green-dark); color: #fff; }

.cb-carrello-sum__auth-hint {
    margin: 8px 0 0;
    padding: 0 10px;
    font-family: var(--cb-font-body);
    font-size: 12px;
    line-height: 1.4;
    color: #000;
    text-align: center;
}

/* SSL (Figma 55:3598) */
.cb-carrello-sum__ssl {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    margin: 0;
    font-family: var(--cb-font-body);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 400;
    color: #000;
    height: 20px;
}
.cb-carrello-sum__ssl svg { flex-shrink: 0; }

/* ---- Reward boxes (Figma 55:3602, 139:2662 — 562x120 cream) ---- */
.cb-carrello-reward {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    background: var(--cb-cream);
    border-radius: 10px;
    min-height: 120px;
    box-sizing: border-box;
}
.cb-carrello-reward__media {
    width: 87px;
    height: 84px;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cb-carrello-reward__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cb-carrello-reward__text {
    flex: 1;
    width: 422px;
    font-family: var(--cb-font-body);
    font-size: 16px;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: 0.9px;
    color: #000;
}
.cb-carrello-reward__text p { margin: 0; }
.cb-carrello-reward__text p + p { margin-top: 0; }
.cb-carrello-reward__text strong { font-weight: 700; }

/* Badge "+X punti" nel riepilogo (Figma 201:3528). */
.cb-carrello-sum__line--points {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0;
    border-bottom: 0;
}
.cb-carrello-sum__line--points .cb-carrello-sum__label {
    font-size: 14px;
    color: var(--cb-brown);
}
.cb-cart-points-badge {
    display: inline-block;
    background: var(--cb-green);
    color: #fff;
    font-family: var(--cb-font-body);
    font-weight: 700;
    font-size: 12px;
    line-height: 25px;
    letter-spacing: .02em;
    padding: 5px 12px;
    border-radius: 999px;
}

/* ---- Responsive ---- */
/* Desktop wide-only: padding 0. Sotto 1640px (MacBook in giù) ripristina padding 20px. */
@media (max-width: 1640px) {
    .cb-carrello__inner { padding: 0 30px; }
}
@media (max-width: 1400px) {
    .cb-carrello__grid { grid-template-columns: minmax(0, 1fr) 460px; gap: 28px; }
}
@media (max-width: 1280px) {
    .cb-carrello__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; }
    .cb-carrello-extra__cofanetti { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cb-carrello-sum { padding: 28px 24px; }
}
@media (max-width: 1100px) {
    .cb-carrello__grid { grid-template-columns: 1fr; gap: 28px; }
    .cb-carrello__side { position: static; max-width: 640px; width: 100%; }
    .cb-carrello-extra__cofanetti { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
}

@media (max-width: 1024px) {
    .cb-carrello { padding: 40px 0 80px; }
    .cb-carrello__inner { padding: 0 20px; }
    .cb-carrello__title { font-size: 30px; line-height: 38px; }
    .cb-carrello__count { font-size: 14px; }
    .cb-carrello-sum { padding: 24px 20px; gap: 22px; }
    .cb-carrello-sum__line { font-size: 16px; line-height: 1.5; letter-spacing: 0.5px; padding: 8px 0; }
    .cb-carrello-sum__line--total { font-size: 20px; }
    .cb-carrello-sum__title { font-size: 22px; line-height: 28px; }
    .cb-carrello-sum__free { font-size: 15px; }
    .cb-carrello-sum__coupon button { min-width: 100px; padding: 0 14px; font-size: 14px; }
    .cb-carrello-sum__coupon input { font-size: 13px; }
}

/* ============================================================
   MOBILE — match Figma node 75:2660 "Carrello - mobile" (440 wide).
   Section bg bianco. Card prodotto CREAM (rounded), layout 3 colonne:
   foto | info(title+peso) | dx (€ + stepper + "X Rimuovi" testo verticali).
   Sacchetto: card bianca con bordo, pills 2x2.
   Riepilogo: card bianca con bordo, titolo visibile, coupon affiancato,
   subtotale/spedizione/totale, CTA verde, riga SSL lock.
   Reward: card CREAM (non peach), Continua a fare acquisti visibile.
   ============================================================ */
@media (max-width: 768px) {
    .cb-carrello { padding: 20px 0 28px; background: #ffffff; }
    .cb-carrello__inner { padding: 0 16px; }
    .cb-carrello__grid { display: flex; flex-direction: column; gap: 0; }

    /* Banner spedizione mobile rimosso: appare ora dentro al riepilogo come da Figma */
    .cb-carrello__free-mobile { display: none; }

    .cb-carrello__head { margin: 0 0 14px; padding: 0; background: transparent; }
    .cb-carrello__title { font-size: 28px; line-height: 1.2; letter-spacing: 0.5px; font-weight: 700; }
    .cb-carrello__count { font-size: 13px; color: #000; }
    .cb-carrello__main { gap: 18px; padding: 0; background: transparent; }
    .cb-carrello__items { gap: 9px; }

    /* Riga prodotto: card CREAM, layout posizionale per matchare Figma 75:3046:
       foto col1 | info (title+weight) col2 | dx col3 (price top, stepper mid abs, X Rimuovi bottom) */
    .cb-carrello-row {
        position: relative;
        grid-template-columns: 80px 1fr 102px;
        column-gap: 14px;
        row-gap: 0;
        padding: 15px 14px;
        min-height: 108px;
        background: var(--cb-cream);
        border-radius: 12px;
        align-items: center;
    }
    .cb-carrello-row__media { width: 80px; height: 77px; border-radius: 10px; }
    .cb-carrello-row__info { padding: 0; min-width: 0; gap: 2px; align-self: center; padding-right: 25px; }
    .cb-carrello-row__title { font-size: 16px; line-height: 1.2; font-weight: 700; }
    .cb-carrello-row__unit { font-size: 14px; margin: 6px 0 0; letter-spacing: 0.3px; font-weight: 400; color: #000; }

    /* Stepper assoluto nella col3, centrato verticalmente nella card */
    .cb-carrello-row__qty {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 78px;
        height: 24px;
        padding: 2px 8px;
        margin: 0;
    }
    .cb-carrello-row__qty button { width: 9px; height: 9px; }
    .cb-carrello-row__qty-val { font-size: 10px; min-width: 18px; width: 18px; }

    /* Colonna prezzo: price top, vuoto middle (occupato da stepper assoluto), X Rimuovi bottom */
    .cb-carrello-row__price {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: stretch;
        flex-direction: column;
        align-items: flex-end;
        justify-content: space-between;
        gap: 0;
        height: auto;
        min-height: 78px;
        margin: 0;
        padding: 0;
        border: 0;
        min-width: 0;
        text-align: right;
    }
    .cb-carrello-row__amount { font-size: 16px; font-weight: 700; line-height: 1.2; }

    /* "X Rimuovi" testo sotto allo stepper, no icona — specificità alta per battere `.cb-carrello-row__remove svg { display: block }` */
    .cb-carrello-row__remove {
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        color: #000;
        font-family: var(--cb-font-body);
        font-size: 13px;
        line-height: 1.3;
        text-decoration: underline;
        text-underline-offset: 2px;
        opacity: 1;
    }
    .cb-carrello-row__remove .cb-carrello-row__remove-icon,
    .cb-carrello-row__remove svg.cb-carrello-row__remove-icon { display: none; }
    .cb-carrello-row__remove-text { display: inline; }
    .cb-carrello-row__remove:hover,
    .cb-carrello-row__remove:focus-visible { color: #b94a3a; background: transparent; }

    /* Sacchetto + cofanetti card (Figma 78:2118) — bianca bordata */
    .cb-carrello-extra { padding: 18px 14px 16px; gap: 16px; min-height: 0; margin-top: 20px; border-radius: 12px; }
    .cb-carrello-extra__row { grid-template-columns: 33px 1fr auto; gap: 10px; min-height: 0; padding: 2px 0; }
    .cb-carrello-extra__icon { width: 33px; height: 31px; }
    .cb-carrello-extra__text strong { font-size: 14px; line-height: 1.25; }
    .cb-carrello-extra__text span { font-size: 12px; }
    .cb-carrello-extra__price span { font-size: 13px; min-width: 64px; height: 28px; padding: 0 12px; }

    /* Cofanetti pills 2x2 (Figma 78:2131) */
    .cb-carrello-extra__cofanetti { grid-template-columns: 1fr 1fr; gap: 8px; }
    .cb-cofanetto-pill { padding: 8px 10px; height: auto; min-height: 42px; gap: 6px; }
    .cb-cofanetto-pill__label { font-size: 11px; }
    .cb-cofanetto-pill__sub { font-size: 9px; }
    .cb-cofanetto-pill__qty { min-width: 64px; height: 22px; padding: 0 6px; }

    /* Sidebar / Riepilogo (Figma 75:3151) — card bianca bordata, titolo visibile */
    .cb-carrello__side { padding: 18px 0 0; background: transparent; gap: 14px; }
    .cb-carrello-sum {
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.15);
        padding: 22px 18px;
        gap: 18px;
        border-radius: 14px;
    }
    .cb-carrello-sum__title { display: block; font-size: 19px; line-height: 24px; font-weight: 700; margin: 0; }

    /* Free shipping row dentro al riepilogo */
    .cb-carrello-sum__free { font-size: 13px; gap: 8px; background: transparent; padding: 0; }
    .cb-carrello-sum__free p { line-height: 1.3; }
    .cb-carrello-sum__progress { margin-top: -8px; }

    /* Coupon: input + bottone affiancati come Figma */
    .cb-carrello-sum__coupon {
        display: flex !important;
        flex-direction: row;
        gap: 8px;
        width: 100%;
    }
    .cb-carrello-sum__coupon input {
        flex: 1 1 auto;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
        border-radius: 8px;
    }
    .cb-carrello-sum__coupon button {
        width: auto;
        min-width: 88px;
        height: 36px;
        padding: 0 18px;
        font-size: 13px;
        font-weight: 700;
        border-radius: 8px;
    }

    .cb-carrello-sum__line--points { display: none; }
    .cb-carrello-sum__auth-hint { display: none; }
    /* `[hidden]` attribute deve battere `display: flex` ereditato */
    .cb-carrello-sum__line[hidden] { display: none !important; }
    /* Sticky bar "X prodotti aggiunti / Carrello": ridondante sulla stessa pagina carrello */
    body.page-template-page-carrello .cb-cart-stickybar,
    .cb-carrello ~ .cb-cart-stickybar,
    .cb-cart-stickybar { display: none !important; }
    .cb-carrello-sum__ssl {
        display: flex;
        font-size: 10px;
        padding: 0;
        gap: 5px;
        margin-top: 4px;
    }

    /* Lines: subtotale, spedizione, totale con righe divisorie sottili */
    .cb-carrello-sum__lines { border-top: 1px solid rgba(0, 0, 0, 0.12); gap: 0; }
    .cb-carrello-sum__line {
        font-size: 15px;
        line-height: 1.4;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
        letter-spacing: 0;
    }
    .cb-carrello-sum__line:last-child { border-bottom: 0; }
    .cb-carrello-sum__line--total {
        font-size: 18px;
        font-weight: 700;
        padding: 12px 0 0;
        border-top: 0;
        margin-top: 0;
    }
    .cb-carrello-sum__cta { height: 46px; font-size: 14px; border-radius: 100px; margin-top: 2px; }

    /* Reward box (Figma 75:3198 / 139:2658): bg CREAM con bordo, immagine quadrata cream */
    .cb-carrello-reward {
        gap: 12px;
        padding: 12px 14px;
        min-height: 78px;
        background: var(--cb-cream);
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.08);
    }
    .cb-carrello-reward__media { width: 57px; height: 55px; border-radius: 10px; flex-shrink: 0; }
    .cb-carrello-reward__text { width: auto; font-size: 12px; line-height: 1.3; letter-spacing: 0; }

    /* "Continua a fare acquisti" — visibile sotto al riepilogo (Figma 75:3148) */
    .cb-carrello__back {
        display: inline-flex;
        font-size: 14px;
        padding: 0;
        margin-top: 4px;
        align-self: flex-start;
    }

    .cb-carrello__side { padding-bottom: 24px; }
}

@media (max-width: 480px) {
    .cb-carrello-extra__cofanetti { grid-template-columns: 1fr 1fr; }
    .cb-carrello-row { grid-template-columns: 72px 1fr auto; column-gap: 10px; padding: 13px 12px; }
    .cb-carrello-row__media { width: 72px; height: 70px; }
    .cb-carrello-row__title { font-size: 15px; }
    .cb-carrello-row__amount { font-size: 15px; }
    .cb-carrello-row__qty { width: 72px; height: 22px; }
    .cb-carrello-row__remove { font-size: 12px; }
    .cb-carrello-extra__text strong { font-size: 13px; }
}

/* Mobile small (iPhone SE 1st gen, 320–375px): evita overflow orizzontale */
@media (max-width: 380px) {
    .cb-carrello__inner { padding: 0 12px; }
    .cb-carrello__title { font-size: 24px; }
    .cb-carrello-row { grid-template-columns: 64px 1fr auto; column-gap: 8px; padding: 11px 10px; }
    .cb-carrello-row__media { width: 64px; height: 62px; border-radius: 9px; }
    .cb-carrello-row__title { font-size: 13px; }
    .cb-carrello-row__unit { font-size: 12px; }
    .cb-carrello-row__amount { font-size: 14px; }
    .cb-carrello-row__qty { width: 68px; height: 22px; padding: 2px 6px; }
    .cb-carrello-row__remove { font-size: 11px; }
    .cb-carrello-sum__line { font-size: 14px; }
    .cb-carrello-sum__line--total { font-size: 17px; }
    .cb-carrello-sum__cta { height: 44px; font-size: 13px; }
    .cb-carrello-extra__cofanetti { grid-template-columns: 1fr; }
}
