.woocommerce-cart-form__contents .bb-bundle-item,
.woocommerce-checkout-review-order-table .bb-bundle-item {
  background: #f8faff;
}

.woocommerce-cart-form__contents .bb-bundle-item td:first-child,
.woocommerce-checkout-review-order-table .bb-bundle-item td:first-child {
  border-left: 3px solid #3b82f6;
}

.woocommerce-cart-form__contents .bb-bundle-first,
.woocommerce-checkout-review-order-table .bb-bundle-first {
  border-top: 1px solid #e0e7ff;
}

.woocommerce-cart-form__contents .bb-bundle-last,
.woocommerce-checkout-review-order-table .bb-bundle-last {
  border-bottom: 1px solid #e0e7ff;
}

.woocommerce-cart-form__contents .bb-bundle-header,
.woocommerce-checkout-review-order-table .bb-bundle-header {
  background: #eef2ff;
  font-weight: bold;
  font-size: 0.95em;
}

.woocommerce-cart-form__contents .bb-bundle-header td,
.woocommerce-checkout-review-order-table .bb-bundle-header td {
  padding: 12px 16px;
}

.woocommerce-cart-form__contents .bb-bundle-header + .bb-bundle-first,
.woocommerce-checkout-review-order-table .bb-bundle-header + .bb-bundle-first {
  border-top: none;
}

.woocommerce-cart-form__contents .bb-bundle-item td,
.woocommerce-checkout-review-order-table .bb-bundle-item td {
  border-bottom: 1px solid #f0f4ff;
}

.bb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999999;
}

.bb-modal-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 420px;
  width: 90%;
  padding: 32px;
  text-align: center;
  transform: scale(0.9) translateY(10px);
  transition: transform 0.2s ease;
}

.bb-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.bb-modal-icon svg {
  width: 28px;
  height: 28px;
  color: #dc2626;
}

.bb-modal-title {
  font-size: 1.25em;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.bb-modal-message {
  font-size: 0.95em;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 24px;
}

.bb-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.bb-modal-actions button {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease;
}

.bb-modal-cancel {
  background: #f3f4f6;
  color: #374151;
}

.bb-modal-cancel:hover {
  background: #e5e7eb;
}

.bb-modal-confirm {
  background: #dc2626;
  color: #fff;
}

.bb-modal-confirm:hover {
  background: #b91c1c;
}

.bb-modal-overlay.bb-modal-visible {
  opacity: 1;
  pointer-events: auto;
}

.bb-modal-visible .bb-modal-card {
  transform: scale(1) translateY(0);
}

@media (max-width: 768px) {
  .bb-modal-card {
    padding: 24px;
  }

  .bb-modal-actions {
    flex-direction: column;
  }
}

/* --- Informational modal variant --- */

.bb-modal-info .bb-modal-icon {
  background: #fffbeb;
}

.bb-modal-info .bb-modal-icon svg {
  color: #d97706;
}

.bb-modal-ok {
  background: #3b82f6;
  color: #fff;
}

.bb-modal-ok:hover {
  background: #2563eb;
}

/* --- Bundle item remove button visibility --- */

.bb-bundle-item .product-remove a {
  visibility: hidden;
}

.bb-bundle-item .tm-cart-edit-options,
.bb-bundle-item td.product-name a.tm-cart-edit-options {
  display: none;
}

/* --- Bundle header remove button --- */

.bb-bundle-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.bb-bundle-remove:hover {
  background: rgba(220, 38, 38, 0.08);
}

/* --- Bundle header edit button --- */

.bb-bundle-edit {
  background: none;
  border: none;
  color: #3b82f6;
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  transition: background 0.15s ease;
  text-decoration: none;
}

.bb-bundle-edit:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
}
