.saved-matches[hidden] {
  display: none;
}
.saved-matches {
  margin-top: 22px;
}
.inventory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 10px;
}
.inventory-heading .inventory-summary {
  margin: 0;
}
.inventory-heading .saved-matches-more {
  min-height: 32px;
}
#library-results[hidden] {
  display: none;
}
.saved-matches-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.saved-matches-heading h2 {
  font-size: 14px;
}
.saved-matches-heading > span {
  color: var(--muted);
  font-size: 12px;
}
.saved-product-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.saved-product {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  padding: 13px 16px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}
.saved-product:last-child {
  border-bottom: 0;
}
.saved-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.saved-product-body > strong {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}
.saved-product-variant {
  font-size: 12px;
  margin-top: 1px;
}
.saved-product-codes,
.saved-product-context {
  color: var(--muted);
  font-size: 11px;
}
.saved-product-context:empty {
  display: none;
}
.saved-product-availability {
  margin-top: 4px;
  color: var(--teal);
  font-size: 11px;
}
.saved-product-open {
  color: var(--muted);
  flex-shrink: 0;
}
.saved-product-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
}
.saved-product-image > span {
  display: flex;
  opacity: 0.55;
}
.saved-product-image svg {
  width: 21px;
  height: 21px;
}
.saved-product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: var(--panel);
}
.search-saved {
  min-height: 44px;
  font-size: 12px;
  padding: 9px 12px;
  white-space: nowrap;
}
.search-submit {
  min-height: 44px;
}
@media (max-width: 350px) {
  .search-tools {
    gap: 8px;
  }
  .search-tools-left {
    gap: 3px;
  }
  .search-saved {
    padding: 9px 10px;
  }
  .search-submit {
    min-width: 0 !important;
    gap: 8px !important;
    padding: 9px 10px !important;
  }
}
:root:not([data-input-method="touch"]) .saved-product:hover {
  background: var(--mint);
}
.saved-product:focus-visible {
  outline-offset: -4px !important;
}
.saved-matches-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  min-height: 44px;
}
.saved-matches-more svg {
  width: 16px;
}
.saved-matches-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 9px 0;
}
.inventory-summary {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 10px;
}
.inventory-pagination {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}
.inventory-error {
  font-size: 13px;
  padding: 16px 0;
  color: var(--muted);
}
.inventory-error button {
  margin-left: 8px;
}
@media (min-width: 1050px) {
  .inventory-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .inventory-list .saved-product {
    border-bottom: 1px solid var(--line);
  }
  .inventory-list .saved-product:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .inventory-list .saved-product:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0;
  }
}
@media (max-width: 700px) {
  .search-box {
    border-radius: 6px;
  }
  .saved-matches {
    margin-top: 19px;
  }
  .saved-product {
    padding: 12px;
    gap: 8px;
  }
  .saved-product-body > strong {
    font-size: 13px;
  }
}
@container (max-width: 640px) {
  .search-box {
    display: block;
  }
  .search-input-wrap {
    min-height: 58px;
    padding: 0 15px;
  }
  .search-text {
    height: 58px;
  }
  .search-tools {
    border-top: 1px solid var(--line);
    padding: 7px 10px;
  }
}
