#custom-bundle-grid-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

#custom-bundle-grid-wrapper > *:first-child {
  order: 1;
}

#custom-bundle-grid-wrapper > *:last-child {
  order: 2;
}

@media (max-width: 991px) {
  #custom-bundle-grid-wrapper {
    grid-template-columns: 1fr;
  }

  #custom-bundle-grid-wrapper > *:first-child {
    order: 2;
  }

  #custom-bundle-grid-wrapper > *:last-child {
    order: 1;
  }
}

.grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

@media (max-width: 991px) {
    .grid-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

.grid-header p {
  margin: 0 !important;
}

.bundle-search-wrapper {
  width: 300px;
  position: relative;
}

#bundle-search-input {
  width: 100%;
}

#clear-search {
  position: absolute;
  right: 6px;
  top: 2px;
  padding: 8px;
  font-size: 1.5rem;
}

#clear-search:hover {
  background: transparent;
}

.bundle-pagination-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1rem;
}

.bundle-pagination {
  display: flex;
  gap: 10px;
}

.custom-bundle-product .product-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  border: 1px solid #f2f2f1;
  border-radius: 15px;
  padding: 10px;
}

.custom-bundle-product .product-inner .product-thumbnail img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

h6 {
  margin: 0 !important;
}

.add-to-bundle-btn {
  text-transform: uppercase;
}

/* Responsive 4-3-2 column layout for #custom-bundle-products */
#custom-bundle-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Mobile default */
  gap: 1rem;
}

@media (min-width: 768px) {
  #custom-bundle-products {
    grid-template-columns: repeat(3, 1fr); /* Tablet */
  }
}

@media (min-width: 1024px) {
  #custom-bundle-products {
    grid-template-columns: repeat(4, 1fr); /* Desktop */
  }
}

.bundle-builder-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #f2f2f1;
  border-radius: 15px;
  padding: 1.5rem;
  height: fit-content;
}

.bundle-builder-container h6 {
  margin: 0 !important;
}

.bundle-progress-wrapper {
  position: relative;
  font-size: 10px;
}

.progress-10, .progress-15, .progress-20, .progress-25 {
  width: max-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -8px;
}

.progress-percent {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: black;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-description {
  font-size: 8px;
}

.progress-10 {
  left: calc(50% - 12px);
}

.progress-15 {
  left: calc(66.6% - 12px);
}

.progress-20 {
  left: calc(83.3% - 12px);
}

.progress-25 {
  left: calc(100% - 12px);
}

#bundle-progress {
  width: 100%;
}

progress {
  width: 100%;
  height: 10px;
  border: 1px solid #00000030;
  border-radius: 5px;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  overflow: hidden;
}

progress::-webkit-progress-bar {
  background-color: #fff;
  border-radius: 5px;
}

progress::-webkit-progress-value {
  background-color: #000 !important;
}

progress::-moz-progress-bar {
  background-color: #000 !important;
}

.bundle-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.bundle-item {
  width: 100%;
  height: 70px;
  border: 2px dashed #f2f2f1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: grey;
  font-size: 2rem;
  background: #ffffff;
  border-radius: 15px;
}

.bundle-item.filled {
  flex-direction: row;
  justify-content: space-between;
  padding: 5px;
  background: #fff;
  position: relative;
}

.bundle-item.filled img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.bundle-info {
  flex-grow: 1;
  margin-left: 10px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bundle-info-price, .regular-price-display {
  text-decoration: line-through;
  color: #00000080;
}

.discount-price, .sale-price {
  color: #db1215;
}

.price-display, .regular-price-display {
  font-weight: 500;
}

.remove-from-bundle {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #000;
  cursor: pointer;
}

select.variation-selector {
  width: 100%;
}

.bundle-summary-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}