.product-bundles {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.product-bundle {
  container-type: inline-size;
}

.product-bundle-grouping+.product-bundle-grouping {
  margin-top: 3rem;
}

.product-bundle-grouping.n-products-2 {
  --n-columns: 2;
}

.product-bundle-grouping.n-products-3 {
  --n-columns: 3;
}

.product-bundle-grouping.n-products-4 {
  --n-columns: 4;
}

.product-bundle-grouping.n-products-5 {
  --n-columns: 5;
}

.product-bundle-header .product-bundle-name {
  margin-bottom: .75rem;
  text-align: center;
  font-size: 1.25rem;
}

.product-bundle-header {
  margin-bottom: 1.5em;
}

.product-bundle-description {
  color: var(--bs-gray-600);
  text-align: center;
}

.bundle-item {
  position: relative;
  margin-bottom: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.bundle-item-form {
  margin-bottom: 0;
  text-align: center;
}

.bundle-buy-title {
  font-size: small;
  color: var(--bs-gray-600);
}

.bundle-item-inset {
  word-wrap: break-word;
  background-clip: border-box;
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 3px 3px -1px rgb(10 22 70 / 10%), 0 0 1px 0 rgb(10 22 70 / 6%);
  display: flex;
  align-items: center;
  min-width: 0;
  position: relative;
  padding: .75rem;
  border: 1px solid var(--bs-gray-200);
  height: 100%;
}

.bundle-item-product-name {
  font-weight: 500;
}

.bundle-item-img {
  position: relative;
  width: 30%;
}

.bundle-item.bundle-item-product:not(.bundle-item-product-last)::after {
  content: "";
  display: block;
  background-image: url('../../img/bundles/plus.svg');
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  height: 12px;
  width: 12px;
  background-size: 12px;
  left: 50%;
  bottom: -1.5rem;
  transform: translate(-50%, -50%);
  z-index: 20;
}

.bundle-item-img img {
  position: absolute;
  max-height: 100%;
  max-width: 100%;
  z-index: 10;
  display: block;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.bundle-item-product-options {
  font-size: 12px;
  color: var(--bs-gray-600);
  padding-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.bundle-item-product-options .productOptions {
  --options-size: 2rem;
  --options-space: 1rem;
  --options-values-space: .5rem;
  --options-values-font-size: .75rem;
}

.bundle-item-product-quantity {
  font-size: 15px;
  color: #000;
  font-weight: 500;
  line-height: 1;
  margin-top: 10px;
}

.bundle-item-content {
  padding-left: .75rem;
  width: 70%;
  font-size: small;
}

.bundle-item .bundleGrouping-price {
  font-size: 16px;
  order: 2;
}

.bundle-item .bundleGrouping-basePrice {
  font-size: 14px;
  color: var(--bs-gray-500);
  text-decoration: line-through;
  order: 1;
}

.bundle-total-price {
  margin-top: .75rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .75rem;
}

.bundle-form-submit,
.bundle-form-quantity {
  margin-top: .75rem;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.bundle-form-submit .buyFormSubmit {
  width: 100%;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

.bundle-form-actions {
  margin-top: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.bundle-form-shopping-list .btn.shoppingListButton {
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  background-color: #e0e0e0;
  border: 0;
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='%23666'%3E%3Cpath d='M29.732 4.5c-1.512-1.476-3.601-2.214-6.268-2.214-0.738 0-1.491 0.128-2.259 0.384s-1.482 0.601-2.143 1.036c-0.661 0.434-1.229 0.842-1.706 1.223s-0.928 0.786-1.357 1.214c-0.429-0.428-0.881-0.833-1.357-1.214s-1.045-0.788-1.706-1.223c-0.661-0.435-1.375-0.78-2.143-1.036s-1.521-0.384-2.259-0.384c-2.667 0-4.756 0.738-6.268 2.214s-2.268 3.524-2.268 6.143c0 0.798 0.14 1.619 0.42 2.464s0.598 1.566 0.955 2.161c0.357 0.595 0.762 1.175 1.214 1.741s0.783 0.955 0.991 1.169c0.208 0.214 0.372 0.369 0.491 0.465l11.143 10.75c0.214 0.214 0.476 0.322 0.786 0.322s0.572-0.107 0.786-0.322l11.125-10.715c2.726-2.726 4.089-5.404 4.089-8.035 0-2.619-0.756-4.667-2.268-6.142zM26.357 17l-10.357 9.982-10.375-10c-2.226-2.226-3.339-4.339-3.339-6.339 0-0.964 0.128-1.815 0.384-2.553s0.583-1.325 0.982-1.759c0.399-0.435 0.884-0.788 1.455-1.063s1.131-0.458 1.679-0.554c0.548-0.095 1.131-0.143 1.75-0.143s1.286 0.152 2 0.455c0.714 0.304 1.372 0.684 1.973 1.143s1.116 0.887 1.545 1.286c0.428 0.399 0.786 0.765 1.071 1.098 0.214 0.262 0.506 0.393 0.875 0.393s0.661-0.131 0.875-0.393c0.286-0.333 0.643-0.699 1.071-1.098s0.944-0.827 1.544-1.286c0.601-0.458 1.259-0.839 1.974-1.143s1.381-0.455 2-0.455 1.202 0.048 1.75 0.143c0.548 0.095 1.107 0.28 1.679 0.554s1.057 0.628 1.455 1.063c0.399 0.434 0.726 1.021 0.982 1.759s0.384 1.589 0.384 2.553c-0 2-1.119 4.119-3.357 6.357z'%3E%3C/path%3E%3C/svg%3E");
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-color .15s ease-in-out, background-size 100ms ease;
}

.bundle-form-shopping-list .btn.shoppingListButton:hover,
.bundle-form-shopping-list .btn.shoppingListButton:active {
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='%23666'%3E%3Cpath d='M29.732 4.5c-1.512-1.476-3.601-2.214-6.268-2.214-0.738 0-1.491 0.128-2.259 0.384s-1.482 0.601-2.143 1.036c-0.661 0.434-1.229 0.842-1.706 1.223s-0.928 0.786-1.357 1.214c-0.429-0.428-0.881-0.833-1.357-1.214s-1.045-0.788-1.706-1.223c-0.661-0.435-1.375-0.78-2.143-1.036s-1.521-0.384-2.259-0.384c-2.667 0-4.756 0.738-6.268 2.214s-2.268 3.524-2.268 6.143c0 0.798 0.14 1.619 0.42 2.464s0.598 1.566 0.955 2.161c0.357 0.595 0.762 1.175 1.214 1.741s0.783 0.955 0.991 1.169c0.208 0.214 0.372 0.369 0.491 0.465l11.143 10.75c0.214 0.214 0.476 0.322 0.786 0.322s0.572-0.107 0.786-0.322l11.125-10.715c2.726-2.726 4.089-5.404 4.089-8.035 0-2.619-0.756-4.667-2.268-6.142zM26.357 17l-10.357 9.982-10.375-10c-2.226-2.226-3.339-4.339-3.339-6.339 0-0.964 0.128-1.815 0.384-2.553s0.583-1.325 0.982-1.759c0.399-0.435 0.884-0.788 1.455-1.063s1.131-0.458 1.679-0.554c0.548-0.095 1.131-0.143 1.75-0.143s1.286 0.152 2 0.455c0.714 0.304 1.372 0.684 1.973 1.143s1.116 0.887 1.545 1.286c0.428 0.399 0.786 0.765 1.071 1.098 0.214 0.262 0.506 0.393 0.875 0.393s0.661-0.131 0.875-0.393c0.286-0.333 0.643-0.699 1.071-1.098s0.944-0.827 1.544-1.286c0.601-0.458 1.259-0.839 1.974-1.143s1.381-0.455 2-0.455 1.202 0.048 1.75 0.143c0.548 0.095 1.107 0.28 1.679 0.554s1.057 0.628 1.455 1.063c0.399 0.434 0.726 1.021 0.982 1.759s0.384 1.589 0.384 2.553c-0 2-1.119 4.119-3.357 6.357z'%3E%3C/path%3E%3C/svg%3E");
}

.bundle-form-shopping-list .btn.shoppingListButton:active {
  background-size: 40%;
}

.bundle-form-shopping-list .btn.shoppingListButton.shoppingListButtonAdded {
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='%23ff1744'%3E%3Cpath d='M29.732 4.5c-1.512-1.476-3.601-2.214-6.268-2.214-0.738 0-1.491 0.128-2.259 0.384s-1.482 0.601-2.143 1.036c-0.661 0.434-1.229 0.842-1.706 1.223s-0.928 0.786-1.357 1.214c-0.429-0.428-0.881-0.833-1.357-1.214s-1.045-0.788-1.706-1.223c-0.661-0.435-1.375-0.78-2.143-1.036s-1.521-0.384-2.259-0.384c-2.667 0-4.756 0.738-6.268 2.214s-2.268 3.524-2.268 6.143c0 0.798 0.14 1.619 0.42 2.464s0.598 1.566 0.955 2.161c0.357 0.595 0.762 1.176 1.214 1.741s0.783 0.955 0.991 1.17c0.208 0.214 0.372 0.369 0.491 0.464l11.143 10.75c0.214 0.214 0.476 0.322 0.786 0.322s0.572-0.107 0.786-0.321l11.125-10.715c2.726-2.726 4.089-5.405 4.089-8.036 0-2.619-0.756-4.667-2.268-6.143z'%3E%3C/path%3E%3C/svg%3E");
}

.bundle-form-shopping-list {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.bundleGrouping-saving {
  color: var(--acre-error-state);
  order: 3;
  width: 100%;
}

.bundle-form-quantity .input-group-btn {
  width: 50px;
}

.bundle-form-quantity .btn.btn-number,
.bundle-form-quantity .input-group .buyFormQuantity {
  height: 45px;
}

.product-bundle+.product-bundle {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

@container (min-width: 576px) {
  .bundle-item-img {
    width: 24%;
  }

  .bundle-item-content {
    width: 76%;
  }
}

@container (min-width: 696px) {
  .bundle-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .bundle-item-product-options .productOptionValues {
    justify-content: center;
  }

  .bundle-item-product {
    width: calc((100% / var(--n-columns)) - (1.5rem - (1.5rem / var(--n-columns))));
  }

  .bundle-item-product:not(.bundle-item-form):not(.bundle-item-product-last) {
    margin-right: 1.5rem;
  }

  .bundle-item-inset {
    flex-direction: column;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .product-bundle-limitation+.product-bundle-limitation::before {
    left: 10px;
    right: 10px;
  }

  .product-bundle-product {
    width: 25%;
    float: left;
    padding: 0 10px;
  }

  .product-bundle-limitation {
    margin-left: -10px;
    margin-right: -10px;
    display: flex;
    flex-wrap: wrap;
  }

  .bundle-item-form form {
    width: 260px;
  }

  .bundle-item-img,
  .bundle-item-content {
    width: 100%;
  }

  .bundle-item.bundle-item-product-last::after,
  .bundle-item:not(.bundle-item-product-last):not(.bundle-item-form)::after,
  .bundle-item.bundle-item-product-last::after {
    bottom: 50%;
    left: auto;
    right: -1.5rem;
  }

  .bundle-item-content {
    text-align: center;
    padding: .75rem 0 0;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    font-size: inherit;
  }

  .bundle-item-content>:last-child:not(:last-child) {
    margin-top: auto;
  }

  .bundle-item-form {
    width: 100%;
  }

  .bundle-item-product-quantity {
    text-align: center;
  }
}

@container (min-width: 936px) {
  .product-bundle-header {
    margin-bottom: 2.5em;
  }

  .bundle-item-product:not(.bundle-item-form) {
    margin-right: 1.5rem;
  }

  .product-bundle-grouping.n-products-2 {
    --n-columns: 3;
  }

  .product-bundle-grouping.n-products-3 {
    --n-columns: 4;
  }

  .product-bundle-grouping.n-products-4 {
    --n-columns: 5;
  }

  .product-bundle-grouping.n-products-5 {
    --n-columns: 6;
  }

  .bundle-item {
    width: calc((100% / var(--n-columns)) - (1.5rem - (1.5rem / var(--n-columns))));
  }

  .bundle-item-product {
    margin-bottom: 0;
  }

  .bundle-item-form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
}