/* Catalog ordering shares the existing counter bar; cards stay server-rendered. */
.cscom-unified .csort-bar[data-catalog-sorting] {
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  overflow: visible;
  scroll-margin-top: 110px;
}

.cscom-unified .csort-bar[data-catalog-sorting] .csort-counter {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
}

.cscom-unified .csort-bar .csort-order {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  margin: 0 0 0 auto;
}

.cscom-unified .csort-bar .csort-order__label {
  margin: 0;
  color: #aab3c4;
  font: 600 12px/1.4 'Manrope', sans-serif;
  white-space: nowrap;
}

.cscom-unified .csort-bar .csort-order__select {
  box-sizing: border-box;
  min-width: 194px;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 38px 10px 14px;
  border: 1px solid #343c4d;
  border-radius: 12px;
  background: #10131a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff7b32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center;
  color: #f0f4fd;
  font: 600 14px/1.4 'Exo 2', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  appearance: none;
  color-scheme: dark;
  cursor: pointer;
}

.cscom-unified .csort-bar .csort-order__select:hover {
  border-color: #ff7b32;
  background-color: #151b25;
}

.cscom-unified .csort-bar .csort-order__select option {
  background: #10131a;
  color: #f0f4fd;
}

.cscom-unified .csort-bar .csort-order__submit {
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #ff7b32;
  border-radius: 12px;
  background: #151b25;
  color: #ffad7d;
  font: 700 13px/1.4 'Exo 2', sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.cscom-unified .csort-bar .csort-order__submit:hover {
  background: #ff7b32;
  color: #10131a;
}

.cscom-unified .csort-bar .csort-order__select:focus-visible,
.cscom-unified .csort-bar .csort-order__submit:focus-visible {
  outline: 2px solid #ff7b32;
  outline-offset: 3px;
  border-color: #ff7b32;
}

.cscom-unified .csort-bar .csort-order[data-catalog-sort-ready="true"] .csort-order__submit {
  display: none;
}

@media (max-width: 650px) {
  .cscom-unified .csort-bar .csort-order {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
  }

  .cscom-unified .csort-bar .csort-order__label {
    flex: 1 0 100%;
  }

  .cscom-unified .csort-bar .csort-order__select {
    flex: 1 1 160px;
    width: 100%;
    min-width: 0;
  }
}

@media (forced-colors: active) {
  .cscom-unified .csort-bar .csort-order__select {
    appearance: auto;
    background-image: none;
    padding-right: 14px;
  }
}
