.category-pill {
  border: none;
  font-family: inherit;
  padding: 7px 15px;
  border-radius: 9999px;
  /* color: var(--states-primary-secondary); */
  color: var(--text-primary);
  background: var(--states-primary-tertiary);
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  text-decoration: none;
}

.category-pill:hover {
  background: var(--states-primary-tertiary-hover);
}

.category-pill.hidden {
  display: none !important;
}


.category-pill.expand::after {
  content: '';
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' viewBox='0 0 16 17' fill='none'%3E%3Cpath d='M2.86177 5.62593C3.12212 5.36558 3.54423 5.36558 3.80458 5.62593L7.99984 9.82119L12.1951 5.62593C12.4554 5.36558 12.8775 5.36558 13.1379 5.62593C13.3982 5.88628 13.3982 6.30839 13.1379 6.56874L8.47124 11.2354C8.21089 11.4958 7.78878 11.4958 7.52843 11.2354L2.86177 6.56874C2.60142 6.30839 2.60142 5.88628 2.86177 5.62593Z' fill='%23A7A6A4'/%3E%3C/svg%3E");
}

.category-pill.expand.expanded::after {
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.1381 5.19526C12.8778 4.93491 12.4557 4.93491 12.1953 5.19526L8.00004 9.39052L3.80473 5.19526C3.54443 4.93491 3.12233 4.93491 2.86193 5.19526C2.60163 5.45561 2.60163 5.87772 2.86193 6.13807L7.52864 10.8047C7.78899 11.0651 8.2111 11.0651 8.47145 10.8047L13.1381 6.13807C13.3985 5.87772 13.3985 5.45561 13.1381 5.19526Z' fill='%230D6EFD'/%3E%3C/svg%3E%0A");
}

.dark .category-pill.expand {
  border: 1px solid #343A40;
  background: transparent;
}

.dark .category-pill.expand.expanded {
  border: 1px solid var(--states-primary-primary);
}

.category-icon {
  width: 20px;
  height: 20px;
}

.category-pill.active {
  background: #343A40;
  color: var(--text-fixed-inverted);
}

.dark .category-pill.active {
  background: #FFF;
  color: var(--text-inverted);
}

#promos-counter {
  margin-left: 6px;
}


.username-title {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-primary);
  display: flex;
  gap: 10px;
  margin-bottom: 12px;

  &::before {
    content: '';
    display: flex;
    background: var(--states-primary-primary);
    width: 2px;
    border-radius: 0 24px 24px 0;
    min-height: 100%;
  }
}

.username-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 500px) {
  .username-label {
    flex-direction: column;
  }
  .username-title{
    margin-top: 16px;
  }
}

.username-input {
  background: none;
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border-alpha-subtle);
  width: 100%;
}

.items__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promo-block {
  background: var(--background-bg-primary);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 16px;
}

.promo-block__content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.promo-item__cover {
  max-width: 106px;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.promo-item__img {
  width: 100%;
  border-radius: 12px;
}

.promo-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promo-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  width: 100%;
  gap: 2px;
}

.badge {
  display: flex;
  padding: 2px 12px;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge.green {
  background: rgba(48, 148, 57, 0.12);
  color: #309439;
}

.badge.yellow {
  background: rgba(148, 128, 48, 0.12);
  color: #948030;
}

.badge.red {
  background: rgba(148, 48, 48, 0.12);
  color: #943030;
}

.promo-item__cover.pc-hide {
  display: none;
}



@media (max-width: 768px) {
  .promo-item__cover {
    display: none;
  }

  .promo-title {
    flex-direction: column-reverse;
    gap: 8px;
    align-items: unset;
  }

  .promo-item__cover.pc-hide {
    display: block;
  }



  .promo-title {
    display: grid !important;
    grid-template-columns: min-content auto;
    grid-template-rows: auto auto;
    justify-content: unset !important;
    gap: 16px !important;
    grid-template-areas:
      "d-flex d-flex"
      "promo-item__cover flex-column";

    & .d-flex {
      grid-area: d-flex;
    }

    .flex-column {
      grid-area: flex-column;
    }

    .promo-item__cover {
      grid-area: promo-item__cover;
      min-width: 106px;
    }

  }
}