.woocommerce-cart .yith-bundle-auto-price-cart-editor {
  margin: 8px 0 6px;
  padding: 12px 12px 8px;
  border: 1px solid #e6f0ee;
  background: #f8fbfb;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  clear: both;
}
.woocommerce-cart .yith-bundle-auto-price-cart-editor .ybap-title {
  margin: 0 0 8px;
  padding: 0 4px;
  font-weight: 600;
  font-size: 14px;
  color: #1f3a38;
}
.woocommerce-cart .yith-bundle-auto-price-cart-editor .ybap-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
@media (min-width: 720px) {
  .woocommerce-cart .yith-bundle-auto-price-cart-editor .ybap-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.woocommerce-cart .yith-bundle-auto-price-cart-editor .ybap-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e6eeec;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}
.woocommerce-cart .yith-bundle-auto-price-cart-editor .ybap-item-name {
  font-size: 13px;
  color: #2f4745;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.woocommerce-cart .yith-bundle-auto-price-cart-editor .ybap-item-control {
  min-width: 0;
}
.woocommerce-cart .yith-bundle-auto-price-cart-editor .ybap-variation-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Elementor Cart Widget: clamp everything to 330px on small screens */
@media (max-width: 420px) {
  .cart-wrap { display: flex; justify-content: center; }
  .cart-wrap .woocommerce {
    max-width: 330px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .cart-wrap .woocommerce table,
  .cart-wrap .woocommerce .shop_table,
  .cart-wrap .woocommerce .cart-collaterals,
  .cart-wrap .woocommerce .wc-proceed-to-checkout,
  .cart-wrap .woocommerce .actions,
  .cart-wrap .woocommerce .coupon,
  .cart-wrap .woocommerce .cross-sells,
  .cart-wrap .woocommerce .cart_totals {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .cart-wrap .woocommerce table.shop_table th,
  .cart-wrap .woocommerce table.shop_table td {
    padding: 12px;
    word-break: break-word;
  }

  .cart-wrap .woocommerce .product-thumbnail img {
    width: 52px;
    max-width: 52px;
    height: auto;
  }

  .cart-wrap .woocommerce .button,
  .cart-wrap .woocommerce input.button,
  .cart-wrap .woocommerce button.button,
  .cart-wrap .woocommerce .checkout-button {
    width: 100%;
  }

  .cart-wrap .woocommerce select,
  .cart-wrap .woocommerce input[type="text"],
  .cart-wrap .woocommerce input[type="tel"],
  .cart-wrap .woocommerce input[type="email"],
  .cart-wrap .woocommerce .select2,
  .cart-wrap .woocommerce .select2-container {
    max-width: 100% !important;
    width: 100% !important;
  }

  .cart-wrap .woocommerce .quantity,
  .cart-wrap .woocommerce .quantity .qty { max-width: 100%; }

  .cart-wrap .woocommerce .woocommerce-cart-form__cart-item .product-name,
  .cart-wrap .woocommerce .product-name,
  .cart-wrap .woocommerce .product-subtotal,
  .cart-wrap .woocommerce .product-quantity { overflow-wrap: anywhere; }

  /* Our bundle variation editor inside Elementor widget */
  .cart-wrap .woocommerce .yith-bundle-auto-price-cart-editor { max-width: 100%; }
  .cart-wrap .woocommerce .yith-bundle-auto-price-cart-editor .ybap-items { grid-template-columns: minmax(0, 1fr) !important; }
}
