.tags-filter-container {
  max-height: 300px;
  margin: 10px auto;
  overflow-y: auto;
  border-radius: 8px;
  background-color: #2a2a2a;
}

.tags-filter-container::-webkit-scrollbar {
  width: 8px;
}

.tags-filter-container::-webkit-scrollbar-track {
  margin: 4px 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.tags-filter-container::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: linear-gradient(180deg, #4a9eff 0%, #357abd 100%);
  transition: all 0.3s ease;
}

.tags-filter-container::-webkit-scrollbar-thumb:hover {
  transform: scaleX(1.2);
  background: linear-gradient(180deg, #5aa8ff 0%, #4285d1 100%);
}

.tags-filter-container::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #357abd 0%, #2563eb 100%);
}

.tags-filter-container .list_search_tags {
  display: flex;
  flex-direction: column;
  padding: 7px 14px;
}

.tag-checkbox-item {
  display: block;
  width: 100%;
}

.tag-checkbox-label {
  display: flex;
  align-items: center;
  margin: 0px;
  padding: 5px 0px;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.tag-checkbox-label:hover {
  color: #4a9eff;
}

.tag-checkbox {
  display: none;
}

.tag-checkbox-custom {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 12px;
  border: 2px solid #666;
  border-radius: 2px;
  background-color: transparent;
  transition: all 0.2s ease;
}

.tag-checkbox-label:hover .tag-checkbox-custom {
  border-color: #4a9eff;
}

.tag-checkbox:checked + .tag-checkbox-custom {
  border-color: #4a9eff;
  background-color: #4a9eff;
}

.tag-checkbox:checked + .tag-checkbox-custom::after {
  position: absolute;
  top: 0px;
  left: 3px;
  width: 6px;
  height: 10px;
  transform: rotate(45deg);
  border: solid white;
  border-width: 0 2px 2px 0;
  content: "";
}

.tag-text {
  flex-grow: 1;
}

.tag-checkbox:checked ~ .tag-text {
  color: #4a9eff;
}

.tag-checkbox-custom-round {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 12px;
  border: 2px solid #666;
  border-radius: 50%;
  background-color: transparent;
  transition: all 0.2s ease;
}

.filter-box {
  display: flex;
  row-gap: 16px;
  flex-direction: column;
  margin: 20px 0;

  .filter-box__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .filter-box__title {
    margin-bottom: 0;
    font-size: 20px;
  }

  .filter-box__reset {
    all: inherit;
    border-bottom: 1px dotted;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.3s ease;

    &:hover {
      opacity: 1;
    }
  }

  .filter-box__list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 8px;
  }

  .filter-box__item {
    list-style: none;
  }

  .filter-box__item-button {
    all: inherit;
    display: flex;
    column-gap: 8px;
    align-items: center;
    height: 36px;
    padding-inline: 12px;
    border-radius: 40px;
    background-color: rgba(255, 255, 255, 0.06);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s ease;

    &:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }

    &.active {
      background-color: rgba(0, 110, 243, 1);
    }
  }
}

.filter_button_search {
  position: sticky;
  bottom: 0;
}
