/*!
 * USP.Center static search widget — supplements the theme's existing
 * .ais-* / .hit-item / .pagination styles. Scoped to body.usp-search-on,
 * which is added by search-widget.js only after successful init.
 */

body.usp-search-on .searchbox-algolia {
  display: block;
  width: 4.4rem;
  min-width: 4.4rem;
  overflow: visible;
}

body.usp-search-on .algolia-search-icon {
  cursor: pointer;
  border: none;
  background-color: transparent;
  min-width: 3.4rem;
  height: 2.8rem;
  background-repeat: no-repeat;
}

.--algolia .product-modal__inner {
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.--algolia .hit-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #e3efe5;
}

.--algolia .hit-item:hover .hit-primary,
.--algolia .hit-item:focus .hit-primary {
  text-decoration: underline;
}

.--algolia .hit-section {
  display: inline-block;
  margin-left: 0.8rem;
  padding: 0.1rem 0.8rem;
  border-radius: 1rem;
  background: #e3efe5;
  color: #1b1e4b;
  font-size: 1.1rem;
  font-weight: 400;
  vertical-align: middle;
  white-space: nowrap;
}

.--algolia .hit-snippet {
  font-size: 1.3rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 0.5rem;
}

.--algolia .hit-url {
  font-size: 1.1rem;
  color: #888;
  word-break: break-all;
}

.--algolia mark.ais-Highlight-highlighted {
  background: #fff3b0;
  color: inherit;
  padding: 0;
  font-style: normal;
}

.--algolia #stats {
  padding: 0 1rem;
  font-size: 1.2rem;
  color: #666;
}

.--algolia #pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.--algolia #pagination .pagination-pages li {
  padding: 0 0.6rem;
}

.--algolia #pagination a {
  color: #1b1e4b;
  text-decoration: none;
  font-size: 1.5rem;
}
