.search-btn {
    cursor: pointer;
}

.search-modal {
  position: fixed;
  width: calc(100% - 10px * 2);
  max-height: 378px;
  top: 128px;
  left: 10px;
  padding: 12px;

  background-color: var(--white-color);

  border-radius: 5px;
  z-index: 100000;
  display: none;
}

.input-search {
  border: 1px solid var(--grey-color);
  color: inherit;
  font-size: 18px;

  height: 56px;
  border-radius: 5px;
  padding: 0 20px;
  flex: 1;
}

.input-search:focus {
  outline: none;
}

.input-search::placeholder {
  color: inherit;
  font-family: "Montserrat", sans-serif;
}

.input-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('../images/icons/close-search.svg');
  cursor: pointer;
}

.search-modal-line {
  display: flex;
  gap: 14px;
  position: relative;
}

.close-search-modal {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  padding: 0;
}

.close-search-modal img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.search-list {
  max-height: 248px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  display: none;
}

.search-option {
  display: flex;
  align-items: center;
  height: 44px;
  cursor: pointer;
  gap: 20px;
  flex-shrink: 0;
}

.not-found {
  display: none;
}

.search-option-img {
  width: 73px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}

.search-option-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.search-option-text-dop {
  display: flex;
  gap: 20px;
}

.search-option-text {
  font-size: 20px;
  color: inherit;
}

/* Обработка красоты поиска */
.search-accent {
  color: var(--green-color);
}
    
.search-list {
  overflow-y: scroll;
}

.search-list::-webkit-scrollbar-track {
  background-color: rgba(136, 136, 136, .4);
  border-radius: 4px;
}

.search-list::-webkit-scrollbar {
  width: 5px;
}

.search-list::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: var(--green-color);
}

/* модалка-затемнение */
.root-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(19, 22, 28, 0.15);
  z-index: 100000;
  display: none;
}

@media (min-width: 1500px) {
    .search-modal {
        width: 1500px;
        left: calc((100% - 1500px) / 2);
    }
}

@media (max-width: 950px) {
    .search-modal {
        top: 88px;
    }
}

@media (max-width: 510px) {
    .close-search-modal {
        width: 40px;
        height: 40px;
    }

    .input-search {
        font-size: 16px;

        height: 40px;
        padding: 0 10px;
    }

    .search-option {
        height: fit-content;
    }

    .search-option-img {
        width: 50px;
    }

    .search-option-text {
        font-size: 18px;
    }
}