[data-location-autocomplete] {
  position: relative;
}

[data-location-list] {
  position: absolute;
  z-index: 1050;
  top: calc(100% + 0.25rem);
  right: 0;
  left: 0;
  max-height: 24rem;
  overflow-y: auto;
  padding: 0.25rem;
  border: 1px solid #adb5bd;
  border-radius: 0.375rem;
  background: #fff;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
}

.location-option {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: #212529;
  text-align: left;
  cursor: pointer;
}

.location-option small {
  color: #495057;
}

.location-option:hover,
.location-option:focus-visible,
.location-option.is-active {
  outline: 0;
  background: #e9f2ff;
}

[data-location-status] {
  min-height: 1.5em;
}

.bp-where {
  display: grid;
  gap: 0.75rem;
  align-items: start;
}

@media (min-width: 768px) {
  .bp-where {
    grid-template-columns: auto auto 1fr;
  }

  .bp-where .bp-or {
    padding-top: 2.4rem;
  }

  .bp-where #bp-locate {
    margin-top: 1.9rem;
  }
}

.bp-input-wrap {
  position: relative;
}

.bp-submit {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  --bs-btn-bg: #20458f;
  --bs-btn-border-color: #20458f;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #183570;
  --bs-btn-hover-border-color: #183570;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #122957;
  --bs-btn-active-border-color: #122957;
  --bs-btn-active-color: #fff;
  background-color: #20458f;
  border-color: #20458f;
  color: #fff;
}

.bp-submit:hover,
.bp-submit:focus-visible {
  background-color: #183570;
  border-color: #183570;
  color: #fff;
}

.bp-submit:focus-visible {
  outline: 3px solid #f9b200;
  outline-offset: 2px;
}

.bp-search fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.bp-search legend {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.bp-search .form-field {
  margin-bottom: 0.375rem;
}

.bp-status {
  min-height: 1.5em;
}

.bp-result {
  scroll-margin-top: 1rem;
}

.bp-result-active {
  outline: 3px solid #20458f;
  outline-offset: 2px;
}

.bp-statut-ouvert {
  color: #146c43;
}

.bp-statut-ferme {
  color: #b02a37;
}

.bp-statut-inconnu {
  color: #495057;
}

.bp-result p,
.bp-search p {
  margin-inline: 0;
}

.bp-result address {
  font-style: normal;
}

.bp-result details summary {
  cursor: pointer;
  color: #20458f;
  text-decoration: underline;
}

.bp-result details[open] summary {
  margin-bottom: 0.5rem;
}

.bp-hours th[scope="row"] {
  font-weight: 600;
}

.bp-map {
  height: 22rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
}

@media (min-width: 992px) {
  .bp-map-wrap {
    position: sticky;
    top: 1rem;
  }

  .bp-map {
    height: 36rem;
  }
}

.bp-map-page {
  height: 24rem;
}

@media (min-width: 992px) {
  .bp-map-page {
    height: 28rem;
  }
}

nav.bp-fil {
  background: transparent;
}

.bp-fil .breadcrumb {
  margin: 1rem 0 0;
  font-size: 0.875rem;
}

.bp-fil .breadcrumb-link {
  color: #20458f;
  text-decoration: underline;
}

.bp-fil .breadcrumb-item {
  align-items: center;
}

.bp-fil .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding: 0 0.5rem;
  color: #495057;
}

.bp-fil .breadcrumb-item.active {
  color: #495057;
  background: transparent;
  font-weight: 400;
}

.table-responsive > .bp-hours,
.table-responsive > .bp-liste {
  overflow: visible;
}

.table-responsive[tabindex="0"]:focus-visible {
  outline: 3px solid #20458f;
  outline-offset: 2px;
}

.bp-faits,
.bp-voisines {
  padding-left: 1.25rem;
}

.bp-voisines li {
  margin-bottom: 0.25rem;
}

.bp-liste th[scope="row"] {
  font-weight: 600;
}

.bp-arrondissements {
  margin: 1.5rem 0;
  padding: 0;
  border: 0;
}

.bp-arrondissements legend {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.bp-arrondissements-choix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.bp-arrondissements-choix label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  margin: 0;
  cursor: pointer;
}

.bp-arrondissements-choix input:focus-visible {
  outline: 3px solid #20458f;
  outline-offset: 3px;
}

.bp-liste tr[hidden] {
  display: none;
}
