﻿body.ic-search {
  background: #fff;
}

.ic-sr {
  min-height: calc(100dvh - 12px);
  background: #fff;
}

.ic-sr-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  padding-bottom: 8px;
}

.ic-sr-head .ic-cat-header {
  margin-bottom: 14px;
  padding-bottom: 0;
}

.ic-sr-head .ic-cat-search {
  padding: 12px;
  border-radius: 20px;
}

.ic-sr-filter-icons {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 0;
}

.ic-sr-filter-active {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 14px;
  height: 14px;
  line-height: 0;
}

.ic-sr-filter-active img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.ic-sr-filter-active[hidden] {
  display: none !important;
}

.ic-sr-box {
  direction: rtl;
  display: flex;
  align-items: center;
  height: 60px;
  margin: 0 16px;
  padding: 0 16px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
}

.ic-sr-box.is-filled {
  border-color: #4e91e6;
  background: #f1f4fd;
}

.ic-sr-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 11.5px;
  color: #2d3a4a;
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
  -webkit-appearance: none;
  appearance: none;
}

.ic-sr-box input::-webkit-search-cancel-button,
.ic-sr-box input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.ic-sr-box input::-ms-clear {
  display: none;
}

.ic-sr-box input::placeholder {
  color: #8e8e93;
}

.ic-sr-box.is-filled input::placeholder {
  color: #c9cbec;
}

.ic-sr-clear,
.ic-sr-go {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.ic-sr-clear {
  margin-left: 4px;
  color: #4e91e6;
}

.ic-sr-go {
  color: #8e8e93;
}

.ic-sr-box.is-filled .ic-sr-go {
  color: #4e91e6;
}

.ic-sr-clear[hidden] {
  display: none !important;
}

.ic-sr-recent {
  padding: 8px 16px 16px;
}

.ic-sr-recent-head {
  display: flex;
  flex-direction: row;
  direction: rtl;
  align-items: center;
  margin: 0 10px 16px 16px;
}

.ic-sr-recent-head p {
  flex: 1;
  min-width: 0;
  margin: 0 0 0 0;
  font-size: 12px;
  color: #919aaf;
  text-align: right;
}

.ic-sr-recent-clear {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 4px;
  margin-left: 0px;
  margin-top: 2px;
  background: transparent;
  color: #ff9f9f;
  cursor: pointer;
}

.ic-sr-recent-item {
  display: flex;
  flex-direction: row;
  direction: rtl;
  align-items: center;
  width: 100%;
  padding: 10px 10px 10px 16px;
  border: 0;
  background: transparent;
  font-family: inherit;
  color: #4b5563;
  cursor: pointer;
  text-align: right;
}

.ic-sr-recent-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ic-sr-recent-icon {
  flex-shrink: 0;
  margin-left: 12px;
  margin-top: 2.5px;
  color: #b0b8c4;
}

.ic-sr-loading,
.ic-sr-empty {
  padding: 80px 20px 24px;
  text-align: center;
}

.ic-sr-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid #dbe7f8;
  border-top-color: #4e91e6;
  border-radius: 50%;
  animation: ic-sr-spin .7s linear infinite;
}

@keyframes ic-sr-spin {
  to { transform: rotate(360deg); }
}

.ic-sr-loading p {
  margin: 14px 0 0;
  font-size: 12px;
  color: #2d3a4a;
}

.ic-sr-empty-icon {
  margin-bottom: 16px;
  color: #b0b8c4;
}

.ic-sr-empty-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #2d3a4a;
}

.ic-sr-empty-sub {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
  color: #919aaf;
}

.ic-sr-section-head {
  margin-bottom: 5px;
  padding: 16px 16px 20px;
  background: #f7f9ff;
  border-bottom: 1px solid #e9ecef;
  text-align: center;
}

.ic-sr-section-head strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #2d3a4a;
}

.ic-sr-section-head span {
  font-size: 11px;
  color: #919aaf;
}

.ic-sr-row {
  display: flex;
  flex-direction: row;
  direction: rtl;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 0 16px 2px;
  border: 0;
  border-radius: 16px;
  border-bottom: 1px solid #f0f0f0;
  background: transparent;
  font-family: inherit;
  color: inherit;
  text-align: right;
  text-decoration: none;
  cursor: pointer;
}

.ic-sr-row.is-last {
  border-bottom: 0;
}

.ic-sr-thumb {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background: #f6f6f6;
}

.ic-sr-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ic-sr-thumb--video {
  height: 145px;
  border-radius: 14px;
}

.ic-sr-thumb--min {
  display: grid;
  place-items: center;
  border-radius: 16px;
}

.ic-sr-thumb--min img {
  width: 75%;
  height: 75%;
  border-radius: 12px;
  object-fit: contain;
}

.ic-sr-name {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #2d3a4a;
}

.ic-sr-recent[hidden],
.ic-sr-loading[hidden],
.ic-sr-empty[hidden],
.ic-sr-results[hidden],
[data-sr-filter-open][hidden],
.ic-cat-header-space[hidden] {
  display: none !important;
}

@media (max-width: 800px), (min-width: 801px) {
  .ic-sr {
    min-height: calc(100dvh - 60px - env(safe-area-inset-bottom, 0px));
  }
}

