.xsort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
  padding: 0 10px;
  color: #333;
  font-size: 15px;
}

.xsort .xsort-label {
  white-space: nowrap;
}

.xsort ul {
  display: flex;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid #dfe2e1;
  border-radius: 6px;
  background: #fff;
}

.xsort li {
  margin: 0;
  padding: 0;
}

.xsort li + li {
  border-left: 1px solid #dfe2e1;
}

.xsort a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  color: #273031;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, background-color 150ms ease;
}

.xsort a:hover,
.xsort a:focus-visible {
  background: #f0f8f8;
  color: #087c83;
  text-decoration: none !important;
}

.xsort a:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(1, 173, 185, 0.35);
  outline-offset: -3px;
}

.xsort li.active a,
.xsort a[aria-current="page"] {
  background: #e8f5f5;
  color: #076f75;
  font-weight: 700;
}

@media (max-width: 600px) {
  .xsort {
    justify-content: flex-start;
    gap: 7px;
    padding: 0 10px;
    font-size: 14px;
  }

  .xsort a {
    min-height: 44px;
    padding: 8px 10px;
  }
}

@media (max-width: 380px) {
  .xsort {
    align-items: flex-start;
    flex-direction: column;
  }
}
