/* 16.1.142: dropdown de ordenação customizado igual à referência.
   Apenas desktop. A versão mobile e Lista/Grade permanecem inalterados. */
@media (min-width: 981px) {
  body.msi-portal-results-page .msi-smart-sort-1684.msi-sort-enhanced-16142 > label,
  body.msi-portal-results-page .msi-smart-sort-1684.msi-sort-enhanced-16142 .msi-smart-sort-1684__field {
    display: none !important;
  }
  body.msi-portal-results-page .msi-smart-sort-1684.msi-sort-enhanced-16142 {
    display: inline-flex !important;
    position: relative;
    align-items: center;
    margin: 0 !important;
    overflow: visible !important;
  }
  body.msi-portal-results-page .msi-smart-sort-1684 .msi-sort-trigger-16142 {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    flex: 0 0 54px;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #edf2f7 !important;
    box-shadow: none !important;
    color: #17263c !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background .18s ease, transform .18s ease;
  }
  body.msi-portal-results-page .msi-smart-sort-1684 .msi-sort-trigger-16142:hover,
  body.msi-portal-results-page .msi-smart-sort-1684 .msi-sort-trigger-16142[aria-expanded="true"] {
    background: #e8eef5 !important;
  }
  body.msi-portal-results-page .msi-smart-sort-1684 .msi-sort-trigger-16142:focus-visible {
    outline: 2px solid #516d90 !important;
    outline-offset: 3px;
  }
  body.msi-portal-results-page .msi-smart-sort-1684 .msi-sort-trigger-16142 svg {
    width: 24px;
    height: 24px;
    color: #17263c !important;
    stroke: currentColor !important;
    fill: none !important;
    display: block;
    flex: 0 0 auto;
  }
}
/* Portal para evitar que dropdown seja cortado por wrappers da listagem. */
.msi-sort-dropdown-16142 {
  position: fixed !important;
  box-sizing: border-box !important;
  z-index: 2147482000 !important;
  width: 288px;
  max-width: calc(100vw - 24px);
  padding: 16px 16px 13px;
  border: 1px solid #dce5ef;
  border-radius: 22px;
  background: #fff;
  color: #162438;
  box-shadow: 0 18px 34px rgba(18, 43, 76, .15);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.3;
  text-align: left;
}
.msi-sort-dropdown-16142[hidden] { display: none !important; }
.msi-sort-dropdown-16142__title {
  height: 42px;
  display: flex;
  align-items: flex-start;
  padding: 6px 10px 0;
  color: #617084;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.msi-sort-dropdown-16142__item {
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 55px;
  min-height: 55px;
  margin: 0;
  padding: 0 10px;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  box-shadow: none !important;
  color: #162438 !important;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease;
}
.msi-sort-dropdown-16142__item:hover,
.msi-sort-dropdown-16142__item:focus-visible {
  background: #f0f5fa !important;
  outline: 0;
}
.msi-sort-dropdown-16142__item[aria-checked="true"] {
  color: #0063ad !important;
  font-weight: 700;
}
.msi-sort-dropdown-16142__check {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  color: #0063ad;
}
.msi-sort-dropdown-16142__item[aria-checked="false"] .msi-sort-dropdown-16142__check {
  visibility: hidden;
}
@media (max-width: 980px) {
  .msi-smart-sort-1684 .msi-sort-trigger-16142 { display: none !important; }
  .msi-sort-dropdown-16142 { display: none !important; }
}
