@media (min-width: 561px) and (max-width: 960px) {
  html[data-invista-mobile-results-preview][data-invista-mobile-results-ready] .invista-mobile-result-summary:is(:has([data-invista-widget="saved-search-launcher"]), :has([data-mobile-result-chips]:not([hidden]):not(:empty))) {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 8px;
  }

  html[data-invista-mobile-results-preview] .invista-mobile-result-summary [data-mobile-result-count] { display: none; }

  .invista-mobile-result-summary [data-mobile-result-chips] { align-self: stretch; }

  .invista-mobile-result-summary [data-invista-widget="saved-search-launcher"] [data-mobile-save-search] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 4px 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #29358d;
  }
}

@media (min-width: 961px) {
  html[data-invista-mobile-results-preview][data-invista-mobile-results-ready] .invista-mobile-result-summary {
    display: block;
    margin: 0 0 12px;
    padding: 6px 0 12px;
    border-bottom: 1px solid #e1e5ed;
  }

  html[data-invista-mobile-results-preview] .invista-mobile-result-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
  }

  html[data-invista-mobile-results-preview] h2[data-mobile-result-count] {
    margin: 0;
    padding: 0;
    border: 0;
    color: #17213e;
    font-size: 23px;
    font-weight: 750;
    line-height: 1.2;
  }

  html[data-invista-mobile-results-preview] h2[data-mobile-result-count]::after {
    content: none;
  }

  html[data-invista-mobile-results-preview] [data-mobile-save-search] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 4px 8px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #29358d;
    font: inherit;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
  }

  html[data-invista-mobile-results-preview] [data-mobile-save-search]:hover {
    background: #e9ecfa;
  }

  html[data-invista-mobile-results-preview] [data-mobile-save-search][aria-pressed="true"] .fa::before {
    content: "\f02e";
  }

  html[data-invista-mobile-results-preview][data-invista-mobile-results-ready] #results > :has(> h4.results) {
    display: none;
  }
}

@media (min-width: 561px) {
  html[data-invista-mobile-results-preview] [data-mobile-result-chips]:not([hidden]):not(:empty) {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
  }

  html[data-invista-mobile-results-preview] .mobile-results-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    min-height: 28px;
    padding: 3px 9px;
    border-radius: 5px;
    background: #e4e7fa;
    color: #29358d;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-decoration: none;
  }

  html[data-invista-mobile-results-preview] .mobile-results-chip:hover {
    background: #d9dff7;
  }

  html[data-invista-mobile-results-preview] :is([data-mobile-save-search], .mobile-results-chip):focus-visible {
    outline: 2px solid #29358d;
    outline-offset: 2px;
  }
}
