.wsa-device-control {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.wsa-header-search #sugg {
  display: none !important;
}

/* Suggestions sit above the next section and span the complete search field. */
.hero:has(.wsa-device-control) {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.search-field:has(.wsa-device-control),
.wsa-header-search {
  position: relative;
}

.search-field .wsa-device-control,
.wsa-header-search .wsa-device-control {
  position: static;
}

.wsa-device-control .wsa-device-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.wsa-device-popup {
  position: absolute;
  z-index: 100;
  top: calc(100% + 0.4rem);
  right: 0;
  left: 0;
  overflow-y: auto;
  max-height: min(62vh, 28rem);
  overscroll-behavior: contain;
  padding: 0.35rem;
  color: #17231c;
  background: #fff;
  border: 1px solid #b9cdc0;
  border-radius: 0.75rem;
  box-shadow: 0 0.8rem 2.2rem rgb(16 40 24 / 16%);
  text-align: left;
}

.wsa-device-popup[hidden],
.wsa-device-empty[hidden] {
  display: none !important;
}

.wsa-device-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wsa-device-list .wsa-device-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.22rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 3.5rem;
  margin: 0;
  padding: 0.75rem 0.8rem;
  color: #17231c;
  background: #fff;
  border: 0;
  border-radius: 0.45rem;
  font: inherit;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}

.wsa-device-list .wsa-device-option:hover,
.wsa-device-list .wsa-device-option[aria-selected="true"] {
  color: #123d23;
  background: #e8f8ed;
  box-shadow: inset 3px 0 #00b830;
}

.wsa-device-list .wsa-device-option:focus-visible {
  outline: 2px solid #007f23;
  outline-offset: -2px;
}

.wsa-device-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wsa-device-codes,
.wsa-device-detail {
  display: block;
  color: #4b5d51;
  font-size: 0.875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wsa-device-code-value {
  color: #245b37;
  font-weight: 600;
}

.wsa-device-empty {
  margin: 0;
  padding: 0.9rem 0.8rem;
  color: #4b5d51;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.wsa-device-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .wsa-device-popup {
    max-height: min(58vh, 25rem);
  }

  .wsa-device-list .wsa-device-option {
    padding: 0.7rem;
  }
}
