.main:has(.returns-page) {
  padding-top: 0;
}
.returns-page {
  width: 1038px;
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 20px;
  position: relative;
  color: #171718;
  font:
    14px/21px TikTokFont,
    sans-serif;
}
.returns-page [hidden] {
  display: none !important;
}
.returns-header {
  padding: 24px 0 16px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.returns-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  white-space: nowrap;
}
.returns-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 38px;
}
.returns-search {
  display: flex;
  align-items: center;
  width: 280px;
  height: 32px;
  padding: 5px 12px;
  border: 1px solid #d3d4d5;
  border-radius: 4px;
  background: #fff;
  gap: 8px;
}
.returns-search > svg {
  flex: 0 0 14px;
  color: #6c6d6f;
}
.returns-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  line-height: 16.1px;
  color: #171718;
}
.returns-search:focus-within {
  border-color: #009995;
}
.returns-header-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 6px 12px;
  color: #171718;
  font-weight: 500;
  line-height: 20px;
  background: #ececed;
  border-radius: 4px;
  white-space: nowrap;
}
.returns-banner {
  height: 148px;
  margin-bottom: 16px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  position: relative;
}
.returns-banner-copy {
  margin-right: 172px;
}
.returns-banner h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #000000eb;
}
.returns-banner p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 20px;
  color: #0000008c;
}
.returns-banner-copy .btn {
  min-height: 24px;
  height: 24px;
  padding: 3px 8px;
  border: 0;
  border-radius: 4px;
  background: #ececed;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}
.returns-banner > img {
  position: absolute;
  right: 0;
  top: 26px;
  width: 160px;
  height: 96px;
}
.returns-banner .returns-banner-close {
  position: absolute;
  right: 8px;
  top: 8px;
  min-height: 16px;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #fff;
}
.returns-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  height: 101px;
  background: #fff;
  border-radius: 8px;
}
.returns-metrics > div {
  padding: 8px;
  min-width: 0;
}
.returns-metrics button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  height: 85px;
  padding: 16px;
  border: 0;
  background: #fff;
  color: #171718;
  cursor: pointer;
}
.returns-metrics button > span {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 20px;
  white-space: nowrap;
}
.returns-metrics button > span svg {
  color: #6c6d6f;
}
.returns-metrics strong {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
}
.returns-metrics button[aria-pressed="true"] {
  background: #0099950d;
}
.returns-tabs {
  display: flex;
  align-items: flex-start;
  height: 33px;
  margin: 16px 0;
  border-bottom: 1px solid #dedfe0;
  padding-left: 1px;
  overflow-x: auto;
  scrollbar-width: none;
}
.returns-tabs button {
  height: 32px;
  margin: 0 14px;
  padding: 0 1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #171718;
  font-size: 14px;
  font-weight: 500;
  line-height: 30px;
  white-space: nowrap;
  cursor: pointer;
}
.returns-tabs button:first-child {
  margin-left: 0;
}
.returns-tabs button.active {
  border-bottom-color: #009995;
}
.returns-tabs bdi {
  margin-left: 4px;
}
.returns-filterbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  height: 61px;
  padding: 12px 16px;
  border-radius: 4px;
  background: #fff;
}
.returns-types {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.returns-types button {
  height: 37px;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #171718;
  font-weight: 400;
  line-height: 21px;
  white-space: nowrap;
  cursor: pointer;
}
.returns-types button.active {
  color: #009995;
  background: #00999526;
  font-weight: 500;
}
.returns-types bdi {
  margin-left: 4px;
  color: #0000008c;
  font-weight: 400;
}
.returns-tools {
  display: flex;
  gap: 8px;
}
.returns-tools .btn {
  min-height: 32px;
  height: 32px;
  width: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #ececed;
}
.returns-tools .btn:first-child {
  width: 34px;
}
.returns-page #return-results {
  margin-top: 8px;
}
.returns-empty {
  height: 339px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.returns-empty > svg {
  display: block;
  flex-shrink: 0;
  margin-bottom: 8px;
}
.returns-empty > div {
  height: 20px;
  margin-bottom: 40px;
  color: #8f98b2;
  font-size: 14px;
  line-height: 20px;
}
.returns-guide {
  width: 350px;
  max-width: calc(100% - 16px);
  position: absolute;
  top: 68px;
  right: 60px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 32px #0003;
  z-index: 12;
}
.returns-guide::before {
  content: "";
  position: absolute;
  right: 36px;
  top: -4px;
  width: 8px;
  height: 8px;
  background: #fff;
  transform: rotate(45deg);
}
.returns-guide-inner {
  padding: 16px;
  background: #009995;
  border-radius: 8px;
  color: #fff;
}
.returns-guide h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}
.returns-guide p {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
}
.returns-guide-inner > div {
  display: flex;
  justify-content: flex-end;
}
.returns-guide .btn {
  min-height: 36px;
  height: 36px;
  padding: 8px 16px;
  border: 0;
  border-radius: 4px;
  color: #009995;
  background: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.returns-active-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 8px 16px;
  background: #fff;
  border-radius: 4px;
}
.returns-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  background: #fff;
  border-radius: 4px;
}
.returns-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}
.returns-table th {
  background: #f9f9f9;
}
.returns-table th,
.returns-table td {
  padding: 12px 16px;
  text-align: left;
  overflow-wrap: anywhere;
  max-width: 280px;
}
.returns-row-actions {
  display: flex;
  gap: 8px;
}
.returns-row-actions .btn {
  white-space: nowrap;
}
.returns-details {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
}
.returns-details dt {
  color: #6c6d6f;
}
.returns-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 1150px) {
  .returns-header {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .returns-header-actions {
    margin-left: auto;
  }
  .returns-banner {
    height: auto;
    min-height: 148px;
  }
  .returns-metrics {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .returns-header {
    padding-top: 20px;
  }
  .returns-header h1 {
    font-size: 24px;
    line-height: 32px;
  }
  .returns-header-actions {
    width: 100%;
    height: auto;
    flex-wrap: wrap;
  }
  .returns-search {
    flex-basis: 100%;
    width: 100%;
  }
  .returns-header-link {
    height: 32px;
  }
  .returns-banner {
    padding: 16px;
  }
  .returns-banner-copy {
    margin-right: 0;
  }
  .returns-banner > img {
    display: none;
  }
  .returns-metrics {
    gap: 0;
  }
  .returns-metrics > div {
    padding: 4px;
  }
  .returns-metrics button {
    padding: 10px;
  }
  .returns-metrics button > span {
    font-size: 12px;
    white-space: normal;
    text-align: left;
  }
  .returns-filterbar {
    flex-wrap: wrap;
    height: auto;
    padding: 12px;
    gap: 8px;
  }
  .returns-types {
    flex-basis: 100%;
  }
  .returns-tools {
    margin-left: auto;
  }
  .returns-guide {
    top: 122px;
    right: 8px;
  }
  .returns-details {
    grid-template-columns: 90px minmax(0, 1fr);
  }
}
