.search-history-card {
  margin-top: 20px;
  padding: 22px 16px 24px;
  border-radius: 8px;
  background: #fff;
}

.search-history-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-history-card__header h1 {
  color: #2f2f30;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}

.search-history-card__tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-history-card__tools button {
  color: #2f2f30;
  font-size: 14px;
  line-height: 1.2;
}

.search-history-card__tools [data-history-clear] {
  color: #ff4b4b;
}

.search-history-card__trash {
  position: relative;
  width: 24px;
  height: 24px;
  color: transparent;
  font-size: 0;
  flex: 0 0 auto;
}

.search-history-card__trash::before,
.search-history-card__trash::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.search-history-card__trash::before {
  top: 5px;
  width: 11px;
  height: 13px;
  border: 1.5px solid #8a8f96;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}

.search-history-card__trash::after {
  top: 2px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #8a8f96;
  box-shadow: 0 4px 0 -1px #8a8f96 inset;
}

.search-history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.search-history-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  background: #f5f7fa;
  color: #2f2f30;
  font-size: 15px;
  line-height: 1.2;
}

.search-history-tag__remove {
  display: none;
  position: relative;
  width: 20px;
  height: 20px;
  color: transparent;
  font-size: 0;
}

.search-history-tag__remove::before,
.search-history-tag__remove::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 2px;
  width: 1.5px;
  height: 16px;
  border-radius: 999px;
  background: #a9aeb6;
}

.search-history-tag__remove::before {
  transform: rotate(45deg);
}

.search-history-tag__remove::after {
  transform: rotate(-45deg);
}

.search-history-card.is-editing .search-history-tag__remove {
  display: block;
}

.search-history-empty {
  margin-top: 18px;
  color: #b4bac1;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 359px) {
  .search-history-card {
    margin-top: 16px;
    padding: 20px 14px 22px;
  }

  .search-history-card__header h1,
  .search-history-tag {
    font-size: 15px;
  }

  .search-history-card__tools button:not(.search-history-card__trash) {
    font-size: 15px;
  }

  .search-history-tags {
    gap: 8px;
  }

  .search-history-tag {
    min-height: 42px;
    padding-inline: 14px;
  }
}
