.govuk-template {
  background-color: #ffffff;
}

.govuk-grid-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  margin: 0;
  align-items: end;
}

.govuk-grid-row::after {
  display: none;
}

@media (min-width: 40.0625em) {
  .govuk-grid-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.govuk-grid-column-one-third,
.govuk-grid-column-full {
  width: 100%;
  padding: 0;
}

.govuk-grid-column-full {
  grid-column: 1 / -1;
}

.govuk-button-group {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-right: 0;
  column-gap: 15px;
}

.govuk-button-group .govuk-button {
  width: auto;
  min-width: 0;
  margin-right: 0;
  flex: 1 1 0;
}

#location_search {
  margin-bottom: 15px;
}

@media (min-width: 40.0625em) {
  .govuk-button-group {
    flex-wrap: nowrap;
  }

  .govuk-button-group .govuk-button {
    flex: 0 0 auto;
  }

  #location_search {
    flex: 1 1 0;
    margin-bottom: 0;
  }
}

#btn_search,
#btn_auto_locate {
  white-space: nowrap;
}

#btn_auto_locate[hidden] {
  display: none;
}

@keyframes app-wiggle {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.is-wiggling {
  animation: app-wiggle 0.35s ease-in-out;
}

.app-btn-icon {
  display: inline-block;
  width: 0.842em;
  height: 0.842em;
  vertical-align: -0.1em;
  margin-left: 2px;
}

.govuk-label sub {
  line-height: 0;
}

.govuk-form-group:has(.govuk-input--error, .govuk-select--error) .govuk-label {
  color: #d4351c;
  font-weight: 700;
}

.govuk-input {
  color: #0b0c0c;
  background-color: #ffffff;
}

.govuk-checkboxes__label::before {
  background-color: #ffffff;
}

#date::-webkit-date-and-time-value {
  text-align: left;
}

.govuk-input:disabled,
.govuk-input:disabled + .govuk-input__suffix {
  opacity: 0.4;
  background-color: #f3f2f1;
  cursor: not-allowed;
}

.govuk-details__text {
  background-color: #f3f2f1;
}

.govuk-select,
#timezone {
  width: 100%;
  min-width: 0;
  background-color: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b0c0c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 34px;
}

.autocomplete__wrapper {
  position: relative;
}

.autocomplete__menu {
  background-color: #ffffff;
  border: 2px solid #0b0c0c;
  border-top: 0;
  box-sizing: border-box;
  color: #0b0c0c;
  left: 0;
  list-style: none;
  margin: 0;
  max-height: 342px;
  overflow-x: hidden;
  padding: 0;
  position: absolute;
  top: 100%;
  width: 100%;
  z-index: 100;
}

.autocomplete__option {
  background-color: #ffffff;
  border-bottom: 1px solid #b1b4b6;
  cursor: pointer;
  display: block;
  font-family: GDS Transport, arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
  line-height: 1.25;
  padding: 5px;
  position: relative;
}

@media (min-width: 40.0625em) {
  .autocomplete__option {
    font-size: 1.1875rem;
    line-height: 1.3157894737;
  }
}

.autocomplete__option:last-child {
  border-bottom-width: 0;
}

.autocomplete__option--focused,
.autocomplete__option:hover {
  background-color: #1d70b8;
  border-color: #1d70b8;
  color: #ffffff;
  outline: none;
}

.autocomplete__option--no-results {
  background-color: #fafafa;
  color: #505a5f;
  cursor: not-allowed;
}

#map_canvas {
  position: relative;
  background-color: #f3f2f1;
  border: 2px solid #0b0c0c;
  box-sizing: border-box;
  height: 280px;
  width: 100%;
}

#map_canvas:focus-within {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
}

#map_canvas:focus-within::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px #0b0c0c;
  pointer-events: none;
  z-index: 1000002;
}

#map_canvas .gm-style-cc {
  display: none !important;
}

#map_canvas.is-disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  cursor: not-allowed;
}

#results-section {
  scroll-margin-top: 20px;
}

#results-section:has(#results-body[hidden]) > .govuk-section-break,
#results-section:has(#results-body[hidden]) .govuk-heading-l,
#results-section:has(#results-body[hidden]) #results-meta {
  display: none;
}

.govuk-error-summary__list {
  color: #d4351c;
}

.govuk-inset-text {
  margin-top: 0;
  padding: 2px 0 4px 15px;
  font-weight: 700;
}

#csv-error .govuk-inset-text {
  margin-top: 10px;
  margin-bottom: 0;
}

.app-nowrap,
#tbody-results td.govuk-table__cell {
  white-space: nowrap;
}

.app-subline {
  margin-top: 3px;
}

.app-az-icon {
  display: inline-block;
  width: 0.684em;
  height: 0.684em;
  vertical-align: -0.025em;
  margin-right: 1px;
}

.app-day-marker {
  display: inline-block;
  width: 0.684em;
  height: 0.684em;
  vertical-align: 0;
  margin-right: 1px;
}

.az-desktop {
  display: none;
}

@media (min-width: 40.0625em) {
  .az-desktop {
    display: table-cell;
  }
}

.app-contact-panel {
  border-top: 2px solid #1d70b8;
}
