/* Shared controls, after the legacy theme. Keep widget inputs independent
   from full-size form fields; Select2 positions its own dropdown. */
.select2-container { max-width: 100%; }
.offer-form-page .select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--multiple {
  height: auto;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid #80998e;
  border-radius: 10px;
  background: #fff;
  color: #18352e;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  white-space: normal;
  list-style: none;
}
.select2-container .select2-selection--multiple .select2-search--inline {
  flex: 1 1 90px;
  float: none;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
.offer-form-page .ad-posts-form .single-form .select2-search--inline .select2-search__field,
.select2-container--default .select2-search--inline .select2-search__field {
  width: 100% !important; /* Select2 injects a pixel width while typing. */
  max-width: 100%;
  height: 28px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #18352e;
  font: inherit;
  font-size: 16px;
  line-height: 28px;
  outline: 0;
  box-shadow: none;
}
.offer-form-page .select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: flex;
  align-items: center;
  gap: 5px;
  float: none;
  max-width: 100%;
  min-width: 0;
  min-height: 28px;
  margin: 0;
  padding: 2px 9px 2px 4px;
  border: 1px solid #a4c4b5;
  border-radius: 6px;
  background: #def4e8;
  color: #18352e;
  font-size: 14px;
  line-height: 22px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  flex: 0 0 28px;
  margin: 0;
  color: #096847;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}
.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default.select2-container--open .select2-selection {
  border-color: #096847;
  box-shadow: 0 0 0 3px #def4e8;
}
.select2-dropdown {
  overflow: hidden;
  border: 1px solid #80998e;
  border-radius: 10px;
  background: #fff;
  color: #18352e;
  box-shadow: 0 8px 20px rgba(24, 53, 46, .12);
}
.select2-container--default .select2-results__option {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
  background: #def4e8;
  color: #18352e;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: #096847;
  color: #fff;
}
.select2-container--default .select2-results__option[aria-disabled="true"],
.select2-container--default.select2-container--disabled .select2-selection--multiple {
  background: #f1f6f3;
  color: #557066;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #80998e;
  border-radius: 6px;
  color: #18352e;
  font-size: 16px;
}
.offer-form-page .ad-posts-form .single-form .form-text {
  color: #557066 !important; /* Bootstrap text-muted sets an important color. */
}
/* Current refinements contain spans with their own legacy foreground colors. */
.catalogue-listing .ais-CurrentRefinements-item .ais-CurrentRefinements-label,
.catalogue-listing .ais-CurrentRefinements-item .ais-CurrentRefinements-categoryLabel {
  color: #18352e;
}
.catalogue-listing .ais-CurrentRefinements-item .ais-CurrentRefinements-delete {
  min-width: 28px;
  min-height: 28px;
  margin-left: 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #096847;
  line-height: 28px;
}
.catalogue-listing .ais-CurrentRefinements-delete:hover,
.catalogue-listing .ais-CurrentRefinements-delete:focus-visible {
  background: #096847;
  color: #fff;
}
.catalogue-listing .ais-Pagination-item--selected .ais-Pagination-link,
.catalogue-listing .ais-Pagination-item--selected .ais-Pagination-link:hover,
.catalogue-listing .ais-Pagination-item--selected .ais-Pagination-link:focus-visible {
  background: #096847;
  color: #fff;
}
.catalogue-listing .ais-SearchBox-input::placeholder,
.select2-container .select2-search__field::placeholder {
  color: #557066;
  opacity: 1;
}
.catalogue-listing .ais-RefinementList-label { min-height: 28px; }
.catalogue-listing .ais-SearchBox-input,
.catalogue-listing .ais-SortBy-select { border-color: #80998e; }
.select2-container .select2-selection:focus-visible,
.select2-search--dropdown .select2-search__field:focus-visible,
.catalogue-listing button:focus-visible,
.catalogue-listing select:focus-visible,
.catalogue-listing input:focus-visible {
  outline: 2px solid #096847;
  outline-offset: 3px;
}

.offer-form-page .select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--single {
  min-height: 48px;
  border: 1px solid #80998e;
  border-radius: 10px;
  background: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 14px;
  color: #18352e;
  line-height: 46px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.select2-container--default .select2-selection__placeholder { color: #557066; }
