body:has(.filter-container) .berrors {
  display: none !important;
}

#dle-content {
  transition: none;
  opacity: 1;
}

#dle-content.is-loading {
  opacity: 1;
  pointer-events: auto;
}

.filter-container {
  font-size: 13px;
  margin: 0px;
  margin-bottom: 15px;
}

.filter-sort {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-sort-group {
  position: relative;
}

.filter-sort-button {
  color: #c0c0c0;
  border: 2px solid #343434;
  background: #242424;
  padding: 6px 8px;
  border-radius: 6px;
  position: relative;
  padding-right: 28px;
  cursor: pointer;
}

.filter-sort-button::after {
  content: "";
  position: absolute;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #c0c0c0;
  right: 8px;
  top: 50%;
  margin-top: -2px;
}

.filter-sort-button:hover {
  color: #fff;
  border: 2px solid #585858;
  background: #1c1c1c;
}

.filter-sort-button:hover::after {
  border-top: 6px solid #fff;
}

.filter-sort-button.is-open {
  background: #4527a0;
  border: 2px solid #4527a0;
  color: #fff;
  z-index: 100;
}

.filter-sort-button.is-active {
  border: 2px solid #4527a0;
}

.filter-sort-button.is-open + .filter-sort-options {
  display: block;
}

.filter-sort-button.is-open::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(0 0 0 / 60%);
}

.filter-sort-options {
  display: none;
  position: absolute;
  border-radius: 6px;
  border: 2px solid #343434;
  background: #242424;
  margin-top: 4px;
  width: max-content;
  padding: 6px;
  z-index: 101;
}

.filter-sort-option {
  border-radius: 4px;
  padding: 6px;
  background: transparent;
  padding-right: 32px;
  position: relative;
  cursor: pointer;
}

.filter-sort-option.is-active {
  background: #343434;
}

.filter-sort-option:hover:not(.is-active) {
  background: #4527a0;
  color: #fff;
}

.filter-sort-option.is-active::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 0;
  bottom: 0;
  width: 16px;
  background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNjMGMwYzAiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaGVjayI+PHBhdGggZD0iTTIwIDYgOSAxN2wtNS01Ii8+PC9zdmc+)
    no-repeat 50%;
}

.filter-sort-reset {
  display: none;
  color: #b71c1c;
  font-weight: 600;
  cursor: pointer;
}

.filter-sort-reset:hover {
  color: rgb(183, 28, 28, 0.6);
}

.filter-sort-info {
  margin-left: auto;
}

.filter-sort-count {
  display: inline-block;
  font-weight: 600;
  color: #fff;
}

.filter-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  position: relative;
  margin-top: 8px;
}

.filter-button-group.is-active {
  z-index: 100;
}

.filter-button-group.is-active::before {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(0 0 0 / 60%);
}

.filter-button {
  color: #c0c0c0;
  border: 2px solid #343434;
  background: #242424;
  flex: 1;
  padding: 6px 8px;
  border-radius: 6px;
  position: relative;
  min-width: 100px;
  cursor: pointer;
}

.filter-button::after {
  content: "";
  position: absolute;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #c0c0c0;
  right: 8px;
  top: 50%;
  margin-top: -2px;
}

.filter-button:hover {
  color: #fff;
  border: 2px solid #585858;
  background: #1c1c1c;
}

.filter-button:hover::after {
  border-top: 6px solid #fff;
}

.filter-button.is-open {
  background: #4527a0;
  border: 2px solid #4527a0;
  color: #fff;
}

.filter-button.is-open::after {
  border-top: none;
  border-bottom: 6px solid #fff;
}

.filter-button.is-selected {
  border: 2px solid #4527a0;
}

.filter-popup {
  background: #242424;
  border: 2px solid #343434;
  border-radius: 6px;
  position: absolute;
  width: 100%;
  top: 100%;
  margin-top: 4px;
  z-index: 101;
}

.filter-header {
  display: flex;
  margin: 6px;
  margin-bottom: 0;
  background: #1c1c1c;
  border-radius: 6px;
  align-items: center;
}

.filter-search {
  color: #c0c0c0 !important;
  border-radius: 6px 0px 0px 6px !important;
  padding: 8px !important;
  height: auto !important;
  line-height: normal !important;
  background-color: #1c1c1c !important;
  box-shadow: none !important;
  border: none !important;
  flex: 1;
  outline: none !important;
}

.filter-close {
  stroke: #c0c0c0;
  margin: 0px 8px;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.filter-close:hover {
  stroke: #fff;
}

.filter-content {
  display: flex;
  flex-wrap: wrap;
  border-radius: 6px;
  background: #1c1c1c;
  margin: 6px;
  padding: 6px;
  max-height: 208px;
  overflow: auto;
  overscroll-behavior: none;
}

.filter-content::-webkit-scrollbar {
  width: 6px;
  background: #161616;
  border-radius: 0px 6px 6px 0px;
}

.filter-content::-webkit-scrollbar-thumb,
.filter-content::-webkit-scrollbar-thumb:hover,
.filter-content::-webkit-scrollbar-thumb:active {
  background-color: #343434;
  border-radius: 6px;
}

.filter-content::-webkit-scrollbar-track,
.filter-content::-webkit-scrollbar-track:hover,
.filter-content::-webkit-scrollbar-track:active {
  background: #161616;
}

.filter-item {
  flex: 0 0 25%;
  color: #c0c0c0;
  padding: 6px;
  padding-left: 24px;
  transition: 0.3s;
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
  border-radius: 4px;
}

.filter-item:hover {
  color: #fff;
  background: #202020;
}

.filter-item::before {
  content: "";
  position: absolute;
  left: 6px;
  width: 10px;
  height: 10px;
  border: 1px solid #343434;
  border-radius: 4px;
  margin-top: 2px;
}

.filter-item.is-selected {
  background: #343434;
}

.filter-item.is-selected::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 16px;
  transition: 0.3s;
  background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNjMGMwYzAiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaGVjayI+PHBhdGggZD0iTTIwIDYgOSAxN2wtNS01Ii8+PC9zdmc+)
    no-repeat 50%;
}

.filter-item.is-selected::before {
  content: none;
}

.filter-item.is-selected:hover {
  background: #b71c1c;
  color: #fff;
}

.filter-item.is-selected:hover::after {
  transition: 0.3s;
  background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS14Ij48cGF0aCBkPSJNMTggNiA2IDE4Ii8+PHBhdGggZD0ibTYgNiAxMiAxMiIvPjwvc3ZnPg==)
    no-repeat 50%;
}

.filter-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 6px;
  margin-top: 0px;
  background: #1c1c1c;
  padding: 6px;
  border-radius: 6px;
}

.filter-accept {
  background: #4527a0;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  border: none;
  font-size: 12px;
  line-height: 18px;
  height: auto;
  font-family: inherit;
}

.filter-accept:hover {
  background: rgb(69, 39, 160, 0.8);
}

.filter-decline {
  background: #343434;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  border: none;
  font-size: 12px;
  line-height: 18px;
  height: auto;
  font-family: inherit;
}

.filter-decline:hover {
  background: rgb(52, 52, 52, 0.8);
}

.filter-toggle {
  display: none;
  cursor: pointer;
  color: #c0c0c0;
  position: relative;
  padding-left: 46px;
  font-size: 12px;
  user-select: none;
  line-height: 18px;
}

.filter-toggle::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 36px;
  background: #242424;
  border-radius: 9px;
  left: 0;
  top: 0;
  transition: 0.3s;
  border: 1px solid #343434;
}

.filter-toggle::after {
  content: "";
  position: absolute;
  background: #343434;
  height: 14px;
  width: 14px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  transition: 0.3s;
}

.filter-toggle:hover::before {
  background: #202020;
}

.filter-toggle.is-active::before {
  background: #4527a0;
}

.filter-toggle.is-active::after {
  background: #fff;
  left: 20px;
}

.filter-toggle svg {
  vertical-align: middle;
  margin-left: 6px;
  opacity: 0.6;
  cursor: help;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-toggle:hover svg {
  opacity: 1;
}

.filter-clear {
  display: none;
  color: #b71c1c;
  margin-left: auto;
  cursor: pointer;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}

.filter-clear:hover {
  color: rgb(183, 28, 28, 0.6);
}

.filter-clear-count {
  color: #fff;
  font-weight: 600;
}

.filter-current-group {
  display: none;
  flex-wrap: wrap;
  margin-top: 8px;
  gap: 4px;
}

.filter-current-item {
  padding: 4px;
  padding-right: 18px;
  border-radius: 4px;
  background: #242424
    url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiA+PHBhdGggZD0iTTE4IDYgNiAxOCIvPjxwYXRoIGQ9Im02IDYgMTIgMTIiLz48L3N2Zz4=)
    no-repeat top 50% right 4px;
  box-sizing: content-box;
  cursor: pointer;
  color: #c0c0c0;
  font-size: 13px;
}

.filter-current-item:hover {
  color: #fff;
  background-color: #b71c1c;
}

.filter-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.filter-loading.is-active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.filter-loading-spinner {
  width: 60px;
  height: 60px;
  background: url(../images/loading.svg) no-repeat center;
  background-size: contain;
}

@media screen and (max-width: 590px) {
  .filter-item {
    flex: 0 0 50%;
  }
  
  .filter-sort {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-sort-info {
    margin-left: 0;
    margin-top: 8px;
  }
}

.tooltip {
  display: none;
  position: absolute;
  background: #000;
  color: #c0c0c0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 999999;
}
