.hb-page #hb-history {
  width: 100%;
  padding: 12px !important;
}

.hb-page [data-hb-result] {
  scroll-margin-top: calc(76px + env(safe-area-inset-top, 0px));
}

.hb-page #hb-history > header {
  padding: 0 0 9px;
}

.hb-page #hb-history :is(button, .hb-history-list)[hidden] {
  display: none !important;
}

.hb-page #hb-history .hb-history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.hb-page #hb-history .hb-history-item {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  grid-template-columns: clamp(34px, 35%, 68px) minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  padding: 6px;
  text-decoration: none;
}

.hb-page #hb-history .hb-history-image {
  width: 100%;
  height: auto;
  align-self: center;
}

.hb-page #hb-history .hb-history-image img {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.hb-page #hb-history .hb-history-market {
  display: inline-block;
  border-radius: 6px;
  padding: 2px 5px;
  margin-bottom: 3px;
  background: #fff0e9;
  color: #a73214;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
}

.hb-page #hb-history .hb-history-market[data-market="tiktok"] {
  background: #ecebf4;
  color: #29243c;
}

.hb-page #hb-history .hb-history-price {
  margin-top: 2px;
}

.hb-page #hb-history .hb-history-refund {
  display: block;
  color: #7c246e;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hb-page #hb-history .hb-history-refund.is-unquoted {
  color: #655572;
  font-weight: 550;
}

.hb-page #hb-history .hb-history-more {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 9px;
  border: 1px solid #ebd9f2;
  border-radius: 10px;
  background: #fbf5fd;
  color: #8126ae;
  font-size: 13px;
  font-weight: 750;
}

@container hb-page (min-width: 650px) {
  .hb-page #hb-history {
    padding: 16px !important;
  }

  .hb-page #hb-history .hb-history-item {
    gap: 10px;
    padding: 8px;
  }

  .hb-page #hb-history .hb-history-refund {
    font-size: 12px;
  }
}
