/* A quiet focus indicator, without changing input dimensions. */
form.search .mm-search-direct-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  flex-shrink: 0;
  padding: 0 14px;
  border-right: 1px solid rgb(255 255 255 / 35%);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
form.search .mm-search-direct-add[hidden] {
  display: none;
}
form.search .mm-search-direct-add:disabled {
  cursor: wait;
  opacity: .7;
}
form.search .mm-search-direct-add svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 700px) {
  form.search .mm-search-direct-add {
    padding: 0 9px;
    font-size: 12px;
    gap: 5px;
  }
  form.search .mm-search-direct-add svg {
    display: none;
  }
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid #ff6600;
  outline-offset: 1px;
}
form.search,
.catalogue-find {
  transition: border-color 0.2s ease;
}
form.search:focus-within,
.catalogue-find:focus-within {
  border-color: #ff6600;
}
form.search input:focus-visible,
.catalogue-find input:focus-visible {
  outline: none;
  box-shadow: none;
}
.mm-search-open .top,
.mm-search-open .masthead,
.mm-search-open nav.nav {
  position: relative;
  z-index: 10002;
}
/* Blur page content itself, so no part of the full-width header is affected. */
body.mm-search-open > main,
body.mm-search-open > footer {
  filter: blur(5px);
}
.mm-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgb(18 24 28 / 28%);

}
.mm-search-preview {
  position: fixed;
  z-index: 10003;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px;
  border: 1px solid #cbd2d6;
  background: #fff;
  color: #20272b;
  box-shadow: 0 16px 45px rgb(0 0 0 / 16%);
}
.mm-search-backdrop[hidden],
.mm-search-preview[hidden] {
  display: none;
}
.mm-search-columns {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
}
.mm-search-columns > div {
  min-width: 0;
}
.mm-search-preview h2 {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: #ff6600;
}
.mm-search-preview ul {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mm-search-preview li {
  margin: 0;
  padding: 0;
}
.mm-search-preview li a {
  display: block;
  padding: 7px 8px;
  margin-left: -8px;
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
  color: #20272b;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.mm-search-preview li a:hover,
.mm-search-preview li a:focus-visible {
  background: #fff1e6;
  color: #d75400;
}
.mm-search-context {
  color: #64717a;
}
.mm-search-empty {
  font-size: 16px;
  color: #64717a;
}
.mm-search-status {
  margin: 0 34px 18px 0;
  font-size: 14px;
  color: #64717a;
}
.mm-search-close {
  position: absolute;
  right: 12px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64717a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.mm-search-all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  margin-top: 22px;
  background: #ff6600;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.mm-search-all:hover {
  background: #df5800;
  color: #fff;
}
.mm-search-preview :is(a, button):focus-visible {
  outline: 2px solid #ff6600;
  outline-offset: 2px;
}
@media (max-width: 700px) {
  .mm-search-preview {
    padding: 22px;
  }
  .mm-search-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mm-search-products {
    max-height: 250px;
    overflow-y: auto;
  }
}

.mm-search-products li a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 145px);
  align-items: center;
  column-gap: 18px;
}
.mm-search-preview-stock {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #008c52;
  font-size: 14px;
  line-height: 1.4;
}
.mm-search-preview-stock.is-unavailable {
  color: #64717a;
}
.mm-search-preview-stock svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
@media (max-width: 700px) {
  .mm-search-products li a {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }
}
