/* ULS Product Search (see js/search.js) */

.uls-search {
  position: relative;
  width: 100%;
}

.uls-search__form {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #d9dde3;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.uls-search__form:focus-within {
  border-color: var(--primary, #032f64);
  box-shadow: 0 0 0 4px rgba(3, 47, 100, 0.12);
}

.uls-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  padding: 0 8px 0 18px;
  border: 0;
  background: transparent;
  color: #1c1c1c;
  font-family: inherit;
  font-size: 16px; /* 16px avoids the iOS zoom on focus */
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.uls-search__input::-webkit-search-cancel-button,
.uls-search__input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.uls-search__input::placeholder {
  color: #8a9099;
}

.uls-search__clear,
.uls-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5b6470;
  cursor: pointer;
}

.uls-search__clear {
  font-size: 26px;
  line-height: 1;
}

.uls-search__clear[hidden] {
  display: none;
}

.uls-search__submit {
  width: 56px;
  background: var(--primary, #032f64);
  color: #fff;
  transition: background-color 0.2s ease;
}

.uls-search__submit:hover {
  background: var(--primary-100, #0064c0);
}

.uls-search__clear:focus-visible,
.uls-search__submit:focus-visible,
.uls-search__chip:focus-visible,
.uls-search__all:focus-visible {
  outline: 2px solid var(--primary-100, #0064c0);
  outline-offset: 2px;
}

.uls-search__icon {
  display: inline-flex;
  flex: 0 0 auto;
}

/* Suggestions panel */

.uls-search__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: min(60vh, 460px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #e3e6ea;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
  text-align: left;
  animation: uls-search-in 180ms ease-out;
}

.uls-search__panel[hidden] {
  display: none;
}

@keyframes uls-search-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.uls-search__list {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.uls-search__list:empty {
  display: none;
}

.uls-search__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: #1c1c1c;
  cursor: pointer;
}

.uls-search__option .uls-search__icon {
  color: #9aa1ab;
}

.uls-search__option:hover,
.uls-search__option[aria-selected="true"] {
  background: #f1f4f8;
}

.uls-search__option[aria-selected="true"] {
  box-shadow: inset 3px 0 0 var(--primary, #032f64);
}

.uls-search__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
}

.uls-search__name mark {
  padding: 0;
  background: none;
  color: var(--primary, #032f64);
  font-weight: 700;
}

.uls-search__cat {
  flex: 0 0 auto;
  max-width: 45%;
  overflow: hidden;
  font-size: 12px;
  color: #7a828d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uls-search__extra:empty {
  display: none;
}

.uls-search__extra {
  padding: 12px 16px 16px;
  border-top: 1px solid #eef0f3;
}

.uls-search__list:empty + .uls-search__extra {
  border-top: 0;
}

.uls-search__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a828d;
}

.uls-search__suggest + .uls-search__suggest {
  margin-top: 12px;
}

.uls-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.uls-search__chip {
  padding: 7px 14px;
  border: 1px solid #d9dde3;
  border-radius: 999px;
  background: #fff;
  color: #1c1c1c;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.uls-search__chip:hover {
  border-color: var(--primary, #032f64);
  color: var(--primary, #032f64);
}

.uls-search__empty {
  margin: 4px 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: #1c1c1c;
}

.uls-search__all {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary, #032f64);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.uls-search__all:hover {
  text-decoration: underline;
}

/* Header trigger */

.header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1c1c1c;
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-search-toggle:hover,
.header-search-toggle:focus-visible {
  color: var(--primary, #032f64);
}

.header-search-toggle:focus-visible {
  outline: 2px solid var(--primary-100, #0064c0);
  outline-offset: 2px;
}

/* Header overlay */

html.uls-search-lock {
  overflow: hidden;
}

.uls-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100002;
}

.uls-search-overlay[hidden] {
  display: none;
}

.uls-search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 30, 0.55);
  opacity: 0;
  transition: opacity 250ms ease;
}

.uls-search-overlay__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 16px 24px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 250ms ease, transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.uls-search-overlay.is-open .uls-search-overlay__backdrop {
  opacity: 1;
}

.uls-search-overlay.is-open .uls-search-overlay__inner {
  opacity: 1;
  transform: none;
}

.uls-search-overlay__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: #555;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.uls-search-overlay__close:hover {
  color: #000;
}

.uls-search--overlay .uls-search__panel {
  position: static;
  margin-top: 8px;
  max-height: calc(100vh - 180px);
  box-shadow: none;
}

@media (min-width: 768px) {
  .uls-search-overlay__inner {
    margin-top: 72px;
    padding: 56px 32px 32px;
  }
}

/* Products page filter */

.product-filter {
  max-width: 720px;
  margin: 0 auto;
}

.product-filter__summary {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: 14px;
  color: #555;
}

.product-filter__empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 16px;
  text-align: center;
}

.product-filter__empty[hidden] {
  display: none;
}

.product-filter__empty-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.product-filter__empty-text {
  margin: 0 0 24px;
  color: #555;
}

.product-filter__empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

[data-product-category] {
  scroll-margin-top: 24px;
}

[data-product-category][hidden] {
  display: none !important;
}

.product-row--highlight {
  animation: product-row-flash 2.4s ease;
}

@keyframes product-row-flash {
  0%,
  40% {
    box-shadow: inset 0 0 0 4px var(--primary-100, #0064c0);
  }
  100% {
    box-shadow: inset 0 0 0 0 transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uls-search__panel,
  .uls-search-overlay__inner,
  .uls-search-overlay__backdrop,
  .product-row--highlight {
    animation: none;
    transition: none;
  }
}

/* Header spacing with the search trigger */

#header .header-extra-info-text strong {
  white-space: nowrap;
}

@media (max-width: 1199.98px) {
  .header-search-toggle {
    width: 40px;
    margin-left: 0;
  }

  #header .header-extra-info.ms-5-5 {
    margin-left: 0.75rem !important;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  #header .header-nav-main nav > ul > li > a {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

@media (max-width: 399.98px) {
  #header .header-logo img {
    width: 90px;
    height: auto;
  }

  .header-search-toggle {
    width: 34px;
  }
}
