.smartsearch-title__wrap,
.smartsearch-title__result {
  --color-gray-200: #f3f5f6;
  --color-gray-500: #abb5be;
  /*--color-gray-500: #d7d7d7;*/
}

.smartsearch-title__input-conteiner {
  position: relative;
}

.smartsearch-title__wrap {
  position: relative;
}

.smartsearch-title__wrap .smartsearch-title__input {
  height: 44px;
  padding: 8px 100px 8px 50px;
  font-size: 14px;
  color: #2c2c2c;
  border-radius: 12px;
  width: 100%;
  border: 1px solid #d7d7d7;
  outline: none;
}

.smartsearch-title__wrap .smartsearch-title__input:hover {
  box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
}

.smartsearch-title__wrap .smartsearch-title__input:active,
.smartsearch-title__wrap .smartsearch-title__input:focus-visible {
  border-color: var(--c-accent);
}

.smartsearch-title__wrap .smartsearch-title__input::placeholder {
  font-size: 14px;
  color: var(--color-gray-500);
}

.smartsearch-title__wrap .smartsearch-title__input-conteiner:before {
  content: url("./images/search.svg");
  position: absolute;
  top: 10px;
  left: 16px;
}

.smartsearch-title__result {
  display: flex;
  margin-top: 4px;
  padding: 12px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-height: 70vh;
  overflow: auto;
  align-self: stretch;
  background: #fff;
  box-shadow: 0px 4px 24px 0px rgba(69, 44, 113, 0.1);
  color: #2c2c2c;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  scrollbar-color: var(--c-accent) #eee;
  scrollbar-width: thin;
}

.title-search-result {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0px 4px 24px 0px rgba(69, 44, 113, 0.1);
  z-index: 991;
}

.smartsearch-title__result .m-auto {
  margin: auto;
}

.smartsearch-title__result-item {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
}
a.smartsearch-title__result-item {
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
}
a.smartsearch-title__result-item:hover {
  background-color: var(--c-bg-gray);
  /* background-color: var(--c-accent-4); */
}

.smartsearch-title__result-item .item-img {
  width: 50px;
}

.smartsearch-title__result-item .item-img > a {
  display: inline-block;
}

.smartsearch-title__result-item .item-img img {
  border-radius: 10px;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.smartsearch-title__result-item .item-info {
  display: flex;
  flex-direction: column;
}
.smartsearch-title__result-item .item-info--section {
  justify-content: center;
}

.smartsearch-title__result-item .item-name {
  color: #2c2c2c;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}

.smartsearch-title__result-item .item-article {
  font-size: 14px;
  color: var(--c-text-3);
}

.smartsearch-title__result-item .item-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--c-text-3);
}

.smartsearch-title__result-item .item-price .old {
  font-size: 13px;
  text-decoration: line-through;
  color: var(--c-text-4);
}

.smartsearch-title__result-item .item-out-of-stock {
  font-size: 15px;
  line-height: 1.4;
  color: var(--c-text-4);
}

.smartsearch-title__result-item .section {
  margin-top: 4px;
  font-size: 16px;
  line-height: 140%;
  color: var(--color-gray-500);
}

.smartsearch-title__result-item .all-result {
  padding: 8px 12px;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--c-accent);
  border-radius: var(--border-radius-btn);
  background-color: var(--c-accent-4);
}
.smartsearch-title__result-item .all-result:hover {
  color: var(--c-hover-state);
}

.icon-wrapper {
  position: absolute;
  display: flex;
  gap: 4px;
  align-items: center;
  top: 10px;
  right: 16px;
}

.search-title__icon {
  display: none;
  cursor: pointer;
  color: var(--color-gray-500);
}

.search-title__icon.speech {
  color: var(--c-accent);
}

.search-title__icon.show {
  display: block;
}

.search-title__icon:not(:last-child) {
  fill: #0a962f;
}

.smartsearch-title__items {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 6px;
}

.smartsearch-title__result .result-group {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
}

.smartsearch-title__result .result-group .result-group__title {
  max-width: 120px;
  min-width: 0;
  color: var(--color-gray-500);
}

@media (hover: hover) {
  .search-title__icon:hover {
    color: var(--c-accent);
  }
}

.smartsearch-title__req_history {
  display: none;
  position: absolute;
  width: 100%;
  top: 56px;
  left: 0;
  z-index: 205;
  padding: 0 !important;
  border-radius: 24px;
}

.smartsearch-title__req_history_content {
  padding: 16px 24px;
  max-height: 40vh;
  overflow-y: auto;
  -ms-overflow-style: -ms-autohiding-scrollbar;
  scrollbar-color: var(--c-accent) #eee;
  scrollbar-width: thin;
}

.smartsearch-title__req_history .smartsearch-title__result-item {
  display: flex;
  padding: 6px 0;
}

.smartsearch-title__wrap .icon {
  color: var(--color-gray-500);
}

.smartsearch-title__wrap .icon:hover:not(.icon-history) {
  color: var(--c-accent);
}

.smartsearch-title__wrap .delete-item {
  margin-left: auto;
  cursor: pointer;
}

.smartsearch-title__req_history:empty,
.smartsearch-title__req_history .item {
  list-style: none;
  display: none;
}

.smartsearch-title__req_history_title {
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--color-gray-500);
}

.smartsearch-title__current_searchimg_wrap {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  height: 52px;
  padding: 10px 16px;
  border-radius: 32px;
  width: 100%;
  border: 1px solid var(--c-accent);
  background: #ffffff;
}

.smartsearch-title__current_searchimg_wrap.show {
  display: block;
}

.smartsearch-title__current_searchimg {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  width: max-content;
  background: var(--color-gray-200);
  border-radius: 8px;
  max-width: 50%;
}

.smartsearch-title__current_searchimg img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 6px;
}

.smartsearch-title__current_searchimg .search-title__icon {
  display: block;
  position: relative;
  top: 0;
  left: 0;
}

.smartsearch-title__current_searchimg .filename {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-title__searchimg_form_wrap {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0px 4px 24px 0px #452c711c;
  background: #ffffff;
  width: 100%;
  padding: 16px 24px;
  border-radius: 24px;
  z-index: 205;
}

.search-title__searchimg_form_container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-title__searchimg_form_container .error {
  display: none;
  padding: 8px 16px;
  border-radius: 4px;
  background: #f6676729;
  color: #f66767;
}

.search-title__searchimg_form_container .image_href {
  display: flex;
  gap: 16px;
}

.search-title__searchimg_form_container .input-text {
  width: 100%;
  height: 52px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-gray-500);
}

.search-title__searchimg_form_container .input-text::placeholder {
  color: var(--color-gray-500);
}

.search-title__searchimg_form_container .btn {
  width: fit-content;
  height: 52px;
  padding: 0 32px;
  border: none;
  border-radius: 32px;
  background-color: var(--c-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.search-title__searchimg_form_container .title {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 992px) {
  .smartsearch-title__wrap {
    display: none;
  }

  .smartsearch-title__wrap.show {
    display: block;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    padding: 8px 20px 16px;
    background-color: #fff;
    border-bottom: 1px solid #efefef;
  }

  .smartsearch-title__req_history {
    margin-top: 4px;
    margin-left: 16px;
    margin-right: 16px;
    width: auto;
    right: 0;
  }
}