/* Compact bag: 8 columns and 3 visible rows within the existing outer window. */
.inventory-window-heading .inventory-sort {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 3px 8px;
  font-size: 11px;
}
.inventory-window-heading .inventory-sort[aria-pressed="true"] {
  color: #ffe6a0;
  border-color: #e8bd58;
}
.item-combination-tooltip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  border-color: #e4bd62;
}
.item-combination-tooltip-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}
.item-combination-tooltip > p {
  grid-column: 1 / -1;
}
.item-combine-preview,
.item-combine-preview * {
  pointer-events: none;
}

#inventory-window .owned-item-button > .item-icon,
#inventory-window .owned-item-button > .item-icon img {
  width: 22px;
  height: 22px;
}
#inventory-window .item-combine-preview .item-icon,
#inventory-window .item-combine-preview .item-icon img {
  width: 14px;
  height: 14px;
}
#inventory-window .item-combine-preview {
  right: -1px;
  bottom: -1px;
}
#inventory-window .inventory-item > .item-remove {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  top: -3px;
  right: -3px;
  font-size: 12px;
}
@media (max-width: 420px) {
  #inventory-window .inventory-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* Inner button must fit the outer slot border: no extra 1?2px scroll row. */
#inventory-window .inventory-item {
  border-width: 1px;
}
#inventory-window .owned-item-button {
  height: 100%;
  min-height: 0;
}
#inventory-window .inventory-item[data-selected="true"] {
  outline-offset: -2px;
}
