.ewm-filter {
  width: 100%;
}

.ewm-filter__layout {
  width: 100%;
}

.ewm-filter__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: flex-end;
}

.ewm-filter__group {
  min-width: 18rem;
  flex: 1 1 18rem;
}

.ewm-filter__group .form-label {
  margin-bottom: .6rem;
  font-weight: 600;
}

.ewm-filter__choices {
  display: grid;
}

.ewm-filter__chips {
  margin-bottom: 2rem;
}

.ewm-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.ewm-filter__results {
  position: relative;
}

.ewm-filter__card {
  overflow: hidden;
}

.ewm-filter__card-title a {
  color: inherit;
  text-decoration: none;
}

.ewm-filter__card-title a:hover {
  text-decoration: underline;
}

.ewm-filter__card-excerpt {
  font-size: 1.4rem;
  line-height: 1.6;
}

.ewm-filter__pagination {
  margin-top: 3rem;
}

.ewm-dropdown {
  position: relative;
  width: 100%;
}

.ewm-dropdown__button {
  width: 100%;
  min-height: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.2rem;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  background: #fff;
  color: #212529;
  text-align: left;
}

.ewm-dropdown__menu {
  position: absolute;
  top: calc(100% + .6rem);
  left: 0;
  z-index: 20;
  width: 100%;
  max-height: 24rem;
  overflow-y: auto;
  display: none;
  padding: .8rem;
  border: 1px solid #dee2e6;
  border-radius: .375rem;
  background: #fff;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, .08);
}

.ewm-dropdown.is-open .ewm-dropdown__menu {
  display: block;
}

.ewm-dropdown__item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .6rem .4rem;
  cursor: pointer;
}

.ewm-dropdown__item input {
  margin: 0;
}

@media (max-width: 767.98px) {
  .ewm-filter__filters {
    display: grid;
    gap: 1.2rem;
  }

  .ewm-filter__group {
    min-width: 0;
    width: 100%;
  }

  .ewm-dropdown__menu {
    position: static;
    margin-top: .6rem;
  }
}

/*
|--------------------------------------------------------------------------
| Loading
|--------------------------------------------------------------------------
*/

.ewm-filter {
  position: relative;
}

.ewm-filter__loading {
  position: absolute;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.ewm-filter__results.is-loading .ewm-filter__loading {
  opacity: 1;
  visibility: visible;
}

.ewm-filter__spinner {
  width: 4rem;
  height: 4rem;
  border: .35rem solid rgba(0, 0, 0, .15);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: ewm-filter-spin .75s linear infinite;
}

@keyframes ewm-filter-spin {
  to {
    transform: rotate(360deg);
  }
}