/**
 * Bundle-specific styling for the single bundle page. The page shell, gallery
 * slider, action bar, share block and accordion are styled by product.css
 * (enqueued alongside this file); only the component list, steppers and total
 * are bundle-specific.
 */

.bundle-single-product .bundle-description {
  margin: 12px 0 20px;
  line-height: 1.6;
  color: #060706;
  font-size: 18px;
}

/* Component list — scrollable, matching the product page summary column */
.bundle-items-wrapper {
  max-height: 295px;
  overflow-y: auto;
  padding-inline-end: 8px;
  padding-bottom: 2.5px;
  border-bottom: 1px solid #ececec;
}

.bundle-items-wrapper::-webkit-scrollbar {
  width: 4px;
}

.bundle-items-wrapper::-webkit-scrollbar-track {
  background: transparent;
  border: 0.5px solid #707070 !important;
  border-radius: 2px !important;
  opacity: 1 !important;
  margin-bottom: 12px !important;
}

.bundle-items-wrapper::-webkit-scrollbar-thumb {
  background: #707070;
  border-radius: 2px;
}

.bundle-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bundle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2.5px 0;
}

.bundle-item.arcaffe-unavailable {
  opacity: 0.5;
}

.bundle-item-name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.bundle-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.bundle-item-thumb img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  display: block;
}

.bundle-item-oos {
  color: #c0392b;
  font-size: 13px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  max-width: 76px;
  width: 100%;
  height: 40px;
}

/* Per-item stepper — mirrors the product quantity-buttons look:
   rounded box with +| N |- divider cells. */
.bundle-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  border: 1px solid #060706;
  overflow: hidden;
  background: #fff;
  max-width: 76px;
  width: 100%;
  height: 40px;
}

.bundle-stepper-btn {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #060706;
  padding: 0 10px;
  height: 100%;
}

.bundle-stepper-input {
  width: 20px;
  height: 100%;
  text-align: center;
  border: 0;
  background: transparent;
  font-size: 16px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.bundle-stepper-input:focus {
  outline: none;
}

.bundle-stepper-input::-webkit-outer-spin-button,
.bundle-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Total */
.bundle-total-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
}

.bundle-total-amount {
  font-size: 30px;
  font-weight: 700;
}

.bundle-per-person {
  font-size: 14px;
  color: #888;
}

/* Action bar — the qty box + add button reuse the product page styling
   (.input-group-qnty / .arcaffe-product-button); we only lay them out. */
.bundle-serves-line {
  font-size: 14px;
  color: #000000;
  margin: 7px 70px;
}

.bundle-cart {
  display: flex;
  align-items: center;
}

.bundle-cart .arcaffe-product-button.bundle-single-add {
  margin-left: 0;
}

.bundle-single-add.is-loading {
  opacity: 0.7;
  cursor: progress;
}

.bundle-single-add[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.bundle-single-error {
  color: #c0392b;
  font-size: 14px;
  margin: 8px 0 0;
}

/* Related products — reuses the product page's upsell slider styling */
.bundle-related {
  margin-top: 42px;
}

.bundle-single-product .arcaffe-product-block-information {
  margin-bottom: 28px;
}

.bundle-single-product .wrapper-product-actions {
  padding-bottom: 20px !important;
}

.bundle-single-product nav.menus-breadcrumbs {
  max-width: 100%;
  padding-top: 0;
}

.bundle-single-product nav.menus-breadcrumbs ul li a:hover {
  text-decoration: none;
}

.bundle-single-product .arcaffe-product-image .slick-dots {
  bottom: -28px !important;
}

.bundle-single-product .slick-dots li {
  width: 10px;
  height: 10px;
}

.bundle-single-product .product_title {
  font-size: 24px;
  line-height: 1.2;
}

.bundle-single-product .slider-product-wrapper {
  height: 100%;
}

.bundle-single-product .wrapper-product-content {
  align-items: stretch;
}

@media (max-width: 944px) {
  .bundle-single-product .arcaffe-product-image .slick-dots {
    bottom: -50px !important;
    margin-bottom: 10px !important;
    width: 100%;
  }

  .bundle-single-product .arcaffe-product-navigation {
    display: block;
  }

  .bundle-single-product nav.menus-breadcrumbs {
    margin-top: 13px !important;
    margin-bottom: 19px !important;
    font-size: 12px !important;
    line-height: 14px !important;
    padding-right: 23px !important;
    padding: 0;
  }

  .bundle-total-block {
    border-bottom: 0;
  }

  .bundle-single-product .entry-summary {
    margin-bottom: 0 !important;
  }

  .bundle-single-product .arcaffe-product-block-information {
    margin-bottom: 0;
  }

  .bundle-single-product .arcaffe-product-button {
    width: 50% !important;
    min-width: 50% !important;
  }

  .bundle-single-product .quantity-buttons.arcaffe-product-button {
    width: 100% !important;
    min-width: 100% !important;
  }

  .bundle-serves-line {
    margin: 7px 0 0;
  }

  .bundle-single-product .arcaffe-product-buttons {
    min-height: auto;
    padding: 30px 15px 24px;
  }

  .bundle-single-product .arcaffe-product-content {
    padding: 5px 29px 0;
  }
}
