.eb-filter-sidebar {
  position: sticky;
  top: 96px;
  border-radius: 2px !important;
  border: 1px solid var(--eb-border-default);
  background: var(--eb-bg-sidebar);
  box-shadow: var(--eb-shadow-sm);
  overflow: hidden;
}

.eb-filter-sidebar .form-label {
  margin-bottom: 6px;
  color: var(--eb-gray-700);
}

.eb-filter-sidebar .form-check {
  margin-bottom: 4px;
}

.eb-filter-sidebar .card-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--eb-gray-50), #eef2f7);
  border-bottom: 1px solid var(--eb-border-default);
}

.eb-filter-sidebar__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--eb-gray-900);
}

.eb-filter-sidebar__subtitle {
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--eb-gray-500);
}

.eb-filter-sidebar .card-body {
  padding: 16px;
}

.eb-filter-sidebar .form-control,
.eb-filter-sidebar .form-select {
  border-radius: 10px;
  border-color: var(--eb-gray-200);
  background: var(--eb-gray-50);
}

.eb-filter-sidebar .form-control:focus,
.eb-filter-sidebar .form-select:focus {
  border-color: var(--eb-border-focus);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
  background: var(--eb-white);
}

.eb-filter-sidebar .eb-attribute-fields .form-label {
  margin-bottom: 4px;
  font-size: .875rem;
}

.eb-filter-sidebar .eb-attribute-fields .form-control,
.eb-filter-sidebar .eb-attribute-fields .form-select {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.eb-filter-sidebar .eb-taxonomy-tree a {
  color: var(--eb-gray-700);
}

.eb-filter-sidebar .eb-taxonomy-tree a:hover {
  color: var(--eb-primary-700);
}

.eb-filter-sidebar .eb-taxonomy-tree [data-taxonomy-node] {
  border-bottom: 1px solid var(--eb-gray-100);
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.eb-filter-sidebar .eb-taxonomy-tree [data-taxonomy-node]:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.eb-filter-sidebar .eb-taxonomy-tree details > summary {
  list-style: none;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eb-filter-sidebar .eb-taxonomy-tree details > summary::-webkit-details-marker {
  display: none;
}

.eb-filter-sidebar .eb-taxonomy-tree details > summary::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--eb-gray-500);
  border-bottom: 2px solid var(--eb-gray-500);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-left: auto;
}

.eb-filter-sidebar .eb-taxonomy-tree details[open] > summary::after {
  transform: rotate(-135deg);
}

.eb-filter-sidebar .eb-taxonomy-tree .eb-taxonomy-active > summary,
.eb-filter-sidebar .eb-taxonomy-tree .eb-taxonomy-active > a {
  color: var(--eb-primary-700);
  font-weight: 600;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 8px;
}

.eb-filter-sidebar .eb-taxonomy-tree .eb-taxonomy-ancestor > summary,
.eb-filter-sidebar .eb-taxonomy-tree .eb-taxonomy-ancestor > a {
  color: var(--eb-gray-800);
}

@media (max-width: 991.98px) {
  .offcanvas .eb-filter-sidebar {
    position: static;
    top: auto;
    box-shadow: none;
    border-radius: 12px !important;
  }

  .offcanvas .eb-filter-actions {
    position: sticky;
    bottom: 0;
    background: var(--eb-white);
    padding-top: 12px;
    margin-top: 16px;
    z-index: 2;
  }

  .offcanvas .eb-filter-actions .eb-btn {
    flex: 1 1 0;
  }
}
