/* "Sorteren op" in the display bar of the listing archives (partials/aanbod-sortering.php). */

/* Own class: the theme treats every .display__button as a view switch. */
.display__sort {
  align-items: center;
  background-color: transparent;
  color: #2e2015;
  cursor: pointer;
  display: flex;
  fill: #2e2015;
  height: 46px;
  margin: 0;
  padding-left: 21px;
  padding-right: 24px;
  transition: all 0.3s ease-out;
}

.display__sort:hover {
  background-color: #ebede8;
}

.display__sort .display__icon {
  margin-right: 10px;
}

.display__sort .display__icon {
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.display__select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232e2015' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right center;
  background-size: 10px 6px;
  border: 0;
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  height: 46px;
  line-height: 1;
  padding: 0 18px 0 0;
}

.display__select:focus {
  outline: none;
}

.display__sort:focus-within {
  outline: 2px solid #62b54b;
  outline-offset: -2px;
}

/* Desktop: last item of the bar, right of "Kaart". */
.display.no-small .display__item--sort {
  margin-left: 10px;
}

/* Mobile: a full-width row under Raster / Kaart. */
.display.no-big .display__item--sort {
  clear: both;
  float: none;
  margin: 10px 0 0;
  width: 100%;
}

.display.no-big .display__sort {
  background-color: #ebede8;
  width: 100%;
}

.display.no-big .display__select {
  flex: 1 1 auto;
  width: 100%;
}
