.mpb-bundle-form {
  display: grid;
  gap: 24px;
}

.mpb-component {
  padding: 5px 0px;
  background: #fff;
  display: flex;
  gap: 12px;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
}

.mpb-component__thumbnail-wrapper {
  margin-right: 10px;
}

.mpb-component__details-wrapper {
  display: flex;
  gap: 5px;
  flex-direction: column;
}

.mpb-component__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mpb-variations .label {
  width: 100%;
}

.mpb-variations tr {
  display: flex;
  flex-direction: column;
}

.mpb-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mpb-component table th label {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.125rem;
  color: rgb(128, 128, 128);
  margin: 0px;
  padding: 0px;
  margin-bottom: 8px;
}

.mpb-component table td,
.mpb-component table th {
  padding: 0;
  border-bottom: none;
  vertical-align: middle;
  text-align: start;
}

.mpb-swatch {
  border: 1px solid #ddd !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  cursor: pointer !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fafafa;
}

.mpb-swatch.is-selected {
  outline: 2px solid #222;
  background: #fff;
  border-color: transparent;
}

.mpb-swatch__img,
.mpb-swatch__color {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid #ddd;
}

.mpb-swatch__text {
  font-size: 12px;
  line-height: 1;
}

.mpb-attr-select {
  display: none !important;
}

.mpb-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mpb-product-thumbnail {
  margin-bottom: 0;
  text-align: center;
}

.mpb-product-thumbnail img {
  max-width: 100px !important;
  height: auto !important;
}

.cart-item.bundle-parent {
  font-weight: bold;
}

.cart-item.bundle-item {
  padding-left: 20px;
  border-left: 2px solid #ccc;
  font-size: 0.9em;
  opacity: 0.8;
}

.cart-item.bundle-item td.product-thumbnail,
.cart-item.bundle-item td.product-price,
.cart-item.bundle-item td.product-subtotal {
  border-top: none;
}

.variations.mpb-variations {
  margin-bottom: 0px;
}

.woocommerce-mini-cart-item .bundle-title {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 15px;
}

li.mini-cart-bundle {
  display: flex;
  flex-direction: column;
}

li.mini-cart-bundle .bundle-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

li.mini-cart-bundle .bundle-items .variation {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.125rem;
  color: rgb(128, 128, 128);
  margin: 0px;
  padding: 0px;
}

li.mini-cart-bundle .bundle-items .name {
  font-weight: 500;
}

li.mini-cart-bundle ins .amount {
  font-size: 20px;
}

li.mini-cart-bundle .quantity {
  width: 100%;
  text-align: right;
}

.color-btn.mpb-swatch {
  border: 1px solid #ddd !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  cursor: pointer !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fafafa;
  height: 26px;
  width: 26px;
  max-width: 26px;
  min-height: 26px !important;
  padding: 0px !important;
}

.img-btn.mpb-swatch {
  border: 1px solid #ddd !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  cursor: pointer !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fafafa;
  height: 26px;
  width: 26px;
  max-width: 26px;
  min-height: 26px !important;
  padding: 0px !important;
}

.txt-btn.mpb-swatch {
  min-height: 36px !important;
  padding: 3px 10px !important;
  height: 36px !important;
}

.mpb-bundle-form .mpb-component {
  padding-top: 10px;
  border-top: 1px solid #0000001b;
}

.mpb-bundle-form .mpb-component:last-child {
  padding-bottom: 10px;
  border-bottom: 1px solid #0000001b;
}

/*BUNDLE PRODUCTS*/
/* Hide main placeholder image for bundle parent in checkout/cart */
.cart_item.bundle-parent .wd-checkout-prod-img {
  display: none !important;
}

/* Keep the inner bundle-item images visible and styled */
.cart_item.bundle-parent .bundle-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart_item.bundle-parent .bundle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0;
  border-left: none;
  font-size: 0.9em;
  opacity: 1;
}

.cart_item.bundle-parent .bundle-item img {
  width: 60px; /* adjust size */
  height: 60px; /* adjust size */
  object-fit: cover;
  border-radius: 4px;
}

.cart_item.bundle-parent .bundle-item .name {
  font-weight: 500;
  font-size: 0.875rem;
}

.cart_item.bundle-parent .bundle-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}

.cart_item.bundle-parent .product-quantity {
  text-align: right;
  font-weight: bold;
  margin-top: 5px;
}

.cart_item.bundle-parent .wd-checkout-prod-cont {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.cart_item.bundle-parent .wd-checkout-prod-total {
  font-weight: bold;
  margin-top: 10px;
}

.cart_item.bundle-parent .wd-checkout-prod-title {
  width: 100%;
}

.cart_item.bundle-parent .product-quantity {
  display: none;
}

.woocommerce-cart-form__cart-item.cart_item.bundle-parent
  .product-thumbnail
  img {
  display: none;
}
li.mini-cart-bundle .quantity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.bundle-under-price {
  background-color: rgb(223, 239, 235);
  margin: 0px;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 0.875rem;
  border-radius: 0.125rem;
  display: initial;
  color: rgb(41, 41, 41);
  text-transform: uppercase;
}

.mpb-swatch__overlay {
  position: absolute;
  background-color: red;
  width: 2px;
  height: 80%;
  border-radius: 9999px;
  transform: rotate(45deg);
}
.mpb-bundle-form .mpb-submit {
    width:80%;
}

@media screen and (max-width: 768px) {
  .mpb-component__thumbnail-wrapper {
    margin-right: 5px;
  }
  .mpb-product-thumbnail img {
    max-width: 85px !important;
    height: auto !important;
  }

  .mpb-component__title {
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
  }

  .mpb-component table th label {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.125rem;
    color: rgb(128, 128, 128);
    margin: 0px;
    padding: 0px;
    margin-bottom: 8px;
  }
.mpb-bundle-form .mpb-submit {
    width:100%;
}
}
