.alj-ai-home-search {
  box-sizing: border-box;
  width: 100%;
  max-width: 850px;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #183a61;
  text-align: right;
  direction: rtl;
}
html[dir="ltr"] .alj-ai-home-search { direction: ltr; text-align: left; }
.alj-ai-home-search [hidden] { display: none !important; }
.alj-ai-home-form { display: flex; flex-wrap: nowrap; gap: 9px; width: 100%; }
.alj-ai-home-form input, .alj-ai-home-form select {
  box-sizing: border-box;
  height: 56px;
  min-height: 56px !important;
  padding: 0 10px;
  border: 1px solid #a9b7c2;
  border-radius: 8px;
  background: #fff;
  color: #18354d;
  font: inherit;
}
.alj-ai-home-form input { flex: 1 1 0; width: 0; min-width: 0; }
.alj-ai-home-form select { flex: 0 0 115px; }
.home-page #alj-ai-home-search .alj-ai-home-form button {
  flex: 0 0 116px;
  width: 116px;
  box-sizing: border-box;
  height: 56px;
  min-height: 56px !important;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: #173b66;
  color: #d8b55b !important;
  font: inherit;
  font-size: 14px !important;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}
.alj-ai-home-form button:disabled { opacity: .65; cursor: wait; }
.alj-ai-home-status { margin: 8px 0 0; min-height: 1.4em; font-size: 13px; }
.alj-ai-home-status:empty { display: none; }
.alj-ai-home-results { margin: 8px 0 0; padding: 0; list-style: none; }
.alj-ai-home-results li { padding: 8px 0; border-top: 1px solid #e5dccb; overflow-wrap: anywhere; }
.alj-ai-home-results strong, .alj-ai-home-results small { display: block; }
.alj-ai-home-results a { color: #14517c; font-weight: 700; }
.alj-ai-sidebar-entry { flex: 0 0 auto; padding: 10px; border-bottom: 1px solid #e8ddcb; background: #f4ead7; }
.alj-ai-sidebar-entry button {
  width: 100%; min-height: 43px; border: 1px solid #c9ac75; border-radius: 9px;
  background: #fffdf8; color: #173b66; font: inherit; font-weight: 800; cursor: pointer;
}
.alj-ai-sidebar-entry button:hover, .alj-ai-sidebar-entry button:focus-visible {
  background: #fff6e5; outline: 2px solid #173b66; outline-offset: 2px;
}
.alj-ai-sidebar-entry small { display: block; margin-top: 4px; line-height: 1.5; color: #54606b; }
html[lang="en"] .home-page #alj-ai-home-search .alj-ai-home-form input,
html[lang="en"] .home-page #alj-ai-home-search .alj-ai-home-form select {
  height: 52px !important;
  min-height: 52px !important;
}
html[lang="en"] .home-page #alj-ai-home-search .alj-ai-home-form button {
  height: 54px !important;
  min-height: 54px !important;
  font-size: 13px !important;
}
@media (min-width: 1101px) {
  .alj-ai-home-form { gap: 8px; }
  .home-page #alj-ai-home-search .alj-ai-home-form input,
  .home-page #alj-ai-home-search .alj-ai-home-form select {
    height: 45px !important;
    min-height: 45px !important;
  }
  html[lang="en"] .home-page #alj-ai-home-search .alj-ai-home-form input,
  html[lang="en"] .home-page #alj-ai-home-search .alj-ai-home-form select {
    height: 45px !important;
    min-height: 45px !important;
  }
  .home-page #alj-ai-home-search .alj-ai-home-form button { flex-basis: 110px; width: 110px; }
}
@media (min-width: 851px) {
  .home-page .alj-v6-filter {
    display: flex !important;
    flex-direction: column;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    overflow: hidden;
  }
  .home-page .alj-v6-filter > #alj-v2-sidebar {
    position: static; display: flex; flex: 1 1 auto; flex-direction: column;
    min-height: 0; overflow: hidden; border: 0; box-shadow: none; background: transparent;
  }
  .home-page .alj-v6-filter #alj-v2-filter-groups {
    flex: 1 1 auto; min-height: 0; max-height: none !important;
    overflow-y: auto !important; overflow-x: hidden !important;
    overscroll-behavior: contain; scrollbar-width: thin;
  }
  .home-page .alj-v6-filter .alj-v2-filter-header,
  .home-page .alj-v6-filter .alj-v2-filter-footer { flex: 0 0 auto; }
}
@media (max-width: 850px) {
  .alj-ai-sidebar-entry { display: none; }
}
@media (max-width: 760px) {
  .alj-ai-home-form { flex-direction: column; gap: 8px; }
  html[lang="en"] .alj-ai-home-form { gap: 10px; }
  .alj-ai-home-form input, .alj-ai-home-form select { flex: 0 0 auto; width: 100%; }
  .home-page #alj-ai-home-search .alj-ai-home-form button { flex: 0 0 auto; width: 100%; }
}
