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

.govuk-template__body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.app-canvas {
  flex: 1;
  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-two-thirds,
.govuk-grid-column-full {
  width: 100%;
  padding: 0;
}

.govuk-grid-column-two-thirds {
  grid-column: span 2;
}

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

.govuk-button {
  width: auto;
  min-width: calc(50% - 7.5px);
}

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

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

#location_search {
  margin-bottom: 15px;
}

@media (min-width: 40.0625em) {
  .govuk-button {
    min-width: 0;
  }

  .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,
#link-back {
  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;
}

sup {
  font-size: 0.78em;
  line-height: 0;
  vertical-align: 0.2em;
}

.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 {
  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;
}

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

.govuk-warning-text {
  padding: 0;
}

.govuk-warning-text__icon {
  min-width: 31px;
  min-height: 31px;
  margin-top: -5px;
  font-size: 25px;
  line-height: 25px;
}

@media (min-width: 40.0625em) {
  .govuk-warning-text__icon {
    margin-top: -3px;
  }
}

.govuk-warning-text__text {
  padding-left: 41px;
}

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

.is-measuring .app-wrap {
  font-size: 0;
}

code {
  font-family: inherit;
  padding: 0 5px;
  background-color: #f3f2f1;
}

.govuk-table__row:has(+ .app-unc-row) > * {
  border-bottom: 0;
  padding-bottom: 3px;
}

.app-unc-row > * {
  padding-top: 0;
}

.app-sub-val {
  margin-top: 3px;
}

.govuk-table__row:is(.is-prev-day, .is-next-day, .is-active, .is-uncertain) > td:first-of-type {
  position: relative;
}

.govuk-table__row:is(.is-prev-day, .is-next-day, .is-active, .is-uncertain) > td:first-of-type::before {
  content: "";
  position: absolute;
  left: -0.9em;
  top: 10px;
  height: 1.25em;
  width: 0.684em;
  background: center / 0.684em 0.684em no-repeat;
}

.govuk-table__row.is-prev-day > td:first-of-type::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4351c' d='M6 10.75L0.5 1.25h11z'/%3E%3C/svg%3E");
}

.govuk-table__row.is-next-day > td:first-of-type::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4351c' d='M6 1.25l5.5 9.5H0.5z'/%3E%3C/svg%3E");
}

.govuk-table__row:is(.is-active, .is-uncertain) > td:first-of-type::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='5.08' fill='%23fdcb58'/%3E%3C/svg%3E");
}

@media (min-width: 40.0625em) {
  .govuk-table__row:is(.is-prev-day, .is-next-day, .is-active, .is-uncertain) > td:first-of-type::before {
    height: 1.3157894737em;
  }
}

@keyframes app-pulse {
  0%, 55%, 100% { opacity: 1; }
  78% { opacity: 0.15; }
}

.govuk-table__row.is-uncertain > td:first-of-type::before {
  animation: app-pulse 2.2s ease-in-out infinite;
}

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

.az-desktop {
  display: none;
}

.app-az-sub {
  vertical-align: bottom;
}

.govuk-table__row > :has(+ .az-desktop) {
  padding-right: 0;
}

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

  .govuk-table__row > :has(+ .az-desktop) {
    padding-right: 20px;
  }
}

.govuk-link[download]:not(:hover):not(:active):not(:focus) {
  color: #4c2c92;
}

.govuk-table__head th {
  box-sizing: border-box;
}

.app-table-details,
.app-table-details[open] > .govuk-details__summary {
  margin-bottom: 0;
}

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