.mad-filter {
  --mad-filter-border: #cbd6dd;
  --mad-filter-focus: var(--pli-blue, #075f8f);
  --mad-filter-label: var(--pli-deep, #123e56);
  --mad-filter-muted: #66727a;
  margin-bottom: 1rem;
  font-family: inherit;
}

.mad-filter--composite {
  display: grid;
  grid-template-columns: auto minmax(12rem, 18rem) auto minmax(14rem, 1fr) auto;
  align-items: center;
  gap: .55rem;
}

.mad-filter--fields {
  display: grid;
  grid-template-columns: minmax(14rem, 1.25fr) minmax(12rem, 1fr) minmax(12rem, 1fr);
  align-items: end;
  gap: .55rem;
}

.mad-filter--single {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem);
  align-items: end;
  gap: .55rem;
}

.mad-filter .form-field {
  min-width: 0;
  margin: 0;
}

.mad-filter label,
.mad-filter .form-field label {
  display: block;
  margin: 0 0 .35rem;
  color: var(--mad-filter-label);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
}

.mad-filter--composite > label {
  margin: 0;
}

.mad-filter input:not([type="checkbox"]):not([type="radio"]),
.mad-filter select {
  width: 100%;
  min-height: 2.25rem;
  box-sizing: border-box;
  padding: .45rem .6rem;
  border: 1px solid var(--mad-filter-border);
  border-radius: .45rem;
  color: var(--pli-deep, #123e56);
  background: #fff;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.2;
}

.mad-filter input::placeholder {
  color: #77858e;
  opacity: 1;
}

.mad-filter input:not([type="checkbox"]):not([type="radio"]):focus,
.mad-filter select:focus {
  border-color: var(--mad-filter-focus);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(7, 95, 143, .15);
}

.mad-filter input:disabled,
.mad-filter select:disabled {
  color: #6f7c84;
  background: #eef2f4;
  cursor: not-allowed;
}

.mad-filter > span {
  color: var(--mad-filter-muted);
  font-size: .72rem;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .mad-filter--composite,
  .mad-filter--fields,
  .mad-filter--single {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .mad-filter--composite > label {
    margin-bottom: -.2rem;
  }

  .mad-filter > span {
    white-space: normal;
  }
}
