/* WPC Product Bundles composition inside the Description tab.
   The plugin keeps ownership of the item markup and live stock/price logic;
   the theme only provides the visual shell and compact list treatment. */

.single-product-bundle-contents {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--batya-border);
}

.single-product-bundle-contents__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.single-product-bundle-contents__title {
  margin: 0 !important;
  color: var(--batya-text);
  font-size: var(--batya-font-md);
  font-weight: var(--batya-weight-semibold);
  line-height: 1.2;
}

.single-product-bundle-contents__hint {
  color: var(--batya-text-faint);
  font-size: var(--batya-font-xs);
  font-weight: var(--batya-weight-medium);
  line-height: 1.3;
  white-space: nowrap;
}

.single-product-bundle-contents__body,
.single-product-bundle-contents .woosb-wrap,
.single-product-bundle-contents .woosb-products {
  width: 100%;
  max-width: none;
  margin: 0 !important;
}

.single-product-bundle-contents .woosb-wrap,
.single-product-bundle-contents .woosb-products {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.single-product-bundle-contents .woosb-products .woosb-product {
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  width: 100%;
  margin: 0 !important;
  padding: 11px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid color-mix(in srgb, var(--batya-border) 82%, transparent) !important;
  background: transparent !important;
}

.single-product-bundle-contents .woosb-products .woosb-product:last-child {
  border-bottom: 0 !important;
}

.single-product-bundle-contents .woosb-products .woosb-product > div {
  min-width: 0;
}

.single-product-bundle-contents .woosb-products .woosb-thumb {
  flex: 0 0 44px !important;
  width: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product-bundle-contents .woosb-products .woosb-thumb img {
  display: block;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 56px !important;
  margin: 0 !important;
  padding: 2px;
  border: 0 !important;
  border-radius: var(--batya-radius-sm);
  background: var(--batya-surface);
  object-fit: contain;
}

.single-product-bundle-contents .woosb-products .woosb-title {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--batya-text);
  font-size: var(--batya-font-sm);
  line-height: 1.35;
  text-align: left !important;
}

.single-product-bundle-contents .woosb-products .woosb-name,
.single-product-bundle-contents .woosb-products .woosb-name a {
  color: var(--batya-text);
  font-weight: var(--batya-weight-medium);
  text-decoration: none;
}

.single-product-bundle-contents .woosb-products .woosb-name a:hover {
  color: var(--batya-brand-dark);
}

.single-product-bundle-contents .woosb-products .stock,
.single-product-bundle-contents .woosb-products .woosb-stock {
  margin: 3px 0 0 !important;
  color: var(--batya-success-text) !important;
  font-size: var(--batya-font-xs);
  font-weight: var(--batya-weight-medium);
  line-height: 1.3;
}

.single-product-bundle-contents .woosb-products .woosb-quantity,
.single-product-bundle-contents .woosb-products .woosb-qty {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
}

.single-product-bundle-contents .woosb-products .woosb-price {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin-left: auto !important;
  padding-left: 12px !important;
  color: var(--batya-text);
  font-size: var(--batya-font-sm);
  font-weight: var(--batya-weight-semibold);
  line-height: 1.3;
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.single-product-bundle-contents .woosb-products .woosb-price del {
  color: var(--batya-text-faint);
  font-size: .82em;
  font-weight: var(--batya-weight-medium);
  opacity: 1;
}

.single-product-bundle-contents .woosb-products .woosb-price ins {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.single-product-bundle-contents .woosb-products input,
.single-product-bundle-contents .woosb-products select {
  min-height: 34px;
  border: 1px solid var(--batya-border);
  border-radius: var(--batya-radius-xs);
  background: var(--batya-card);
  font-size: var(--batya-font-base);
}

.single-product-bundle-contents .woosb-total {
  margin-top: 10px !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--batya-border) !important;
  color: var(--batya-text);
  font-weight: var(--batya-weight-semibold);
}

@media (max-width: 767px) {
  .single-product-bundle-contents {
    margin-top: 20px;
    padding-top: 16px;
  }

  .single-product-bundle-contents__head {
    margin-bottom: 5px;
  }

  .single-product-bundle-contents__hint {
    display: none;
  }

  .single-product-bundle-contents .woosb-products .woosb-product {
    align-items: flex-start !important;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 10px 0 !important;
  }

  .single-product-bundle-contents .woosb-products .woosb-thumb {
    flex-basis: 40px !important;
    width: 40px !important;
  }

  .single-product-bundle-contents .woosb-products .woosb-thumb img {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 52px !important;
  }

  .single-product-bundle-contents .woosb-products .woosb-title {
    flex: 1 1 calc(100% - 50px) !important;
  }

  .single-product-bundle-contents .woosb-products .woosb-price {
    margin-left: 50px !important;
    padding-left: 0 !important;
    text-align: left !important;
  }

  .single-product-bundle-contents .woosb-products .woosb-quantity,
  .single-product-bundle-contents .woosb-products .woosb-qty {
    margin-left: auto;
  }
}
