/* -----------------------------------------------------------------------------
Map: Well records
Registre de puits

/page/map-well-records
/fr/page/registre-de-puits
----------------------------------------------------------------------------- */

.widget {
  background-color: #f2f2f2;
  border-left: .25rem solid #367a76;
  border-radius: 0;
  font-size: 1rem;
  margin: 0.5rem 0 2.5rem;
  padding: 1.5rem;
}

label.element-invisible {
  display: none;
}

#map_canvas button {
  min-width: 0;
}

#currentMapExtent {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: inline;
  position: absolute;
  width: 18rem;
  height: 2rem;
  margin-top: 4px;
  z-index: 2;
  opacity: 0;
}

#currentMapExtent + label {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  font-size: 1rem;
  hyphens: auto;
  display: inline-block;
  line-height: inherit;
  margin: .25rem 0;
  padding: 2px 3rem;
  position: relative;
}

#currentMapExtent + label::before {
  content: "";
  background-color: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  position: absolute;
  top: 1px;
  left: 1px;
  width: 28px;
  height: 28px;
  -webkit-transition: border .1s ease-in-out;
  transition: border .1s ease-in-out;
  display: block
}

#currentMapExtent + label::after {
  content: "";
  background-image: url("https://www.ontario.ca/themes/ontario_2021/assets/icons/ontario-checkbox-background-no-width.svg");
  background-repeat: no-repeat;
  height: 30px;
  width: 30px;
  position: absolute;
  top: 1px;
  left: 1px;
  right: 0;
  bottom: 0;
  opacity: 0;
  display: block
}

#currentMapExtent:focus + label::before {
  box-shadow: 0 0 0 4px #009adb;
  outline: 4px solid transparent;
  -webkit-transition: all .1s ease-in-out;
  transition: all .1s ease-in-out
}

#currentMapExtent:checked + label::before {
  background-color: #1a1a1a;
}

#currentMapExtent:checked + label::after {
  opacity: 1;
}

#map_query {
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  box-sizing: border-box;
  color: #1a1a1a;
  display: block;
  font-size: 1rem;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  margin: 0 0 2.5rem;
  width: 100%;
  padding: .625rem 1rem;
  -webkit-transition: box-shadow .1s ease-in-out;
  transition: box-shadow .1s ease-in-out;
}

#map_query:active, #map_query:focus {
  box-shadow: 0 0 0 4px #009adb;
  outline: 4px solid transparent;
  -webkit-transition: box-shadow .1s ease-in-out;
  transition: box-shadow .1s ease-in-out;
}

@media only screen and (min-width: 73em) {
  #currentMapExtent + label {
    width: calc(100% - 3.6rem);
  }
}

/* -----------------------------------------------------------------------------
  LEGACY MOE MAP SUBMIT BUTTON
----------------------------------------------------------------------------- */
input[type=submit] {
  background-color: #06c;
  color: #fff;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: none;
  display: inline-block;
  font-size: 1.125rem;
  font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-weight: 600;
  line-height: 1.5555555556;
  margin: 0 calc(1rem + 0.75rem) 1.5rem 0;
  min-width: 10rem;
  padding: 0.625rem 1.5rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #00478f;
  color: #fff;
}

input[type=submit]:focus {
  background-color: #00478f;
  color: #fff;
  box-shadow: 0 0 0 4px #009adb;
  outline: 4px solid transparent;
}

@media screen and (max-width: 39.9375em) {
  input[type=submit] {
    display: block;
    width: 100%;
  }
}
