﻿.productbundle-root {
  margin-top: 1.5rem;
}

#productbundle-root .productbundle-grid.row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

#productbundle-root .productbundle-grid .productbundle-item {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  min-width: 0;
}

/* Vertical card: image → info → control stacked */
#productbundle-root .productbundle-card {
  display: flex;
  flex-direction: column;
}

.productbundle-img-wrap {
  text-align: center;
}

.productbundle-thumb {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.productbundle-name {
  word-break: break-word;
  overflow-wrap: break-word;
}

.productbundle-card.productbundle-unavailable {
  opacity: 0.55;
}

.productbundle-item.is-selected .productbundle-card {
  border-color: #2fb5d2 !important;
  box-shadow: 0 0 0 1px #2fb5d2;
}

/* Counter — own base style, no Bootstrap alert dependency */
.productbundle-counter {
  background-color: #e2e3e5;
  border: 1px solid #d6d8db;
  color: #383d41;
  border-radius: 0.25rem;
}

.productbundle-counter.is-valid {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.productbundle-counter.is-invalid {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Add-to-cart button: grey/disabled when bundle incomplete */
.product-add-to-cart.pb-locked .add-to-cart,
.product-add-to-cart.pb-locked button[data-button-action="add-to-cart"] {
  pointer-events: none;
  opacity: 1 !important;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: #fff !important;
}

#add-to-cart-or-refresh:has(#productbundle-root) .product-add-to-cart .product-quantity > .add {
  margin-left: 0.75rem;
}

/* TouchSpin wrapper inside each card */
#productbundle-root .productbundle-qty-wrap.qty_wrap {
  display: block;
  max-width: 8.5rem;
}

#productbundle-root .productbundle-qty-wrap .bootstrap-touchspin {
  display: flex;
  width: 100%;
}

#productbundle-root .productbundle-qty-wrap .bootstrap-touchspin input.pb-qty-more {
  width: 3.25rem;
  min-width: 3.25rem;
  text-align: center;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

#productbundle-root .productbundle-qty-wrap .btn-touchspin {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.productbundle-cart-warning {
  margin-bottom: 1rem;
}

.productbundle-selection-list {
  list-style: disc;
  padding-left: 1.25rem;
}

.productbundle-selection-list li {
  margin-bottom: 0.15rem;
}

.product-customization-line .value:not(:has(.productbundle-selection-list)) {
  white-space: pre-line;
}

@media (max-width: 575px) {
  #add-to-cart-or-refresh:has(#productbundle-root) .product-add-to-cart .product-quantity > .add {
    margin-left: 0;
  }
}

/* Inline customization in cart/checkout */
.pb-inline-customization {
  margin-top: 0.25rem;
}

.pb-custom-label {
  color: #878787;
  font-size: 0.85rem;
  padding-right: 20px !important;
}

button.pb-toggle-items,
.pb-inline-customization button.pb-toggle-items {
  display: inline-block !important;
  background: #FEFBF0 !important;
  border: 1px solid #C79B66 !important;
  border-radius: 3px !important;
  padding: 0 4px !important;
  font-size: 0.6rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  vertical-align: middle !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
  color: #C79B66 !important;
  letter-spacing: 1px !important;
  font-weight: bold !important;
  font-family: inherit !important;
  text-transform: none !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
  box-shadow: none !important;
}

button.pb-toggle-items:hover,
.pb-inline-customization button.pb-toggle-items:hover {
  background: #f5eedc !important;
  border-color: #b0854f !important;
  color: #b0854f !important;
}

.pb-items-list {
  margin-top: 0.35rem;
  padding: 0.4rem 0.6rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 4px;
  font-size: 0.8rem;
}

.pb-items-list .productbundle-selection-list {
  margin: 0;
  padding-left: 1.1rem;
}

.pb-items-list .productbundle-selection-list li {
  padding: 1px 0;
}


