/* CISopto model search - top toolbar with live suggestions, no content overlap */
body.cs-has-search { padding-top: var(--cs-bar-height, 56px) !important; }
#cs-search-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147482999;
  display: flex;
  justify-content: flex-end;
  min-height: 56px;
  padding: 9px 24px;
  background: #fff;
  border-bottom: 1px solid #e6ebf0;
  box-shadow: 0 2px 12px rgba(9, 25, 43, .06);
}
#cs-search {
  width: 320px;
  max-width: 100%;
  font-family: "Open Sans", Arial, "Microsoft YaHei", sans-serif;
  color: #1c2b3a;
}

.cs-search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: #fff;
  border: 2px solid #ff8a1f;
  border-radius: 9px;
  box-shadow: 0 6px 20px rgba(226, 78, 10, .22);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.cs-search-field:focus-within {
  border-color: #f0570d;
  box-shadow: 0 8px 26px rgba(226, 78, 10, .34), 0 0 0 3px rgba(240, 87, 13, .12);
}
.cs-search-field svg { width: 18px; height: 18px; flex: none; fill: #f0570d; }
#cs-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: #1c2b3a;
}
#cs-search-input::placeholder { color: #9aa6b2; }
#cs-search-input::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.cs-search-clear {
  border: 0;
  background: transparent;
  color: #9aa6b2;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  padding: 0 2px;
  display: none;
}
.cs-search-clear.cs-visible { display: block; }

.cs-search-results {
  display: none;
  margin-top: 8px;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 9px;
  box-shadow: 0 12px 32px rgba(9, 25, 43, .16);
}
#cs-search.cs-live .cs-search-results { display: block; }
.cs-search-results .cs-search-item { padding: 7px 9px; border-bottom: 1px solid #f0f3f6; border-radius: 0; }
.cs-search-results .cs-search-item:last-child { border-bottom: 0; }
.cs-search-results .cs-search-thumb { width: 40px; height: 34px; }
.cs-search-results .cs-search-name { font-size: 13px; }

/* dedicated results page */
.cs-page-wrap {
  max-width: 900px;
  margin: 44px auto 80px;
  padding: 0 20px;
  font-family: "Open Sans", Arial, "Microsoft YaHei", sans-serif;
  color: #1c2b3a;
}
.cs-page-wrap h1 { margin: 0 0 4px; font-size: 24px; color: #0d3b66; }
.cs-page-wrap .cs-page-sub { margin: 0; color: #8b97a3; font-size: 13px; }
.cs-page-form { display: flex; gap: 10px; margin: 22px 0 24px; }
.cs-page-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 2px solid #ff8a1f;
  border-radius: 8px;
  outline: 0;
  font-size: 15px;
}
.cs-page-form input:focus { border-color: #f0570d; box-shadow: 0 0 0 3px rgba(240, 87, 13, .12); }
.cs-page-form button {
  padding: 11px 24px;
  border: 0;
  border-radius: 8px;
  background: #f0570d;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.cs-page-form button:hover { background: #d94a08; }
#cs-page-results { border-top: 1px solid #eef2f5; }

.cs-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f5;
  border-radius: 7px;
  text-decoration: none;
  color: inherit;
}
.cs-search-item:hover { background: #fff3e8; }
.cs-search-thumb {
  width: 58px;
  height: 48px;
  flex: none;
  object-fit: contain;
  background: #f5f7f9;
  border: 1px solid #e9eef3;
  border-radius: 5px;
}
.cs-search-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-search-name mark { background: #ffe0a8; color: #7a4a00; border-radius: 3px; padding: 0 1px; }
.cs-search-arrow { flex: none; color: #b3bdc7; font-size: 18px; }
.cs-search-item:hover .cs-search-arrow { color: #f0570d; }
.cs-search-status { padding: 16px 10px; text-align: center; color: #8b97a3; font-size: 13px; }
.cs-page-back { display: inline-block; margin-top: 26px; color: #0d3b66; font-size: 13px; }

@media (max-width: 600px) {
  #cs-search-bar { padding: 8px 10px; }
  #cs-search { width: 100%; }
  .cs-page-form { flex-direction: column; }
}
