/* Hide the normal inline filters on mobile (only when the component is active) */
@media (max-width: 767.98px) {
  form.cf-active > :not([data-compare-filters]) {
    display: none !important;
  }
}

.cf__drill { display: none; }

.cf {
  width: 100%;
  color: #212133;
}

.cf__btn {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 4px;
  background: #1a73d9;
  color: #fff;
  font-weight: 600;
}
.cf__btn:disabled {
  background: #a9adbd;
  color: #e6e8ee;
  cursor: not-allowed;
}

.cf__summary[hidden] { display: none; }
.cf__summary-title { margin: 0 0 0.25rem; font-weight: 600; }
.cf__summary-list { margin: 0 0 1rem; padding: 0; list-style: none; }
.cf__summary-list li::before { content: "· "; }

.offcanvas.offcanvas-bottom.cf__panel {
  height: calc(100% - 1rem);
  margin: 0 0.5rem;
  border: 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #212133;
}

.cf__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #F2F3F7;
}
.cf__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.cf__close {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath stroke='%23212133' stroke-width='2' stroke-linecap='round' d='M5 5l14 14M19 5L5 19'/%3e%3c/svg%3e") center / 20px no-repeat;
}

.cf__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}
.cf__footer {
  padding: 0.75rem 1.25rem;
  background: #F2F3F7;
}

[data-cf-step][hidden] { display: none; }

.cf__intro {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #C5D0E1;
  color: #5c5c70;
}

.cf__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.cf__link {
  padding: 0;
  border: 0;
  background: none;
  color: #1a73d9;
}
.cf__link[hidden] { display: none; }
.cf__back::before {
  content: "";
  display: inline-block;
  margin-right: 0.4rem;
  border: 5px solid transparent;
  border-right: 6px solid currentColor;
  border-left: 0;
}

.cf__row {
  display: block;
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.cf__row-label {
  display: block;
  font-weight: 600;
  color: #212133;
}
.cf__row-value { color: #1a73d9; }
.cf__row-value::after,
.cf__slot .cf__drill::after {
  content: "";
  display: inline-block;
  margin-left: 0.5rem;
  border: 5px solid transparent;
  border-left: 6px solid currentColor;
  border-right: 0;
}

.cf__search-wrap[hidden] { display: none; }
.cf__search {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  border: 1px solid #C5D0E1;
  border-radius: 4px;
  background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23212133' d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.414zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3e%3c/svg%3e") right 0.75rem center / 16px no-repeat;
}

.cf__slot .form-checkboxes,
.cf__slot .bef-checkboxes,
.cf__slot .form--inline {
  display: block !important;
  columns: auto !important;
  grid-template-columns: none !important;
}
.cf__slot .form-item {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  width: auto !important;
  margin: 0 -0.5rem !important;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  float: none !important;
}
.cf__slot .form-item:has(> input:checked) { background: #F2F3F7; }

.cf__slot [hidden] { display: none !important; }

.cf__slot label {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 !important;
  font-weight: 500;
  line-height: 1.35;
  color: #212133;
}
.cf__slot label img {
  width: 24px;
  height: 16px;
  margin-right: 0.5rem;
  object-fit: cover;
}

.cf__slot input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  min-width: 0 !important;
  margin: 0.1rem 0 0 !important;
  padding: 0 !important;
  border-radius: 2px !important;
  background: none !important;
  box-shadow: none !important;
  accent-color: #1a73d9;
}
.cf__slot input[type="checkbox"]::before,
.cf__slot input[type="checkbox"]::after { display: none !important; }

.cf__slot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cf__slot li {
  margin: 0 0 0.75rem;
  padding: 0;
}
.cf__slot li::before,
.cf__slot li::marker { content: none; }

.cf__slot--nested button:not(.cf__drill),
.cf__slot--nested .bef-toggle,
.cf__slot--nested .bef-nested-toggle { display: none !important; }

.cf__slot--nested li ul { display: none; }
.cf__slot .cf__drill {
  display: inline-flex;
  align-items: center;
  margin: 0.1rem 0 0 1.6rem;
  padding: 0;
  border: 0;
  background: none;
  color: #1a73d9;
  font-size: 0.95rem;
}

.cf__slot--searching li ul {
  display: block;
  padding-left: 1.6rem;
}
.cf__slot--searching .cf__drill { display: none !important; }

.cf__slot--drill li.cf-open ul,
.cf__slot--drill li.cf-open ul li {
  display: block !important;
  height: auto !important;
  visibility: visible !important;
}
.cf__slot--drill li.cf-open ul li[hidden] { display: none !important; }
.cf__slot--drill li.cf-open > ul { padding-left: 0; }
.cf__slot--drill li.cf-open > ul > li { margin-bottom: 0.25rem; }
.cf__toolbar--end { justify-content: flex-end; }
