/* The two fixed-price guilds use the approved inventory slot material and
   density. Purchase dialogs and the player-run black market keep their UI. */
html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.shop-panel > .shop-product-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px 2px;
  min-width: 0;
  padding: 8px 3px;
  align-items: start;
  align-content: start;
  border: 0;
  background: #0e383b26 !important;
  box-shadow: inset 0 0 0 2px #16484a, inset 0 0 0 3px #9d926644 !important;
}

html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.shop-panel > .shop-product-list[hidden] {
  display: none;
}

html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.shop-panel[data-page="shop"] > .shop-product-list[data-role="shop-product-list"] > :is(.shop-product-tile, .shop-grid-empty-slot) {
  position: relative;
  box-sizing: border-box;
  display: grid;
  width: 100%;
  height: 75px;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  padding: 4px;
  place-items: center;
  align-content: normal;
  grid-template-rows: none;
  gap: 0;
  overflow: hidden;
  border: 1px solid #b8a773 !important;
  border-radius: 4px;
  background: var(--tc-slot-filled-art, none) center / 100% 100% no-repeat,
    linear-gradient(120deg, #ece9d2, #cbd3b8) !important;
  box-shadow: inset 0 0 0 1px #3e756e88, inset 0 0 0 3px #f1e9c566 !important;
  color: #283420 !important;
  text-shadow: none !important;
  opacity: 1;
}

html[data-ui-theme="teal-cloud-a"] #game-root .page-panel.shop-panel[data-page="shop"] > .shop-product-list[data-role="shop-product-list"] > .shop-grid-empty-slot {
  background: var(--tc-slot-empty-art, none) center / 100% 100% no-repeat,
    linear-gradient(115deg, #42747255, #497b7055),
    var(--tc-cloth, none) center / 320px auto repeat, #2e6061 !important;
  border-color: #a79e6a !important;
  box-shadow: inset 0 0 0 1px #8aa49244 !important;
  pointer-events: none;
}

html[data-ui-theme="teal-cloud-a"] #game-root .shop-panel .shop-product-list .shop-product-tile__art {
  position: relative;
  display: grid;
  width: 82%;
  max-width: 48px;
  aspect-ratio: 1;
  margin: 0;
  place-items: center;
  transform: translateY(-7px);
  border: 2px solid var(--item-tier-color, #797d6a) !important;
  border-color: color-mix(in srgb, var(--item-tier-color, #797d6a) 80%, #494333) !important;
  border-radius: 6px;
  background-color: #d9dfc6 !important;
  box-shadow: inset 0 0 0 1px #f5efd555;
  color: #304738 !important;
  font-size: 12px;
}

html[data-ui-theme="teal-cloud-a"] #game-root .shop-panel .shop-product-list .shop-product-tile__name {
  position: absolute;
  display: block;
  right: 3px;
  bottom: 1px;
  left: 3px;
  max-width: calc(100% - 6px);
  min-height: 0;
  margin: 0;
  padding: 1px 2px;
  overflow: hidden;
  background: transparent !important;
  color: #283420 !important;
  -webkit-text-fill-color: #283420 !important;
  text-shadow: none !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-line-clamp: unset;
}

html[data-ui-theme="teal-cloud-a"] #game-root .shop-panel .shop-product-list .shop-product-tile__state {
  position: absolute;
  z-index: 2;
  top: 2px;
  right: 2px;
  padding: 1px 3px;
  border: 1px solid #b9a878;
  border-radius: 3px;
  background: #684b3b;
  color: #fff1cf !important;
  -webkit-text-fill-color: #fff1cf;
  font-size: 9px;
  line-height: 1.3;
}

html[data-ui-theme="teal-cloud-a"] #game-root .shop-panel .shop-product-list > .shop-product-tile:not(:disabled) {
  cursor: pointer;
}

html[data-ui-theme="teal-cloud-a"] #game-root .shop-panel .shop-product-list > .shop-product-tile:focus-visible {
  outline: 2px solid #f0d18a;
  outline-offset: -2px;
}

html[data-ui-theme="teal-cloud-a"] #game-root .shop-panel .shop-product-list > .shop-product-tile:disabled {
  opacity: .82;
  cursor: wait;
}
