/* HuntBee search results: compact extension-focused list. */
.hb-theme .hb-search-page .hb-search-results-list {
  display: grid;
  gap: 14px;
}

.hb-theme .hb-search-page .hb-search-result {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) 158px;
  align-items: start;
  gap: 20px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e2ded4;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(17, 24, 32, .035);
}

.hb-theme .hb-search-page .hb-search-result-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 116px;
  overflow: hidden;
  border: 1px solid #efebe3;
  border-radius: 8px;
  background: #faf9f6;
}

.hb-theme .hb-search-page .hb-search-result-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hb-theme .hb-search-page .hb-search-result-main {
  min-width: 0;
}

.hb-theme .hb-search-page .hb-search-result-main h3 {
  margin: 5px 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.hb-theme .hb-search-page .hb-search-result-main h3 a {
  color: #111820;
}

.hb-theme .hb-search-page .hb-search-result-main h3 a:hover {
  color: #0b7285;
}

.hb-theme .hb-search-page .hb-search-result-description {
  margin: 0 0 12px;
  color: #5d6974;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.hb-theme .hb-search-page .hb-search-result-compatibility {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}

.hb-theme .hb-search-page .hb-search-result-meta-label {
  margin-right: 2px;
  color: #667580;
  font-size: 12px;
  font-weight: 700;
}

.hb-theme .hb-search-page .hb-search-version {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid #dbe9eb;
  border-radius: 5px;
  background: #f0f8f9;
  color: #0b7285;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.hb-theme .hb-search-page .hb-search-compat-details {
  position: relative;
  display: inline-block;
}

.hb-theme .hb-search-page .hb-search-compat-details summary {
  cursor: pointer;
  list-style: none;
}

.hb-theme .hb-search-page .hb-search-compat-details summary::-webkit-details-marker {
  display: none;
}

.hb-theme .hb-search-page .hb-search-compat-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: max-content;
  max-width: min(320px, 75vw);
  padding: 10px;
  border: 1px solid #dbe9eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 32, .12);
}

.hb-theme .hb-search-page .hb-search-result-main .hb-product-rating {
  margin-top: 10px;
}

.hb-theme .hb-search-page .hb-search-result-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 13px;
  min-width: 0;
  height: 100%;
}

.hb-theme .hb-search-page .hb-search-result-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.hb-theme .hb-search-page .hb-search-result-price strong {
  color: #111820;
  font-size: 19px;
  font-weight: 800;
}

.hb-theme .hb-search-page .hb-search-result-price span {
  color: #7a858e;
  font-size: 12px;
  text-decoration: line-through;
}

.hb-theme .hb-search-page .hb-search-result-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  margin-top: auto;
  padding: 8px 12px;
  border: 1px solid #ead9ae;
  border-radius: 7px;
  background: #fffaf0;
  color: #202d3a;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hb-theme .hb-search-page .hb-search-result-link:hover,
.hb-theme .hb-search-page .hb-search-result-link:focus {
  border-color: #dfb343;
  background: #fff3d5;
  color: #111820;
  text-decoration: none;
}

@media (max-width: 991px) {
  .hb-theme .hb-search-page .hb-search-result {
    grid-template-columns: 132px minmax(0, 1fr) 120px;
    gap: 14px;
    padding: 15px;
  }

  .hb-theme .hb-search-page .hb-search-result-image {
    height: 98px;
  }

  .hb-theme .hb-search-page .hb-search-result-main h3 {
    font-size: 16px;
  }
}

@media (max-width: 767px) {
  .hb-theme .hb-search-page .hb-search-result {
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 12px;
  }

  .hb-theme .hb-search-page .hb-search-result-image {
    height: 85px;
  }

  .hb-theme .hb-search-page .hb-search-result-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    height: auto;
    padding-top: 12px;
    border-top: 1px solid #eeeae2;
  }

  .hb-theme .hb-search-page .hb-search-result-actions .hb-wishlist-button {
    margin-right: auto;
  }

  .hb-theme .hb-search-page .hb-search-result-price {
    align-items: flex-start;
    text-align: left;
  }

  .hb-theme .hb-search-page .hb-search-result-link {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .hb-theme .hb-search-page .hb-search-result {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .hb-theme .hb-search-page .hb-search-result-image {
    height: 68px;
  }

  .hb-theme .hb-search-page .hb-search-result-main h3 {
    font-size: 15px;
  }

  .hb-theme .hb-search-page .hb-search-result-description {
    font-size: 13px;
  }
}

/* Helpful paths for searches that return no matching extensions. */
.hb-theme .hb-search-page .hb-search-empty {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 30px;
  border: 1px solid #e2ded4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(17, 24, 32, .035);
}

.hb-theme .hb-search-page .hb-search-empty-icon {
  display: flex;
  flex: 0 0 64px;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid #dbe9eb;
  border-radius: 14px;
  background: #eff7f8;
  color: #0b7285;
  font-size: 24px;
}

.hb-theme .hb-search-page .hb-search-empty-content {
  min-width: 0;
}

.hb-theme .hb-search-page .hb-search-empty-eyebrow,
.hb-theme .hb-search-page .hb-search-help-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hb-theme .hb-search-page .hb-search-empty-eyebrow {
  color: #0b7285;
}

.hb-theme .hb-search-page .hb-search-empty h2 {
  margin: 0 0 10px;
  color: #111820;
  font-size: 24px;
  line-height: 1.3;
}

.hb-theme .hb-search-page .hb-search-empty p {
  max-width: 700px;
  margin: 0 0 18px;
  color: #576471;
  font-size: 14px;
  line-height: 1.75;
}

.hb-theme .hb-search-page .hb-search-empty-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #e6aa10;
  border-radius: 7px;
  background: #f6b51b;
  color: #111820;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.hb-theme .hb-search-page .hb-search-empty-browse:hover,
.hb-theme .hb-search-page .hb-search-empty-browse:focus {
  background: #e8a600;
  color: #111820;
  text-decoration: none;
}

.hb-theme .hb-search-page .hb-search-empty-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
}

.hb-theme .hb-search-page .hb-search-empty-suggestions > span {
  color: #6b7680;
  font-weight: 700;
}

.hb-theme .hb-search-page .hb-search-empty-suggestions a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #dee6e7;
  border-radius: 6px;
  background: #f7fafb;
  color: #0b7285;
  font-weight: 700;
  text-decoration: none;
}

.hb-theme .hb-search-page .hb-search-empty-suggestions a:hover,
.hb-theme .hb-search-page .hb-search-empty-suggestions a:focus {
  border-color: #9ccbd3;
  background: #edf7f9;
  text-decoration: none;
}

/* Final conversion point for both matching and unsuccessful searches. */
.hb-theme .hb-search-page .hb-search-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 32px;
  padding: 32px 34px;
  border-radius: 12px;
  background: linear-gradient(115deg, #0d1826 0%, #16333e 100%);
}

.hb-theme .hb-search-page .hb-search-help-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hb-theme .hb-search-page .hb-search-help-eyebrow {
  color: #8ed6e2;
}

.hb-theme .hb-search-page .hb-search-help h2 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
}

.hb-theme .hb-search-page .hb-search-help p {
  max-width: 720px;
  margin: 0;
  color: #d4e0e5;
  font-size: 14px;
  line-height: 1.75;
}

.hb-theme .hb-search-page .hb-search-help-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  min-width: 228px;
}

.hb-theme .hb-search-page .hb-search-help-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.hb-theme .hb-search-page .hb-search-help-contact {
  border: 1px solid #e6aa10;
  background: #f6b51b;
  color: #111820;
}

.hb-theme .hb-search-page .hb-search-help-contact:hover,
.hb-theme .hb-search-page .hb-search-help-contact:focus {
  background: #e8a600;
  color: #111820;
  text-decoration: none;
}

.hb-theme .hb-search-page .hb-search-help-development {
  border: 1px solid #59727d;
  background: transparent;
  color: #f1f7f9;
}

.hb-theme .hb-search-page .hb-search-help-development:hover,
.hb-theme .hb-search-page .hb-search-help-development:focus {
  border-color: #a8c7ce;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 991px) {
  .hb-theme .hb-search-page .hb-search-help {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .hb-theme .hb-search-page .hb-search-help-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .hb-theme .hb-search-page .hb-search-empty {
    flex-direction: column;
    gap: 16px;
    padding: 22px;
  }

  .hb-theme .hb-search-page .hb-search-empty-icon {
    flex-basis: auto;
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .hb-theme .hb-search-page .hb-search-empty h2,
  .hb-theme .hb-search-page .hb-search-help h2 {
    font-size: 21px;
  }

  .hb-theme .hb-search-page .hb-search-help {
    margin-top: 24px;
    padding: 24px 20px;
  }

  .hb-theme .hb-search-page .hb-search-help-actions {
    flex-direction: column;
  }

  .hb-theme .hb-search-page .hb-search-help-actions a {
    width: 100%;
  }
}
