.slot {
  width: 32px;
  height: 32px; /* 32 + 1px border twice = 34px row (InteractiveWindow.SLOT_HEIGHT) */
  background-image: url("/png/item.png");
  position: relative;
  border: 1px solid #111;
}

.slot:hover {
  box-shadow: 0px 0px 0px 1px white inset;
}

.slot.selected {
  box-shadow: inset 0 0 8px white;
}

.slot.legendary {
  box-shadow: inset 0 0 8px orange;
}

.slot.epic {
  box-shadow: inset 0 0 8px purple;
}

.slot.rare {
  box-shadow: inset 0 0 8px blue;
}

.slot.uncommon {
  box-shadow: inset 0 0 8px green;
}

.slot > canvas {
  pointer-events: none;
  width: 32px;
  height: 32px;
  position: absolute;
  z-index: 100;
}

.slot > .count {
  color: white;
  font-size: 10px;
  position: absolute;
  bottom: 2px;
  right: 4px;
  pointer-events: none;
  z-index: 100;
}

/* TabTibia r120: the time left of a worn ring (Slot.getDetailText), smaller and outlined to fit the slot */
.slot > .count.count-time {
  font-size: 9px;
  bottom: 1px;
  right: 1px;
  white-space: nowrap;
  text-shadow: 1px 1px 0 black, -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black;
}