:host {
  display: block;
  --item-media-width: 64px;
  --item-media-height: 72px;
}

@media (max-width: 420px) {
  :host {
    --item-media-width: 56px;
    --item-media-height: 64px;
  }
}

.cart-item {
  display: grid;
  grid-template-columns: var(--item-media-width) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 10px 12px;
  background-color: #f5f5f5;
}

.cart-item-media {
  width: var(--item-media-width);
  height: var(--item-media-height);
  border-radius: 6px;
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  overflow: hidden;

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

.cart-item-discount-badge {
  padding: 2px 5px;
  border-bottom-right-radius: 4px;
  background-color: #6173ff;
  color: #ffffff;
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
}

.cart-item-placeholder {
  background: linear-gradient(135deg, #d2d2d2, #ececec);
}

.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: 12px;
  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: 10px;
  font-weight: 325;
}

.cart-item-discounted-price {
  color: #a0a0a0;
  font-size: 13px;
  font-weight: 425;
}

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

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

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

.cart-item-actions {
  gap: 0.125rem;
}




.cart-item-remove-btn {
  margin-left: 0.35rem;
}
