.order-filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 112;
  display: flex;
  justify-content: flex-end;
  background: rgb(0 0 0 / 40%);
}
.order-filter-drawer,
.order-filter-drawer *,
.order-filter-popup,
.order-filter-popup * {
  box-sizing: border-box;
}
.order-filter-drawer {
  display: flex;
  flex-direction: column;
  width: 432px;
  max-width: 100vw;
  height: 100%;
  min-width: 0;
  background: #fff;
  color: #171718;
  box-shadow: -8px 0 20px rgb(0 0 0 / 12%);
  font:
    400 14px/22px TikTokFont,
    Arial,
    Tahoma,
    "PingFang SC",
    sans-serif;
  outline: 0;
}
.order-filter-drawer [hidden] {
  display: none !important;
}
.order-filter-header {
  position: relative;
  flex: 0 0 52px;
  padding: 24px 24px 0;
  min-width: 0;
}
.order-filter-header h2 {
  font:
    500 20px/28px TikTokFont,
    sans-serif;
  margin: 0;
  overflow-wrap: anywhere;
}
.order-filter-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  margin: 0;
}
.order-filter-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 24px 26px 24px 24px;
}
.order-filter-row {
  position: relative;
  height: 32px;
  min-width: 0;
  margin-bottom: 12px;
}
.order-filter-row:last-of-type {
  margin-bottom: 0;
}
.order-filter-drawer input {
  font:
    400 14px/22px TikTokFont,
    Arial,
    Tahoma,
    "PingFang SC",
    sans-serif;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  margin: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #171718;
  outline: 0;
  box-shadow: none;
  height: 30px;
}
.order-filter-drawer input::placeholder {
  color: #6c6d6f;
  opacity: 1;
}
.order-filter-combo {
  display: flex;
  align-items: center;
  position: relative;
  gap: 4px;
  width: 100%;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d3d4d5;
  border-radius: 4px;
  background: #fff;
  min-width: 0;
  cursor: pointer;
  outline: 0;
}
.order-filter-combo > input {
  width: 100%;
  text-overflow: ellipsis;
  cursor: pointer;
  pointer-events: none;
}
.order-filter-combo > input:disabled {
  background: transparent;
  color: #6c6d6f;
  opacity: 1;
  -webkit-text-fill-color: #6c6d6f;
}
.order-filter-combo:focus-visible,
.order-filter-search-row:focus-within,
.order-filter-date-row:focus-within,
.order-filter-text-row:focus-within {
  border-color: #009995;
  box-shadow: 0 0 0 1px #009995;
}
.order-filter-combo-end {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 12px;
  height: 20px;
  color: #6c6d6f;
}
.order-filter-combo-end > svg,
.order-filter-combo-end > span > svg {
  width: 12px;
  height: 12px;
  min-height: 12px;
}
.order-filter-combo-end > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 20px;
}
.order-filter-search-row,
.order-filter-date-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 32px;
  min-width: 0;
  border: 1px solid #d3d4d5;
  border-radius: 4px;
  background: #fff;
  overflow: visible;
  padding-right: 12px;
}
.order-filter-search-row > .order-filter-combo {
  flex: 0 0 130px;
  width: 130px;
  height: 30px;
  border: 0;
  border-right: 0;
  border-radius: 3px 0 0 3px;
}
.order-filter-search-row > input {
  flex: 1;
  margin-left: 4px;
  width: 0;
}
.order-filter-date-row > .order-filter-combo {
  flex: 0 0 127.33px;
  width: 127.33px;
  height: 30px;
  border: 0;
  border-right: 0;
  border-radius: 3px 0 0 3px;
}
.order-filter-range {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0;
  min-width: 0;
  padding-left: 12px;
}
.order-filter-range > input {
  flex: 1;
  width: 0;
  height: 20px;
  padding: 0;
  line-height: 20px;
  font-size: 14px;
}
.order-filter-range > span {
  flex: none;
  width: 16px;
  text-align: center;
  color: #8f9092;
  font-size: 12px;
}
.order-filter-range > svg {
  width: 14px;
  height: 14px;
  min-height: 14px;
  flex: none;
  margin-left: 8px;
  color: #6c6d6f;
}
.order-filter-text-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 32px;
  min-width: 0;
  border: 1px solid #d3d4d5;
  border-radius: 4px;
  padding: 0 12px;
  background: #fff;
}
.order-filter-prefix {
  display: block;
  flex: none;
  white-space: nowrap;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
}
.order-filter-text-row > input {
  flex: 1;
  width: 0;
  height: 32px;
}
.order-filter-footer {
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 30px 16px 24px;
  min-width: 0;
}
.order-filter-footer button {
  flex: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 40px;
  min-height: 40px;
  padding: 10px 20px;
  border: 1px solid #d3d4d5;
  border-radius: 4px;
  font:
    500 14px/20px TikTokFont,
    sans-serif;
  cursor: pointer;
  background: #fff;
  color: #171718;
}
.order-filter-footer .order-filter-clear {
  margin-right: auto;
  border-color: transparent;
  color: #008d89;
  justify-content: flex-start;
  padding-left: 0;
  background: transparent;
}
.order-filter-footer .order-filter-apply {
  background: #009995;
  border-color: #009995;
  color: #fff;
}
.order-filter-footer button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.order-filter-footer button:focus-visible {
  outline: 2px solid #009995;
  outline-offset: 2px;
}
.order-filter-error {
  color: #d23851;
  font:
    400 14px/20px TikTokFont,
    sans-serif;
  margin: 12px 0 0;
  overflow-wrap: anywhere;
}
.order-filter-popup {
  position: fixed;
  z-index: 113;
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #171718;
  font:
    400 14px/20px TikTokFont,
    Arial,
    sans-serif;
  box-shadow: 0 4px 14px rgb(0 0 0 / 12%);
  overflow-y: auto;
  overscroll-behavior: contain;
  max-width: 100vw;
}
.order-filter-popup [role="option"] {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px;
  cursor: pointer;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.order-filter-popup [role="option"] + [role="option"] {
  margin-top: 2px;
}
.order-filter-popup [role="option"].active {
  background: #f5f5f5;
}
.order-filter-popup [aria-selected="true"] {
  color: #008d89;
  font-weight: 500;
}
.order-filter-popup [aria-disabled="true"] {
  color: #aaa;
  cursor: default;
}
.order-filter-no-options {
  margin: 0;
  padding: 12px;
  color: #888;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}
@media (max-width: 431px) {
  .order-filter-drawer {
    width: 100vw;
  }
  .order-filter-search-row > .order-filter-combo {
    flex-basis: 34%;
    width: 34%;
  }
  .order-filter-date-row > .order-filter-combo {
    flex-basis: 32%;
    width: 32%;
  }
  .order-filter-range {
    gap: 0;
    padding-left: 8px;
  }
  .order-filter-range > input {
    font-size: 14px;
  }
  .order-filter-date-row {
    padding-right: 8px;
  }
  .order-filter-footer {
    padding-left: 24px;
    padding-right: 26px;
  }
  .order-filter-prefix {
    max-width: 24%;
  }
  .order-filter-body {
    scrollbar-width: thin;
  }
}
@media (max-width: 279px) {
  .order-filter-footer {
    padding-left: 12px;
    padding-right: 12px;
    gap: 4px;
  }
  .order-filter-footer button {
    width: 62px;
  }
  .order-filter-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .order-filter-range > svg {
    display: none;
  }
}

.order-filter-close {
  position: absolute;
  top: 26px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #6c6d6f;
  cursor: pointer;
}
.order-filter-close > svg {
  width: 16px;
  height: 16px;
  min-height: 16px;
}
.order-filter-new {
  position: absolute;
  right: 32px;
  top: 8px;
  width: 37px;
  height: 16px;
  object-fit: contain;
  pointer-events: none;
}
.order-filter-new.is-text {
  right: 12px;
}
.order-filter-row[data-order-filter-new] > .order-filter-combo > input,
.order-filter-row[data-order-filter-new] > .order-filter-text-row > input {
  padding-right: 45px;
}
.order-filter-footer .order-filter-cancel {
  background: #ececed;
  border-color: transparent;
}

.order-filter-footer {
  position: relative;
}
.order-filter-footer .order-filter-clear {
  position: absolute;
  left: 0;
  top: 25px;
  width: 106px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0 24px;
  border: 1px solid transparent;
  color: #009995;
  justify-content: center;
}
.order-filter-footer .order-filter-cancel {
  margin-left: auto;
}
.order-filter-new {
  left: 78px;
  right: auto;
}
.order-filter-row[data-order-filter-row="17"] > .order-filter-new {
  left: 96px;
}
.order-filter-new.is-text {
  left: auto;
  right: 20px;
}
.order-filter-row[data-order-filter-new] > .order-filter-combo > input {
  padding-right: 0;
}
.order-filter-row:has(> .order-filter-combo > input:not(:placeholder-shown))
  > .order-filter-new {
  display: none;
}
.order-filter-row[data-order-filter-row="8"] .order-filter-text-row > input {
  padding-right: 53px;
}
.order-filter-range {
  position: relative;
}
.order-filter-date-picker-trigger {
  flex: none !important;
  width: 14px !important;
  height: 14px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.order-filter-date-picker-trigger > svg {
  width: 14px;
  height: 14px;
  min-height: 14px;
}
.order-filter-range [data-order-filter-native-date] {
  font-size: 14px;
  line-height: 20px;
  min-width: 0;
  outline: 1px solid #009995;
  border-radius: 3px;
}
@media (max-width: 279px) {
  .order-filter-footer .order-filter-clear {
    width: 90px;
    padding: 0 16px;
  }
}

.order-filter-popup [role="option"] {
  gap: 8px;
}
.order-filter-popup [role="option"]::before {
  content: "";
  box-sizing: border-box;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid #bbbcbf;
  border-radius: 50%;
  background: #fff;
}
.order-filter-popup [aria-selected="true"]::before {
  border: 5px solid #009995;
}
.order-filter-popup [aria-multiselectable="true"] [role="option"]::before {
  border-radius: 3px;
}
.order-filter-popup[aria-multiselectable="true"]
  [aria-selected="true"]::before {
  border: 4px solid #009995;
}

.order-filter-search-row > .order-filter-combo > input,
.order-filter-date-row > .order-filter-combo > input {
  color: #6c6d6f;
  -webkit-text-fill-color: #6c6d6f;
}
