.search-product-item {
  display: flex;
  position: relative;
  flex-flow: row nowrap;
  align-items: center;
  margin: var(--spacing-mini);
  border-radius: var(--border-radius-small);
}

.search-product-item.active {
  background: var(--background-color);
}

.search-product-item.active .search-product-title {
  font-weight: var(--font-weight-bold);
}

.search-product-item:not(:last-child)::after {
  content: '';
  position: absolute;
  display: block;
  width: calc(100% - 64px);
  height: 1px;
  bottom: -4px;
  right: -4px;
  background: var(--surface-border-color);
}

@media (pointer: fine) {
  .search-product-item:hover {
    cursor: pointer;
    background: var(--background-color);
  }

  .search-product-item:hover .search-product-title {
    color: var(--link-color);
  }
}

.search-product-image {
  width: 38px;
  height: 38px;
  border: 1px solid var(--surface-border-color);
  margin: var(--spacing-small);
  overflow: hidden;
}

.search-product-image img {
  display: block;
  width: 38px;
  height: 38px;
}

.search-product-content {
  flex: 1;
  margin-top: var(--spacing-small);
  margin-bottom: var(--spacing-small);
  margin-left: var(--spacing-mini);
  margin-right: var(--spacing-small);
  overflow: hidden;
}

.search-product-content span {
  display: block;
  font-size: var(--font-size-tiny);
  line-height: var(--line-height-tiny);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-product-title {
  color: var(--on-surface-primary-color);
  margin-bottom: var(--spacing-mini);
}

.search-product-code {
  color: var(--on-surface-secondary-color);
  font-weight: var(--font-weight-normal);
}

.search-product-button {
  text-align: center;
  line-height: 32px;
  width: 100px;
  height: 32px;
  border: 0;
  font-size: 0.875rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  background: var(--background-color);
  color: var(--on-background-secondary-color);
}

.search-product-button::before {
  content: 'Selecionar';
}

.search-product-item.active .search-product-button::before {
  content: 'Remover';
}