/* Shared product finder used in product banners. */
.product-finder,
.product-finder * {
  box-sizing: border-box;
}

.product-finder {
  width: 100%;
  margin: 34px auto 0;
}

.pd-page .pd-blueprint-content .product-finder {
  max-width: 1120px;
  margin-top: 34px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.pd-page .pd-blueprint-content .product-finder-links {
  justify-content: flex-start !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.product-finder-links {
  position: relative;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  gap: 12px !important;
  width: fit-content !important;
  max-width: calc(100% - 48px) !important;
  margin: 0 auto !important;
}

.product-finder-link {
  display: inline-grid !important;
  grid-template-columns: 16px minmax(0, 1fr) 34px !important;
  column-gap: 8px !important;
  align-items: center !important;
  min-height: 42px !important;
  padding: 9px 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Microsoft Yahei", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 18px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product-finder-link:hover {
  background: rgba(255, 255, 255, 0.20) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  transform: translateY(-1px) !important;
}

.product-finder-link.is-active {
  border-color: rgba(255, 140, 0, .98) !important;
  background: #ff8c00 !important;
  color: #fff !important;
  box-shadow: 0 16px 30px rgba(255, 140, 0, .24) !important;
}

.product-finder-icon {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  color: #fff !important;
}

.product-finder-icon:before {
  content: "" !important;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  border-right: 1.5px solid currentColor !important;
  border-bottom: 1.5px solid currentColor !important;
  transform: translateY(-2px) rotate(45deg) !important;
}

.product-finder-text {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
  white-space: nowrap !important;
  color: #fff !important;
}

.product-finder-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: end !important;
  min-width: 26px !important;
  height: 22px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .18) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.product-finder-link.is-active .product-finder-count {
  background: rgba(255, 255, 255, .24) !important;
}

.product-finder-search {
  display: none;
}

@media (min-width: 1101px) {
  .products-catalog-page .product-finder,
  .product-category-page .product-finder,
  .pd-page .product-finder {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .products-catalog-page .product-finder-links,
  .product-category-page .product-finder-links,
  .pd-page .product-finder-links {
    justify-content: flex-start !important;
    width: fit-content !important;
    max-width: 1120px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

.product-finder-desktop-slot {
  position: relative;
  display: inline-block !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  z-index: 20 !important;
}

.product-finder-desktop-search {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 20 !important;
  display: grid !important;
  grid-template-columns: 40px !important;
  align-items: center !important;
  justify-content: end !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.10) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: width .26s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.product-finder-desktop-search.is-open {
  grid-template-columns: 16px minmax(0, 1fr) 40px !important;
  column-gap: 10px !important;
  justify-content: initial !important;
  width: var(--product-finder-expanded-width, 560px) !important;
  max-width: calc(100vw - 48px) !important;
  padding: 0 8px 0 16px !important;
}

.product-finder-links.is-searching .product-finder-link {
  opacity: 0;
  pointer-events: none;
}

.product-finder-desktop-search:hover,
.product-finder-desktop-search:focus-within,
.product-finder-desktop-search.is-open {
  border-color: rgba(255, 140, 0, .98) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 12px 24px rgba(255, 140, 0, .16), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.product-finder-desktop-toggle,
.product-finder-desktop-submit,
.product-finder-search button {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: url(../images/searchicon.png) center center / 22px 22px no-repeat !important;
  filter: brightness(0) invert(1) opacity(.86) !important;
  cursor: pointer;
}

.product-finder-desktop-toggle:before,
.product-finder-desktop-submit:before,
.product-finder-search button:before {
  content: none !important;
}

.product-finder-desktop-toggle:after,
.product-finder-desktop-submit:after,
.product-finder-search button:after {
  content: none !important;
}

.product-finder-desktop-toggle {
  display: block !important;
  grid-column: 1;
}

.product-finder-desktop-submit {
  display: none !important;
  grid-column: 3;
}

.product-finder-desktop-search.is-open .product-finder-desktop-toggle {
  display: none !important;
}

.product-finder-desktop-search.is-open .product-finder-desktop-submit {
  display: block !important;
}

.product-finder-search button {
  display: block !important;
}

.product-finder-desktop-arrow {
  display: none;
}

.product-finder-desktop-search.is-open .product-finder-desktop-arrow {
  display: inline-flex;
}

.product-finder-desktop-search input {
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Microsoft Yahei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  opacity: 0;
  outline: none;
  pointer-events: none;
  transition: opacity .16s ease;
}

.product-finder-desktop-search.is-open input {
  opacity: 1;
  pointer-events: auto;
}

.product-finder input::placeholder {
  color: rgba(255, 255, 255, .78);
}

.product-finder-search.is-keyword-empty input::placeholder,
.product-finder-desktop-search.is-keyword-empty input::placeholder {
  color: rgba(255, 190, 92, .98);
}

@media (max-width: 1100px) {
  .product-finder-desktop-slot {
    display: none !important;
  }

  .product-finder-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 230px)) !important;
    grid-template-columns: repeat(2, minmax(0, min(230px, calc((100vw - 70px) / 2)))) !important;
    justify-content: center !important;
    gap: 12px 14px !important;
    width: 100% !important;
    max-width: none !important;
  }

  .product-finder-link {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: initial !important;
  }
}

@media (max-width: 767px) {
  .product-finder {
    width: 100%;
    max-width: 620px;
    margin: 26px auto 0;
  }

  .pd-page .product-finder {
    display: block;
  }

  .pd-page .pd-blueprint-content .product-finder-links,
  .pd-page .pd-blueprint-content .product-finder-search {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .product-finder-links {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .product-finder-link {
    grid-template-columns: 12px minmax(0, 1fr) 26px !important;
    column-gap: 5px !important;
    min-height: 40px !important;
    padding: 8px 8px !important;
    font-size: 13px !important;
    line-height: 18px !important;
  }

  .product-finder-icon {
    width: 12px !important;
    height: 12px !important;
  }

  .product-finder-text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 13px !important;
  }

  .product-finder-count {
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    font-size: 12px;
    position: relative;
    z-index: 1;
  }

  .product-finder-search {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) 34px;
    column-gap: 8px;
    align-items: center;
    width: 100%;
    height: 40px;
    margin: 10px auto 0;
    padding: 0 8px 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  }

  .product-finder-search:hover,
  .product-finder-search:focus-within {
    border-color: rgba(255, 140, 0, .98);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 24px rgba(255, 140, 0, .16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .product-finder-search input {
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Microsoft Yahei", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    outline: none;
  }

  .product-finder-search button {
    width: 34px;
    height: 34px;
  }

  .product-finder-search button:before {
    left: 7px;
    top: 6px;
  }

  .product-finder-search button:after {
    left: 24px;
    top: 24px;
  }
}

@media (max-width: 420px) {
  .product-finder-link {
    grid-template-columns: 10px minmax(0, 1fr) 24px !important;
    column-gap: 4px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  .product-finder-text {
    font-size: 12px !important;
  }

  .product-finder-count {
    min-width: 22px;
    height: 19px;
    padding: 0 5px;
    font-size: 11px;
  }
}

@media (max-width: 767px) {
  html.is-android .product-finder,
  html.is-android .product-finder * {
    -webkit-font-smoothing: auto !important;
    text-rendering: geometricPrecision;
  }

  html.is-android .product-finder-link,
  html.is-android .product-finder-search input,
  html.is-android .product-finder-desktop-search input {
    font-weight: 600 !important;
  }

  html.is-android .product-finder-text,
  html.is-android .product-finder-count {
    color: #fff !important;
    font-weight: 700 !important;
  }

  html.is-android .product-finder input::placeholder {
    color: rgba(255, 255, 255, .9) !important;
    font-weight: 600 !important;
  }
}
