
.appbar.solution-appbar {
  --solution-phone-column: max-content;
}

.appbar.solution-appbar .app-row .controls {
  grid-template-columns: minmax(280px, 1fr) var(--solution-phone-column) !important;
  align-items: center !important;
  justify-content: start !important;
}

.appbar.solution-appbar .app-row .controls > .Phone {
  width: var(--solution-phone-column) !important;
  min-width: var(--solution-phone-column) !important;
  max-width: var(--solution-phone-column) !important;
  justify-self: start !important;
  margin-left: 0 !important;
}

/*
 * Строка поиска страниц «Решения» полностью повторяет строку поиска
 * страницы «Доставка». Файл подключается последним, чтобы прежние
 * локальные правила solutions.css не меняли размеры и положение кнопки.
 */
.appbar.solution-appbar .app-row .controls .search {
  display: flex;
  min-width: 0;
  flex: 1 1 auto !important;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: 0 !important;
}

.appbar.solution-appbar .app-row .controls .search .search-modern {
  display: flex;
  width: 100% !important;
  flex: 1 1 auto;
  align-items: flex-start;
  gap: .5rem;
}

.appbar.solution-appbar .search-modern__field {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
}

.appbar.solution-appbar .search-modern__field::before {
  display: none !important;
  content: none !important;
}

.appbar.solution-appbar .search-modern__input {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  min-height: 50px;
  flex: 1 1 auto;
  padding: .75rem 3.25rem .75rem 2.25rem;
  border: 2px solid #333;
  border-radius: 999px;
  outline: none;
  color: #333;
  background: linear-gradient(180deg, #fff 0%, #fbfbfb 55%, #f5f5f5 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .7),
    inset 0 -3px 6px rgba(0, 0, 0, .06);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease,
    width .25s ease;
}

.appbar.solution-appbar .search-modern__input::placeholder {
  color: #ff6600;
  opacity: 1;
}

.appbar.solution-appbar .search-modern__input:focus,
.appbar.solution-appbar .search-modern__input:focus-visible {
  outline: none;
  border-color: #f58220;
  box-shadow:
    0 0 0 .25rem rgba(233, 117, 26, .25),
    inset 0 2px 0 rgba(255, 255, 255, .7),
    inset 0 -3px 6px rgba(0, 0, 0, .08);
}

.appbar.solution-appbar .search-modern__input::selection {
  background: rgba(245, 130, 32, .3);
}

.appbar.solution-appbar .search-modern__input::-moz-selection {
  background: rgba(245, 130, 32, .3);
}

.appbar.solution-appbar .search-modern__iconbtn {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  width: 36px;
  height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 999px;
  color: #ff6600;
  background: linear-gradient(180deg, #fff 0%, #f7f7f7 60%, #efefef 100%);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .8);
  transform: translateY(-50%);
  cursor: pointer;
  line-height: 0;
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    color .15s ease,
    background-color .15s ease;
}

.appbar.solution-appbar .search-icon {
  display: block;
}

.appbar.solution-appbar .search-modern__iconbtn:hover {
  color: #ff7f1a;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, .12),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateY(-50%) scale(1.03);
  filter: brightness(1.05);
}

.appbar.solution-appbar .search-modern__iconbtn:active {
  transform: translateY(-50%) scale(.98);
}

.appbar.solution-appbar .search-modern__iconbtn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 102, 0, .25),
    0 2px 6px rgba(0, 0, 0, .12);
}

@media (min-width: 1200px) {
  .appbar.solution-appbar .app-row .controls {
    grid-template-columns: 510px var(--solution-phone-column) !important;
    justify-content: start !important;
    gap: 14px !important;
  }

  .appbar.solution-appbar .app-row .controls > .search {
    width: 510px !important;
    min-width: 510px !important;
    max-width: 510px !important;
  }
}

@media (max-width: 992px) {
  .appbar.solution-appbar .app-row .controls {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .appbar.solution-appbar .app-row .controls > .Phone {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

@media (max-width: 768px) {
  .appbar.solution-appbar .search-modern__input {
    min-height: 44px;
    font-size: 16px;
  }
}
