/* Four compact paper item cards per row with a shared two-line name and status row. */
html[data-ui-theme="teal-cloud-a"] #game-root .sect-page [data-role="sect-shop"] {
  min-width: 0;
  background: transparent !important;
  color: #eee3bd !important;
}

html[data-ui-theme="teal-cloud-a"] #game-root .sect-page [data-role="sect-shop"] .sect-shop-contribution {
  color: #eee3bd !important;
}

html[data-ui-theme="teal-cloud-a"] #game-root .sect-page [data-role="sect-shop"] .sect-shop-contribution strong {
  color: #f1d58b !important;
}

html[data-ui-theme="teal-cloud-a"] #game-root .sect-page [data-role="sect-shop"] > .sect-shop-list.shop-product-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 4px;
  min-width: 0;
  padding: 8px 3px;
  align-items: stretch;
  align-content: start;
  overflow-x: hidden;
  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 .sect-page [data-role="sect-shop"] > .sect-shop-list[data-role="sect-shop-list"] > :is(.shop-product-tile.sect-shop-product, .sect-shop-empty-slot) {
  position: relative;
  box-sizing: border-box;
  display: grid;
  width: 100%;
  height: 136px;
  min-width: 0;
  min-height: 136px;
  max-height: 136px;
  aspect-ratio: auto;
  padding: 5px 6px;
  align-items: center;
  align-self: stretch;
  justify-items: center;
  align-content: start;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 48px 34px 17px 18px;
  gap: 2px;
  overflow: visible;
  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 !important;
}

html[data-ui-theme="teal-cloud-a"] #game-root .sect-page [data-role="sect-shop"] > .sect-shop-list[data-role="sect-shop-list"] > .sect-shop-empty-slot[aria-hidden="true"] {
  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 .sect-page [data-role="sect-shop"] .sect-shop-product > .shop-product-tile__art {
  position: relative;
  display: grid;
  width: 48px;
  max-width: 48px;
  height: 48px;
  box-sizing: border-box;
  grid-column: 1 / -1;
  grid-row: 1;
  flex: 0 0 auto;
  aspect-ratio: 1;
  margin: 0;
  place-items: center;
  transform: none;
  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;
  color: #304738 !important;
  font-size: 12px;
}

html[data-ui-theme="teal-cloud-a"] #game-root .sect-page [data-role="sect-shop"] .sect-shop-product > .shop-product-tile__art > span {
  color: #304738 !important;
  -webkit-text-fill-color: #304738 !important;
}

html[data-ui-theme="teal-cloud-a"] #game-root .sect-page [data-role="sect-shop"] .sect-shop-product > .sect-shop-product__name {
  position: static;
  display: block;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-width: 100%;
  height: 34px;
  min-height: 0;
  grid-column: 1 / -1;
  grid-row: 2;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent !important;
  color: #283420 !important;
  -webkit-text-fill-color: #283420 !important;
  text-shadow: none !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
}

html[data-ui-theme="teal-cloud-a"] #game-root .sect-page [data-role="sect-shop"] .sect-shop-product__name > .sect-shop-product__name-line {
  display: block;
  white-space: nowrap;
}

html[data-ui-theme="teal-cloud-a"] #game-root .sect-page [data-role="sect-shop"] .sect-shop-product > .sect-shop-product__tile-price {
  position: static;
  display: block;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  grid-column: 1 / -1;
  grid-row: 3;
  flex: 0 0 auto;
  margin: 0;
  overflow: visible;
  color: #6d481b !important;
  -webkit-text-fill-color: #6d481b !important;
  text-shadow: none !important;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

html[data-ui-theme="teal-cloud-a"] #game-root .sect-page [data-role="sect-shop"] .sect-shop-product > .sect-shop-product__purchase-limit:not(:empty) {
  position: static;
  z-index: auto;
  top: auto;
  right: auto;
  max-width: 100%;
  grid-column: 1 / -1;
  grid-row: 4;
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
  padding: 1px 4px;
  border-radius: 3px;
  background: #304e43 !important;
  color: #fff1cf !important;
  -webkit-text-fill-color: #fff1cf !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
}

html[data-ui-theme="teal-cloud-a"] #game-root .sect-page [data-role="sect-shop"] .sect-shop-product > .sect-shop-product__purchase-limit:empty {
  display: none;
}

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

html[data-ui-theme="teal-cloud-a"] #game-root .sect-page [data-role="sect-shop"] .sect-shop-product::after {
  content: none;
}

html[data-ui-theme="teal-cloud-a"] #game-root .sect-page [data-role="sect-shop"] .sect-shop-product[data-sold-out="true"] > .sect-shop-product__purchase-limit {
  background: #684b3b !important;
}
