/* The highlighted row is an actual WooCommerce cart item, rendered by the site theme.
   The plugin changes only its colors and its badge; it does NOT impose a card layout. */
.woocommerce-cart .prmo-auto-cart-item,
.prmo-auto-cart-item {
  --prmo-offer-bg:var(--prmo-cart-background,#f5f9ff);
  --prmo-offer-color:var(--prmo-cart-accent,#146df4);
  position:relative;
  background:var(--prmo-offer-bg)!important;
  border-color:var(--prmo-offer-color)!important;
  outline:2px solid var(--prmo-offer-color);
  outline-offset:-2px;
}
.prmo-auto-cart-item > td,
.prmo-auto-cart-item > th {
  background:var(--prmo-offer-bg)!important;
}
/* Classic cart: WooCommerce normally calls the cart-item-name filter for each row. */
.prmo-auto-cart-item .prmo-cart-item-label {
  box-sizing:border-box;
  display:table;
  width:max-content;
  max-width:100%;
  padding:5px 12px;
  margin:0 0 10px;
  border-radius:11px;
  background:var(--prmo-offer-color);
  color:#fff!important;
  font-family:inherit;
  font-weight:750;
  font-size:12px;
  line-height:1.65;
  text-decoration:none;
  white-space:normal;
  box-shadow:none;
}
.prmo-auto-cart-item .prmo-cart-item-label::before {content:none;}
/* Block cart: the supported cartItemClass filter marks the row; this provides the
   visual badge without cloning any product card or changing quantity controls. */
.prmo-auto-cart-item .wc-block-components-product-name::before {
  content:'پیشنهاد مخصوص این خرید ✨';
  box-sizing:border-box;
  display:table;
  max-width:100%;
  width:max-content;
  margin:0 0 10px;
  padding:5px 12px;
  border-radius:11px;
  background:var(--prmo-offer-color);
  color:#fff;
  font-family:inherit;
  font-weight:750;
  font-size:12px;
  line-height:1.65;
  white-space:normal;
}
@media(max-width:600px){
  .prmo-auto-cart-item .prmo-cart-item-label,
  .prmo-auto-cart-item .wc-block-components-product-name::before {font-size:11px;padding:4px 10px;border-radius:9px;}
}
