/*
 * V140 · 价格区间浮层重排
 *
 * 价格筛选是一个连续动作：选择价格类型 → 输入最低/最高价 → 应用。
 * 所以浮层采用单列、固定节奏，避免底层工具栏文字穿插造成重叠感。
 */
.view-root[data-view="productCatalog"] .catalog-filter-row .catalog-price-filter {
  position: relative;
  z-index: 310;
  isolation: isolate;
}

.view-root[data-view="productCatalog"] .catalog-price-filter-popover {
  z-index: 1000 !important;
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  width: 320px !important;
  max-width: min(320px, calc(100vw - 28px));
  gap: 10px !important;
  padding: 14px !important;
  overflow: visible;
  border: 1px solid #cbd7e8;
  border-radius: 12px;
  background: #ffffff !important;
  box-shadow: 0 18px 44px rgba(27, 46, 78, .18);
  color: #263750;
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased;
}

.view-root[data-view="productCatalog"] .catalog-price-filter-popover > header {
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 9px;
  border-bottom: 1px solid #e8edf5;
}

.view-root[data-view="productCatalog"] .catalog-price-filter-popover > header strong {
  color: #20304a;
  font-size: 12px;
  line-height: 1.2;
}

.view-root[data-view="productCatalog"] .catalog-price-filter-popover > header span {
  color: #8794a8;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.view-root[data-view="productCatalog"] .catalog-price-filter-popover .catalog-price-type {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: center;
  gap: 8px !important;
  min-width: 0;
  margin: 0;
  color: #53647d;
  font-size: 11px;
  line-height: 1.2;
}

.view-root[data-view="productCatalog"] .catalog-price-filter-popover .catalog-price-type > span {
  white-space: nowrap;
}

.view-root[data-view="productCatalog"] .catalog-price-filter-popover .catalog-price-type select,
.view-root[data-view="productCatalog"] .catalog-price-filter-popover .catalog-price-range-inputs input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 34px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #cbd7e8;
  border-radius: 8px;
  background: #fbfdff;
  color: #243650;
  font-size: 12px;
  line-height: 32px;
  text-shadow: none !important;
}

.view-root[data-view="productCatalog"] .catalog-price-filter-popover .catalog-price-range-inputs {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px !important;
  min-width: 0;
  margin: 0;
}

.view-root[data-view="productCatalog"] .catalog-price-filter-popover .catalog-price-range-inputs label {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  align-items: center;
  gap: 8px !important;
  min-width: 0;
  margin: 0;
  color: #53647d;
  font-size: 11px;
  line-height: 1.2;
}

.view-root[data-view="productCatalog"] .catalog-price-filter-popover .catalog-price-range-inputs label span {
  white-space: nowrap;
}

.view-root[data-view="productCatalog"] .catalog-price-filter-popover .catalog-price-range-inputs > i {
  display: none !important;
}

.view-root[data-view="productCatalog"] .catalog-price-filter-popover .catalog-price-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 2px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #edf1f6;
}

.view-root[data-view="productCatalog"] .catalog-price-filter-popover .catalog-price-filter-actions .small-button {
  box-sizing: border-box;
  height: 30px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 28px;
}

@media (max-width: 680px) {
  .view-root[data-view="productCatalog"] .catalog-price-filter-popover {
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px);
  }
}
