@media (max-width: 767px) {
  .tl-search-mobile-ready [data-tl-search] { display: none !important; }
  .tl-search-mobile-ready .tl-catalog-search__field [data-tl-search-box] input { font-size: 16px; }
}

html.tl-search-mobile-open,
html.tl-search-mobile-open .vz-theme-85 {
  overflow: hidden;
  overscroll-behavior: none;
}

dialog.tl-search-mobile {
  position: fixed;
  inset: var(--tl-search-mobile-top, 0px) 0 auto;
  width: 100%;
  height: 100vh;
  height: var(--tl-search-mobile-height, 100dvh);
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #181818;
  font: 14px/1.4 Montserrat, Arial, sans-serif;
}
dialog.tl-search-mobile::backdrop { background: #fff; }
.tl-search-mobile *,
.tl-search-mobile *::before,
.tl-search-mobile *::after { box-sizing: border-box; }
.tl-search-mobile__surface {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.tl-search-mobile__head {
  flex: none;
  padding: max(env(safe-area-inset-top), 4px) 0 0;
  background: #111;
}
.tl-search-mobile__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  padding-inline: max(env(safe-area-inset-left), 12px) max(env(safe-area-inset-right), 12px);
}
.tl-search-mobile__back,
.tl-search-mobile__submit,
.tl-search-mobile__clear {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #202020;
  cursor: pointer;
}
.tl-search-mobile__back { color: #fff; }
.tl-search-mobile__close {
  flex: none;
  min-height: 44px;
  padding: 0 2px 0 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font: 600 13px/1.2 Montserrat, Arial, sans-serif;
  cursor: pointer;
}
.tl-search-mobile__back:focus-visible,
.tl-search-mobile__close:focus-visible { background: #ffffff24; border-radius: 8px; }
.tl-search-mobile__clear[hidden] { display: none; }
.tl-search-mobile .tl-search-mobile__clear svg {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: #e3e3df;
  color: #242424;
}
.tl-search-mobile input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.tl-search-mobile button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tl-search-mobile__field {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  background: #f5f5f3;
  margin: 0;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  border: 0;
  border-bottom: 1px solid #d9d9d5;
}
dialog.tl-search-mobile:focus,
.tl-search-mobile :is(button, input, .tl-suggest__item):focus {
  outline: 0;
  box-shadow: none;
}
.tl-search-mobile :is(.tl-search-mobile__submit, .tl-search-mobile__clear, .tl-suggest__item):focus-visible {
  background: #eaeae6;
}
.tl-search-mobile .tl-search-mobile__field .vz-search__input:focus {
  outline: 0;
  box-shadow: none;
}
.tl-search-mobile .tl-search-mobile__field .vz-search__input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 0 12px 0 0;
  font: 500 16px/1.2 Montserrat, Arial, sans-serif;
  color: #181818;
}
.tl-search-mobile__idle {
  margin: 0;
  padding: 16px 14px;
  color: #595956;
}
.tl-search-mobile__idle[hidden] { display: none; }

/* The shared component still positions its desktop portal. Inside the dialog it is the scrollable main area. */
.tl-search-mobile .tl-suggest {
  flex: 1 1 0;
  position: static !important;
  width: 100% !important;
  max-height: none !important;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom);
}
.tl-search-mobile .tl-suggest__columns--split { grid-template-columns: minmax(0, 1fr); }
.tl-search-mobile .tl-suggest__sections { border-bottom: 1px solid #ebebe9; padding: 8px 12px; }
.tl-search-mobile .tl-suggest__sections .tl-suggest__group-body {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding-bottom: 4px;
}
.tl-search-mobile .tl-suggest__category {
  flex: 0 0 auto;
  border: 1px solid #e3e3de;
  background: #fff;
  max-width: 100%;
  white-space: normal;
}
.tl-search-mobile .tl-suggest__category[aria-selected="true"] { background: #fff8b9; }
.tl-search-mobile .tl-suggest__products { padding: 8px 12px; }
.tl-search-mobile .tl-suggest__products > .tl-suggest__group-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.tl-search-mobile .tl-suggest__product {
  grid-template-columns: 36px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 6px;
  min-height: 66px;
  padding: 7px 5px;
  border: 1px solid #ededea;
}
.tl-search-mobile .tl-suggest__photo,
.tl-search-mobile .tl-suggest__photo img { width: 36px; height: 42px; }
.tl-search-mobile .tl-suggest__copy { font-size: 12px; }
.tl-search-mobile .tl-suggest__copy b { font-size: 13px; }
.tl-search-mobile .tl-suggest__copy > span { order: -2; }
.tl-search-mobile .tl-suggest__all { bottom: 0; }
