/* FRM Carrello Moderno 1.0.0 | Scoped to WooCommerce cart page only */
body.frm-cart-modern {
 --frm-purple:#672697;
 --frm-deep:#3f145f;
 --frm-gold:#f0c85a;
 --frm-gold-dark:#d99b26;
 --frm-paper:#fff;
 --frm-ink:#251a32;
 --frm-muted:#756e7e;
 --frm-border:#e9e1ed;
 --frm-bg:#faf7fd;
 overflow-x:clip;
}
body.frm-cart-modern *,body.frm-cart-modern *::before,body.frm-cart-modern *::after{box-sizing:border-box}
body.frm-cart-modern .woocommerce,
body.frm-cart-modern .woocommerce-cart-form,
body.frm-cart-modern .woocommerce-cart-form__contents,
body.frm-cart-modern .cart-collaterals,
body.frm-cart-modern .cart_totals,
body.frm-cart-modern .wc-block-cart,
body.frm-cart-modern .wc-block-cart__main,
body.frm-cart-modern .wc-block-cart__sidebar{
 max-width:100%;min-width:0;
}
body.frm-cart-modern .woocommerce{font-family:inherit;color:var(--frm-ink)}
body.frm-cart-modern .woocommerce a{overflow-wrap:anywhere}
body.frm-cart-modern .frm-cart-heading{
 width:100%;display:flex;align-items:center;gap:14px;
 padding:20px 22px;margin:16px 0 24px;
 color:#fff;background:linear-gradient(120deg,#4d176f,#8231b1);
 border-radius:18px;box-shadow:0 10px 26px rgba(66,18,94,.15);
}
body.frm-cart-modern .frm-cart-heading-icon{
 flex:0 0 46px;width:46px;height:46px;border:1px solid rgba(255,238,169,.55);
 border-radius:14px;display:flex;align-items:center;justify-content:center;
 background:rgba(255,255,255,.12);font-size:25px;
}
body.frm-cart-modern .frm-cart-heading h2{font-weight:850;color:#fff!important;font-size:clamp(21px,3vw,27px);line-height:1.2;margin:0 0 4px!important}
body.frm-cart-modern .frm-cart-heading p{font-size:13px;line-height:1.4;color:#f4eafa!important;margin:0!important}
/* Notices and minimum order alerts */
body.frm-cart-modern .woocommerce-message,
body.frm-cart-modern .woocommerce-info,
body.frm-cart-modern .woocommerce-error{
 border-radius:12px!important;box-shadow:none!important;padding:17px 16px 17px 48px!important;
 max-width:100%;overflow-wrap:anywhere;border:1px solid var(--frm-border)!important;
 background:#f7f2fb!important;font-size:14px;line-height:1.5;
}
body.frm-cart-modern .woocommerce-message{border-left:4px solid #2e9b64!important}
body.frm-cart-modern .woocommerce-error{border-left:4px solid #bc3152!important}
body.frm-cart-modern .woocommerce-info{border-left:4px solid var(--frm-purple)!important}
body.frm-cart-modern .woocommerce-message::before,
body.frm-cart-modern .woocommerce-error::before,
body.frm-cart-modern .woocommerce-info::before{left:16px!important;top:18px!important}
body.frm-cart-modern .woocommerce-error li{overflow-wrap:anywhere}
body.frm-cart-modern .woocommerce-notices-wrapper{max-width:100%;min-width:0}
/* Desktop classic WooCommerce cart table */
body.frm-cart-modern .woocommerce-cart-form{width:100%!important}
body.frm-cart-modern .woocommerce table.shop_table.cart{
 width:100%!important;max-width:100%!important;min-width:0!important;
 border:1px solid var(--frm-border)!important;border-radius:18px!important;
 background:#fff!important;border-collapse:separate!important;border-spacing:0!important;
 box-shadow:0 8px 26px rgba(58,16,82,.07);overflow:hidden;
 table-layout:auto;
}
body.frm-cart-modern .woocommerce table.shop_table.cart thead th{
 background:#f5eff9!important;color:var(--frm-deep)!important;
 padding:17px 12px!important;border:0!important;
 border-bottom:1px solid var(--frm-border)!important;
 font-size:13px!important;font-weight:800!important;
}
body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td{
 padding:18px 12px!important;border-top:0!important;
 border-bottom:1px solid var(--frm-border)!important;
 vertical-align:middle!important;background:#fff!important;
 color:var(--frm-ink)!important;
}
body.frm-cart-modern .woocommerce table.shop_table.cart td.product-name a{
 color:var(--frm-purple)!important;text-decoration:none!important;
 font-size:15px!important;line-height:1.4!important;font-weight:800!important;
}
body.frm-cart-modern .woocommerce table.shop_table.cart td.product-name a:hover{text-decoration:underline!important}
body.frm-cart-modern .woocommerce table.shop_table.cart td.product-name .variation,
body.frm-cart-modern .woocommerce table.shop_table.cart td.product-name dl{
 font-size:12px;line-height:1.45;color:var(--frm-muted);max-width:100%;overflow-wrap:anywhere;
}
body.frm-cart-modern .woocommerce table.shop_table.cart td.product-thumbnail img{
 display:block!important;max-width:72px!important;max-height:72px!important;
 width:72px!important;height:72px!important;object-fit:contain!important;
 border-radius:12px;background:#f8f3fb;border:1px solid #f2eaf6;
}
body.frm-cart-modern .woocommerce table.shop_table.cart td.product-remove a.remove{
 width:29px!important;height:29px!important;line-height:25px!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 border-radius:50%!important;border:1px solid #f1dce1!important;
 background:#fff3f5!important;color:#a43853!important;
 font-size:23px!important;font-weight:400!important;text-decoration:none!important;
}
body.frm-cart-modern .woocommerce table.shop_table.cart td.product-remove a.remove:hover{
 background:#a43853!important;color:white!important;
}
body.frm-cart-modern .woocommerce table.shop_table.cart .amount{
 color:#251b2d;font-weight:750;font-size:15px;
}
body.frm-cart-modern .woocommerce table.shop_table.cart .quantity input.qty{
 max-width:78px!important;min-width:54px!important;width:72px!important;height:42px!important;
 padding:5px!important;border:1px solid #ddd1e5!important;border-radius:10px!important;
 background:#fff!important;color:#30193a!important;text-align:center!important;
 box-shadow:none!important;font-size:15px!important;
}
body.frm-cart-modern .woocommerce table.shop_table.cart .quantity input.qty:focus{
 outline:2px solid rgba(103,38,151,.2)!important;border-color:var(--frm-purple)!important;
}
body.frm-cart-modern .woocommerce table.shop_table.cart td.actions{
 padding:17px!important;border:0!important;background:#fcfaff!important;
}
body.frm-cart-modern .woocommerce table.shop_table.cart td.actions .coupon input.input-text{
 min-width:130px;width:180px;max-width:100%;height:45px;
 border:1px solid #dfd3e7!important;border-radius:10px!important;
 background:#fff!important;padding:10px 12px!important;
}
body.frm-cart-modern .woocommerce .button,
body.frm-cart-modern .woocommerce button.button,
body.frm-cart-modern .wc-block-components-button{
 border-radius:11px!important;font-weight:800!important;min-height:44px!important;
}
body.frm-cart-modern .woocommerce table.shop_table.cart td.actions button.button{
 background:#f0e4f8!important;color:var(--frm-purple)!important;padding:12px 18px!important;
}
body.frm-cart-modern .woocommerce table.shop_table.cart td.actions button.button:hover{
 background:#e5d3f0!important;
}
/* Totals and checkout */
body.frm-cart-modern .woocommerce .cart-collaterals{
 width:100%!important;margin-top:25px!important;display:block;
}
body.frm-cart-modern .woocommerce .cart-collaterals .cart_totals{
 float:right!important;max-width:100%!important;width:min(100%,440px)!important;
 padding:22px!important;border-radius:18px!important;
 border:1px solid var(--frm-border)!important;
 background:#fff!important;box-shadow:0 8px 26px rgba(58,16,82,.08);
}
body.frm-cart-modern .woocommerce .cart_totals h2{
 color:var(--frm-deep)!important;font-weight:850!important;font-size:23px!important;
 border-bottom:2px solid #f1e3fa;padding-bottom:14px!important;margin:0 0 10px!important;
}
body.frm-cart-modern .woocommerce .cart_totals table.shop_table{
 width:100%!important;max-width:100%!important;min-width:0!important;
 border:0!important;box-shadow:none!important;border-collapse:collapse!important;
}
body.frm-cart-modern .woocommerce .cart_totals table.shop_table tr th,
body.frm-cart-modern .woocommerce .cart_totals table.shop_table tr td{
 background:transparent!important;padding:13px 4px!important;
 border:0!important;border-bottom:1px solid #eee7f2!important;
 line-height:1.4!important;overflow-wrap:anywhere;
}
body.frm-cart-modern .woocommerce .cart_totals .order-total .amount{
 color:var(--frm-purple)!important;font-size:21px!important;font-weight:900!important;
}
body.frm-cart-modern .woocommerce .wc-proceed-to-checkout{padding:15px 0 0!important}
body.frm-cart-modern .woocommerce .wc-proceed-to-checkout a.checkout-button{
 width:100%!important;display:flex!important;justify-content:center!important;align-items:center!important;
 margin:0!important;padding:16px 18px!important;color:#341244!important;
 background:linear-gradient(120deg,#ffe093,#ecb742)!important;
 box-shadow:0 6px 16px rgba(215,162,38,.2)!important;
 text-transform:none!important;font-size:16px!important;font-weight:900!important;
 white-space:normal!important;text-align:center!important;
}
body.frm-cart-modern .woocommerce .wc-proceed-to-checkout a.checkout-button:hover{
 background:linear-gradient(120deg,#ffe7a9,#e6ad32)!important;
}
/* Prizes from FRM wheel: tag and product meta remain readable. */
body.frm-cart-modern .woocommerce table.shop_table.cart dl.variation dt{
 color:var(--frm-purple)!important;font-weight:850!important;
}
body.frm-cart-modern .woocommerce table.shop_table.cart dl.variation dd{margin:0 0 5px!important}
/* Modern WooCommerce Cart Block: no markup changes. */
body.frm-cart-modern .wc-block-cart{
 max-width:100%!important;width:100%!important;min-width:0!important;
 color:var(--frm-ink)!important;
}
body.frm-cart-modern .wc-block-cart .wc-block-cart-items,
body.frm-cart-modern .wc-block-cart .wc-block-components-sidebar-layout{
 width:100%!important;max-width:100%!important;min-width:0!important;
}
body.frm-cart-modern .wc-block-cart .wc-block-cart-items{
 border:1px solid var(--frm-border)!important;border-radius:16px!important;
 background:#fff;box-shadow:0 8px 26px rgba(58,16,82,.07);
}
body.frm-cart-modern .wc-block-cart .wc-block-cart-items__row{
 border-color:var(--frm-border)!important;
}
body.frm-cart-modern .wc-block-cart .wc-block-cart-items__row .wc-block-components-product-name{
 color:var(--frm-purple)!important;font-weight:800!important;text-decoration:none!important;
}
body.frm-cart-modern .wc-block-cart .wc-block-cart__totals-title,
body.frm-cart-modern .wc-block-cart .wc-block-components-totals-wrapper{
 color:var(--frm-deep)!important;
}
body.frm-cart-modern .wc-block-cart .wc-block-components-checkout-place-order-button,
body.frm-cart-modern .wc-block-cart .wc-block-cart__submit-button{
 border-radius:11px!important;background:linear-gradient(120deg,#ffe093,#ecb742)!important;color:#321040!important;
}
/* Mobile cart: each line is a compact card, never a fixed-width table. */
@media(max-width:991px){
 html:has(body.frm-cart-modern),body.frm-cart-modern{max-width:100%!important;width:100%!important;overflow-x:clip!important}
 body.frm-cart-modern :is(#page,.site,.site-content,.site-main,main,.entry-content,.elementor,.elementor-section,.elementor-container,.elementor-column,.elementor-widget-wrap,.elementor-widget-container){
  min-width:0!important;max-width:100%!important;
 }
 body.frm-cart-modern .woocommerce,
 body.frm-cart-modern .woocommerce-cart-form,
 body.frm-cart-modern .woocommerce .cart-collaterals,
 body.frm-cart-modern .woocommerce .cart_totals,
 body.frm-cart-modern .wc-block-cart{
  width:100%!important;max-width:100%!important;min-width:0!important;
 }
 body.frm-cart-modern .woocommerce{margin:0 auto!important;padding:0 10px!important}
 body.frm-cart-modern .frm-cart-heading{padding:16px;margin:12px 0 18px;border-radius:16px;gap:11px}
 body.frm-cart-modern .frm-cart-heading-icon{width:42px;height:42px;flex-basis:42px;font-size:22px}
 body.frm-cart-modern .frm-cart-heading h2{font-size:21px!important}
 body.frm-cart-modern .frm-cart-heading p{font-size:12px!important}
 body.frm-cart-modern .woocommerce table.shop_table.cart,
 body.frm-cart-modern .woocommerce table.shop_table_responsive.cart,
 body.frm-cart-modern .woocommerce table.woocommerce-cart-form__contents{
  display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
  border-radius:0!important;margin:0!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart thead{display:none!important}
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item{
  display:grid!important;width:100%!important;max-width:100%!important;min-width:0!important;
  grid-template-columns:72px minmax(0,1fr) 30px!important;
  grid-template-areas:
   'thumb name remove'
   'thumb price price'
   'qty qty qty'
   'subtotal subtotal subtotal'!important;
  grid-template-rows:auto auto auto auto!important;
  align-items:start!important;column-gap:12px!important;row-gap:7px!important;
  border:1px solid var(--frm-border)!important;border-radius:16px!important;
  background:var(--frm-paper)!important;box-shadow:0 6px 17px rgba(64,17,89,.07)!important;
  padding:16px!important;margin:0 0 14px!important;overflow:hidden!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td{
  min-width:0!important;max-width:100%!important;width:auto!important;
  padding:0!important;margin:0!important;border:0!important;background:transparent!important;
  display:block!important;float:none!important;text-align:left!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td::before{content:none!important;display:none!important;float:none!important}
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-remove{
  grid-area:remove!important;justify-self:end!important;align-self:start!important;
  z-index:2!important;text-align:right!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-thumbnail{
  grid-area:thumb!important;display:block!important;align-self:start!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-thumbnail img{
  width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-name{
  grid-area:name!important;padding:1px 0 0!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-name a{
  font-size:14px!important;font-weight:850!important;line-height:1.34!important;
  color:var(--frm-deep)!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-price{
  grid-area:price!important;align-self:start!important;padding-top:0!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-price .amount{
  color:var(--frm-purple)!important;font-size:15px!important;font-weight:900!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-quantity{
  grid-area:qty!important;display:flex!important;align-items:center!important;
  justify-content:space-between!important;
  margin-top:7px!important;padding-top:11px!important;
  border-top:1px solid #f1edf5!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-quantity::before{
  content:'Quantità'!important;display:block!important;
  color:var(--frm-muted)!important;font-weight:750!important;font-size:13px!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-quantity .quantity{
  width:auto!important;max-width:50%!important;margin:0!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-subtotal{
  grid-area:subtotal!important;display:flex!important;justify-content:space-between!important;
  align-items:center!important;gap:12px!important;
  margin-top:4px!important;padding-top:12px!important;
  border-top:1px solid #f1edf5!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-subtotal::before{
  content:'Subtotale'!important;display:block!important;color:var(--frm-deep)!important;
  font-weight:850!important;font-size:13px!important;white-space:nowrap!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-subtotal .amount{
  color:var(--frm-purple)!important;font-size:16px!important;font-weight:900!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr:not(.cart_item){
  display:block!important;width:100%!important;max-width:100%!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr:not(.cart_item) td.actions{
  display:flex!important;width:100%!important;max-width:100%!important;
  flex-direction:column!important;gap:10px!important;
  padding:10px 0 18px!important;background:transparent!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart td.actions .coupon{
  display:flex!important;float:none!important;width:100%!important;max-width:100%!important;
  gap:8px!important;flex-wrap:wrap!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart td.actions .coupon input.input-text{
  float:none!important;flex:1 1 150px!important;width:auto!important;min-width:0!important;max-width:100%!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart td.actions .coupon button.button{
  float:none!important;flex:0 1 auto!important;white-space:normal!important;
 }
 body.frm-cart-modern .woocommerce table.shop_table.cart td.actions button[name='update_cart']{
  width:100%!important;max-width:100%!important;float:none!important;
 }
 body.frm-cart-modern .woocommerce .cart-collaterals{margin-top:8px!important}
 body.frm-cart-modern .woocommerce .cart-collaterals .cart_totals{
  float:none!important;width:100%!important;max-width:100%!important;
  padding:18px!important;border-radius:16px!important;
 }
 body.frm-cart-modern .woocommerce .cart_totals table.shop_table{display:table!important}
 body.frm-cart-modern .woocommerce .cart_totals table.shop_table tr{display:table-row!important}
 body.frm-cart-modern .woocommerce .cart_totals table.shop_table th,
 body.frm-cart-modern .woocommerce .cart_totals table.shop_table td{
  display:table-cell!important;width:auto!important;float:none!important;
  font-size:13px!important;white-space:normal!important;
 }
 body.frm-cart-modern .woocommerce .cart_totals table.shop_table td{text-align:right!important}
 body.frm-cart-modern .woocommerce .cart_totals table.shop_table td::before{display:none!important}
 body.frm-cart-modern .woocommerce .cart_totals h2{font-size:21px!important}
 body.frm-cart-modern .woocommerce .woocommerce-message,
 body.frm-cart-modern .woocommerce .woocommerce-info,
 body.frm-cart-modern .woocommerce .woocommerce-error{font-size:13px!important;margin-bottom:16px!important}
 body.frm-cart-modern .wc-block-cart .wc-block-components-sidebar-layout{display:block!important}
 body.frm-cart-modern .wc-block-cart .wc-block-cart__main,
 body.frm-cart-modern .wc-block-cart .wc-block-cart__sidebar{width:100%!important;max-width:100%!important}
 body.frm-cart-modern .wc-block-cart .wc-block-cart-items__row .wc-block-cart-item__product{
  min-width:0!important;overflow-wrap:anywhere!important;
 }
}
@media(max-width:359px){
 body.frm-cart-modern .woocommerce{padding:0 5px!important}
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item{padding:12px!important;grid-template-columns:58px minmax(0,1fr) 28px!important;gap:9px!important}
 body.frm-cart-modern .woocommerce table.shop_table.cart tbody tr.cart_item td.product-thumbnail img{width:58px!important;height:58px!important}
}

/* WooCommerce's default variation markup floats labels; keep prize information tidy. */
body.frm-cart-modern .woocommerce table.shop_table.cart td.product-name dl.variation{display:block!important;max-width:100%!important;margin:7px 0 0!important;overflow-wrap:anywhere!important}
body.frm-cart-modern .woocommerce table.shop_table.cart td.product-name dl.variation dt,
body.frm-cart-modern .woocommerce table.shop_table.cart td.product-name dl.variation dd{
 float:none!important;display:inline!important;clear:none!important;width:auto!important;
 font-size:12px!important;line-height:1.5!important;
}
body.frm-cart-modern .woocommerce table.shop_table.cart td.product-name dl.variation dt{font-weight:900!important}
body.frm-cart-modern .woocommerce table.shop_table.cart td.product-name dl.variation dd p{display:inline!important;margin:0!important}
