/* Back to search results button */

.back-to-search-results-wrap {
  width: 100%;
  margin: 0 0 22px 0;
  display: flex;
  justify-content: flex-start;
}

.back-to-search-results {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 16px;

  background: #333;
  color: #fff !important;
  text-decoration: none !important;

  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);

  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;

  transition:
    transform 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.back-to-search-results:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}

.back-to-search-results strong {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  padding: 3px 8px;
  border-radius: 999px;

  background: rgba(255,255,255,0.16);
  color: #fff;
  font-weight: 800;
}

.back-to-search-arrow {
  font-size: 20px;
  line-height: 1;
}

html[lang="ar"] .back-to-search-results-wrap {
  justify-content: flex-end;
  direction: rtl;
}

html[lang="ar"] .back-to-search-results {
  direction: rtl;
}

@media (max-width: 700px) {
  .back-to-search-results-wrap {
    justify-content: center;
    margin-bottom: 18px;
  }

  html[lang="ar"] .back-to-search-results-wrap {
    justify-content: center;
  }

  .back-to-search-results {
    width: min(100%, 340px);
    justify-content: center;
    text-align: center;
    padding: 11px 14px;
  }

  .back-to-search-results strong {
    max-width: 130px;
  }
}
