:root {
  --motolab-search-orange: #ff660e;
  --motolab-search-orange-dark: #d94c00;
  --motolab-search-ink: #171717;
  --motolab-search-muted: #686868;
  --motolab-search-line: #dedede;
  --motolab-search-soft: #f5f5f5;
}

.motolab-search-form {
  position: relative;
  z-index: 200;
  isolation: isolate;
  overflow: visible !important;
}

.motolab-search-form .js-search-input {
  min-height: 50px;
  padding-right: 54px;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: var(--motolab-search-ink);
  font-size: 15px;
  letter-spacing: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.motolab-search-form .js-search-input::placeholder {
  color: #777;
  opacity: 1;
}

.motolab-search-form .js-search-input:focus {
  border-color: var(--motolab-search-orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 14, 0.14);
  outline: 0;
}

.motolab-search-form--invalid .js-search-input {
  border-color: #c43131;
  box-shadow: 0 0 0 3px rgba(196, 49, 49, 0.12);
}

#header .motolab-search-form fieldset {
  position: relative;
  min-height: 50px;
}

#header .motolab-search-form .js-search-input {
  width: 100%;
  height: 50px !important;
  min-height: 50px;
  padding-right: 86px;
  border-radius: 4px;
}

#header .motolab-search-form button[type="submit"] {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  width: 70px;
  height: 50px !important;
  min-height: 50px;
  padding: 0 10px;
  border: 1px solid var(--motolab-search-orange);
  border-radius: 0 4px 4px 0;
  background: var(--motolab-search-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 48px;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

#header .motolab-search-form button[type="submit"]:hover,
#header .motolab-search-form button[type="submit"]:focus-visible {
  border-color: var(--motolab-search-orange-dark);
  background: var(--motolab-search-orange-dark);
  color: #fff;
  outline: 0;
}

#header .motolab-search-form .search-whisperer {
  z-index: 220;
  top: calc(100% + 8px);
  left: 0;
  width: min(620px, calc(100vw - 24px));
  max-height: min(530px, calc(100vh - 150px));
  padding: 8px 14px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--motolab-search-line);
  border-top: 3px solid var(--motolab-search-orange);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

#header .motolab-search-form .search-whisperer-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#header .motolab-search-form .search-whisperer-products > li {
  margin: 0;
  padding: 0;
  border: 0;
}

#header .motolab-search-form .search-whisperer-products > li:nth-child(n + 7) {
  display: none;
}

#header .motolab-search-form .search-whisperer-products > li > a {
  display: flex;
  height: 100%;
  min-height: 0;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  background: #fff;
  color: var(--motolab-search-ink);
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

#header .motolab-search-form .search-whisperer-products > li > a:hover,
#header .motolab-search-form .search-whisperer-products > li > a:focus-visible {
  border-color: #bdbdbd;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  outline: 0;
}

#header .motolab-search-form .search-whisperer-image {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  overflow: hidden;
  background: #f2f2f2;
}

#header .motolab-search-form .search-whisperer-image img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
}

#header .motolab-search-form .search-whisperer .p-info {
  display: flex;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  flex: 1 1 auto;
  padding: 8px 8px 5px;
}

#header .motolab-search-form .search-whisperer .p-name {
  display: -webkit-box;
  width: 100% !important;
  max-width: none !important;
  overflow: hidden;
  color: #222;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  text-overflow: clip;
  white-space: normal !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

#header .motolab-search-form .motolab-search-product__footer .availability-label::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #159c2f;
  content: "";
  vertical-align: 1px;
}

#header .motolab-search-form .search-whisperer .p-availability {
  display: block;
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

#header .motolab-search-form .search-whisperer .price-final {
  padding: 0;
  color: #222;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

#header .motolab-search-form .motolab-search-product__footer {
  display: grid;
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 28px;
  align-items: flex-end;
  gap: 4px;
  padding: 0 8px 8px;
  box-sizing: border-box;
}

#header .motolab-search-form .motolab-search-product__footer .p-availability,
#header .motolab-search-form .motolab-search-product__footer .price-final {
  position: static !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}

#header .motolab-search-form .motolab-search-product__footer .p-availability {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#header .motolab-search-form .motolab-search-product__footer .price-final {
  justify-self: end;
}

#header .motolab-search-form .motolab-search-whisperer-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 2px 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e4e4e4;
}

#header .motolab-search-form .motolab-search-whisperer-category {
  display: flex;
  min-width: 0;
  min-height: 104px;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 0 !important;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e1e1e1;
  color: var(--motolab-search-ink);
  text-align: center;
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}

#header .motolab-search-form .motolab-search-whisperer-category:hover,
#header .motolab-search-form .motolab-search-whisperer-category:focus-visible {
  border: 0 !important;
  background: #fff;
  color: var(--motolab-search-ink);
  box-shadow: inset 0 0 0 1px #bdbdbd;
  outline: 0;
  transform: translateY(-1px);
}

#header .motolab-search-form .motolab-search-whisperer-category__image {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border-bottom: 1px solid #ededed;
  background: #f6f6f6;
}

#header .motolab-search-form .motolab-search-whisperer-category__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#header .motolab-search-form .motolab-search-whisperer-category__name {
  display: flex;
  min-height: 34px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 5px 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

#header .motolab-search-form .search-whisperer-documents {
  margin: 10px 0 0;
  padding: 0;
  text-align: center;
}

#header .motolab-search-form .search-whisperer-document {
  display: block;
  min-height: 40px;
  padding: 11px 12px;
  border: 1px solid var(--motolab-search-orange);
  border-radius: 4px;
  color: var(--motolab-search-orange-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

#header .motolab-search-form .search-whisperer-document:hover,
#header .motolab-search-form .search-whisperer-document:focus-visible {
  background: var(--motolab-search-orange);
  color: #fff;
  outline: 0;
}

.motolab-search-guide {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  left: 0;
  width: min(620px, calc(100vw - 24px));
  padding: 16px 18px;
  border: 1px solid var(--motolab-search-line);
  border-top: 3px solid var(--motolab-search-orange);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.motolab-search-form--active:not(.motolab-search-form--native-results) .motolab-search-guide {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.motolab-search-guide__intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.motolab-search-guide__intro > i {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  color: var(--motolab-search-orange);
  background: #fff1e8;
  border-radius: 50%;
  font-size: 15px;
}

.motolab-search-guide__intro div {
  min-width: 0;
}

.motolab-search-guide__intro strong,
.motolab-search-guide__intro span {
  display: block;
  letter-spacing: 0;
}

.motolab-search-guide__intro strong {
  margin-bottom: 3px;
  color: var(--motolab-search-ink);
  font-size: 16px;
  line-height: 1.25;
}

.motolab-search-guide__intro span {
  color: var(--motolab-search-muted);
  font-size: 13px;
  line-height: 1.4;
}

.motolab-results-search {
  display: grid;
  grid-template-columns: minmax(250px, 0.65fr) minmax(420px, 1.35fr);
  align-items: center;
  gap: 30px;
  margin: 0 0 28px;
  padding: 20px 24px;
  border-top: 3px solid var(--motolab-search-orange);
  border-bottom: 1px solid var(--motolab-search-line);
  background: #fff;
}

.motolab-results-search__heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.motolab-results-search__heading > i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: var(--motolab-search-orange);
  font-size: 17px;
}

.motolab-results-search__heading > h1 {
  margin: 0;
  color: var(--motolab-search-ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.motolab-results-search__field {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 52px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.motolab-results-search__field:focus-within {
  border-color: var(--motolab-search-orange);
  box-shadow: 0 0 0 3px rgba(255, 102, 14, 0.13);
}

.motolab-results-search__field > i {
  color: var(--motolab-search-orange);
  text-align: center;
}

.motolab-results-search__field input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--motolab-search-ink);
  font-size: 15px;
  letter-spacing: 0;
  outline: 0;
}

.motolab-results-search__field button {
  align-self: stretch;
  min-width: 96px;
  padding: 0 18px;
  border: 0;
  background: var(--motolab-search-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: background-color 140ms ease;
}

.motolab-results-search__field button:hover,
.motolab-results-search__field button:focus-visible {
  background: var(--motolab-search-orange-dark);
  outline: 0;
}

.motolab-search-categories {
  margin: 0 0 30px;
}

body.motolab-search-results-page .motolab-search-categories > h4,
body.motolab-search-results-page .search-products-heading {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 10px;
  color: var(--motolab-search-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
}

body.motolab-search-results-page .motolab-search-categories > h4::after,
body.motolab-search-results-page .search-products-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 38px;
  height: 2px;
  background: var(--motolab-search-orange);
}

.motolab-search-categories > .display-results-group {
  display: none !important;
}

.motolab-search-categories .search-results-group-list > ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 18px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.motolab-search-categories .motolab-search-category {
  display: block !important;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.motolab-search-category__link {
  display: flex;
  height: 100%;
  min-height: 126px;
  flex-direction: column;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--motolab-search-ink);
  text-align: center;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

.motolab-search-category__link:hover,
.motolab-search-category__link:focus-visible {
  color: var(--motolab-search-orange-dark);
  outline: 0;
  transform: translateY(-1px);
}

.motolab-search-category__image {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #b8b8b8;
  font-size: 27px;
}

.motolab-search-category__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.motolab-search-category__name {
  position: relative;
  display: flex;
  min-height: 43px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 11px 5px 5px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.motolab-search-category__name::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 32px;
  height: 1px;
  background: #cfcfcf;
  transform: translateX(-50%);
}

.motolab-search-empty {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 34px auto 60px;
  padding: 28px 0;
  border-top: 1px solid var(--motolab-search-line);
  border-bottom: 1px solid var(--motolab-search-line);
}

.motolab-search-empty__icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid var(--motolab-search-orange);
  border-radius: 50%;
  color: var(--motolab-search-orange);
  font-size: 24px;
}

.motolab-search-empty h2 {
  margin: 0 0 7px;
  color: var(--motolab-search-ink);
  font-size: 23px;
  line-height: 1.2;
}

.motolab-search-empty p {
  margin: 0;
  color: var(--motolab-search-muted);
  font-size: 14px;
  line-height: 1.55;
}

.motolab-search-empty__correction {
  margin-top: 14px;
  padding: 7px 11px;
  border: 1px solid var(--motolab-search-orange);
  border-radius: 4px;
  background: #fff7f2;
  color: var(--motolab-search-orange-dark);
  font-size: 13px;
  font-weight: 800;
}

.motolab-search-empty__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.motolab-search-empty__actions .btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.motolab-search-empty__actions .btn-primary {
  border-color: var(--motolab-search-orange);
  background: var(--motolab-search-orange);
  color: #fff;
}

.motolab-search-empty__actions .btn:hover,
.motolab-search-empty__actions .btn:focus-visible {
  border-color: var(--motolab-search-orange-dark);
  outline: 0;
}

.motolab-search-empty__actions .btn-primary:hover,
.motolab-search-empty__actions .btn-primary:focus-visible {
  background: var(--motolab-search-orange-dark);
}

.motolab-search-empty__help {
  padding: 8px 4px;
  color: #555;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  #header .motolab-search-form fieldset {
    min-height: 48px;
  }

  #header .motolab-search-form .js-search-input {
    height: 48px !important;
    min-height: 48px;
    padding-right: 80px;
    font-size: 16px !important;
    touch-action: manipulation;
  }

  #header .motolab-search-form button[type="submit"] {
    width: 68px;
    height: 48px !important;
    min-height: 48px;
    line-height: 46px;
  }

  #header .search .motolab-search-form .search-whisperer {
    position: fixed !important;
    top: var(--motolab-search-mobile-top, 102px) !important;
    right: 10px !important;
    left: 10px !important;
    width: auto !important;
    max-height: calc(100dvh - var(--motolab-search-mobile-top, 102px) - 10px) !important;
    padding: 8px 10px 12px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #header .motolab-search-form .search-whisperer-products > li > a {
    min-height: 0;
  }

  #header .motolab-search-form .search-whisperer-image {
    width: 100%;
    height: auto;
  }

  #header .motolab-search-form .search-whisperer .p-name {
    font-size: 11px;
    line-height: 1.25;
  }

  #header .motolab-search-form .search-whisperer .price-final {
    padding: 0;
    font-size: 9px;
  }

  #header .motolab-search-form .search-whisperer .p-availability {
    font-size: 9px;
  }

  #header .motolab-search-form .search-whisperer .p-info {
    padding: 6px 6px 4px;
  }

  #header .motolab-search-form .motolab-search-product__footer {
    min-height: 24px;
    gap: 2px;
    padding: 0 5px 6px;
  }

  #header .motolab-search-form .motolab-search-whisperer-categories {
    display: flex;
    gap: 7px;
    margin-right: -6px;
    padding-right: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  #header .motolab-search-form .motolab-search-whisperer-categories::-webkit-scrollbar {
    display: none;
  }

  #header .motolab-search-form .motolab-search-whisperer-category {
    width: 94px;
    min-width: 94px;
    min-height: 100px;
  }

  #header .search .motolab-search-form .motolab-search-guide {
    display: block !important;
    position: fixed;
    top: var(--motolab-search-mobile-top, 102px);
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
    padding: 14px;
  }

  .motolab-results-search {
    display: block;
    margin-right: -10px;
    margin-bottom: 22px;
    margin-left: -10px;
    padding: 18px 12px;
  }

  .motolab-results-search__heading > h1 {
    font-size: 21px;
  }

  .motolab-results-search__form {
    margin-top: 13px;
  }

  .motolab-results-search__field {
    grid-template-columns: 38px minmax(0, 1fr) 54px;
  }

  .motolab-results-search__field input {
    font-size: 16px;
  }

  .motolab-results-search__field button {
    min-width: 54px;
    padding: 0;
    color: transparent;
    font-size: 0;
  }

  .motolab-results-search__field button::before {
    content: "\f002";
    color: #fff;
    font-family: "Font Awesome 5 Free";
    font-size: 16px;
    font-weight: 900;
  }

  .motolab-search-categories {
    margin-bottom: 24px;
  }

  .motolab-search-categories .search-results-group-list > ul {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 14px 8px;
  }

  .motolab-search-category__link {
    min-height: 112px;
  }

  .motolab-search-category__name {
    min-height: 40px;
    padding: 7px 5px;
    font-size: 12px;
  }

  .motolab-search-empty {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 14px;
    margin-top: 24px;
    padding: 22px 0;
  }

  .motolab-search-empty__icon {
    width: 50px;
    height: 50px;
    font-size: 17px;
  }

  .motolab-search-empty h2 {
    font-size: 20px;
  }

  .motolab-search-empty__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .motolab-search-empty__actions .btn,
  .motolab-search-empty__help {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 359px) {
  #header .search .motolab-search-form .search-whisperer {
    padding: 6px 6px 10px;
  }

  #header .motolab-search-form .search-whisperer-products {
    gap: 6px;
  }

  #header .motolab-search-form .search-whisperer .p-info {
    padding: 5px 4px 3px;
  }

  #header .motolab-search-form .search-whisperer .p-name {
    font-size: 10px;
  }

  #header .motolab-search-form .search-whisperer .p-availability,
  #header .motolab-search-form .search-whisperer .price-final {
    font-size: 8px;
  }

  #header .motolab-search-form .motolab-search-product__footer {
    gap: 1px;
    padding: 0 3px 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motolab-search-form .js-search-input,
  .motolab-search-guide,
  .motolab-search-whisperer-category,
  .motolab-results-search__field,
  .motolab-results-search__field button,
  .motolab-search-category__link {
    transition: none;
  }
}
