:root {
  --shadow-color: rgba(0, 0, 0, 0.75); /* Змінна для кольору тіні */
}

.item_count_shadow {
  /* text-shadow: 0 0 2px black, 0 0 2px black, 0 0 2px black, 0 0 2px black; */
  /* text-shadow: -1px -1px 2px black, 1px 1px 2px black, -1px 1px 2px black,
    1px -1px 2px black; */

  text-shadow: -4px -4px 5px var(--shadow-color),
    /* Ліва верхня тінь */ 0px 4px 5px var(--shadow-color),
    /* Права нижня тінь */ -4px 4px 5px var(--shadow-color),
    /* Ліва нижня тінь */ 0px -4px 5px var(--shadow-color),
    /* Права верхня тінь */ -3px -3px 4px var(--shadow-color),
    /* Додаткова ліва верхня тінь */ 0px 3px 4px var(--shadow-color),
    /* Додаткова права нижня тінь */ -3px 3px 4px var(--shadow-color),
    /* Додаткова ліва нижня тінь */ 0px -3px 4px var(--shadow-color),
    /* Додаткова права верхня тінь */ -2px -2px 3px var(--shadow-color),
    /* Легкі тіні для детальності */ 2px 2px 3px var(--shadow-color),
    /* Легкі тіні для детальності */ -2px 2px 3px var(--shadow-color),
    /* Легкі тіні для детальності */ 2px -2px 3px var(--shadow-color),
    /* Легкі тіні для детальності */ -4px 0px 5px var(--shadow-color),
    /* Ліва нижня тінь */ 0px 0px 5px var(--shadow-color);
  /* Центрова тінь для додаткової насиченості */
}

.item-title {
  font-size: 13px;
  display: block;
  color: #8bc34a;
}

.fff {
  color: #fff;
}

.stat {
  color: #ffeb3b;
}

.orange-stat {
  color: #ff9800;
}

.slots {
  gap: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

div .slots .gem {
  height: 18px;
  width: 18px;
  border: 0.5px solid;
  border-color: #795548;
  /* margin: 0 2px; */
}

.slots .item_properties {
  top: calc(100% + 13px);
}

.lv {
  margin-bottom: 0.4rem;
}

.lv .fff {
  margin-right: 0.75rem;
}

.gem img {
  /* padding: 1px; */
  /* width: 100%;
  height: 100%; */
  display: block;
  padding: 0.5px;
}

.topTable img {
  width: unset;
  height: unset;
  border-radius: unset;
  margin-right: unset;
}

/* NEW ITEMMALL CSS CODE */
.item_wrapper {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1rem;
}

.item_icon_bg {
  /* background: url(/public/gray/img/icon_bg.png);
  background-repeat: no-repeat;
  background-size: 60px 62px;
  width: 60px;
  height: 62px;
  position: relative; */

  width: 45px;
  height: 45px;
  background: rgb(0 0 0 / 50%);
  position: relative;
  border: 1px solid #b16c06;
  border-radius: 3px;
}

/* .item_icon_bg .item_icon {
  width: 41px;
  position: absolute;
  top: 10.75px;
  left: 9px;
  border-radius: 6px;
  height: auto;
} */

.item_icon {
  padding: 2px;
  opacity: 0.95;
  border-radius: 3px;
}

.item_count {
  position: absolute;
  /* font-size: 11px; */
  right: 3px;
  bottom: 2px;
  color: aliceblue !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.item_title_name {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

.tier_item .item_title_name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 130px;
}

.item_desc {
  position: relative;
  /* display: inline-flex;
  align-items: center;
  justify-content: center; */
  /* width: 18px;
  height: 18px; */
  cursor: pointer;
  /* font-family: Gotham, sans-serif; */
  /* border-radius: 50%; */
  /* background-color: hsla(0, 0%, 100%, 0.2);
  color: #fff; */
  transition: all 0.5s;
}

/* .item_desc::before {
  content: '?';
  font-size: 12px;
  font-weight: bold;
  font-family: 'Fritz';
} */

/* .itemmall_item_desc:hover {
  background-color: #fff;
  color: #000;
} */

.item_properties {
  position: absolute;
  z-index: 1;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 225px;
  font-size: 13px !important;
  line-height: 20px;
  letter-spacing: 0;
  border-radius: 5px;
  color: #8b8b8b;
  background: rgb(0 0 0 / 85%);
  box-shadow: 0 1px 5px rgb(0 0 0 / 20%);
  text-align: left;

  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s;

  padding: 25px;
}

.item_properties .slots {
  justify-content: start;
}

.item_properties::after {
  content: '';
  position: absolute;
  height: 15px;
  transform: rotate(45deg);
  width: 15px;
  left: 50%;
  border-radius: 2px;
  margin-left: -8px;
  margin-top: -8px;
  background: rgb(0 0 0 / 75%);
  box-shadow: 0 1px 5px rgb(0 0 0 / 20%);
  top: 0;
}

.item_properties.show {
  visibility: visible;
  opacity: 1;
}

.itemmall_minus,
.itemmall_plus {
  background: #6b6c6e;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 50%;
  transition: all 0.5s;
  color: #dcdcdc;
  cursor: pointer;
}

.itemmall_minus::before {
  content: '-';
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  text-align: center;
}

.itemmall_plus::before {
  content: '+';
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  text-align: center;
}

.itemmall_minus:hover {
  color: #f44336;
  background: #75312d;
}

.itemmall_plus:hover {
  color: #4caf50;
  background: #345b38;
}

.itemmall_input {
  text-align: center;
  border-radius: 7px;
  background-color: rgb(255 180 50 / 30%);
  color: rgb(109, 109, 109);
  border: 1px solid rgb(255 180 50 / 50%);
  font-weight: bold;
  font-family: 'Fritz';
  min-width: 70px;
  min-height: 40px;
  padding-left: 25px;
  margin: 7px;
  font-size: 14px;
}

.itemmall-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CSS for tippy */
.tippy-box[data-theme~='shaiya'] {
  width: 225px;
  font-size: 12px !important;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  padding: 7px 5px 15px 5px;
}

/* Стилізація стрілочки */
.tippy-box[data-theme~='shaiya'] .tippy-arrow {
  color: rgba(0, 0, 0, 0.85);
  /* Колір стрілочки має збігатися з кольором фону */
}

.tippy-content .slots {
  justify-content: flex-start;
}
