.cenesti-bundle-badge-wrapper { display:block; margin-top:4px; }

.cenesti-bundle-badge{
  display:inline-block;
  padding:2px 8px;
  font-size:10px;
  font-weight:600;
  letter-spacing:.2px;
  text-transform:uppercase;
  line-height:1.4;
  border-radius:999px;
  border:1px solid transparent;
}

/* 5 theme */
.cenesti-bundle-badge.pair-theme-1{ background:#F2EFEC; border-color:#E6E1DC; color:#7B756E; }
.cenesti-bundle-badge.pair-theme-2{ background:#EEF3EF; border-color:#D9E5DC; color:#5F6B63; }
.cenesti-bundle-badge.pair-theme-3{ background:#F3F0EB; border-color:#E2D9CE; color:#6F655C; }
.cenesti-bundle-badge.pair-theme-4{ background:#EFEFF4; border-color:#DCDDEA; color:#5F6174; }
.cenesti-bundle-badge.pair-theme-5{ background:#F4EEEE; border-color:#E6D8D8; color:#6E5E5E; }

.woocommerce-cart .cart_item.cenesti-bundle-in-promo{
  border-left:3px solid #E6E1DC;
}


/* ===== Prezent do wyboru — compact slots v1.2.5 ===== */
.cneprom-gift-choice{
  margin: 10px 0 14px;
  width: 100%;
  max-width: 600px;
}
.cneprom-gift-choice[hidden],
.cneprom-gift-choice--duplicate{
  display:none !important;
}
.cneprom-gift__notice{
  margin:0 0 8px;
  padding:8px 10px;
  border:1px solid #ecd2cf;
  border-radius:10px;
  background:#fff6f5;
  color:#8a2a22;
  font-size:12px;
}
.cneprom-gift__notice[hidden]{ display:none !important; }

.cneprom-gift__rule{
  width:100%;
  max-width:600px;
  border:1px solid #e8e1dd;
  border-radius:14px;
  padding:12px;
  background:#fff;
}
.cneprom-gift__rule + .cneprom-gift__rule{ margin-top:10px; }
.cneprom-gift__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.cneprom-gift__title{
  font-size:15px;
  font-weight:700;
  color:#444;
  line-height:1.25;
}
.cneprom-gift__remaining{
  flex:0 0 auto;
  font-size:12px;
  line-height:1;
  padding:7px 10px;
  border-radius:999px;
  background:#f2efec;
  color:#8c7d74;
  font-weight:600;
  white-space:nowrap;
}
.cneprom-gift__slots{
  display:grid;
  gap:8px;
}
.cneprom-gift__slot{
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
.cneprom-gift__slot-main{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:8px;
}
.cneprom-gift__slot-img,
.cneprom-gift__option-img{
  display:block;
  width:64px;
  height:78px;
  border-radius:9px;
  object-fit:cover;
  background:#f7f4f2;
}
.cneprom-gift__slot-copy{ min-width:0; }
.cneprom-gift__slot-status{
  color:#067647;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
  margin-bottom:3px;
}
.cneprom-gift__slot-name{
  color:#444;
  font-size:13px;
  font-weight:650;
  line-height:1.25;
  margin-bottom:3px;
}
.cneprom-gift__slot-price{
  color:#444;
  font-size:12px;
  font-weight:700;
}
.cneprom-gift__slot-actions{
  display:flex;
  gap:8px;
  padding:0 8px 8px 82px;
}
.cneprom-gift__change,
.cneprom-gift__remove,
.cneprom-gift__add{
  min-width:92px;
  border-radius:9px;
  padding:10px 15px;
  font-size:12px;
  font-weight:650;
  cursor:pointer;
  white-space:nowrap;
  transition:opacity .12s ease;
}
.cneprom-gift__change{
  border:1px solid #d8d0cb;
  background:#fff;
  color:#444;
}
.cneprom-gift__remove,
.cneprom-gift__add{
  border:1px solid #1f1f1f;
  background:#1f1f1f;
  color:#fff;
}
.cneprom-gift__change:hover,
.cneprom-gift__remove:hover,
.cneprom-gift__add:hover{
  opacity:.85;
}
.cneprom-gift__change:disabled,
.cneprom-gift__remove:disabled,
.cneprom-gift__add:disabled{
  opacity:.5;
  cursor:default;
}

.cneprom-gift__pick-head{
  width:100%;
  border:0;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 14px;
  text-align:left;
  cursor:pointer;
  color:#444;
}
.cneprom-gift__pick-title{
  font-size:14px;
  font-weight:700;
}
.cneprom-gift__pick-subtitle{
  color:#8c7d74;
  font-size:12px;
  font-weight:600;
}
.cneprom-gift__pick-head::after{
  content:"⌄";
  flex:0 0 auto;
  color:#8c7d74;
  font-size:13px;
  line-height:1;
}
.cneprom-gift__slot.is-open .cneprom-gift__pick-head::after{
  content:"⌃";
}

.cneprom-gift__options-panel{
  display:none;
  border-top:1px solid #eee7e3;
  padding:10px;
  background:#fff;
}
.cneprom-gift__slot.is-open .cneprom-gift__options-panel{
  display:block;
}
.cneprom-gift__options-title{
  color:rgba(0,0,0,.55);
  font-size:12px;
  margin-bottom:8px;
}
.cneprom-gift__options-list{
  display:grid;
  gap:8px;
}
.cneprom-gift__option{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  gap:9px;
  align-items:center;
  border:1px solid rgba(0,0,0,.08);
  border-radius:11px;
  padding:8px;
  background:#fff;
}
.cneprom-gift__option-img{
  width:58px;
  height:70px;
}
.cneprom-gift__option-main{ min-width:0; }
.cneprom-gift__option-name{
  font-size:13px;
  font-weight:650;
  line-height:1.25;
  color:#444;
  margin-bottom:4px;
}
.cneprom-gift__option-free{
  font-size:12px;
  font-weight:700;
  color:#444;
}
.cneprom-gift__option-controls{
  display:flex;
  align-items:center;
  gap:8px;
}
.cneprom-gift__size{
  min-width:125px;
  min-height:39px;
  border-radius:9px;
  border:1px solid rgba(0,0,0,.16);
  padding:7px 9px;
  font-size:13px;
  background:#fff;
}
.cneprom-gift__size.is-error{ border-color:#b42318; }
.cneprom-gift__add{
  min-width:118px;
}

.cneprom-gift-badge{
  background: rgba(6,118,71,.1) !important;
  color:#067647 !important;
}
.woocommerce-cart tr.cneprom-cart-gift-item,
.woocommerce-cart .cart_item.cneprom-cart-gift-item{
  display:none !important;
}

@media (max-width: 640px){
  .cneprom-gift-choice,
  .cneprom-gift__rule{
    max-width:none;
  }
  .cneprom-gift__top{
    align-items:flex-start;
    flex-direction:column;
  }
  .cneprom-gift__slot-actions{
    padding:0 8px 8px;
  }
  .cneprom-gift__change,
  .cneprom-gift__remove,
  .cneprom-gift__add{
    min-width:0;
  }
  .cneprom-gift__option{
    grid-template-columns:54px minmax(0,1fr);
  }
  .cneprom-gift__option-img{
    width:54px;
    height:66px;
  }
  .cneprom-gift__option-controls{
    grid-column:1 / -1;
    display:grid;
    grid-template-columns:1fr 128px;
  }
  .cneprom-gift__size{
    min-width:0;
    width:100%;
  }
  .cneprom-gift__add{
    width:100%;
  }
}


/* ===== Product-card badge for active 1+1 rules — v1.2.8 ===== */
.cneprom-product-image-wrap{
  position:relative;
  display:block;
  width:100%;
  line-height:0;
}
.cneprom-product-image-wrap > img{
  display:block;
  width:100%;
}
.cneprom-product-promo-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  max-width:calc(100% - 24px);
  padding:6px 11px;
  border:1px solid rgba(123,91,75,.14);
  border-radius:9px;
  background:#fff;
  color:#7b5b4b;
  font-size:11px;
  font-weight:600;
  line-height:1;
  letter-spacing:.15px;
  text-transform:uppercase;
  box-sizing:border-box;
  white-space:nowrap;
}
.cneprom-product-image-wrap .cneprom-product-promo-badge{
  position:absolute;
  left:12px;
  bottom:12px;
  z-index:5;
}
/* On a product page keep the badge in normal flow near the title. */
.single-product .summary .cneprom-product-promo-badge{
  position:static;
  margin:0 0 10px;
}

/* ===== 1+1 cart / mini-cart nudge — v1.2.7 ===== */
.cneprom-oneplusone-nudges{
  display:grid;
  gap:8px;
  margin:0 0 14px;
}
.cneprom-oneplusone-nudge{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  min-height:46px;
  padding:10px 14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:4px;
  background:#fff;
  color:#2f2f2f;
  text-decoration:none !important;
  box-sizing:border-box;
  transition:border-color .15s ease, background .15s ease;
}
.cneprom-oneplusone-nudge:hover{
  border-color:rgba(123,91,75,.28);
  background:#fdfbf9;
}
.cneprom-oneplusone-nudge__text{
  font-size:13px;
  font-weight:500;
  line-height:1.25;
}
.cneprom-oneplusone-nudge__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  padding:6px 10px;
  border:1px solid rgba(123,91,75,.18);
  border-radius:3px;
  background:#fff;
  color:#7b5b4b;
  font-size:11px;
  font-weight:600;
  line-height:1;
  letter-spacing:.15px;
  text-transform:uppercase;
  white-space:nowrap;
}
.cneprom-oneplusone-mini-slot{
  list-style:none !important;
  margin:0 0 8px !important;
  padding:0 !important;
  border:0 !important;
}
.cneprom-oneplusone-nudge--mini{
  width:100%;
  min-height:44px;
  padding:9px 12px;
}
.cneprom-oneplusone-nudge--mini .cneprom-oneplusone-nudge__text{
  font-size:12px;
}

@media (max-width:640px){
  .cneprom-oneplusone-nudge{
    justify-content:space-between;
    gap:8px;
    padding:10px 12px;
  }
  .cneprom-oneplusone-nudge__text{font-size:12px;}
  .cneprom-oneplusone-nudge__badge{font-size:10px;padding:6px 8px;}
}


/* ===== Gratis badge in full cart and mini-cart — v1.3.1 ===== */
.cneprom-free-badge-wrapper{
  display:inline-flex !important;
  margin-top:6px !important;
}
.cneprom-free-badge{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:max-content;
  min-height:24px;
  padding:5px 10px !important;
  border:1px solid rgba(123,91,75,.18) !important;
  border-radius:8px !important;
  background:#fff !important;
  color:#7b5b4b !important;
  font-size:11px !important;
  font-weight:600 !important;
  line-height:1 !important;
  letter-spacing:.15px;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:none !important;
}
.woocommerce-mini-cart .cneprom-free-badge-wrapper{
  margin-top:4px !important;
}
.woocommerce-mini-cart .cneprom-free-badge{
  min-height:22px;
  padding:4px 8px !important;
  font-size:10px !important;
}


/* ===== Hide 1+1 image badge while the product card hover UI is open — v1.3.2 ===== */
@media (hover:hover) and (pointer:fine){
  .products .product:hover .cneprom-product-promo-badge,
  .woocommerce ul.products li.product:hover .cneprom-product-promo-badge,
  .jws_product_item:hover .cneprom-product-promo-badge,
  .product-item:hover .cneprom-product-promo-badge,
  .product-wrap:hover .cneprom-product-promo-badge{
    opacity:0;
    visibility:hidden;
    pointer-events:none;
  }
}
.cneprom-product-promo-badge{
  transition:opacity .16s ease, visibility .16s ease;
}


/* ===== Mini-cart: badge tylko pod nazwą darmowego produktu — v1.3.3 ===== */
.woocommerce-mini-cart .cneprom-product-image-wrap .cneprom-product-promo-badge,
.widget_shopping_cart .cneprom-product-image-wrap .cneprom-product-promo-badge,
.cne-mini-cart .cneprom-product-image-wrap .cneprom-product-promo-badge,
.cne-cart-drawer .cneprom-product-image-wrap .cneprom-product-promo-badge{
  display:none !important;
}

.woocommerce-mini-cart .cneprom-free-badge-wrapper,
.widget_shopping_cart .cneprom-free-badge-wrapper,
.cne-mini-cart .cneprom-free-badge-wrapper,
.cne-cart-drawer .cneprom-free-badge-wrapper{
  display:flex !important;
  width:max-content !important;
  margin:5px 0 0 !important;
}

.cneprom-free-price,
.cneprom-price--free .cneprom-ins{
  color:#7b5b4b !important;
  font-weight:600 !important;
  text-decoration:none !important;
}

/* ===== Custom mini-cart CMC: tylko faktyczny gratis — v1.3.6 ===== */
.cmc-cartview .cneprom-product-promo-badge,
.cmc-cartview .cneprom-product-image-wrap .cneprom-product-promo-badge{
  display:none !important;
}

.cmc-cartview .cneprom-cmc-free-badge-wrapper{
  display:flex !important;
  width:max-content !important;
  margin:5px 0 2px !important;
}

.cmc-cartview .cmc-item.cneprom-cmc-free-item .cmc-price{
  display:flex;
  align-items:center;
  gap:4px;
  flex-wrap:wrap;
}

.cmc-cartview .cmc-item.cneprom-cmc-free-item .cmc-price .cneprom-price--free{
  display:inline-flex;
  align-items:center;
  gap:4px;
}

.cmc-cartview .cmc-item.cneprom-cmc-free-item .cmc-price .cneprom-del{
  opacity:.7;
}

