/**
 * @file
 * Kit grouping in the cart, the "Kits in cart" block and the catalog link.
 */
.mkb-cart-group td {
  padding-block: 14px 8px;
  border-top: 2px solid #a9d8ee;
  background: #f3fafd;
}

.mkb-cart-group__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.mkb-cart-group__name {
  font-weight: 700;
}

.mkb-cart-group__summary {
  color: #135f85;
  font-size: 0.875rem;
  font-weight: 600;
}

.mkb-cart-group__actions {
  display: flex;
  gap: 8px;
  margin-inline-start: auto;
}

.mkb-cart-group__edit,
.mkb-cart-group__remove,
.mkb-cart__edit,
.mkb-cart__remove {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #a9d8ee;
  border-radius: 8px;
  background: #fff;
  color: #1778a6;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.mkb-cart-group__remove,
.mkb-cart__remove {
  border-color: transparent;
  background: none;
  color: #666;
  font-weight: 600;
}

.mkb-cart-row td {
  background: #fbfdfe;
}

.mkb-cart-row td:first-child {
  border-inline-start: 3px solid #a9d8ee;
}

/* "Kits in cart" block */
.mkb-cart {
  font-family: 'Noto Sans', 'Noto Sans Hebrew', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 16px;
}

.mkb-cart__title {
  margin: 0;
  font-size: 1.1rem;
}

.mkb-cart__kit {
  padding: 16px 18px;
  border: 1.5px solid #a9d8ee;
  border-radius: 12px;
  background: #fff;
}

.mkb-cart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.mkb-cart__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.mkb-cart__summary {
  margin: 2px 0 0;
  color: #666;
  font-size: 0.85rem;
}

.mkb-cart__actions {
  display: flex;
  gap: 8px;
}

.mkb-cart__lines {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.mkb-cart__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 0.9rem;
}

.mkb-cart__total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.mkb-cart__discount {
  color: #1778a6;
  font-weight: 600;
}

/* Catalog badge for admins on kits customers cannot see */
.mkb-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border: 1px solid #f0d58a;
  border-radius: 999px;
  background: #fff4d6;
  color: #6b4a00;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Catalog card link shown instead of a price */
.mkb-cta {
  display: inline-block;
  margin-top: 8px;
  color: #1778a6;
  font-weight: 700;
  text-decoration: none;
}

.mkb-cta::after {
  content: " \2190";
}

[dir="ltr"] .mkb-cta::after {
  content: " \2192";
}

/* Kit flags in the catalog card badge area (next to the theme's "New"). */
.product-badge .badge-label.badge-kit {
  background: #1778a6;
  color: #fff;
}

.product-badge .badge-label.badge-kit-admin {
  background: #fff4d6;
  color: #6b4a00;
}

.product-teaser--kit .mkb-cta {
  margin-top: 0;
}
