.ol-control button {
  font-size: 1.5rem;
  font-family: Roboto !important;
}

.ol-full-screen {
  right: 0.5rem;
  bottom: 3.1rem;
  top: unset;
}

.ssdi-link {
  font-weight: bold;
  border-radius: 30px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #1a65a6;
  color: #fff;
  font-size: 20px;
  text-decoration: none !important;
}

.custom-control {
  position: absolute;
  z-index: 999;
  background-color: #fff;
  border-radius: 2px;
  border: 1px solid #ccc;
  padding: 6px;
}

.custom-control .govuk-checkboxes__item {
  align-items: center;
  height: 36px;
}

.custom-control .govuk-checkboxes__item label {
  flex-grow: 1;
}

.custom-control:hover {
  border: 1px solid #666;
}

.custom-control>.title,
#feature-info .title {
  font-weight: bold;
  color: #666;
  cursor: pointer;
  font-size: 18px;
  display: flex;
}

.custom-control>.title:hover {
  color: #333;
}

.custom-control>.content,
.custom-control>.title>span.closer {
  display: none;
}

.custom-control.active {
  z-index: 9999;
  box-shadow: 0px 5px 15px -3px rgba(0, 0, 0, 0.3);
}

.custom-control.active>.content {
  display: block;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 5px;
}

.custom-control.active>.title>span.closer {
  display: inline;
  text-align: end;
  flex-grow: 1;
}

#basemap-control.active .content {
  padding-bottom: 10px;
}

.custom-control .govuk-checkboxes__label,
.custom-control .govuk-radios__label {
  white-space: nowrap;
}

#main-map,
#full-width-map {
  width: 100%;
  height: 70vh;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
  font-family: Roboto !important;
  position: relative;
}

#legend {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

#legend .legend-item {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px;
}

#fullscreen {
  background-color: #fff !important;
}

#feature-info {
  bottom: 2.1rem;
  left: 0.5rem;
  position: absolute;
  z-index: 999;
  background-color: #fff;
  border-radius: 2px;
  border: 1px solid #ccc;
  padding: 10px;
  width: 360px;
  box-shadow: 0px -5px 15px -3px rgba(0, 0, 0, 0.3);
}

#feature-info .title {
  cursor: default !important;
}

#feature-info .header {
  width: 100%;
  display: flex;
  flex-direction: row;
  margin-bottom: 5px;
}

#feature-info .header .title {
  flex-grow: 1;
}

#feature-info .header .close {
  margin-top: -5px;
}

#feature-info .footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  border-top: 1px solid #ccc;
  padding-top: 5px;
  margin-top: 5px;
}

#feature-info .footer .feature-tools {
  flex-grow: 1;
}

#feature-info .footer .feature-tools a {
  border-left: 1px solid #999;
  padding-left: 5px;
  padding-right: 5px;
}

#feature-info .footer .feature-tools a:first-of-type {
  border-left: none;
  padding-right: 5px;
  padding-left: 0px;
}

#feature-info .content {
  padding-top: 5px;
  padding-bottom: 5px;
}

#feature-info .content .attributes p {
  margin: 0px !important;
}

#feature-info .pager a,
#feature-info .header a {
  text-decoration: none !important;
}

#feature-info .pager a:visited,
#feature-info .header a:visited {
  color: #1a65a6 !important;
}

#map-search-input {
  position: relative;
}

#site-search-result-list {
  position: absolute;
  background-color: #fff;
  border: 2px solid black;
  z-index: 99999;
  padding-top: 15px;
  padding-left: 10px;
  padding-right: 30px;
  box-shadow: 0px -5px 15px -3px rgba(0, 0, 0, 0.3);
  max-height: 50vh;
  overflow-y: auto;
}


@media (min-width:800px) {
  #layer-control-1 {
    top: 0.5rem;
    left: 3.1rem;
  }

  #layer-control-2 {
    top: 0.5rem;
    left: 16rem;
  }

  #basemap-control {
    top: 0.5rem;
    right: 0.5rem;
  }
}

@media (max-width:799px) {
  #layer-control-1 {
    top: 0.5rem;
    right: 0.5rem;
  }

  #layer-control-2 {
    top: 3.1rem;
    right: 0.5rem;
  }

  #basemap-control {
    top: 5.7rem;
    right: 0.5rem;
  }

}