/*
 * STEK-checker
 *
 * Rules from the FE delivery (stek-checker, 2026-09-16) that the theme's
 * main.css does not have yet. Copied verbatim from the delivered main.css, in
 * the same order. Loaded after main.css, only on the STEK-checker template and
 * company URLs, so the shared main.css stays untouched.
 *
 * When a newer full main.css from the FE team replaces the theme's copy, these
 * rules will be in it and this file can be deleted.
 */

.rounded1 {
  border-radius: 24px !important;
}

.is-hidden {
  display: none;
}

.search-wrapper.alt .search {
  padding-left: 8px;
}
.search-wrapper.alt .search label {
  left: 8px;
}

.search-result {
  padding-top: 8px;
  width: 100%;
  max-height: 100%;
  height: 465px;
}
.search-result .result-value {
  font-weight: 500;
  font-size: 0.75rem;
  color: #5C7F7F;
  margin-bottom: 24px;
}
.search-result .inner-wrapper {
  width: 100%;
  height: calc(100% - 41px);
  overflow-y: auto;
  padding: 0 16px;
  margin: 0 -16px;
}

@media (max-width: 767px) {
  .search-wrapper .btn {
    max-width: 60px;
  }
  .search-result .btn {
    width: auto !important;
  }
  .search-result .result-list {
    margin-bottom: 24px;
  }
  .form1 .btn:has(.icon) {
    padding: 8px 20px;
  }
}

.radio1.alt2 {
  margin: 0;
  padding: 0 12px 0;
  display: inline-block;
}

@media (max-width: 767px) {
  .unstyled-list li:not(:has(a)) {
    display: block;
    width: 100%;
  }
  .unstyled-list li .link1::after,
  .unstyled-list li .link1 span::after {
    width: 100%;
  }
}

.result-list {
  padding-left: 0;
  list-style: none;
}
.result-list li {
  padding: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #5C7F7F;
  border-radius: 8px;
  margin-bottom: 4px;
  transition-duration: 0.2s;
  outline: 1px solid transparent;
  border-left: 3px solid transparent;
  box-shadow: none;
}
.result-list li:hover {
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 2px 16px 0 rgba(0, 0, 0, 0.15);
  outline-color: #DDE2ED;
  border-color: var(--theme-color);
}
.result-list li:hover .title {
  color: var(--theme-color);
}
.result-list li:hover .title .icon {
  margin-left: 0;
  visibility: visible;
  opacity: 1;
}
.result-list li:last-child {
  margin-bottom: 0;
}
.result-list li p {
  color: #191E2A;
  font-size: 1rem;
  font-weight: 400;
}
.result-list li .title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #191E2A;
  margin-bottom: 4px;
  transition-duration: 0.2s;
}
.result-list li .title .icon {
  margin-left: -22px;
  margin-right: 6px;
  opacity: 0;
  display: inline-block;
  transition-duration: 0.2s;
  visibility: hidden;
}
.result-list li .title .icon svg path {
  fill: currentColor;
}
.result-list li .title .icon2 {
  display: none;
}

@media (max-width: 767px) {
  .result-list li {
    border-left: none;
    border-bottom: 1px solid #DDE2ED;
    border-radius: 0;
    padding: 24px 4px;
    outline: none;
    margin-bottom: 0;
  }
  .result-list li:hover {
    box-shadow: none;
    outline-color: #DDE2ED;
    border-color: #DDE2ED;
  }
  .result-list li:hover .title {
    color: #191E2A;
  }
  .result-list li:hover .title .icon {
    margin-left: 0;
    visibility: visible;
    opacity: 1;
  }
  .result-list li .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .result-list li .title .icon {
    display: none;
  }
  .result-list li .title .icon2 {
    display: inline-block;
  }
}

@media (max-width: 767px) {
  .box1.alt2:has(.search-result) {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
  }
}

.cmodal1 .cmodal-content .inner-wrapper .map1 {
  margin-bottom: 24px;
}
.cmodal1 .cmodal-content .inner-wrapper address {
  font-weight: 600;
  margin-bottom: 24px;
}

/*
 * Additions for the dynamic checker (not in the FE delivery): the Mapbox map
 * takes the size the delivered map iframe had, and the map shows a message
 * when it cannot load.
 */

.stek-checker-map {
  position: relative;
  width: 100%;
  height: 634px;
}

.stek-checker-map-message {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  background-color: #F0F2F7;
}

[data-stek-checker-modal-content][aria-busy="true"] {
  opacity: 0.5;
  transition: opacity 0.2s;
}

.result-list li {
  cursor: pointer;
}

.stek-checker .search {
  cursor: text;
}

/*
 * Search suggestions (stek-checker-autocomplete.js). Not in the FE delivery;
 * styled after the design's dropdown1 list.
 */

.stek-checker .search-wrapper {
  position: relative;
}

.stek-checker-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background-color: #fff;
  border: 1px solid #DDE2ED;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stek-checker-suggestions li {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: #191E2A;
  cursor: pointer;
}

.stek-checker-suggestions li:hover,
.stek-checker-suggestions li.is-active {
  background-color: #F0F4FA;
  color: var(--theme-color);
}

/*
 * Map tooltip on hovering a pin (stek-checker-map.js), per the design: blue
 * panel, white centred text - name, "city, postcode", street.
 */

.stek-checker-tooltip .mapboxgl-popup-content {
  padding: 12px 20px;
  border-radius: 6px;
  background-color: var(--theme-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  color: #fff;
  text-align: center;
  font-family: var(--bs-body-font-family);
}

.stek-checker-tooltip .mapboxgl-popup-tip {
  border-top-color: var(--theme-color);
}

.stek-checker-tooltip p {
  margin: 0;
  color: #fff;
  line-height: 1.4;
}

.stek-checker-tooltip .stek-checker-tooltip-title {
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 600;
}

.stek-checker-tooltip .stek-checker-tooltip-place {
  font-size: 0.875rem;
}

.stek-checker-tooltip .stek-checker-tooltip-street {
  font-size: 0.75rem;
}
