:host {
  display: block;
  border-bottom: 1px solid #dddddd;
}

:host(:last-child) {
  border-bottom: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.75rem;
  background-color: transparent;
  position: relative;
}

.cart-item-media {
  width: 120px;
  aspect-ratio: 4 / 3;
  border-radius: 5px 0 0 5px;
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.cart-item-discount-badge {
  width: 44px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-right-radius: 4px;
  background-color: var(--bs-primary, #5b75ff);
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.cart-item-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.cart-item-content {
  gap: 0.5rem;
}

.cart-item-top-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.cart-item-product {
  color: #666666;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 325;
}

.cart-item-prices {
  display: grid;
  justify-items: end;
  line-height: 1.1;
}

.cart-item-original-price {
  color: #a0a0a0;
  font-size: 9px;
  font-weight: 325;
}

.cart-item-discounted-price {
  color: var(--bs-primary, #5b75ff);
  font-size: 15px;
  font-weight: bold;
}

.cart-item-price-label {
  color: #a0a0a0;
  font-size: 9px;
  font-weight: 325;
}

.cart-item-attributes {
  gap: 0.125rem;

  &--quantity-only {
    flex: 1;
    align-content: center;
  }
}

.cart-item-attribute {
  color: #666666;
  font-size: 9px;
  line-height: 1.2;
}

.cart-item-attribute-label {
  font-weight: 325;
}

.cart-item-transfer-price {
  color: #666666;
  font-size: 9px;
  line-height: 1.2;
  display: grid;
  justify-items: end;
}
