/* WooCommerce Product Bundles */

.smart-bundle-products {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) !important;
  border: 1px solid #e3e8ef !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 24px rgba(15, 40, 80, 0.06) !important;
  padding: 26px 28px !important;
  counter-reset: bundle-item;
}

.smart-bundle-heading h3 {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #0b2545 !important;
  margin: 0 0 18px !important;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6ebf1;
}

.smart-bundle-heading h3::before {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background-color: #fd6800;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/><polyline points='3.27 6.96 12 12.01 20.73 6.96'/><line x1='12' y1='22.08' x2='12' y2='12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.bundled_product_summary {
  display: flex !important;
  align-items: center !important;
  gap: 16px;
  padding: 14px 8px;
  border-radius: 12px;
  border-bottom: 1px solid #edf1f5;
  counter-increment: bundle-item;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.bundled_product_summary:last-child { border-bottom: none; }

.bundled_product_summary:hover {
  background-color: #f5f8fc;
  box-shadow: 0 4px 14px rgba(15,40,80,0.08);
  transform: translateY(-1px);
}

.bundled_product_images {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 68px !important;
  height: 80px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px 10px !important;
  box-sizing: border-box;
}
.bundled_product_images img {
  max-width: 100% !important;
  max-height: 100px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}
.bundled_product_images::after {
  content: counter(bundle-item);
  position: absolute;
  top: -6px;
  left: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #004bad;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.18);
}

.bundled_product_summary .details {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.bundled_product_title.product_title {
  margin: 0 !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #1c2b3a !important;
  flex: 1 1 240px;
  min-width: 0;
}

.bundled_product_title_link a {
  opacity: .55;
  transition: opacity .2s ease;
}
.bundled_product_summary:hover .bundled_product_title_link a { opacity: 1; }

.bundled_product_summary .cart,
.bundled_product_summary .bundled_item_wrap,
.bundled_product_summary .bundled_item_cart_content {
  display: contents !important;
}

.bundled_item_cart_details {
  display: flex !important;
  align-items: baseline;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.bundled_item_cart_details .price .woocommerce-Price-amount {
  font-weight: 700 !important;
  font-size: 15.5px !important;
  color: #fd6800 !important;
}

.bundled_item_price_quantity {
  font-size: 12px !important;
  color: #8a94a3 !important;
  font-weight: 500 !important;
}

@media (max-width: 600px) {
  .smart-bundle-products { padding: 18px !important; border-radius: 14px !important; }
  .smart-bundle-heading h3 { font-size: 16px !important; margin-bottom: 14px !important; padding-bottom: 12px; }
  .bundled_product_summary { padding: 12px 4px; gap: 12px; }
  .bundled_product_images { width: 54px !important; height: 68px !important; padding: 12px 8px !important; border-radius: 10px !important; }
  .bundled_product_images img { max-height: 36px !important; }
  .bundled_product_summary .details { flex-direction: column !important; align-items: flex-start !important; gap: 4px; }
  .bundled_product_title.product_title { font-size: 13px !important; flex-basis: auto; }
  .bundled_item_cart_details { font-size: 13px; }
}

div.bundled_product_summary, .woocommerce div.product.bundled_product_summary{
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;   
}