.sherifMyPosition,
.sherifMyPosition * {
  box-sizing: border-box;
}

.sherifMyPosition {
  display: none;
  width: 333px;
  max-width: calc(100% - 16px);
  margin: 20px auto 2px;
  padding: 10px;
  border: 1px solid rgba(242, 199, 102, 0.5);
  border-radius: 16px;
  background: #080f27;
  color: #f8f8f8;
  font-family: "AdjaraSemiBold", sans-serif;
}

.sherifMyPosition.active {
  display: block;
}

.sherifMyPosition__row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}

.sherifMyPosition__identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sherifMyPosition__rank {
  position: relative;
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.sherifMyPosition__trophy {
  width: 36px;
  height: 36px;
  background: url("../img/pos1img.svg") center / contain no-repeat;
}

/* Keep the rank available to screen readers when the trophy replaces it. */
.sherifMyPosition__row.is-first .lb__rankNum {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sherifMyPosition__copy,
.sherifMyPosition__metric {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sherifMyPosition__label {
  overflow: hidden;
  color: #9ca8c7;
  font-size: 10px;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sherifMyPosition__metric > .sherifMyPosition__label {
  text-align: center;
}

.sherifMyPosition__user {
  overflow: hidden;
  font-size: 14px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sherifMyPosition__point,
.sherifMyPosition .lb__pill {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 4px 4px 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 14px;
  line-height: 16px;
}

.sherifMyPosition__point {
  border: 1px solid #161f40;
  background: #000;
}

.sherifMyPosition .lb__pill {
  gap: 4px;
  border: 1px solid transparent;
  background:
    linear-gradient(#050a1f, #050a1f) padding-box,
    linear-gradient(90deg, #f2c766 0%, #222c4c 100%) border-box;
}

.sherifMyPosition .lb__clover {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: url("../img/fsban-icon-green.webp") center / contain no-repeat;
}

.sherifMyPosition__pointValue,
.sherifMyPosition .lb__pillTxt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media screen and (max-width: 940px) and (min-width: 320px) {
  .sherifMyPosition {
    width: 88.8vw;
    max-width: calc(100% - 4.2667vw);
    margin: 5.3333vw auto 0.5333vw;
    padding: 2.6667vw;
    border-width: 0.2667vw;
    border-radius: 4.2667vw;
  }

  .sherifMyPosition__row {
    gap: 2.6667vw;
  }

  .sherifMyPosition__identity {
    gap: 2.1333vw;
  }

  .sherifMyPosition__rank {
    flex-basis: 9.6vw;
    font-size: 4.2667vw;
  }

  .sherifMyPosition__trophy {
    width: 9.6vw;
    height: 9.6vw;
  }

  .sherifMyPosition__copy,
  .sherifMyPosition__metric,
  .sherifMyPosition .lb__pill {
    gap: 1.0667vw;
  }

  .sherifMyPosition__label {
    font-size: 2.6667vw;
    line-height: 3.7333vw;
  }

  .sherifMyPosition__user {
    font-size: 3.7333vw;
    line-height: 4.8vw;
  }

  .sherifMyPosition__point,
  .sherifMyPosition .lb__pill {
    height: 6.9333vw;
    padding: 1.0667vw 1.0667vw 1.0667vw 2.1333vw;
    border-width: 0.2667vw;
    border-radius: 2.4vw;
    font-size: 3.7333vw;
    line-height: 4.2667vw;
  }

  .sherifMyPosition .lb__clover {
    width: 4.2667vw;
    height: 4.2667vw;
    flex-basis: 4.2667vw;
  }
}
